/* =====================================================================
   pw-home.css - homepage (theme v3, APR rhythm). Shared tokens/components
   pw-theme.css se aate hain; yahan sirf homepage ke apne hisse (prefix pwh-).
   ===================================================================== */

/* ---------------- hero ---------------- */
.pwh-hero { overflow: hidden; }
.pwh-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pwh-hero::before { z-index: 1; }
@media (min-width: 768px) {
    .pwh-hero::before { background: linear-gradient(rgba(8, 52, 66, .66), rgba(6, 38, 50, .72)); }
    .pwh-hero .ap-hero-head { text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
    /* 10-Oct load: photo (230 KB) aane tak pehle hi frame me usi photo ka 1 KB dhundla roop (w=40, head me preload) +
       photo ka ausat rang - teal -> photo wala jhatka nahi, sirf dhundla -> saaf. -24px/inset(24px): blur ke kinare
       hero se bahar na niklen (hero overflow visible hai, owner rule #1). */
    .pwh-hero { background: #6f746d; }
    .pwh-hero::after {
        content: ""; position: absolute; inset: -24px; z-index: -1; pointer-events: none;
        background: url("https://images.pexels.com/photos/4196105/pexels-photo-4196105.jpeg?auto=compress&cs=tinysrgb&w=40") center 40% / cover no-repeat;
        filter: blur(14px); clip-path: inset(24px);
    }
}
.pwh-hero > .ap-wrap { z-index: 2; }
.pwh-hero h1 { margin: 0; }
.pwh-hero h1 span { display: block; }
.pwh-hero .ap-hero-title { margin-top: 2px; }
.pwh-hero .ap-hero-lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
@media (max-width: 767.98px) {
    .pwh-hero .ap-hero-lead { font-size: .95rem; }
}

/* search card: single "Airport Parking" pill (APR ka tab row, ek hi product) */
.pwh-mode { grid-column: 1 / -1; display: flex; }
.pwh-mode span {
    display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px;
    border-radius: var(--r); background: var(--teal); color: var(--off);
    font: 700 1rem/1 var(--font);
}
.pwh-mode i { font-size: 1rem; }
@media (max-width: 767.98px) {
    .pwh-mode span { width: 100%; justify-content: center; height: 44px; }
}
.pwh-hero .ap-search .pwf-label { font-size: .875rem; }
/* calendar popup ke andar time selects dikhen (theme ka ".ap-search .pwf-time{display:none}" unhe bhi chhupa deta tha).
   Theme me fix aa jaye to ye line hata sakte hain. */
.ap-search .apb-rcal .pwf-time { display: block; width: 100%; }
/* "No airport matches" wali line clickable na lage (legacy site.css ka rule ab load nahi hota) */
.ap-search .pwf-menu li.pwf-empty { color: var(--muted); cursor: default; font-size: .88rem; }
.ap-search .pwf-menu li.pwf-empty:hover { background: transparent; }
/* tablet par 4 trust items 3+1 me toot-te the -> 2x2 */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .pwh-hero .ap-trust { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; }
}
/* calendar modal (<=560px): calendar .pwf-row ke andar hai, yani hero ke stacking context me (pw-theme: hero z-index 5,
   owner rule #1 - wo z-index rehta hai). Phone par wo fixed full-screen modal (z 10090) banta hai, magar hero ka z 5 use
   sticky header (1000) aur body-level overlay (10085) ke neeche daba deta tha: calendar dhundla, X header ke peeche,
   din par tap overlay ko lagta aur calendar bina date liye band. Sirf jab modal khula ho, hero sab se upar.
   Do alag rules: :has() na samajhne wala browser (iOS < 15.4) poora rule phenk deta - wahan pw-home.js .pwh-cal-open lagata hai. */
.pwh-hero:has(.apb-rcal-modal:not([hidden])) { z-index: 10100; }
.pwh-hero.pwh-cal-open { z-index: 10100; }

/* ---------------- section heads ---------------- */
.pwh-head { margin-bottom: 24px; }
.pwh-head .ap-sub { margin-bottom: 0; }
@media (min-width: 1024px) { .pwh-head { margin-bottom: 32px; } }

/* ---------------- carousel (deals) ---------------- */
.pwh-car { position: relative; }
.pwh-car-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding: 2px 0 4px;
}
.pwh-car-track::-webkit-scrollbar { display: none; }
.pwh-car-track > * { scroll-snap-align: start; min-width: 0; }
.pwh-car-btn {
    position: absolute; z-index: 5; top: 100px; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff;
    color: var(--teal); font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-card);
    display: none; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s;
}
.pwh-car-btn:hover { background: var(--lime); border-color: var(--lime); }
.pwh-car-btn[hidden] { display: none !important; }
.pwh-car-prev { left: -22px; }
.pwh-car-next { right: -22px; }
@media (min-width: 1024px) { .pwh-car-btn { display: inline-flex; } }
/* dots: 8px ka nishan, magar tap ka hissa poora 44x44 (QA2 tap targets) */
.pwh-dots { display: flex; justify-content: center; gap: 0; margin-top: 4px; min-height: 44px; }
.pwh-dots[hidden] { display: none; }
.pwh-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.pwh-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--line-2); transition: background-color .15s, transform .15s; }
.pwh-dots button[aria-current="true"]::before { background: var(--teal); transform: scale(1.25); }

