/* Wingnut — Sydney aviation gift experiences
   One shared stylesheet. Mobile-first, no dependencies. */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-soft: #4a5568;
  --ink-faint: #59677f;
  --line: #e2e8f0;
  --brand: #1565c0;
  --brand-dark: #0d47a1;
  --brand-tint: #e8f1fb;
  --accent: #ff7a00;
  --sky-1: #1565c0;
  --sky-2: #4a90d9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
  --shadow-hover: 0 4px 10px rgba(20, 33, 61, .10), 0 16px 40px rgba(20, 33, 61, .12);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
.footer-privacy { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.privacy-settings { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; }
.analytics-consent { position: sticky; bottom: 0; z-index: 50; background: #fff; color: #14213d; border-top: 3px solid #ffb300; box-shadow: 0 -5px 25px #07101a20; padding: 20px max(20px, calc((100vw - 1140px) / 2)); display: flex; align-items: center; gap: 28px; }
.analytics-consent p { margin: 5px 0; font-size: 14px; max-width: 720px; }
.analytics-consent strong { font-size: 18px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.analytics-consent .btn { background: #fff; color: #14213d; border: 1px solid #14213d; min-height: 44px; }
.analytics-consent .btn:hover { background: #eef3f8; }
.consent-preview { color: #59677f; font-size: 12px !important; }
.privacy-page { max-width: 850px; padding-top: 48px; padding-bottom: 64px; }
.privacy-page h2 { margin-top: 32px; }
@media (max-width: 879px) {
  .analytics-consent { display: block; padding: 16px 20px; }
  .consent-actions { margin-top: 12px; }
  .consent-actions .btn { flex: 1; white-space: nowrap; }
}
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #0d47a1;
  border: 2px solid currentColor;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--sky-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Site header ---------- */
.site-header {
  background: #07101a;
  border-bottom: 1px solid #273449;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: #f4f7fb;
  text-decoration: none;
}
.brand .mark {
  position: relative;
  flex: none;
  width: 64px;
  height: 40px;
  overflow: hidden;
  border-radius: 4px;
}
.brand .mark img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  max-width: none;
  transform: translate(-50%, -50%);
}
.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: #e2eaf5;
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover { background: #273449; color: #ffb703; }
.site-nav a[aria-current="page"] { color: #ffb703; background: #26303c; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-block { width: 100%; }

/* ---------- Hero (landing) ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(10,24,45,.97) 0%, rgba(10,24,45,.9) 48%, rgba(10,24,45,.25) 100%),
    url('assets/hero.png') center 43% / cover,
    #14213d;
  color: #fff;
  padding: 64px 0 72px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.hero p.lede {
  margin: 0 0 26px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,.92);
  max-width: 56ch;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.22); }
.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 52px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -.02em;
}
.section-head p { margin: 4px 0 0; color: var(--ink-soft); }
.section-head a.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-head a.more:hover { text-decoration: underline; }

/* ---------- Category tiles ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cfe0f5; }
.tile .emoji { font-size: 1.7rem; }
.tile .label { font-weight: 700; letter-spacing: -.01em; }
.tile .count { font-size: .85rem; color: var(--ink-faint); }

/* ---------- Popular strip ---------- */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.strip > * { scroll-snap-align: start; }

/* ---------- Cards (shared) ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cfe0f5; }
.card-body { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-dark); }
.card .provider { margin: 0; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.card .price-basis { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.card .desc { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: .85rem;
  color: var(--ink-faint);
  margin-top: auto;
}
.card .meta-row .m { display: inline-flex; align-items: center; gap: 5px; }
.card .meta-row .badge.region {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.card .price {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.card-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.indicative { font-size: .76rem; color: var(--ink-faint); line-height: 1.35; }
.indicative .checked { color: var(--ink-soft); font-weight: 600; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  white-space: nowrap;
}
.badge.region { background: #eef2f7; color: var(--ink-soft); }

/* ---------- Browse layout ---------- */
.browse-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 0 64px;
}
@media (min-width: 880px) {
  .browse-layout { grid-template-columns: 270px 1fr; align-items: start; }
}

.filter-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
@media (min-width: 880px) {
  .filter-rail { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
}
.filter-rail h2 { margin: 0 0 4px; font-size: 1.1rem; }
.filter-group { border: 0; padding: 0; margin: 0 0 20px; }
.filter-group legend {
  font-weight: 700;
  font-size: .95rem;
  padding: 0;
  margin-bottom: 8px;
  color: var(--ink);
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: .92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; flex: none; }
.check:hover { color: var(--ink); }
.check .tally { margin-left: auto; font-size: .8rem; color: var(--ink-faint); }

.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs label { font-size: .82rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.price-inputs input {
  font: inherit;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.price-inputs .sep { align-self: end; padding-bottom: 9px; color: var(--ink-faint); }

.radio { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.radio input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

.filter-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Mobile filter toggle */
.filter-toggle { display: none; }
@media (max-width: 879px) {
  .filter-toggle {
    display: inline-flex;
    margin-bottom: 4px;
  }
  .filter-rail[hidden] { display: none; }
}

/* ---------- Results ---------- */
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.results-count { font-weight: 700; font-size: 1.05rem; }
.results-count span { color: var(--ink-faint); font-weight: 500; }
.sort-control { display: flex; align-items: center; gap: 8px; }
.sort-control label { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.sort-control select {
  font: inherit;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 6px 5px 11px;
  color: var(--ink-soft);
}
.chip button {
  border: 0;
  background: #eef2f7;
  color: var(--ink-soft);
  width: 18px; height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .8rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.chip button:hover { background: var(--accent); color: #fff; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty h3 { margin: 0 0 8px; color: var(--ink); }

.loading, .error {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.error { color: #b3261e; }
.error code {
  display: inline-block;
  margin-top: 8px;
  background: #fde8e6;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: .85rem;
}

/* ---------- Detail page ---------- */
.detail { padding-top: 32px; padding-bottom: 64px; }
.detail .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.detail .back:hover { text-decoration: underline; }
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 760px;
}
.detail-card h1 { margin: 10px 0 6px; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.02em; }
.detail-card .provider { font-size: 1.05rem; color: var(--ink-soft); font-weight: 600; margin: 0 0 16px; }
.detail-card .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-card .lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 22px; }
.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.detail-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 4px; font-weight: 700; }
.detail-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.detail-facts dd.price { color: var(--brand-dark); font-size: 1.35rem; }
.surcharges { margin: 0 0 22px; }
.surcharges h2 { font-size: 1rem; margin: 0 0 8px; }
.surcharges ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.detail-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.detail-cta .indicative { margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 36px 0;
  font-size: .9rem;
  margin-top: 40px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer .disclaimer { max-width: 60ch; color: rgba(255,255,255,.6); }

@media (max-width: 420px) {
  .site-header .wrap { gap: 8px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px; font-size: .88rem; }
  .brand { gap: 7px; font-size: 1.15rem; }
  .brand .mark { width: 44px; height: 32px; }
  .brand .mark img { width: 56px; height: 56px; }
  .detail-card { padding: 20px; }
  .hero { background-position: center, 65% center, center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
