/* ===================================================
   MAYA — Upcoming Tours  (tours.css)
   Inherits brand palette from root variables.
   =================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ivory:      #FAF8F5;
    --champagne:  #F3EDE5;
    --sand:       #E8DDD1;
    --sand-dark:  #D4C8B8;
    --warm-white: #FDFCFA;
    --charcoal:   #171717;
    --text:       #2A2A2A;
    --text-mid:   #5C5C5C;
    --text-light: #8A8A8A;
    --gold:       #C2A46B;
    --gold-muted: rgba(194,164,107,0.20);
    --white:      #FFFFFF;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans:  'Montserrat', 'Helvetica Neue', sans-serif;

    --nav-h:     88px;
    --container: 1320px;
    --gutter:    72px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--text);
    background: var(--champagne);
    line-height: 1.7;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ===== SHARED TYPOGRAPHY ===== */
.overline {
    display: block;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.heading-lg {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 32px;
}

.accent-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 24px 0;
}
.accent-line.center { margin: 24px auto; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(243,237,229,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--sand-dark);
}

.nav-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 96px;
    width: auto;
    filter: brightness(0) invert(50%) sepia(100%) saturate(150%) brightness(107%);
}

@media (max-width: 900px) {
    .nav-logo-img { height: 76px; }
}

@media (max-width: 540px) {
    .nav-logo-img { height: 62px; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}

.nav-links a {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a.active { color: var(--gold); }

.nav-cta {
    padding: 12px 28px;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    letter-spacing: 2.5px !important;
    transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }

/* ===== PAGE HERO (tours header) ===== */
.tours-hero {
    padding: calc(var(--nav-h) + 80px) 0 72px;
    background: var(--champagne);
    text-align: center;
}

.tours-hero .overline { text-align: center; }
.tours-hero .heading-lg { color: var(--text); }
.tours-hero .accent-line { margin: 24px auto; }

.tours-hero-desc {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-mid);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ===== TOURS GRID ===== */
.tours-grid-section {
    background: var(--champagne);
    padding: 0 0 96px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Tour Card */
.tour-card {
    background: var(--white);
    border: 1px solid var(--sand);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.35s ease;
}

.tour-card:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}

.tour-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.tour-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

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

.tour-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--white);
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 14px;
}

.tour-card-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-card-dest {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.tour-card-name {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 12px;
}

.tour-card-desc {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.tour-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sand);
}

.tour-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tour-meta-item i {
    color: var(--gold);
    font-size: 11px;
}

.tour-meta-item span {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 300;
    color: var(--text-mid);
    letter-spacing: 0.5px;
}

.tour-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-tour-details {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-mid);
    border: 1px solid var(--sand-dark);
    padding: 12px 20px;
    transition: color 0.3s, border-color 0.3s;
}

.btn-tour-details:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.btn-tour-book {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 20px;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-tour-book:hover {
    background: transparent;
    color: var(--gold);
}

/* ===== TOUR INQUIRY FORM ===== */
.tour-inquiry {
    background: var(--champagne);
    padding: 96px 0;
    border-top: 1px solid var(--sand-dark);
}

.inquiry-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.inquiry-left {}

.inquiry-left .heading-lg { margin-bottom: 24px; }

.inquiry-desc {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.9;
    margin-top: 4px;
}

.inquiry-right {}

.inquiry-card {
    background: var(--white);
    border: 1px solid var(--sand);
    padding: 44px 40px;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.fg {
    position: relative;
    margin-bottom: 28px;
}

.fg.full { grid-column: 1 / -1; }

.fg input,
.fg select,
.fg textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(42,42,42,0.18);
    padding: 14px 0 10px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.fg select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8A8A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
    cursor: pointer;
}

.fg select option { background: var(--white); color: var(--text); }

.fg textarea { resize: vertical; min-height: 100px; }

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
    border-bottom-color: var(--gold);
}

.fg label {
    position: absolute;
    top: 14px;
    left: 0;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    pointer-events: none;
    transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease;
}

.fg input:focus + label,
.fg input:not(:placeholder-shown) + label,
.fg select:focus + label,
.fg select:not([value=""]) + label,
.fg textarea:focus + label,
.fg textarea:not(:placeholder-shown) + label {
    top: -4px;
    font-size: 8px;
    letter-spacing: 2.5px;
    color: var(--gold);
}

/* Handle select placeholder label */
.fg select.has-value + label {
    top: -4px;
    font-size: 8px;
    letter-spacing: 2.5px;
    color: var(--gold);
}

.fg-hint {
    grid-column: 1 / -1;
    font-family: var(--sans);
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-top: -16px;
    margin-bottom: 12px;
}

.btn-submit-tour {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--charcoal);
    border: 1px solid var(--charcoal);
    padding: 18px 40px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    margin-top: 8px;
}
.btn-submit-tour:hover {
    background: transparent;
    color: var(--charcoal);
}