/* ---------------- deals ---------------- */
.pwh-deals .pwh-car-track { grid-auto-columns: 100%; gap: 16px; }
@media (min-width: 768px) { .pwh-deals .pwh-car-track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; } }
@media (min-width: 1024px) { .pwh-deals .pwh-car-track { grid-auto-columns: calc((100% - 48px) / 3); } }
.pwh-deal { height: 100%; }
.pwh-deal .ap-card-img { display: block; }
.pwh-deal .ap-card-overlay { flex-direction: column; gap: 10px; }
.pwh-deal-code { font: 700 2.5rem/1 var(--font); letter-spacing: .02em; }
/* 10-Oct load: chip /api/home ke baad bharta hai - jagah pehle frame se (38px = bhara hua chip), warna "JFK" 13px upar
   uchhalta tha; khali chip chhupa (visibility), fade nahi */
.pwh-deal-from {
    display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: var(--r);
    background: var(--lime); color: var(--teal); text-shadow: none;
    font: 700 1rem/1.2 var(--font-ui); letter-spacing: .02em; min-height: 38px; visibility: hidden;
}
.pwh-deal-from.is-on { visibility: visible; }
.pwh-deal-from b { font-size: 1.35rem; }
.pwh-deal .ap-card-body h3 { font-weight: 900; }
@media (min-width: 1024px) { .pwh-deal-code { font-size: 3rem; } }

/* (7-Oct: "Our parking partners" strip + "Rated by drivers on Google" owner ne hatwaye - un ki CSS bhi hata di) */

/* ---------------- rates table (QA2: "how much is airport parking") ---------------- */
.pwh-rates { padding-top: 8px; }
.pwh-rates-lead { max-width: 80ch; margin-bottom: 20px; text-wrap: pretty; }
.pwh-rates-lead b { color: var(--ink); }
.pwh-rates .ap-table { min-width: 0; }
.pwh-rates .ap-table th, .pwh-rates .ap-table td { vertical-align: middle; }
.pwh-rates .ap-table td:last-child { white-space: nowrap; }
.pwh-rates .ap-table td:last-child b { font-weight: 700; color: var(--ink); }
.pwh-mi { white-space: nowrap; color: var(--muted); font-size: .875em; }
.pwh-rates-note { max-width: 80ch; margin-top: 10px; font-size: .8rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 1023.98px) {
    /* touch: table links ka tap hissa 44px */
    .pwh-rates .ap-table td a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 767.98px) {
    .pwh-rates .ap-table { font-size: .875rem; }
    .pwh-rates .ap-table th, .pwh-rates .ap-table td { padding: 4px 6px; }
    .pwh-rates .ap-table th:last-child { white-space: nowrap; }
    /* lot ke naam ke theek neeche faasla (44px link ke andar text beech me hota hai) */
    .pwh-rates .pwh-mi { display: block; margin-top: -4px; padding-bottom: 6px; }
}

