/**
 * ONOC Dolibarr - Property Tour Styles
 * Erweiterte Produktseite mit Tab-Layout
 * 
 * Farbsystem basiert auf Corporate Design:
 * - Rot:     #F84F2B / Hover: #FF6B49
 * - Grün:    #1FB457 / Hover: #39C970
 * - Cyan:    #207A9C / Hover: #3B96B3
 * - Blau:    #1e73be / Hover: #4090D1
 * - Gelb:    #F8962B / Hover: #FFAA4F
 * - Beige:   #F5F0E8
 */

/* =====================================================
   CSS VARIABLEN - Corporate Design
   ===================================================== */
:root {
    --pt-color-red: #F84F2B;
    --pt-color-red-hover: #FF6B49;
    --pt-color-green: #1FB457;
    --pt-color-green-hover: #39C970;
    --pt-color-cyan: #207A9C;
    --pt-color-cyan-hover: #3B96B3;
    --pt-color-blue: #1e73be;
    --pt-color-blue-hover: #4090D1;
    --pt-color-yellow: #F8962B;
    --pt-color-yellow-hover: #FFAA4F;
    
    /* Neutrals */
    --pt-bg-beige: #F5F0E8;
    --pt-bg-light: #f9fafb;
    --pt-bg-white: #ffffff;
    --pt-border-light: #e2e2e2;
    --pt-border-medium: #ccc;
    
    /* Text */
    --pt-text-dark: #333;
    --pt-text-medium: #444;
    --pt-text-light: #6b7280;
    
    /* Shadows */
    --pt-shadow-soft: 0 2px 10px rgba(0,0,0,0.08);
    --pt-shadow-medium: 0 4px 10px rgba(0,0,0,0.15);
}

/* =====================================================
   PROPERTY TOUR - HAUPTCONTAINER
   ===================================================== */

.onoc-property-tour {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Inter', sans-serif;
}

/* =====================================================
   HERO SECTION MIT BILDERGALERIE
   ===================================================== */

.onoc-pt-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--pt-shadow-soft);
}

.onoc-pt-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.onoc-pt-gallery-item img:hover {
    transform: scale(1.03);
}

/* =====================================================
   INTRO / TITEL BEREICH
   ===================================================== */

.onoc-pt-intro {
    margin-bottom: 48px;
}

.onoc-pt-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--pt-color-blue);
    margin: 0 0 8px;
}

.onoc-pt-subtitle {
    font-size: 18px;
    font-style: italic;
    color: var(--pt-text-light);
    margin: 0 0 20px;
}

.onoc-pt-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--pt-text-medium);
    margin: 0;
}

/* =====================================================
   TABS SECTION
   ===================================================== */

.onoc-pt-tabs-section {
    margin-bottom: 48px;
}

.onoc-pt-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pt-color-blue);
    margin: 0 0 20px;
}

/* Tab Navigation */
.onoc-pt-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--pt-border-light);
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Kräftiger mit Beige-Gelb */
    background: #fef3e2;
    /*******    background: var(--pt-bg-beige);    *****/
    border-radius: 8px 8px 0 0;
}

.onoc-pt-tab-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--pt-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.onoc-pt-tab-btn:hover {
    color: var(--pt-color-blue);
    background: rgba(30, 115, 190, 0.05);
}

.onoc-pt-tab-btn.active {
    color: var(--pt-color-red);
    border-bottom-color: var(--pt-color-red);
    font-weight: 600;
    background: var(--pt-bg-white);
}

/* =====================================================
   TAB ICONS - Farbige Kreise wie im Corporate Design
   ===================================================== */

.onoc-pt-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--pt-shadow-medium);
    flex-shrink: 0;
}

.onoc-pt-tab-icon i {
    line-height: 1;
}

/* Icon Farben für jeden Tab */
.onoc-pt-tab-btn[data-tab="leistungen"] .onoc-pt-tab-icon {
    background-color: var(--pt-color-green);
}

.onoc-pt-tab-btn[data-tab="reiseverlauf"] .onoc-pt-tab-icon {
    background-color: var(--pt-color-blue);
}

.onoc-pt-tab-btn[data-tab="unterkunft"] .onoc-pt-tab-icon {
    background-color: var(--pt-color-yellow);
}

.onoc-pt-tab-btn[data-tab="nicht-enthalten"] .onoc-pt-tab-icon {
    background-color: var(--pt-color-red);
}

.onoc-pt-tab-btn[data-tab="wichtig"] .onoc-pt-tab-icon {
    background-color: var(--pt-color-cyan);
}

/* Icon Hover Effekt */
.onoc-pt-tab-btn:hover .onoc-pt-tab-icon {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Tab Content */
.onoc-pt-tab-content {
    border: 1px solid var(--pt-border-light);
    border-top: none;
    padding: 28px;
    background: var(--pt-bg-white);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--pt-shadow-soft);
}

.onoc-pt-tab-panel {
    display: none;
}

.onoc-pt-tab-panel.active {
    display: block;
    animation: ptFadeIn 0.3s ease;
}

@keyframes ptFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.onoc-pt-tab-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pt-color-blue);
    margin: 0 0 16px;
}

/* =====================================================
   LISTEN IN TABS
   ===================================================== */

.onoc-pt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onoc-pt-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--pt-text-medium);
    line-height: 1.6;
}

.onoc-pt-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--pt-color-green);
    font-weight: bold;
    font-size: 16px;
}

