/* ==========================================================================
   Not the NC500 — Skyscanner-spoof design system
   Palette + type matched to skyscanner.net (Jun 2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  /* Skyscanner-matched palette */
  --navy:        #05203c;   /* header / hero / footer */
  --navy-2:      #0e2c4a;   /* cards on navy */
  --blue:        #0770e3;   /* primary action */
  --blue-dark:   #0257b8;   /* hover */
  --blue-soft:   #e8f1fd;   /* tints */
  --teal:        #00a698;   /* "greener" / cheapest */
  --teal-soft:   #e0f5f2;
  --pink:        #f7325b;   /* "New" badge */
  --amber:       #ff9f1c;
  --ink:         #05203c;   /* headings on white */
  --body:        #4b5768;   /* body text */
  --label:       #626770;   /* field labels */
  --line:        #dfe2e8;   /* borders */
  --line-2:      #c3c9d4;
  --bg:          #ffffff;
  --bg-soft:     #f1f2f8;   /* light section */
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(5,32,60,0.10);
  --shadow-md:   0 4px 18px rgba(5,32,60,0.12);
  --shadow-lg:   0 10px 40px rgba(5,32,60,0.18);
  --radius:      8px;
  --radius-lg:   16px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ============================ TOP NAV BAR ============================== */
.topbar { background: var(--navy); color: #fff; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 30px; height: 30px; flex-shrink: 0; }
.brand__name { font-size: 23px; font-weight: 700; letter-spacing: -0.4px; }
.brand__tm { font-size: 11px; vertical-align: super; opacity: .7; font-weight: 600; }

.topbar__right { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.topbar__right a { color: #fff; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.topbar__right a:hover { text-decoration: none; opacity: .82; }
.topbar__ico { width: 21px; height: 21px; display: inline-block; }

/* ============================ HERO ==================================== */
.hero { background: var(--navy); color: #fff; padding: 16px 0 40px; }

/* Pill tab nav */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff; font-size: 15px; font-weight: 600;
  background: transparent; cursor: pointer; position: relative;
  transition: background .15s, border-color .15s;
}
.tab:hover { text-decoration: none; background: rgba(255,255,255,.08); }
.tab--active { background: var(--blue); border-color: var(--blue); }
.tab--active:hover { background: var(--blue); }
.tab__ico { width: 18px; height: 18px; }
.tab .badge {
  position: absolute; top: -9px; right: -6px;
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: var(--radius-pill); line-height: 1.5;
}

.hero__headline {
  font-size: 40px; font-weight: 800; letter-spacing: -1px;
  line-height: 1.08; color: #fff; margin-bottom: 24px; max-width: 760px;
}
.hero__headline .accent { color: #74c0ff; }

/* trip-type dropdown pill */
.triptype {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(255,255,255,.45);
  color: #fff; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: var(--radius); margin-bottom: 14px; cursor: pointer;
}

/* ============================ SEARCH MODULE =========================== */
.searchbar {
  display: flex; align-items: stretch; gap: 2px;
  background: transparent; border-radius: var(--radius); flex-wrap: wrap;
}
.field {
  background: #fff; border: 1px solid #fff; flex: 1 1 160px;
  padding: 12px 16px; position: relative; min-width: 0;
}
.field:first-of-type { border-radius: var(--radius) 0 0 var(--radius); }
.field__label { font-size: 12px; color: var(--label); font-weight: 600; margin-bottom: 2px; }
.field__value { font-size: 18px; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field__value.muted { color: #8b919c; font-weight: 500; }

.field--swap { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.swap-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm); color: var(--blue);
  align-self: center; transition: transform .25s;
}
.swap-btn:hover { transform: rotate(180deg); }

.search-btn {
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 18px; font-weight: 700;
  padding: 0 34px; border-radius: 0 var(--radius) var(--radius) 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.search-btn:hover { background: var(--blue-dark); }

.search-opts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 9px; font-size: 15px; color: #fff; font-weight: 500; }
.opt input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ============================ SECTIONS ================================ */
.section { padding: 52px 0; }
.section--soft { background: var(--bg-soft); }
.section__eyebrow { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 8px; }
.section__title { color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 6px; }
.section__sub { color: var(--body); font-size: 16px; margin-bottom: 28px; max-width: 680px; }

/* Quick-action cards (navy) */
.quickgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.quickcard {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 22px 22px; display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 17px; min-height: 84px; transition: transform .15s, box-shadow .15s;
}
.quickcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quickcard--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.quickcard__ico { width: 30px; height: 30px; flex-shrink: 0; }
.quickcard small { display: block; font-weight: 500; font-size: 13px; opacity: .8; margin-top: 2px; }

/* ============================ RESULTS (flight-style day cards) ======== */
.results { display: flex; flex-direction: column; gap: 14px; }
.result {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: grid;
  grid-template-columns: 230px 1fr 210px; transition: box-shadow .15s, transform .15s;
}
.result:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.result:hover .result__img img { transform: scale(1.06); }
.result__img { position: relative; overflow: hidden; background: var(--bg-soft); }
.result__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.result__img .pin {
  position: absolute; left: 12px; bottom: 12px; background: rgba(5,32,60,.82); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 5px; backdrop-filter: blur(2px);
}
.result__main { padding: 20px 24px; }
.result__tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.rtag {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
  letter-spacing: .2px;
}
.rtag--best { background: var(--teal-soft); color: #00756b; }
.rtag--only { background: #fff0e0; color: #a85700; }
.rtag--day  { background: var(--blue-soft); color: var(--blue-dark); }

.legrow { display: flex; align-items: center; gap: 18px; }
.leg__time { text-align: center; min-width: 64px; }
.leg__time b { font-size: 21px; color: var(--ink); font-weight: 800; display: block; line-height: 1.1; }
.leg__time span { font-size: 13px; color: var(--label); }
.leg__path { flex: 1; text-align: center; }
.leg__path .dur { font-size: 13px; color: var(--label); margin-bottom: 4px; }
.leg__line { position: relative; height: 2px; background: var(--line-2); margin: 6px 0; }
.leg__line::before, .leg__line::after {
  content: ""; position: absolute; top: -3px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--navy);
}
.leg__line::before { left: 0; }
.leg__line::after  { right: 0; background: var(--blue); }
.leg__via { font-size: 12px; color: var(--label); margin-top: 4px; }
.leg__title { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.leg__sub { font-size: 14px; color: var(--body); }

.result__side {
  background: var(--bg-soft); border-left: 1px solid var(--line);
  padding: 20px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  text-align: right;
}
.result__price { font-size: 26px; font-weight: 800; color: var(--ink); }
.result__price small { font-size: 13px; font-weight: 600; color: var(--label); display: block; }
.result__cta {
  margin-top: 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 20px; border-radius: var(--radius); border: none; cursor: pointer; width: 100%;
}
.result__cta:hover { background: var(--blue-dark); text-decoration: none; }

/* ============================ PROMO BAND ============================= */
.promo {
  background: var(--blue); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; color: #fff; align-items: stretch;
}
.promo__text { padding: 48px 44px; }
.promo__text h3 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; line-height: 1.12; margin-bottom: 12px; }
.promo__text p { font-size: 16px; opacity: .92; margin-bottom: 20px; max-width: 420px; }
.btn-light {
  display: inline-block; background: #fff; color: var(--blue); font-weight: 700;
  padding: 12px 26px; border-radius: var(--radius); font-size: 16px;
}
.btn-light:hover { text-decoration: none; background: #eef4ff; }
.promo__img { background-size: cover; background-position: center; min-height: 280px; }

/* ============================ DESTINATION TILES ===================== */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dest-grid .span2 { grid-column: span 2; }
.dest-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 200px; display: block; box-shadow: var(--shadow-sm);
}
.dest-tile img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform .45s ease; }
.dest-tile:hover { text-decoration: none; }
.dest-tile:hover img { transform: scale(1.07); }
.dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,32,60,.78) 0%, rgba(5,32,60,.05) 55%); }
.dest-tile__cap { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 2; color: #fff; }
.dest-tile__cap b { font-size: 20px; font-weight: 800; letter-spacing: -.3px; display: block; }
.dest-tile__cap span { font-size: 13.5px; opacity: .92; }
.dest-tile .score {
  position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; color: var(--ink);
  font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}

/* ============================ FOOTER ================================= */
.footer { background: var(--navy); color: #c3cbd6; padding: 44px 0 30px; font-size: 14px; }
.footer__top { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 18px; }
.footer__top .brand__name { font-size: 20px; }
.footer p { margin-bottom: 8px; max-width: 720px; line-height: 1.6; }
.footer__legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; opacity: .75; }

/* ============================ MISC ================================== */
.disclaimer-strip {
  background: var(--amber); color: #3a2400; text-align: center;
  font-size: 13.5px; font-weight: 600; padding: 8px 16px;
}

/* ============================ INNER-PAGE HERO ======================= */
.hero p.lead { color: #cfe0f2; font-size: 17px; max-width: 680px; margin-top: -10px; margin-bottom: 4px; }
.hero .crumbs { font-size: 13px; color: #8fb3d6; margin-bottom: 18px; }
.hero .crumbs a { color: #cfe0f2; }

/* ============================ ITINERARY DAY CARDS =================== */
.daycard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 26px; scroll-margin-top: 20px;
}
.daycard__banner { position: relative; height: 220px; }
.daycard__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daycard__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,32,60,.85) 0%, rgba(5,32,60,.15) 60%); }
.daycard__meta { position: absolute; left: 26px; bottom: 18px; right: 26px; z-index: 2; color: #fff; }
.daycard__day { display: inline-block; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: var(--radius-pill); margin-bottom: 8px; letter-spacing: .3px; }
.daycard__title { font-size: 25px; font-weight: 800; letter-spacing: -.5px; line-height: 1.12; }
.daycard__route { font-size: 14px; opacity: .9; margin-top: 3px; }
.daycard__body { padding: 22px 26px 24px; }

.banner-note {
  background: var(--blue-soft); border-left: 3px solid var(--blue); color: var(--blue-dark);
  padding: 11px 15px; border-radius: 6px; font-size: 14px; margin-bottom: 18px;
}
.banner-note.warn { background: #fff6e6; border-color: var(--amber); color: #8a5800; }

.sched { list-style: none; }
.sched li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.sched li:last-child { border-bottom: none; }
.sched__t { min-width: 92px; font-weight: 800; color: var(--ink); font-size: 14.5px; flex-shrink: 0; }
.sched__c { font-size: 14.5px; color: var(--body); }
.sched__c strong { color: var(--ink); }

.dinnerbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; font-size: 14px;
}
.dinnerbar .pill { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: var(--radius-pill); }
.dinnerbar .ref { margin-left: auto; font-size: 13px; color: var(--label); font-family: 'Courier New', monospace; }

/* sticky day nav */
.daynav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.daynav__inner { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.daynav a { white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--body); background: var(--bg-soft); padding: 7px 14px; border-radius: var(--radius-pill); }
.daynav a:hover { background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; }

/* ============================ HOTELS =============================== */
.stars { color: var(--amber); font-size: 15px; letter-spacing: 1px; margin-bottom: 6px; }
.stars .num { color: var(--ink); font-weight: 800; margin-left: 6px; font-size: 14px; }
.stars .num small { color: var(--label); font-weight: 600; }
.review { font-size: 14px; color: var(--body); font-style: italic; border-left: 3px solid var(--blue-soft); padding-left: 12px; margin: 10px 0; }
.review b { color: var(--teal); font-style: normal; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.amenities span { font-size: 12px; background: var(--bg-soft); color: var(--body); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; }

/* ============================ ATTRACTIONS ========================== */
.daygroup-title { font-size: 18px; font-weight: 800; color: var(--ink); margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.attr {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; scroll-margin-top: 80px;
}
.attr.top { border: 1.5px solid var(--amber); box-shadow: 0 4px 18px rgba(255,159,28,.18); }
.attr__img { height: 160px; position: relative; background: var(--bg-soft); }
.attr__img img { width: 100%; height: 100%; object-fit: cover; }
.attr__rank { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-pill); }
.attr.top .attr__rank { background: var(--amber); color: #3a2400; }
.attr__score { position: absolute; top: 12px; right: 12px; background: rgba(5,32,60,.85); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: var(--radius-pill); }
.attr__body { padding: 15px 17px 17px; flex: 1; display: flex; flex-direction: column; }
.attr__name { font-size: 17px; font-weight: 800; color: var(--ink); }
.attr__loc { font-size: 12.5px; color: var(--label); font-style: italic; margin-bottom: 10px; }
.attr__bul { list-style: none; margin: 0; font-size: 13px; line-height: 1.5; }
.attr__bul li { padding: 2px 0 2px 18px; position: relative; }
.attr__bul li.pos::before { content: "+"; position: absolute; left: 2px; color: var(--teal); font-weight: 800; }
.attr__bul li.neg::before { content: "\2013"; position: absolute; left: 3px; color: #b34; font-weight: 800; }
.attr__scores { margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line); display: flex; gap: 4px; flex-wrap: wrap; font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: .3px; align-items: center; }
.attr__scores .s { display: flex; gap: 3px; align-items: baseline; }
.attr__scores .s b { font-family: 'Courier New', monospace; color: var(--blue); font-size: 12.5px; }
.attr__scores .car { background: var(--navy); color: #fff; padding: 1px 7px; border-radius: var(--radius-pill); }

/* ============================ FARE TABLE ========================== */
.fare { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 640px; }
.fare__row { display: flex; align-items: center; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.fare__row:last-child { border-bottom: none; }
.fare__row .lbl { flex: 1; }
.fare__row .lbl b { display: block; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.fare__row .lbl small { color: var(--label); font-size: 12.5px; }
.fare__row .amt { font-family: 'Courier New', monospace; font-weight: 700; color: var(--ink); font-size: 16px; }
.fare__row.total { background: var(--navy); color: #fff; }
.fare__row.total .lbl b, .fare__row.total .amt { color: #fff; font-size: 20px; }

/* ============================ CREW =============================== */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.crewcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.crewcard__top { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.crewcard__top .seat { font-family: 'Courier New', monospace; font-size: 12px; opacity: .75; }
.crewcard__photo { height: 200px; background: var(--bg-soft); }
.crewcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crewcard__body { padding: 16px 20px 20px; }
.crewcard__name { font-size: 21px; font-weight: 800; color: var(--ink); }
.crewcard__role { font-size: 13px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.crewcard__bio { font-size: 14px; color: var(--body); margin-bottom: 14px; }
.crewstats { display: flex; gap: 8px; flex-wrap: wrap; }
.crewstats .st { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; flex: 1; min-width: 80px; text-align: center; }
.crewstats .st b { display: block; font-size: 17px; color: var(--ink); font-weight: 800; }
.crewstats .st small { font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: .3px; }

/* ============================ DEPARTURES BOARD ==================== */
.board { background: #07121f; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.board__head { display: grid; grid-template-columns: 120px 1fr 150px; gap: 14px; padding: 14px 22px; background: #0b1c30; color: #8fb3d6; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.board__row { display: grid; grid-template-columns: 120px 1fr 150px; gap: 14px; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.07); align-items: center; color: #e8f0f8; }
.board__time { font-family: 'Courier New', monospace; font-weight: 700; font-size: 16px; color: #ffd34d; }
.board__dest b { display: block; font-size: 15.5px; color: #fff; font-weight: 700; }
.board__dest span { font-size: 13px; color: #9fb6cc; }
.board__status { font-family: 'Courier New', monospace; font-weight: 700; font-size: 13px; padding: 5px 11px; border-radius: 5px; text-align: center; }
.st-delay { background: #4a2f00; color: #ffb340; }
.st-ontime { background: #0e3a25; color: #4fe39a; }
.st-cancel { background: #4a1620; color: #ff6b85; }
.st-board { background: #0c2f55; color: #66b2ff; }

/* ============================ GALLERY ============================ */
.year-head { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 16px; }
.year-head h3 { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.year-head span { font-size: 14px; color: var(--label); }
.gallery { columns: 3; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 11px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(to top, rgba(5,32,60,.85), transparent); opacity: 0; transition: opacity .2s; }
.gallery figure:hover figcaption { opacity: 1; }

/* ============================ VIDEO MEDIA ======================= */
.crewcard__photo video, .result__img video, .daycard__banner video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery figure video { width: 100%; display: block; }
.gallery figure .vidbadge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(5,32,60,.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill);
}

/* ============================ TAG FILTER + FIG TAGS ============== */
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tagchip { font-family: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line-2); background: #fff; color: var(--body); padding: 6px 13px; border-radius: var(--radius-pill); cursor: pointer; transition: all .12s; }
.tagchip:hover { border-color: var(--blue); color: var(--blue); }
.tagchip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.figtags { font-size: 11px; opacity: .8; margin-top: 3px; font-weight: 500; }

/* footer admin link */
.adminlink { margin-top: 12px; }
.adminlink a { color: #6f8aa6; font-size: 12px; font-weight: 600; }
.adminlink a:hover { color: #cfe0f2; }

/* ============================ ADMIN PANEL ======================= */
.admin-wrap { max-width: 1040px; margin: 0 auto; padding: 28px 24px 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.admin-head .back { font-size: 14px; font-weight: 700; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 2px solid var(--line); }
.admin-tab { font-family: inherit; font-size: 15px; font-weight: 700; background: none; border: none; padding: 10px 16px; color: var(--body); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.panel { display: none; }
.panel.on { display: block; }

.uploadzone { border: 2px dashed var(--line-2); border-radius: var(--radius-lg); padding: 26px; text-align: center; color: var(--body); margin-bottom: 22px; background: var(--bg-soft); transition: border-color .15s, background .15s; }
.uploadzone.drag { border-color: var(--blue); background: var(--blue-soft); }
.uploadzone b { color: var(--ink); }
.uploadzone input { display: none; }
.uploadzone label { display: inline-block; margin-top: 10px; background: var(--blue); color: #fff; font-weight: 700; padding: 9px 18px; border-radius: var(--radius); cursor: pointer; font-size: 14px; }

.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ph-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.ph-item__img { height: 150px; background: var(--bg-soft); position: relative; }
.ph-item__img img, .ph-item__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-item__body { padding: 12px 13px 14px; }
.ph-item__file { font-size: 11px; color: var(--label); font-family: 'Courier New', monospace; margin-bottom: 8px; word-break: break-all; }
.fld { margin-bottom: 9px; }
.fld label { display: block; font-size: 11px; font-weight: 700; color: var(--label); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.fld input, .fld textarea, .fld select { width: 100%; font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 7px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--blue); }
.fld textarea { resize: vertical; min-height: 60px; }
.ph-item__del { background: none; border: none; color: #c0303f; font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 2px 0; }
.ph-item__del:hover { text-decoration: underline; }

.crew-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.crew-edit__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.crew-edit__card h3 { font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.stat-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; margin-bottom: 7px; }

.savebar { position: sticky; bottom: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.btn-save { background: var(--teal); color: #fff; border: none; font-family: inherit; font-size: 15px; font-weight: 700; padding: 11px 24px; border-radius: var(--radius); cursor: pointer; }
.btn-save:hover { filter: brightness(.94); }
.btn-ghost { background: #fff; border: 1.5px solid var(--line-2); color: var(--body); font-family: inherit; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: var(--radius); cursor: pointer; }
.savehint { font-size: 13px; color: var(--label); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff; padding: 13px 22px; border-radius: var(--radius); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .3s; z-index: 100; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: #9a2030; }
.admin-banner { background: #fff6e6; border: 1px solid var(--amber); color: #8a5800; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 20px; }

/* ============================ LOGIN GATE ========================= */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); padding: 24px; }
.gate__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px 36px; width: 100%; max-width: 400px; text-align: center; }
.gate__card .brand { justify-content: center; margin-bottom: 6px; }
.gate__card .brand__name, .gate__card .brand__logo path, .gate__card .brand__logo line { color: var(--ink); }
.gate h1 { color: var(--ink); font-size: 22px; font-weight: 800; margin: 14px 0 4px; }
.gate p { color: var(--body); font-size: 14px; margin-bottom: 22px; }
.gate input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius); font-size: 16px; font-family: inherit; margin-bottom: 12px; }
.gate input:focus { outline: none; border-color: var(--blue); }
.gate button { width: 100%; background: var(--blue); color: #fff; border: none; padding: 14px; border-radius: var(--radius); font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; }
.gate button:hover { background: var(--blue-dark); }
.gate__err { color: #c0303f; font-size: 13.5px; min-height: 18px; margin-bottom: 8px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 880px) {
  .hero__headline { font-size: 30px; }
  .searchbar { flex-direction: column; gap: 8px; }
  .field, .field:first-of-type { border-radius: var(--radius); flex: 1 1 auto; }
  .field--swap { display: none; }
  .search-btn { border-radius: var(--radius); padding: 16px; }
  .result { grid-template-columns: 1fr; }
  .result__img { height: 170px; }
  .result__side { border-left: none; border-top: 1px solid var(--line); align-items: stretch; text-align: left; flex-direction: row; justify-content: space-between; align-items: center; }
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .dest-grid .span2 { grid-column: span 2; }
  .promo { grid-template-columns: 1fr; }
  .promo__img { min-height: 200px; order: -1; }
  .gallery { columns: 2; }
  .board__head, .board__row { grid-template-columns: 76px 1fr 104px; gap: 10px; padding-left: 14px; padding-right: 14px; }
  .daycard__banner { height: 170px; }
}
@media (max-width: 560px) {
  .topbar__right a span.lbl { display: none; }
  .hero__headline { font-size: 26px; }
  .gallery { columns: 1; }
  .board__head { display: none; }
}