/* ---------------- teal panels ---------------- */
@media (max-width: 767.98px) {
    .pwh-bleed { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); border-radius: 0; }
}
.pwh-why .ap-title { margin-bottom: 0; }
.pwh-why .ap-feature { align-content: start; }
.pwh-why .ap-feature p, .pwh-trip p, .pwh-how .ap-step p { text-wrap: pretty; }
.pwh-why .ap-features { margin-top: 24px; }
@media (min-width: 768px) { .pwh-why .ap-features { margin-top: 40px; } }
@media (max-width: 767.98px) {
    .pwh-why .ap-feature-ico { font-size: 2.75rem; }
}

/* ---------------- trip cards (APR "explore our products") ---------------- */
.pwh-trips { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .pwh-trips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.pwh-trip .ap-btn { max-width: 100%; }
@media (max-width: 1199.98px) { .pwh-trip .ap-btn { white-space: normal; height: auto; min-height: 48px; text-align: left; } }
.pwh-trip { display: flex; flex-direction: column; align-items: flex-start; }
.pwh-trip-img { width: 100%; aspect-ratio: 392 / 200; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); }
.pwh-trip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.pwh-trip:hover .pwh-trip-img img { transform: scale(1.03); }
/* 15876903 portrait hai: center crop me sirf canopy + tower aata tha, gaariyan neeche kat jati thin */
.pwh-trip-img--covered img { object-position: center 85%; }
.pwh-trip h3 { font: 700 1.25rem/1.75rem var(--font); color: var(--ink); margin: 16px 0 4px; }
.pwh-trip p { font-size: 1rem; line-height: 1.5rem; color: var(--ink); margin-bottom: 20px; flex: 1; }

/* ---------------- how it works (panel + side photo) ---------------- */
.pwh-how { display: grid; grid-template-columns: 1fr; }
.pwh-how-body { position: relative; z-index: 1; }
.pwh-how .ap-steps { margin-bottom: 32px; }
.pwh-how-media { display: none; }
@media (max-width: 767.98px) {
    .pwh-how .ap-btn { width: 100%; }
    .pwh-how .ap-step-num { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
    .pwh-how { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-right: 0; padding-top: 64px; padding-bottom: 64px; }
    .pwh-how-media { display: block; position: relative; margin: -64px 0 -64px 0; }
    .pwh-how-media img {
        position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
        clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
        border-radius: 0 var(--r) var(--r) 0;
    }
    .pwh-how-media::after {
        content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 34%;
        background: linear-gradient(to right bottom, transparent 49.6%, var(--lime) 50%, var(--lime) 51.4%, transparent 51.8%);
        opacity: .9;
    }
}

/* ---------------- top airports v2 (7-Oct, owner request): bento cards ----------------
   desktop: JFK lamba (2 rows), EWR chaura (2 cols), neeche LGA + PHL. Text hamesha neeche
   gradient par (photo kitni bhi busy ho, parhne me saaf), hover par photo zoom + card upar. */
.pwh-air { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pwh-air-card {
    position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: var(--r);
    overflow: hidden; background: var(--teal); color: #fff; text-decoration: none !important; isolation: isolate;
    box-shadow: 0 1px 2px rgba(14, 36, 43, .08); transition: transform .25s ease, box-shadow .25s ease;
}
.pwh-air-card img {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pwh-air-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(14, 36, 43, .94) 0%, rgba(14, 36, 43, .72) 34%, rgba(14, 36, 43, .18) 64%, rgba(14, 36, 43, 0) 82%);
}
.pwh-air-card:hover, .pwh-air-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 36, 43, .22); }
.pwh-air-card:hover img, .pwh-air-card:focus-visible img { transform: scale(1.06); }
.pwh-air-card--jfk img { object-position: center 30%; }
.pwh-air-card--ewr img { object-position: center 55%; }
.pwh-air-card--lga img { object-position: center 40%; }
.pwh-air-card--phl img { object-position: center 70%; }

