/*
Theme Name:     Traveler Childtheme
Description:    Traveler Child Theme for Postum Travel
Author:         Postum Travel Development Team
Version:        2.0.0
Template:       traveler
*/

/* ==========================================================================
   01 — CORE DESIGN SYSTEM TOKENS (01_DESIGN_SYSTEM.md)
   ========================================================================== */
:root {
    --postum-primary: #11589B;        /* Deep Ocean Blue */
    --postum-primary-dark: #0B4478;
    --postum-brand-navy: #033B6D;     /* Royal Navy Brand */
    --postum-accent: #FF9A3C;         /* Vibrant Warm Rust/Orange */
    --postum-accent-hover: #F58A22;
    --postum-on-accent: #FFFFFF;
    --postum-bg-page: #FFFFFF;
    --postum-bg-alt: #F4F8FB;          /* Alternating Section Background */
    --postum-text: #0F172A;           /* Dark Slate 900 */
    --postum-text-muted: #475569;     /* Slate 600 */
    --postum-border: #DCE5ED;         /* Clean Soft Border */
    --postum-border-light: #F1F5F9;
    --postum-success: #166534;        /* Verified Forest Green */
    --postum-danger: #B91C1C;         /* Crimson Red */
    --postum-radius-btn: 10px;
    --postum-radius-card: 16px;
    --postum-radius-gallery: 20px;
    --postum-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --postum-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --postum-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --postum-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
    --postum-header-offset: 95px;
}

body {
    font-family: var(--postum-font) !important;
    color: var(--postum-text);
    background-color: var(--postum-bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--postum-font) !important;
    font-weight: 700;
    color: var(--postum-brand-navy);
    letter-spacing: -0.3px;
}

/* ==========================================================================
   03 — HEADER, AUXILIARY TOPBAR & NAVIGATION (03_HEADER_MENU_FOOTER.md)
   ========================================================================== */
.postum-top-bar {
    background-color: #010847;
    color: #cbd5e1;
    font-size: 13px;
    height: 36px;
    line-height: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.postum-top-bar a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s ease;
}
.postum-top-bar a:hover {
    color: #fed7aa;
}

.header .st-menu > li > a {
    font-family: var(--postum-font) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--postum-brand-navy) !important;
    transition: color 0.2s ease;
}
.header .st-menu > li > a:hover {
    color: var(--postum-accent) !important;
}

.header .st-menu ul.sub-menu {
    border-radius: var(--postum-radius-card) !important;
    box-shadow: var(--postum-shadow-lg) !important;
    border: 1px solid var(--postum-border) !important;
    padding: 10px 0 !important;
    min-width: 250px !important;
}

