/* =====================================================================
   Detail pages — state, destination, place, hotel, package, listings
   ===================================================================== */

/* ---- Page hero ------------------------------------------------------- */

.page-hero {
  position: relative;
  min-height: clamp(440px, 74svh, 760px);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.page-hero--short { min-height: clamp(320px, 46svh, 480px); }

.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img, .page-hero__bg video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}
.page-hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(2,16,31,.66) 0%, rgba(2,16,31,.22) 32%, rgba(2,16,31,.86) 76%, var(--navy-950) 100%);
}
.page-hero__inner {
  position: relative; width: 100%;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: clamp(36px, 5vw, 68px);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 700; line-height: .98; letter-spacing: -.045em;
  color: var(--white); margin: 0 0 var(--s-3);
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(2,16,31,.55);
}
.page-hero__title--sentence { text-transform: none; letter-spacing: -.038em; }
.page-hero__tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  color: var(--azure-soft); margin: 0 0 var(--s-5);
}
.page-hero__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.page-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Sticky in-page nav ---------------------------------------------- */

.jump-nav {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(4,22,42,.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-6);
}
.jump-nav__track {
  display: flex; gap: 4px; overflow-x: auto;
  padding: 11px 0; scrollbar-width: none;
}
.jump-nav__track::-webkit-scrollbar { display: none; }
.jump-nav a {
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-dim);
  white-space: nowrap; transition: all var(--t-fast);
}
.jump-nav a:hover { color: var(--text-bright); background: var(--surface); }
.jump-nav a.is-active { background: var(--surface-strong); color: var(--azure-bright); }
@media (max-width: 900px) { .jump-nav { top: 0; } }

/* ---- Two-column detail layout ---------------------------------------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; } }

.detail__aside { position: sticky; top: calc(var(--nav-h) + 70px); display: grid; gap: var(--s-4); }
@media (max-width: 980px) { .detail__aside { position: static; } }

.prose { max-width: var(--maxw-text); }
.prose p { color: var(--silver-dim); }
.prose h2, .prose h3 { margin-top: var(--s-6); }
.prose ul { color: var(--silver-dim); }
.prose blockquote {
  margin: var(--s-5) 0; padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--azure);
  background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-serif); font-style: italic; color: var(--text-bright);
}
.prose img { border-radius: var(--r-md); margin: var(--s-5) 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Booking / enquiry panel ----------------------------------------- */

.book-panel { padding: var(--s-5); border-radius: var(--r-lg); }
.book-panel__price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: var(--s-4); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.book-panel__price b {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 650; color: var(--text-bright); letter-spacing: -.03em; line-height: 1;
}
.book-panel__price s { color: var(--text-dim); font-size: 1rem; }
.book-panel__price small { color: var(--text-dim); font-size: var(--fs-xs); }
.book-panel .btn { margin-bottom: 9px; }
.book-panel .btn:last-child { margin-bottom: 0; }

/* ---- Amenities ------------------------------------------------------- */

.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 10px; }
.amenity {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.amenity__icon { color: var(--azure-bright); flex-shrink: 0; }

/* ---- Room list ------------------------------------------------------- */

.room {
  display: grid; grid-template-columns: 180px 1fr auto; gap: var(--s-4);
  padding: var(--s-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  align-items: center;
}
.room img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 11px; background: var(--navy-800); }
.room__price { text-align: right; }
.room__price b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; color: var(--text-bright); }
@media (max-width: 720px) {
  .room { grid-template-columns: 1fr; }
  .room__price { text-align: left; }
}

/* ---- Itinerary timeline ---------------------------------------------- */

.itinerary { position: relative; padding-left: 34px; }
.itinerary::before {
  content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--azure), rgba(30,167,232,.12));
  border-radius: 2px;
}
.itin-day { position: relative; margin-bottom: var(--s-5); }
.itin-day::before {
  content: ''; position: absolute; left: -27px; top: 20px;
  width: 12px; height: 12px; border-radius: 99px;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--navy-950), 0 0 16px rgba(30,167,232,.7);
}
.itin-day__head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  text-align: left; transition: all var(--t-fast);
}
.itin-day__head:hover { background: var(--surface-strong); border-color: var(--border-strong); }
.itin-day__n {
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--azure-bright);
  flex-shrink: 0;
}
.itin-day__title { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--text-bright); flex: 1; letter-spacing: -.02em; }
.itin-day__chev { transition: transform var(--t-mid) var(--ease-out); color: var(--text-dim); flex-shrink: 0; }
.itin-day.is-open .itin-day__chev { transform: rotate(180deg); }
.itin-day__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease-out);
}
.itin-day.is-open .itin-day__body { grid-template-rows: 1fr; }
.itin-day__inner { overflow: hidden; }
.itin-day__content { padding: var(--s-4) var(--s-5) 0; }
.itin-day__places { display: flex; gap: 10px; overflow-x: auto; padding: var(--s-3) 0 var(--s-2); scrollbar-width: none; }
.itin-day__places::-webkit-scrollbar { display: none; }
.itin-day__place { flex: 0 0 140px; }
.itin-day__place img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 11px; background: var(--navy-800); }
.itin-day__place span { display: block; font-size: var(--fs-xs); margin-top: 6px; color: var(--silver-dim); }
.itin-day__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: var(--s-3); }

/* ---- Filter bar ------------------------------------------------------ */

.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: var(--s-6);
}
.filters .select, .filters .input { min-height: 44px; padding-block: 10px; width: auto; min-width: 150px; }
.filters__count { margin-left: auto; font-size: var(--fs-sm); color: var(--text-dim); }
@media (max-width: 700px) {
  .filters { flex-direction: column; align-items: stretch; }
  .filters .select, .filters .input { width: 100%; }
  .filters__count { margin-left: 0; }
}