.pwh-air-body { width: 100%; padding: 22px 22px 20px; }
.pwh-air-code {
    display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding: 4px 10px; border-radius: 6px;
    background: var(--lime); color: var(--teal); font: 700 .95rem/1.2 var(--font-ui); letter-spacing: .08em;
}
.pwh-air-code small { font: 500 .78rem/1 var(--font-ui); letter-spacing: .02em; color: var(--teal); opacity: .85; }
.pwh-air-card h3 { font: 700 1.75rem/1.1 var(--font); text-transform: uppercase; color: #fff; margin: 0 0 10px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.pwh-air-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 4px; padding: 0; list-style: none; font: 600 .95rem/1.4 var(--font-ui); color: var(--off); }
.pwh-air-facts li { display: inline-flex; align-items: center; gap: 7px; }
.pwh-air-facts i { color: var(--lime); font-size: .85rem; }
.pwh-air-type { margin: 0 0 14px; font: 500 .9rem/1.4 var(--font-ui); color: rgba(251, 252, 249, .78); }
.pwh-air-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 14px; border-top: 1px solid rgba(251, 252, 249, .22);
}
/* rate sirf /api/home se aata hai (pw-home.js .is-on lagata hai); API na mile to khali + chhupa, purana rate kabhi nahi */
/* 10-Oct load: bhare hue rate ki unchai (26px) + chaurai ("from $14.50/day" = 143px) pehle se - phone par button
   neeche na khiske, aur 1024-1200 ke tang cards me khali rate ek line / bhara rate do line wala farq (card 39px uchhalta
   tha) na ho; fade nahi */
.pwh-air-price { font: 500 1rem/1.2 var(--font-ui); color: var(--off); min-height: 27px; min-width: 152px; visibility: hidden; }
.pwh-air-price.is-on { visibility: visible; }
.pwh-air-price b { font: 700 1.6rem/1 var(--font-ui); color: var(--lime); letter-spacing: .01em; }
.pwh-air-cta {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r);
    border: 2px solid rgba(251, 252, 249, .85); color: var(--off);
    font: 600 .95rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: .03em;
    transition: background-color .2s, color .2s, border-color .2s;
}
.pwh-air-cta i { font-size: .8em; transition: transform .2s; }
.pwh-air-card:hover .pwh-air-cta, .pwh-air-card:focus-visible .pwh-air-cta { background: var(--lime); border-color: var(--lime); color: var(--teal); }
.pwh-air-card:hover .pwh-air-cta i { transform: translateX(3px); }
/* phone: har card me pehle rate, phir button (pehle sirf PHL ka chhota rate button ke sath ek line me aata tha) */
@media (max-width: 767.98px) { .pwh-air-price { flex-basis: 100%; } }