/* Form success state */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}
.form-success.active { display: block; }

.form-success-icon {
    width: 56px;
    height: 56px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--gold);
    font-size: 22px;
}

.form-success-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 10px;
}

.form-success-msg {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.9;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--champagne);
    padding: 48px 0;
    border-top: 1px solid var(--sand-dark);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--sand-dark);
    width: 100%;
    justify-content: center;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-mid);
    transition: color 0.3s;
}
.footer-contact-link:hover { color: var(--gold); }
.footer-contact-link i { color: var(--gold); font-size: 12px; }

.footer-contact-divider {
    width: 1px;
    height: 20px;
    background: var(--sand-dark);
}

.footer-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--sand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.3s, border-color 0.3s;
}
.footer-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.footer-copy {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-light);
    text-align: center;
}

/* ===== TOUR DETAIL — HERO ===== */
.detail-hero {
    position: relative;
    height: 72vh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.detail-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23,23,23,0.72) 0%, rgba(23,23,23,0.18) 50%, transparent 100%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--gutter) 64px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

.detail-hero-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(194,164,107,0.5);
    padding: 7px 16px;
    margin-bottom: 20px;
}

.detail-hero-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 300;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 14px;
}

.detail-hero-sub {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.75);
}

/* ===== TOUR DETAIL — OVERVIEW ===== */
.detail-overview {
    background: var(--champagne);
    padding: 80px 0;
}

.detail-overview-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: start;
}

.detail-overview-text .heading-lg { margin-bottom: 44px; }

.detail-overview-text p {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 16px;
}

.detail-sidebar {
    background: var(--white);
    border: 1px solid var(--sand);
    padding: 32px 28px;
}

.detail-sidebar-title {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.detail-stat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sand);
}
.detail-stat:last-of-type { border-bottom: none; }

.detail-stat i {
    color: var(--gold);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-stat-info {}

.detail-stat-label {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}

.detail-stat-value {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text);
}

.btn-book-tour {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 16px 32px;
    transition: background 0.3s, color 0.3s;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
}
.btn-book-tour:hover {
    background: transparent;
    color: var(--gold);
}

/* ===== TOUR DETAIL — ITINERARY ===== */
.detail-itinerary {
    background: var(--white);
    padding: 80px 0;
}

.detail-itinerary .heading-lg { margin-bottom: 52px; }
.detail-inclusions .heading-lg { margin-bottom: 44px; }

.itinerary-list { display: flex; flex-direction: column; gap: 0; }

.itinerary-day {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--sand);
}
.itinerary-day:last-child { border-bottom: none; }

.itin-day-num {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--sand-dark);
    line-height: 1;
}

.itin-day-body {}

.itin-day-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 8px;
}

.itin-day-desc {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.9;
}

/* ===== TOUR DETAIL — INCLUSIONS ===== */
.detail-inclusions {
    background: var(--champagne);
    padding: 80px 0;
}

.inclusions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 64px;
    margin-top: 48px;
}

.inclusion-group-title {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.inclusion-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.inclusion-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.6;
}

.inclusion-list li i {
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

.inclusion-list.included li i { color: #7A9E7E; }
.inclusion-list.excluded li i { color: var(--text-light); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.revealed {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    :root { --gutter: 48px; }
    .tours-grid { gap: 24px; }
    .inquiry-inner { gap: 48px; }
}

@media (max-width: 1024px) {
    :root { --gutter: 36px; }
    .tours-grid { grid-template-columns: 1fr 1fr; }
    .detail-overview-inner { grid-template-columns: 1fr; gap: 40px; }
    .detail-sidebar { max-width: 480px; }
    .inclusions-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --gutter: 24px; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(243,237,229,0.97);
        flex-direction: column;
        gap: 0;
        padding: 24px 0;
        border-bottom: 1px solid var(--sand-dark);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 16px 24px; font-size: 11px; }
    .nav-cta { border: none !important; }
    .nav-toggle { display: flex; }

    .tours-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .inquiry-inner { grid-template-columns: 1fr; gap: 40px; }
    .inquiry-grid { grid-template-columns: 1fr; }
    .fg.full { grid-column: 1; }

    .itinerary-day { grid-template-columns: 60px 1fr; gap: 0 20px; }
    .itin-day-num { font-size: 36px; }

    .detail-hero { height: 60vh; }
    .detail-hero-content { padding-bottom: 40px; }

    .footer-contact-row { flex-direction: column; gap: 16px; text-align: center; }
    .footer-contact-divider { display: none; }
}

@media (max-width: 540px) {
    :root { --gutter: 20px; }
    .tour-card-actions { flex-direction: column; }
    .btn-tour-details,
    .btn-tour-book { width: 100%; justify-content: center; text-align: center; }
    .inquiry-card { padding: 28px 20px; }
}