/* ---- Near me --------------------------------------------------------- */

.geo-prompt {
  text-align: center; padding: clamp(36px, 6vw, 72px) var(--s-5);
  border-radius: var(--r-xl);
  background: radial-gradient(80% 100% at 50% 0%, rgba(30,167,232,.14), transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.geo-prompt__pulse {
  width: 84px; height: 84px; margin: 0 auto var(--s-5);
  border-radius: 99px; display: grid; place-items: center;
  background: var(--grad-brand); color: #04162A;
  box-shadow: 0 0 0 0 rgba(30,167,232,.55);
  animation: geoPulse 2.4s var(--ease-io) infinite;
}
@keyframes geoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(30,167,232,.5); }
  70%  { box-shadow: 0 0 0 26px rgba(30,167,232,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,167,232,0); }
}

/* ---- Travel passport ------------------------------------------------- */

.passport-hero {
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 52px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(229,180,91,.14), transparent 55%),
    linear-gradient(155deg, rgba(7,29,52,.94), rgba(4,22,42,.96));
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center;
}
@media (max-width: 800px) { .passport-hero { grid-template-columns: 1fr; } }

.progress-ring { position: relative; width: 150px; height: 150px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.progress-ring .track { stroke: rgba(255,255,255,.09); }
.progress-ring .bar { stroke: url(#ringGrad); transition: stroke-dashoffset 1.4s var(--ease-out); }
.progress-ring__label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.progress-ring__label b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 650; color: var(--text-bright); line-height: 1; }
.progress-ring__label small { font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 128px), 1fr)); gap: 12px; }
.stamp {
  position: relative; aspect-ratio: 1;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--navy-850);
  display: grid; place-items: center; text-align: center; padding: 10px;
}
.stamp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.stamp span { position: relative; font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--text-bright); }
.stamp::after {
  content: '✓'; position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--mint); color: #04231A;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

/* ---- Trip builder ---------------------------------------------------- */

.builder { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
@media (max-width: 1000px) { .builder { grid-template-columns: 1fr; } }

.builder__library { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: var(--r-lg); padding: var(--s-4); }
@media (max-width: 1000px) { .builder__library { position: static; } }
.builder__tabs { display: flex; gap: 4px; margin-bottom: var(--s-4); background: var(--surface); padding: 4px; border-radius: var(--r-full); }
.builder__tab {
  flex: 1; padding: 8px 12px; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim);
  transition: all var(--t-fast);
}
.builder__tab.is-active { background: var(--grad-brand); color: #04162A; }
.builder__pool { max-height: 460px; overflow-y: auto; display: grid; gap: 7px; }

.pool-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid transparent;
  cursor: grab; transition: all var(--t-fast);
}
.pool-item:hover { border-color: var(--azure); background: var(--surface-strong); }
.pool-item:active { cursor: grabbing; }
.pool-item img { width: 44px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--navy-800); flex-shrink: 0; }
.pool-item b { font-size: .85rem; color: var(--text-bright); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-item small { font-size: var(--fs-micro); color: var(--text-dim); }
.pool-item .add { margin-left: auto; color: var(--azure-bright); font-size: 1.2rem; line-height: 1; }

.days { display: grid; gap: var(--s-4); }
.day-col {
  border-radius: var(--r-lg); padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.day-col.is-drop { border-color: var(--azure); background: rgba(30,167,232,.08); }
.day-col__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.day-col__head b { font-family: var(--font-display); font-size: 1rem; color: var(--text-bright); }
.day-col__items { display: grid; gap: 8px; min-height: 66px; }
.day-col__empty {
  display: grid; place-items: center; min-height: 66px;
  border: 1px dashed var(--border-strong); border-radius: var(--r-md);
  font-size: var(--fs-xs); color: var(--text-dim);
}

.trip-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-md);
  background: var(--bg-elevated); border: 1px solid var(--border);
  cursor: grab;
}
.trip-item.is-dragging { opacity: .45; }
.trip-item__grip { color: var(--slate-dark); cursor: grab; flex-shrink: 0; }
.trip-item b { font-size: .88rem; color: var(--text-bright); flex: 1; }
.trip-item .remove { color: var(--slate); transition: color var(--t-fast); }
.trip-item .remove:hover { color: var(--coral); }

.trip-summary {
  position: sticky; bottom: 16px;
  display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap;
  padding: var(--s-4) var(--s-5); border-radius: var(--r-lg);
  margin-top: var(--s-5);
  z-index: 20;
}
@media (max-width: 900px) { .trip-summary { bottom: calc(var(--mobile-nav) + env(safe-area-inset-bottom) + 10px); } }
.trip-summary__stat b { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; color: var(--text-bright); line-height: 1; }
.trip-summary__stat small { font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.trip-summary__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Planner results ------------------------------------------------- */

.plan-result { border-radius: var(--r-xl); padding: clamp(20px, 3vw, 40px); }
.plan-estimate {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  background: rgba(30,167,232,.09); border: 1px solid rgba(30,167,232,.28);
  margin-bottom: var(--s-5);
}
.plan-estimate b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; color: var(--text-bright); }

/* ---- Error page ------------------------------------------------------ */

.error-page {
  min-height: 78svh; display: grid; place-items: center; text-align: center;
  padding-top: calc(var(--nav-h) + 40px);
}
.error-page__code {
  font-family: var(--font-display); font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700; letter-spacing: -.06em; line-height: .85;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--s-4);
}

/* ---- Listing hero (compact) ------------------------------------------ */

.list-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(24px, 4vw, 48px);
}
.list-hero h1 { margin-bottom: var(--s-3); }