/* =====================================================
   REISEVERLAUF / ITINERARY
   ===================================================== */

.onoc-pt-itinerary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.onoc-pt-day {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--pt-bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--pt-color-yellow);
    transition: all 0.3s ease;
}

.onoc-pt-day:hover {
    box-shadow: var(--pt-shadow-soft);
    border-left-color: var(--pt-color-red);
}

.onoc-pt-day-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pt-color-yellow) 0%, var(--pt-color-yellow-hover) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    box-shadow: var(--pt-shadow-medium);
}

.onoc-pt-day-content {
    flex: 1;
}

.onoc-pt-day-content strong {
    display: block;
    font-size: 16px;
    color: var(--pt-color-blue);
    margin-bottom: 6px;
}

.onoc-pt-day-content p {
    margin: 0;
    font-size: 14px;
    color: var(--pt-text-light);
    line-height: 1.6;
}

/* =====================================================
   HOTELS / UNTERKUNFT
   ===================================================== */

.onoc-pt-intro-text {
    font-size: 15px;
    color: var(--pt-text-medium);
    margin: 0 0 16px;
}

.onoc-pt-hotels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.onoc-pt-hotel {
    background: var(--pt-bg-light);
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--pt-border-light);
    transition: all 0.3s ease;
}

.onoc-pt-hotel:hover {
    border-color: var(--pt-color-cyan);
    box-shadow: var(--pt-shadow-soft);
}

.onoc-pt-hotel-name {
    font-weight: 600;
    color: var(--pt-text-dark);
    font-size: 15px;
}

.onoc-pt-stars {
    color: var(--pt-color-yellow);
    margin-left: 10px;
    font-size: 14px;
}

.onoc-pt-hotel-location {
    font-size: 13px;
    color: var(--pt-text-light);
}

.onoc-pt-note {
    font-size: 13px;
    color: var(--pt-text-light);
    font-style: italic;
    margin: 16px 0 0;
    padding: 12px;
    background: var(--pt-bg-beige);
    border-radius: 6px;
    border-left: 3px solid var(--pt-color-cyan);
}

/* =====================================================
   BOOKING BOX
   ===================================================== */

.onoc-pt-booking-box {
    background: linear-gradient(135deg, var(--pt-bg-beige) 0%, #F9F6F0 100%);
    border: 2px solid var(--pt-border-light);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-top: 40px;
    box-shadow: var(--pt-shadow-soft);
}

.onoc-pt-booking-left {
    flex: 1;
}

.onoc-pt-booking-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pt-color-blue);
    margin: 0 0 10px;
}

.onoc-pt-booking-date {
    font-size: 15px;
    color: var(--pt-text-medium);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.onoc-pt-booking-date::before {
    content: "📅";
    font-size: 16px;
}

.onoc-pt-partner-note {
    font-size: 13px;
    color: var(--pt-text-light);
    margin: 0;
}

.onoc-pt-booking-right {
    text-align: right;
    flex-shrink: 0;
}

.onoc-pt-price-label {
    font-size: 12px;
    color: var(--pt-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.onoc-pt-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--pt-color-green);
    line-height: 1;
}

.onoc-pt-price-note {
    font-size: 12px;
    color: var(--pt-text-light);
    margin: 6px 0 20px;
}

/* CTA Button - Corporate Design Orange/Rot */
.onoc-pt-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pt-color-red) 0%, var(--pt-color-red-hover) 100%);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(248, 79, 43, 0.3);
}

.onoc-pt-cta-btn:hover {
    background: linear-gradient(135deg, var(--pt-color-red-hover) 0%, #FF7B5E 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(248, 79, 43, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .onoc-property-tour {
        padding: 16px;
    }
    
    .onoc-pt-gallery {
        grid-template-columns: 1fr;
    }
    
    .onoc-pt-gallery-item img {
        height: 180px;
    }
    
    .onoc-pt-title {
        font-size: 24px;
    }
    
    .onoc-pt-subtitle {
        font-size: 16px;
    }
    
    .onoc-pt-tab-nav {
        border-radius: 6px 6px 0 0;
    }
    
    .onoc-pt-tab-btn {
        padding: 12px 14px;
        font-size: 13px;
        gap: 8px;
    }
    
    .onoc-pt-tab-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .onoc-pt-tab-content {
        padding: 20px;
        border-radius: 0 0 6px 6px;
    }
    
    .onoc-pt-booking-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .onoc-pt-booking-left {
        text-align: center;
    }
    
    .onoc-pt-booking-date::before {
        display: none;
    }
    
    .onoc-pt-booking-right {
        text-align: center;
        width: 100%;
    }
    
    .onoc-pt-price {
        font-size: 36px;
    }
    
    .onoc-pt-cta-btn {
        width: 100%;
        text-align: center;
    }
    
    .onoc-pt-day {
        flex-direction: column;
        gap: 12px;
    }
    
    .onoc-pt-day-number {
        width: auto;
        height: auto;
        padding: 10px 16px;
        flex-direction: row;
        gap: 6px;
        border-radius: 20px;
    }
    
    .onoc-pt-hotel {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .onoc-pt-list li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .onoc-pt-tab-btn {
        padding: 10px 10px;
        font-size: 11px;
    }
    
    .onoc-pt-tab-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .onoc-pt-section-title {
        font-size: 1.25rem;
    }
}