/* Button Tư Vấn Nhanh in Header */
.postum-header-consult-btn {
    background-color: var(--postum-accent) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 8px 18px !important;
    border-radius: var(--postum-radius-btn) !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.postum-header-consult-btn:hover {
    background-color: var(--postum-accent-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   01 & 06 — SHARED TOUR CARD (01_DESIGN_SYSTEM.md & 06_TOUR_LISTING.md)
   ========================================================================== */
.postum-tour-card-wrapper {
    margin-bottom: 28px;
}

.postum-tour-card {
    background: #ffffff;
    border: 1px solid var(--postum-border);
    border-radius: var(--postum-radius-card);
    overflow: hidden;
    box-shadow: var(--postum-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.postum-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--postum-shadow-md);
    border-color: #cbd5e1;
}

/* 4:3 Aspect Ratio Media */
.postum-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.postum-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.postum-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.postum-tour-card:hover .postum-card-img {
    transform: scale(1.05);
}

.postum-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.postum-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.postum-badge-featured {
    background-color: #fef08a;
    color: #854d0e;
}

.postum-badge-sale {
    background-color: var(--postum-accent);
    color: #ffffff;
}

.postum-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
}

/* Card Content Area */
.postum-card-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.postum-card-location {
    font-size: 13px;
    color: var(--postum-text-muted);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.postum-card-location i {
    color: var(--postum-primary);
    margin-right: 3px;
}

.postum-card-title {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    color: var(--postum-brand-navy) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}
.postum-card-title a {
    color: var(--postum-brand-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}
.postum-card-title a:hover {
    color: var(--postum-accent);
}

.postum-card-schedule {
    font-size: 13px;
    color: var(--postum-text-muted);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--postum-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.postum-card-schedule .schedule-more {
    color: var(--postum-primary);
    font-weight: 600;
    font-size: 12px;
    background: var(--postum-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
}

.postum-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

.postum-card-price-wrap .price-prefix {
    font-size: 12px;
    color: var(--postum-text-muted);
    display: block;
}
.postum-card-price-wrap .price-value {
    font-size: 19px;
    font-weight: 800;
    color: var(--postum-accent);
    line-height: 1;
}
.postum-card-price-wrap .price-unit {
    font-size: 11.5px;
    color: var(--postum-text-muted);
}
.postum-card-price-wrap .price-contact {
    font-size: 15px;
    font-weight: 700;
    color: var(--postum-primary);
}

.postum-card-cta-btn {
    background-color: var(--postum-bg-alt);
    color: var(--postum-primary);
    border: 1px solid var(--postum-border);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.postum-card-cta-btn:hover {
    background-color: var(--postum-primary);
    color: #ffffff;
    border-color: var(--postum-primary);
}

/* ==========================================================================
   05 — TOUR DETAIL PAGE (05_TOUR_DETAIL.md)
   ========================================================================== */
.postum-tour-detail-page {
    background-color: #f8fafc;
    padding-bottom: 60px;
}

.postum-breadcrumbs-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--postum-border);
    padding: 10px 0;
    font-size: 13.5px;
}

.postum-tour-header {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--postum-radius-card);
    border: 1px solid var(--postum-border);
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--postum-shadow-sm);
}

.postum-meta-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.postum-badge-code {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.postum-badge-duration {
    background: #f1f5f9;
    color: var(--postum-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.postum-tour-title {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: var(--postum-brand-navy) !important;
    line-height: 1.3 !important;
    margin-bottom: 14px !important;
}

.postum-tour-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: var(--postum-text-muted);
}
.postum-tour-meta-row .meta-item i {
    color: var(--postum-primary);
    font-size: 16px;
    margin-right: 4px;
}

.postum-header-price-card {
    background: var(--postum-bg-alt);
    border: 1px solid var(--postum-border);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: right;
    min-width: 220px;
}
.postum-header-price-card .label {
    font-size: 12px;
    color: var(--postum-text-muted);
    text-transform: uppercase;
}
.postum-header-price-card .price-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--postum-accent);
}
.postum-header-price-card .unit {
    font-size: 13px;
    font-weight: 500;
    color: var(--postum-text-muted);
}
.postum-btn-scroll-dep {
    background: var(--postum-accent);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 14px;
    margin-top: 6px;
    display: inline-block;
    border: none;
}
.postum-btn-scroll-dep:hover {
    background: var(--postum-accent-hover);
    color: #ffffff !important;
}

/* Gallery Section */
.postum-gallery-section {
    border-radius: var(--postum-radius-gallery);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--postum-shadow-md);
    background: #0f172a;
}
.postum-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    height: 440px;
}
.postum-gallery-main {
    height: 100%;
}
.postum-gallery-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.postum-gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
}
.postum-gallery-thumb-item {
    overflow: hidden;
}
.postum-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.postum-gallery-thumb-item:hover img {
    transform: scale(1.06);
}

/* Sticky Table of Contents (TOC) Bar */
.postum-tour-toc-bar {
    position: sticky;
    top: 76px;
    z-index: 30;
    background: #ffffff;
    border: 1px solid var(--postum-border);
    border-radius: 12px;
    box-shadow: var(--postum-shadow-sm);
    padding: 8px 12px;
    margin-bottom: 24px;
}
.postum-toc-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.postum-toc-scroll::-webkit-scrollbar {
    display: none;
}
.postum-toc-link {
    color: var(--postum-text-muted);
    font-weight: 600;
    font-size: 14.5px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.postum-toc-link:hover {
    color: var(--postum-primary);
    background: var(--postum-bg-alt);
}
.postum-toc-link.active {
    background: var(--postum-primary);
    color: #ffffff !important;
}

/* Detail Section Boxes */
.postum-section-box {
    background: #ffffff;
    border: 1px solid var(--postum-border);
    border-radius: var(--postum-radius-card);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--postum-shadow-sm);
}

