/* ===========================================
   MODERN COMPACT SAFARI TRIPS DESIGN
   Tabs, Animations, Engaging Layout
=========================================== */

/* Base Styles */
* {
    box-sizing: border-box;
}

/* ========== TRIP GRID (Archive Page) ========== */

.safari-trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
    padding: 0;
}

.safari-trip-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.safari-trip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(232, 144, 12, 0.2);
}

.trip-image {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.safari-trip-card:hover .trip-image img {
    transform: scale(1.1);
}

.trip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.trip-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trip-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.trip-location svg {
    color: #e8900c;
}

.trip-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.trip-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trip-title a:hover {
    color: #e8900c;
}

.trip-excerpt {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.trip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
}

.price-single {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #e8900c, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trip-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8900c, #ff6b35);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.trip-button:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(232, 144, 12, 0.4);
}

.trip-button svg {
    transition: transform 0.3s ease;
}

.trip-button:hover svg {
    transform: translateX(3px);
}

.no-trips {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
}

/* ========== SINGLE TRIP - COMPACT DESIGN ========== */

.single-safari-trip-compact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Compact Header */
.trip-header-compact {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #fff9f0 100%);
    padding: 30px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(232, 144, 12, 0.15), rgba(255, 107, 53, 0.15));
    padding: 8px 16px;
    border-radius: 50px;
    width: fit-content;
    border: 2px solid rgba(232, 144, 12, 0.3);
}

.rating-badge .stars {
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-badge .rating-num {
    font-size: 16px;
    font-weight: 800;
    color: #e8900c;
}

.trip-title-compact {
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.meta-badges-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge-pax {
    background: linear-gradient(135deg, #e8900c, #ff6b35);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 144, 12, 0.3);
}

.badge-location {
    background: white;
    color: #4b5563;
    border: 2px solid #e8900c;
}

.badge-type {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.badge-compact svg {
    width: 14px;
    height: 14px;
}

/* Price Card Hero */
.price-card-hero {
    background: linear-gradient(135deg, #e8900c, #ff6b35);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(232, 144, 12, 0.3);
}

.price-amount-hero {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.currency-symbol {
    font-size: 28px;
    font-weight: 700;
    opacity: 0.9;
}

.price-label-hero {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-book-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #e8900c;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-book-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-book-hero svg {
    transition: transform 0.3s ease;
}

.btn-book-hero:hover svg {
    transform: translateX(4px);
}

/* Hero Image */
.trip-hero-compact {
    position: relative;
    margin-bottom: 40px;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.trip-hero-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-type-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Tabs Navigation */
.trip-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    padding: 6px;
    background: #f8fafc;
    border-radius: 16px;
    overflow-x: auto;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tab-btn:hover {
    background: rgba(232, 144, 12, 0.1);
    color: #e8900c;
}

.tab-btn:hover svg {
    opacity: 1;
}

.tab-btn.active {
    background: linear-gradient(135deg, #e8900c, #ff6b35);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 144, 12, 0.3);
}

.tab-btn.active svg {
    opacity: 1;
}

.badge-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.tab-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Tab Content */
.trip-tabs-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

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

.tab-pane-inner {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Content Expandable (Show More/Less) */
.content-expandable {
    position: relative;
}

.content-text {
    line-height: 1.8;
    font-size: 17px;
    color: #475569;
}

.content-text h2,
.content-text h3 {
    color: #1f2937;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 800;
}

.content-text h2 {
    font-size: 28px;
}

.content-text h3 {
    font-size: 22px;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text ul,
.content-text ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-text li {
    margin-bottom: 10px;
}

.btn-show-more,
.btn-show-less {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8900c, #ff6b35);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-show-more:hover,
.btn-show-less:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 144, 12, 0.3);
}

.btn-show-more svg,
.btn-show-less svg {
    transition: transform 0.3s ease;
}

.btn-show-more:hover svg {
    transform: translateY(2px);
}

.btn-show-less:hover svg {
    transform: translateY(-2px);
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 40px;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background: linear-gradient(to bottom, #e8900c, #ff6b35);
    border-radius: 3px;
}

.itinerary-item {
    position: relative;
    margin-bottom: 40px;
}

.itinerary-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e8900c, #ff6b35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(232, 144, 12, 0.3);
}

.itinerary-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.itinerary-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-accordion-item {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item.active {
    border-color: #e8900c;
    box-shadow: 0 4px 15px rgba(232, 144, 12, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: white;
    border: none;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #fff9f0;
}

.faq-accordion-item.active .faq-question {
    background: linear-gradient(135deg, #fff9f0, #ffffff);
    color: #e8900c;
}

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #e8900c;
}

.faq-accordion-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f8fafc;
}

.faq-accordion-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 25px 25px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: #64748b;
    font-size: 16px;
}

/* Gallery Grid Compact */
.gallery-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item-compact {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(232, 144, 12, 0.2);
}

.gallery-item-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-compact:hover img {
    transform: scale(1.1);
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    display: block;
    border-radius: 16px;
}

/* Related Trips Compact */
.related-trips-compact {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 3px solid #f3f4f6;
}

.related-trips-compact h2 {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1f2937, #e8900c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

@media (max-width: 968px) {
    .safari-trips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .header-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .price-card-hero {
        padding: 25px;
    }
    
    .price-amount-hero {
        font-size: 40px;
    }
    
    .trip-title-compact {
        font-size: 32px;
    }
    
    .trip-hero-compact {
        height: 400px;
    }
    
    .tab-pane-inner {
        padding: 30px 25px;
    }
}

@media (max-width: 640px) {
    .safari-trips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trip-header-compact {
        padding: 25px 20px;
    }
    
    .trip-title-compact {
        font-size: 28px;
    }
    
    .price-amount-hero {
        font-size: 36px;
    }
    
    .trip-hero-compact {
        height: 300px;
        border-radius: 16px;
    }
    
    .trip-tabs-nav {
        gap: 4px;
        padding: 4px;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .tab-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .tab-pane-inner {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .content-text {
        font-size: 16px;
    }
    
    .itinerary-timeline {
        padding-left: 35px;
    }
    
    .itinerary-marker {
        width: 35px;
        height: 35px;
        left: -35px;
        font-size: 14px;
    }
    
    .gallery-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
