/* =========================================================
   Srilingam Tours and Travels — Public Site Stylesheet
   Theme: maroon + gold (pilgrimage/temple tourism brand)
   ========================================================= */
:root {
    --maroon: #6b1f2a;
    --maroon-dark: #451119;
    --gold: #c9a227;
    --gold-light: #f0e2b6;
    --bg: #f6f3ee;
    --card: #ffffff;
    --text: #2b2320;
    --muted: #8a7f76;
    --border: #e6ddd0;
    --green: #1e7e46;
    --amber: #a1660b;
    --blue: #2b6cb0;
    --red: #c53030;
    --radius: 12px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font: 15.5px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 18px;
    padding: 10px 22px; flex-wrap: wrap;
    box-shadow: 0 1px 10px rgba(69,17,25,.06);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { font-size: 28px; }
.brand-text strong { display: block; color: var(--maroon-dark); font-size: 16.5px; line-height: 1.2; }
.brand-text small { display: block; color: var(--gold); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.nav a {
    padding: 8px 11px; border-radius: 8px;
    color: #58493f; font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--maroon); }
.nav a.active { background: var(--maroon); color: #fff; }
/* Mobile hamburger — hidden on desktop, shown in the ≤767px media query below */
.nav-burger {
    display: none;
    position: relative;
    margin-left: auto;
    width: 42px; height: 38px;
    padding: 0;
    border: 1px solid var(--border); border-radius: 9px;
    background: var(--bg);
    cursor: pointer;
}
.nav-burger span {
    position: absolute; left: 10px; right: 10px; height: 2.5px;
    border-radius: 2px; background: var(--maroon);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-burger span:nth-child(1) { top: 11px; }
.nav-burger span:nth-child(2) { top: 17.75px; }
.nav-burger span:nth-child(3) { top: 24.5px; }
.btn {
    display: inline-block; padding: 9px 18px; border: 0; border-radius: 9px;
    background: var(--maroon); color: #fff; font-weight: 600; font-size: 14px;
    cursor: pointer; text-align: center;
}
.btn:hover { background: var(--maroon-dark); text-decoration: none; color: #fff; }
.btn-gold { background: var(--gold); color: #3d2e00; }
.btn-gold:hover { background: #b3901f; color: #3d2e00; }
.btn-outline { background: transparent; color: var(--maroon); border: 1.5px solid var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-wa { background: #1fa855; }
.btn-wa:hover { background: #178a45; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-block { display: block; width: 100%; }

/* ---------- Flash ---------- */
.flash {
    margin: 14px 0; padding: 12px 16px; border-radius: 10px;
    font-size: 14.5px; border: 1px solid transparent;
}
.flash-success { background: #e8f6ee; color: #14663a; border-color: #bfe5cd; }
.flash-error   { background: #fdecec; color: #8f1f1f; border-color: #f3c4c4; }
.flash-info    { background: #e9f2fb; color: #1d4f86; border-color: #c3ddf5; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 340px at 85% -60px, rgba(201,162,39,.28), transparent 60%),
        linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, #8d2f3c 100%);
    color: #f7ecd7; padding: 66px 0 58px;
}
.hero .kicker {
    color: var(--gold-light); letter-spacing: 2.5px; text-transform: uppercase;
    font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.hero h1 { color: #fff; font-size: 40px; max-width: 720px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { max-width: 640px; font-size: 17px; color: #f2e3d5; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chips { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    background: rgba(255,255,255,.1); border: 1px solid rgba(240,226,182,.35);
    color: var(--gold-light); border-radius: 999px; padding: 6px 14px; font-size: 13px;
}
.chip:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* ---------- Sections ---------- */
section.band { padding: 52px 0; }
section.band.alt { background: #fbf8f2; }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.band-head h2 { font-size: 27px; color: var(--maroon-dark); margin: 0; }
.band-head .kicker { color: var(--gold); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.band-head .more { font-weight: 600; font-size: 14px; white-space: nowrap; }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; text-align: center;
}
.trust-item .ico { font-size: 26px; margin-bottom: 6px; }
.trust-item strong { display: block; color: var(--maroon-dark); }
.trust-item small { color: var(--muted); }

/* ---------- Cards grid + package card ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.pkg-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; height: 100%; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(69,17,25,.12); text-decoration: none; }
.pkg-media { position: relative; height: 168px; background: linear-gradient(135deg, var(--maroon), #8d2f3c); }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-ph {
    height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--gold-light); font-size: 54px; font-weight: 800; opacity: .9;
}
.pkg-type { position: absolute; top: 10px; left: 10px; }
.pkg-fest { position: absolute; top: 10px; right: 10px; }
.badge {
    display: inline-block; padding: 3.5px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; line-height: 1.5; color: #fff;
}
.badge-green { background: var(--green); }
.badge-amber { background: var(--amber); }
.badge-blue  { background: var(--blue); }
.badge-red   { background: var(--red); }
.badge-gold  { background: var(--gold); color: #3d2e00; }
.badge-gray  { background: var(--muted); }
.pkg-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pkg-dest { color: var(--gold); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
.pkg-body h3 { font-size: 17.5px; color: var(--maroon-dark); margin: 0; }
.pkg-sum {
    color: var(--muted); font-size: 13.5px; margin: 0;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.pkg-meta { display: flex; gap: 14px; font-size: 13px; color: #58493f; }
.pkg-price {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px dashed var(--border); padding-top: 10px; margin-top: auto;
}
/* Reserve the natural 2-line height of the price block so cards with a
   single-line price (no early-bird) align exactly with 2-line early-bird
   cards in the same row — otherwise the footer height (and the CTA
   centered inside it) shifts by ~12-25px between cards. */
.pkg-price > div { min-height: 55px; }
.pkg-was { color: var(--muted); text-decoration: line-through; font-size: 12.5px; margin-right: 7px; }
.pkg-price strong { color: var(--maroon); font-size: 19px; }
.pkg-price em { color: var(--muted); font-size: 11.5px; font-style: normal; }
.pkg-view { color: var(--gold); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* ---------- Filters / forms ---------- */
.filters {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: end;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 24px;
}
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.fld label { font-size: 11.5px; font-weight: 700; color: #58493f; letter-spacing: .5px; text-transform: uppercase; }
.fld input, .fld select, .fld textarea {
    font: inherit; padding: 9px 11px; border: 1.5px solid var(--border);
    border-radius: 9px; background: #fff; color: var(--text); width: 100%;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--gold); }
.fld textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }
.err { color: var(--red); font-size: 13px; }
/* Spam honeypot (config/security.php "Leave empty" trap) — must never be
   visible to users; aria-hidden alone doesn't hide it visually. */
.form-trap { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Page head / breadcrumbs ---------- */
.page-head { padding: 34px 0 8px; }
.page-head h1 { font-size: 30px; color: var(--maroon-dark); margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; max-width: 780px; }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--maroon); }

/* ---------- Detail layout ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; padding-bottom: 40px; }
/* Narrower sidebar variants (were inline styles that broke the ≤960px
   stacking media query — inline wins over @media, so the sidebar stayed
   fixed-width and the form got squeezed/cut on phones). */
@media (min-width: 961px) {
    .detail-grid.side-300 { grid-template-columns: 1fr 300px; }
    .detail-grid.side-340 { grid-template-columns: 1fr 340px; }
}
.detail-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 20px; color: var(--maroon-dark); margin-bottom: 12px; }
.itin-day { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.itin-day:last-child { border-bottom: 0; }
.itin-no {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon), #8d2f3c); color: var(--gold-light);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.itin-body strong { color: var(--maroon-dark); }
.itin-body p { margin: 3px 0 0; color: #58493f; font-size: 14px; }
.inc-list, .exc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inc-list li::before { content: "✅ "; }
.exc-list li::before { content: "⛔ "; }
.inc-list li, .exc-list li { font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Booking sidebar ---------- */
.side-panel { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.price-big { font-size: 30px; color: var(--maroon); font-weight: 800; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 15px; margin-right: 8px; }
.dep-note { font-size: 12.5px; color: var(--muted); }
.seats-left { font-weight: 700; color: var(--green); }
.seats-left.low { color: var(--red); }
.dep-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dep-table th, .dep-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.divider { border: 0; border-top: 1px dashed var(--border); margin: 18px 0; }
.or-line { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Destination cards ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; align-items: stretch; }
.dest-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: inherit; display: flex; flex-direction: column; height: 100%;
}
.dest-card:hover { box-shadow: 0 8px 22px rgba(69,17,25,.1); text-decoration: none; }
.dest-thumb {
    height: 150px; background: linear-gradient(135deg, var(--maroon), #8d2f3c);
    color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 44px;
    overflow: hidden;
}
.dest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dest-card:hover .dest-thumb img { transform: scale(1.05); }
.dest-hero { border-radius: var(--radius); overflow: hidden; margin: 18px 0 6px; max-height: 320px; }
.dest-hero img { width: 100%; height: 320px; object-fit: cover; }

.dest-body { padding: 13px 15px 15px; }
.dest-body h3 { font-size: 16.5px; color: var(--maroon-dark); margin: 0; }
.dest-body small {
    color: var(--muted);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* Pin the footer block (e.g. "N packages · View circuits →") to the card bottom */
.dest-card .dest-body + .dest-body { margin-top: auto; }

/* ---------- Testimonials / banners ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tst { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.tst .stars { color: var(--gold); letter-spacing: 2px; }
.tst p { font-size: 14px; color: #58493f; }
.tst .who { font-weight: 700; color: var(--maroon-dark); font-size: 13.5px; }
.cab-banner {
    background: linear-gradient(135deg, var(--maroon), #8d2f3c); color: #f7ecd7;
    border-radius: var(--radius); padding: 26px;
    display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cab-banner h2 { color: #fff; margin: 0 0 6px; }

/* ---------- Footer + WA float ---------- */
.site-footer { background: var(--maroon-dark); color: #e9d9c8; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; padding: 40px 20px 26px; }
.foot-brand { font-size: 19px; color: #fff; margin-bottom: 8px; }
.site-footer p { font-size: 13.5px; color: #cbb4a6; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: var(--gold); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.foot-grid > div:nth-child(2) a { display: block; padding: 3px 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 20px; text-align: center; font-size: 12.5px; color: #a08d80; }
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    width: 54px; height: 54px; border-radius: 50%; background: #1fa855;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .cards-grid, .cards-grid.two, .tst-grid { grid-template-columns: repeat(2, 1fr); }
    .dest-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .side-panel { position: static; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .cards-grid, .cards-grid.two, .tst-grid, .dest-grid, .trust-grid, .foot-grid, .form-grid, .two-col { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .nav { margin-left: 0; }
    /* Comfortable mobile form controls: 16px also stops iOS Safari's
       automatic zoom-on-focus (it zooms any field under 16px). */
    .fld input, .fld select, .fld textarea { font-size: 16px; padding: 11px 12px; }
    .form-actions .btn { width: 100%; }
}

/* ---------- Mobile: hamburger menu ---------- */
@media (max-width: 767px) {
    .nav-burger { display: block; }
    /*.btn-wa stays available (the floating WhatsApp button also remains bottom-right)*/
    .nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 2px;
        margin: 0; padding: 8px 16px 14px;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 26px rgba(69,17,25,.14);
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }
    .topbar.menu-open .nav { display: flex; }
    .nav a { padding: 11px 12px; font-size: 15px; border-radius: 8px; }
    .nav a:hover { background: var(--bg); }
    /* open state → burger becomes an X */
    .topbar.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
    .topbar.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
    .topbar.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }
    /* keep topbar single-line on narrow phones: brand text can shrink away */
    @media (max-width: 420px) {
        .topbar { padding: 10px 14px; gap: 10px; }
        .brand-text small { display: none; }
        .btn-wa { padding: 9px 12px; font-size: 13px; }
    }
}

/* =========================================================
   Phase-4 premium layer — fonts, preloader, hero canvas
   ========================================================= */
body { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, h4, .band-head h2, .page-head h1, .panel h2, .hero h1 { font-family: "Playfair Display", Georgia, serif; }
.brand-text strong { font-family: "Playfair Display", Georgia, serif; font-size: 17px; }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 999;
    background: radial-gradient(700px 420px at 50% 38%, rgba(201,162,39,.16), transparent 70%), var(--maroon-dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    transition: opacity .5s ease;
}
#preloader.is-done, #preloader.done, #preloader.reduced { opacity: 0; pointer-events: none; }
#preloader-lottie { width: 120px; height: 120px; }
.pre-title {
    color: var(--gold-light); font-family: "Playfair Display", Georgia, serif;
    font-size: 20px; letter-spacing: .5px;
}

/* ---------- Topbar scroll state ---------- */
.topbar { transition: box-shadow .25s ease; }
.topbar.scrolled { box-shadow: 0 4px 18px rgba(69,17,25,.14); }

/* ---------- Hero canvas (Three.js particles) ---------- */
.hero { position: relative; overflow: hidden; }
#hero-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    #hero-canvas { display: none; }
    .pkg-card, .dest-card, .tst, .trust-item { transition: none; }
}

.route-table { overflow-x: auto; }
.route-table table { width: 100%; border-collapse: collapse; min-width: 620px; }
.route-table th, .route-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
.pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0; }