.postum-section-title {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: var(--postum-brand-navy) !important;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.postum-section-title .icon {
    color: var(--postum-accent);
    font-size: 22px;
}

/* Highlights List */
.postum-highlights-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .postum-highlights-list {
        grid-template-columns: 1fr 1fr;
    }
}
.postum-highlight-item {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #14532d;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.postum-highlight-item i {
    color: #16a34a;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Departure & Price Table */
.postum-departure-table {
    margin-bottom: 0;
}
.postum-departure-table th {
    background-color: var(--postum-bg-alt);
    color: var(--postum-brand-navy);
    font-weight: 700;
    font-size: 13.5px;
    border-bottom: 2px solid var(--postum-border);
}
.postum-departure-table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--postum-border-light);
}
.postum-departure-row.selected {
    background-color: #fef3c7 !important;
}
.postum-departure-row .row-price {
    font-weight: 700;
    color: var(--postum-accent);
    font-size: 15px;
}
.postum-badge-available {
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}
.postum-btn-select-dep {
    background-color: var(--postum-primary);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border: none;
    transition: all 0.2s ease;
}
.postum-btn-select-dep:hover {
    background-color: var(--postum-primary-dark);
    color: #ffffff;
}

/* Included / Excluded Cards */
.postum-service-card {
    border: 1px solid var(--postum-border);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}
.postum-service-include {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.postum-service-exclude {
    background: #fef2f2;
    border-color: #fecaca;
}
.service-card-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sticky Booking Widget */
@media (min-width: 992px) {
    .postum-sticky-sidebar-wrapper {
        position: sticky;
        top: 95px;
        z-index: 25;
    }
}
.postum-booking-box {
    background: #ffffff;
    border: 1px solid var(--postum-border);
    border-radius: var(--postum-radius-card);
    box-shadow: var(--postum-shadow-md);
    overflow: hidden;
}
.booking-box-header {
    background: linear-gradient(135deg, var(--postum-brand-navy) 0%, #11589B 100%);
    padding: 20px;
    color: #ffffff;
}
.booking-box-header .tag-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #93c5fd;
    letter-spacing: 0.5px;
}
.booking-box-header .price-main .value {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}
.booking-box-header .price-main .unit {
    font-size: 14px;
    color: #e2e8f0;
}

.booking-box-body {
    padding: 20px;
}
.postum-btn-cta-book {
    background: var(--postum-accent) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px !important;
    border-radius: var(--postum-radius-btn) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3) !important;
    transition: all 0.2s ease !important;
}
.postum-btn-cta-book:hover {
    background: var(--postum-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(194, 65, 12, 0.4) !important;
}
.postum-btn-view-cal {
    border-radius: var(--postum-radius-btn);
    font-weight: 600;
    font-size: 14px;
    padding: 10px;
}

.postum-trust-badges .trust-item {
    font-size: 13px;
    color: var(--postum-text-muted);
    margin-bottom: 6px;
}

/* Mobile Sticky Bottom Bar */
.postum-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--postum-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 10px 16px env(safe-area-inset-bottom, 10px);
    z-index: 999;
}

/* 08 & 09 — BOOKING MODAL & RECEIPT SCREEN */
.postum-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
}
.postum-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}
.postum-modal-dialog {
    position: relative;
    max-width: 520px;
    margin: 50px auto;
    z-index: 2;
    padding: 0 16px;
}
.postum-modal-content {
    background: #ffffff;
    border-radius: var(--postum-radius-card);
    box-shadow: var(--postum-shadow-lg);
    border: 1px solid var(--postum-border);
    overflow: hidden;
}
.postum-modal-header {
    padding: 16px 20px;
    background: var(--postum-bg-alt);
    border-bottom: 1px solid var(--postum-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.postum-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--postum-text-muted);
    cursor: pointer;
    line-height: 1;
}
.postum-modal-body {
    padding: 22px;
}

/* ==========================================================================
   03 — FOOTER STYLING
   ========================================================================== */
#main-footer {
    background: #ffffff;
    border-top: 1px solid var(--postum-border);
    padding-top: 40px;
    color: var(--postum-text);
}
#main-footer h4,
#main-footer h5 {
    color: var(--postum-brand-navy) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}