/* =========================================================
   TOUR DETAILS PAGE STYLES - MODERN REFRESH
   ========================================================= */

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #f4f6f8;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- HERO BANNER SECTION --- */
.tour-hero-section {
    position: relative;
    width: 100%;
    background-color: #0f172a;
    overflow: hidden;
}

.tour-hero-bg {
    position: relative;
    height: 420px;
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.45)), url('../image/3-Days-Amboseli-Super-Adventure.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px 20px;
    filter: saturate(1.5) contrast(1.2) brightness(1.15);
}

.tour-hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.tour-hero-content h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-sub-info {
    color: #e2e8f0;
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-sub-info .operator-name {
    color: #f8fafc;
    font-weight: 600;
}

.hero-wishlist-btn {
    position: absolute;
    top: 25px;
    right: max(20px, calc((100% - 1200px) / 2 + 20px));
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    color: #1e293b;
    font-size: 18px;
}

.hero-wishlist-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
    color: #b33923;
}

/* --- SUB-NAVIGATION TABS BAR --- */
.tour-subnav-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.subnav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subnav-tabs {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.subnav-tabs li a {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.subnav-tabs li a:hover,
.subnav-tabs li a.active {
    color: #b33923;
    border-bottom-color: #b33923;
}

/* --- HEADER MENU --- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.logo-area img {
    height: 38px;
    object-fit: contain;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #b33923;
}

.nav-cta-btn {
    background-color: #b33923;
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-cta-btn:hover {
    background-color: #922b1a;
}

.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* --- MAIN LAYOUT GRID --- */
.tour-main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tour-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 35px;
    align-items: start;
}

/* --- LEFT COLUMN ITINERARY CARDS --- */
.tour-details-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tour-section-box, .itinerary-day-card, .operator-widget-card, .tour-inclusions-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Arrival Box Enhancements */
.arrival-box {
    padding: 24px;
    border-left: 5px solid #27ae60;
}

.arrival-box h3 {
    font-size: 17px;
    color: #1e293b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrival-box h3 i {
    color: #27ae60;
}

.arrival-box h3 .sub-link {
    font-size: 13px;
    color: #2980b9;
    font-weight: 500;
    margin-left: auto;
}

.arrival-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Itinerary Day Card Styling */
.itinerary-day-card {
    border: 1px solid #e2e8f0;
}

.day-card-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.day-badge-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 10%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    width: 100%;
    padding: 25px;
    color: #fff;
}

.day-badge-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.day-badge-overlay p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    font-weight: 400;
}

.day-card-body {
    padding: 30px;
}

.day-card-body > p {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: justify; /* Fills the text block cleanly corner-to-corner */
    text-justify: inter-word;
}

/* Destination Focus Box */
.destination-focus-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.destination-focus-box h4 {
    font-size: 15px;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.highlight-blue {
    color: #0284c7;
    font-weight: 600;
}

.dest-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.dest-quick-stats div {
    font-size: 13px;
    color: #475569;
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: baseline;
    gap: 10px;
}

.dest-quick-stats i {
    color: #64748b;
    width: 14px;
    text-align: center;
}

.wildlife-spotlight {
    margin-top: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.wildlife-spotlight h5 {
    font-size: 13px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.wildlife-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wildlife-icons-row span {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.meals-drinks-box {
    font-size: 13px;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: 20px;
}

.meals-drinks-box strong {
    color: #1e293b;
}

.meals-drinks-box ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.meals-drinks-box li {
    margin-bottom: 4px;
}

/* --- RIGHT COLUMN SIDEBAR --- */
.tour-details-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 90px;
}

.quote-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.sidebar-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-range {
    font-size: 28px;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: -0.5px;
}

.price-range small {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.currency-unit {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.sidebar-sub-link {
    display: inline-block;
    font-size: 13px;
    color: #0284c7;
    text-decoration: none;
    margin: 6px 0 20px 0;
    font-weight: 500;
}

.sidebar-sub-link:hover {
    text-decoration: underline;
}

.quote-form-container h3 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #1e293b;
    font-weight: 700;
}

.form-group {
    position: relative;
    margin-bottom: 14px;
}

.form-group label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.form-group select {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-group select:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.quote-submit-btn {
    width: 100%;
    background-color: #f97316;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 5px;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
}

.quote-submit-btn:hover {
    background-color: #ea580c;
}

.quote-submit-btn:active {
    transform: scale(0.98);
}

.guarantee-list {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 15px 0 0 0;
    border-top: 1px solid #f1f5f9;
}

.guarantee-list li {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.4;
}

.guarantee-list i {
    color: #16a34a;
    font-size: 13px;
    margin-top: 1px;
}

/* Operator Widget Card */
.operator-widget-card {
    padding: 24px;
}

.operator-logo-title {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 18px;
}

.operator-logo-title img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f1f5f9;
}

.operator-logo-title h4 {
    font-size: 16px;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.rating-stars {
    color: #f59e0b;
    font-size: 13px;
}

.rating-stars strong {
    color: #1e293b;
    margin-left: 4px;
}

.review-count {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.operator-meta-details p {
    font-size: 13px;
    color: #475569;
    margin: 0 0 8px 0;
}

.operator-meta-details strong {
    color: #1e293b;
}

.operator-more-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.operator-more-link:hover {
    text-decoration: underline;
}

/* --- TOUR INCLUSIONS & EXCLUSIONS CARD STYLES --- */
.tour-inclusions-card {
    padding: 24px;
}

.inclusion-section {
    margin-bottom: 20px;
}

.inclusion-section:last-child {
    margin-bottom: 0;
}

.inclusion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.inclusion-header.included {
    color: #16a34a;
}

.inclusion-header.excluded {
    color: #dc2626;
}

.inclusion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inclusion-list li {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.inclusion-list li span.sub-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* --- STICKY MOBILE BOTTOM MENU --- */
.sticky-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    align-items: center;
    justify-content: space-between;
}

.mobile-price-display .m-price {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #16a34a;
}

.mobile-price-display .m-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.mobile-actions {
    display: flex;
    gap: 10px;
}

.m-action-btn {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.call-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.quote-btn {
    background: #f97316;
    color: #fff;
}


/* --- RESPONSIVE QUERIES --- */
@media (max-width: 992px) {
    .tour-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tour-details-right {
        position: static; 
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; 
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sticky-mobile-bottom-bar {
        display: flex;
    }

    /* --- MOBILE OPTIMIZATIONS FOR QUICK STATS & ITINERARY BOXES --- */
    .tour-hero-bg {
        height: 320px;
    }

    .tour-hero-content h1 {
        font-size: 26px;
    }

    .day-card-body {
        padding: 20px;
    }

    /* Keep paragraphs neatly justified on small screens */
    .day-card-body > p {
        text-align: justify;
    }

    .destination-focus-box {
        padding: 15px;
        margin: 15px 0;
    }

    /* Convert the quick stats rows into clean stacked blocks on small screens */
    .dest-quick-stats {
        gap: 10px;
    }

    .dest-quick-stats div {
        grid-template-columns: 1fr; /* Stack label and value vertically */
        gap: 2px;
        background: #ffffff;
        padding: 8px 10px;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
    }

    /* Target the text inside quick stats to ensure proper spacing and alignment */
    .dest-quick-stats div strong:first-of-type,
    .dest-quick-stats div span {
        font-size: 13px;
        color: #1e293b;
    }

    .wildlife-icons-row {
        gap: 6px;
    }

    .wildlife-icons-row span {
        font-size: 11px;
        padding: 4px 8px;
    }
}