@media (min-width: 768px) {
    .pwh-air { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .pwh-air-card { min-height: 340px; }
}
@media (min-width: 1024px) {
    .pwh-air { grid-template-columns: repeat(3, 1fr); grid-template-rows: 300px 300px; }
    .pwh-air-card { min-height: 0; }
    .pwh-air-card--jfk { grid-column: 1; grid-row: 1 / span 2; }
    .pwh-air-card--ewr { grid-column: 2 / span 2; grid-row: 1; }
    .pwh-air-card--lga { grid-column: 2; grid-row: 2; }
    .pwh-air-card--phl { grid-column: 3; grid-row: 2; }
    .pwh-air-card--jfk h3 { font-size: 2.5rem; }
    .pwh-air-card--jfk .pwh-air-body, .pwh-air-card--ewr .pwh-air-body { padding: 28px; }
    .pwh-air-card--ewr .pwh-air-body { max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
    .pwh-air-card, .pwh-air-card img, .pwh-air-cta i { transition: none; }
    .pwh-air-card:hover { transform: none; }
    .pwh-air-card:hover img { transform: none; }
}

/* ---------------- link grid ---------------- */
.pwh-links { padding-top: 16px; }
.pwh-links .ap-linkgrid + .ap-linkgrid { margin-top: 40px; }
.pwh-lotgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
@media (min-width: 768px) { .pwh-lotgrid { grid-template-columns: repeat(4, 1fr); } }
.pwh-lotgrid h3 { font: 700 .8rem/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ap-linkgrid .pwh-lotgrid ul { display: grid; grid-template-columns: 1fr; gap: 0; }
/* tap targets: har link 44px uncha (pehle 26px, rows me 4px faasla) */
.pwh-links .ap-linkgrid a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.pwh-links .ap-linkgrid > ul { row-gap: 0; }
@media (min-width: 1024px) { .pwh-links .ap-wrap { padding-left: calc(var(--gut) + 74px); } }

/* ---------------- CTA band ---------------- */
.pwh-cta .ap-btn { min-width: 240px; }
.pwh-cta .ap-title { margin-bottom: 12px; }
.pwh-cta p { text-wrap: balance; }
.pwh-nw { white-space: nowrap; }

/* ---------------- FAQ ---------------- */
.pwh-faq-side .ap-sub { margin-bottom: 16px; }
.pwh-faq .ap-faq-a a { text-decoration: underline; }
@media (max-width: 1023.98px) { .pwh-faq-side .ap-link-cta { margin-bottom: 8px; } }
/* 360px column me 48px par "AIRPORT / PARKING / FAQS" teen lines banti thin -> do lines (APR jaisa) */
@media (min-width: 1024px) { .pwh-faq-side .ap-title { font-size: 2.5rem; line-height: 2.75rem; } }

/* "Which airport?" picker: trip cards ke liye airports chhupane ki gunjaish */
.pw-pick-opt[hidden] { display: none; }

/* ---------------- load: photo placeholders (10-Oct) ----------------
   Deals + Top airports = photo par safed text wale dark cards (hero jaise): in par shared skeleton ki halki shimmer nahi
   (img[data-no-sk]) - photo aane tak usi photo ke dikhne wale hisse ka upar/neeche ausat rang (photo se naapa), taake
   grey -> neeli/sunehri photo wala jhatka na ho aur safed "JFK" pehle frame se parha jaye. Baqi photos (trip cards,
   how-it-works) par shared pw-skeleton.css hi chalta hai. Photo badlo to yahan rang bhi badlo (warna generic rang). */
.pwh-deal .ap-card-img { background: #66706f; }
.pwh-deal img, .pwh-air-card img { background: #66706f; }
.pwh-deal img[src*="/16734639/"] { background: linear-gradient(#8a8fa6, #8a8683); }
.pwh-deal img[src*="/175656/"] { background: linear-gradient(#accad3, #8c7f6f); }
.pwh-deal img[src*="/32182595/"] { background: linear-gradient(#727dc2, #524a57); }
.pwh-deal img[src*="/36244042/"] { background: linear-gradient(#69777c, #59656d); }
.pwh-air-card--jfk img { background: linear-gradient(#403f3b, #2c2b27); }
.pwh-air-card--ewr img { background: linear-gradient(#c3c3c5, #959285); }
.pwh-air-card--lga img { background: linear-gradient(#608ec3, #26303e); }
.pwh-air-card--phl img { background: linear-gradient(#7c5636, #3c2718); }
