/* ==========================================================================
   TripPager — Design System
   A modern, lite, accessible front-end for a travel aggregator.
   One stylesheet. Mobile-first. Design tokens via CSS custom properties.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --brand:        #0e7c86;   /* deep teal */
  --brand-600:    #0c6a72;
  --brand-700:    #0a565d;
  --brand-50:     #e6f4f5;
  --accent:       #ff6b5e;   /* warm coral */
  --accent-600:   #ed5546;
  --gold:         #f5a623;   /* rating stars */

  /* Neutrals (slate) */
  --ink:          #0f172a;   /* near-black text */
  --ink-2:        #334155;
  --muted:        #64748b;
  --line:         #e2e8f0;
  --line-2:       #eef2f6;
  --surface:      #ffffff;
  --surface-2:    #f7f9fb;
  --surface-3:    #eef3f6;

  /* Feedback */
  --success:      #16a34a;
  --warn:         #d97706;
  --danger:       #dc2626;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  /* Spacing scale */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;

  /* Radius / shadow */
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow:    0 6px 18px rgba(15,23,42,.08);
  --shadow-lg: 0 18px 40px rgba(15,23,42,.14);

  --container: 1180px;
  --header-h: 70px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef5; --ink-2: #c2cdda; --muted: #93a3b6;
    --line: #243244; --line-2: #1c2838;
    --surface: #0f1722; --surface-2: #131d2a; --surface-3: #1a2636;
    --brand-50: #0c2a2d;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 6px 18px rgba(0,0,0,.5);
    --shadow-lg: 0 18px 40px rgba(0,0,0,.6);
  }
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { color: var(--ink-2); }
ul, ol { padding-left: 1.1rem; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section__head p { color: var(--muted); margin-top: .25rem; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color:#fff; }

.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  background: var(--surface-3); color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); color:#fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-600); color:#fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.26); color:#fff; }
.btn--block { width: 100%; }
.btn--lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn--sm { padding: .45rem .85rem; font-size: .85rem; }

/* ---- Chips / badges ------------------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem;
  border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2);
  font-size: .82rem; font-weight: 600; border: 1px solid transparent;
}
.chip--brand { background: var(--brand-50); color: var(--brand-700); }
.chip--outline { background: transparent; border-color: var(--line); }
.chip a { color: inherit; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: var(--r-sm);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  background: var(--accent); color: #fff;
}
.badge--verified { background: var(--success); }
.badge--soft { background: var(--brand-50); color: var(--brand-700); }

/* ---- Star rating (visual) ------------------------------------------------ */
.stars { --pct: 100%; display: inline-block; position: relative; font-size: 1rem; line-height: 1; white-space: nowrap; }
.stars::before { content: "★★★★★"; color: var(--line); letter-spacing: 2px; }
.stars::after {
  content: "★★★★★"; color: var(--gold); letter-spacing: 2px;
  position: absolute; inset: 0; width: var(--pct); overflow: hidden;
}
.rating-inline { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; }
.rating-inline b { color: var(--ink); }
.rating-inline .count { color: var(--muted); }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--surface);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(6px);
}
.site-header .nav { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: var(--sp-2); }
.nav-links a {
  padding: .5rem .8rem; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: var(--surface-3); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--sp-3);
    gap: .1rem; margin: 0; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease;
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; }
  .nav-actions .btn--ghost { display: none; }
}

/* ---- Hero + search ------------------------------------------------------- */
.hero {
  position: relative; color: #fff; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, rgba(8,40,44,.55), rgba(8,40,44,.78)),
              url("https://picsum.photos/seed/trippager-hero/1800/900") center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 52ch; margin-top: var(--sp-3); }
.hero__stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-5); flex-wrap: wrap; }
.hero__stats div b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.hero__stats div span { color: rgba(255,255,255,.8); font-size: .85rem; }

.search-bar {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .5rem; align-items: end;
  background: var(--surface); border-radius: var(--r-lg); padding: .75rem; box-shadow: var(--shadow-lg);
  margin-top: var(--sp-6);
}
.search-bar .field { margin: 0; }
.search-bar label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-left: .5rem; }
.search-bar input, .search-bar select {
  border: none; background: transparent; padding: .35rem .5rem; width: 100%; font-weight: 600; font-size: .98rem;
}
.search-bar .field + .field { border-left: 1px solid var(--line); }
@media (max-width: 820px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .field + .field { border-left: none; }
  .search-bar .btn { grid-column: 1 / -1; }
}

/* ---- Cards (generic + tour/experience) ----------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .badge { position: absolute; top: .7rem; left: .7rem; }
.card__fav {
  position: absolute; top: .6rem; right: .6rem; width: 36px; height: 36px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92); border: none; display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.card__fav:hover { color: var(--accent); }
.card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__eyebrow { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.card__title { font-size: 1.05rem; font-family: var(--font-display); font-weight: 700; line-height: 1.3; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .85rem; margin-top: auto; }
.card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-3); border-top: 1px solid var(--line-2); margin-top: .25rem; }
.price { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.price small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.price .from { color: var(--muted); font-size: .72rem; font-weight: 600; display: block; }

/* avatar + people cards (guides) */
.avatar { border-radius: var(--r-pill); object-fit: cover; background: var(--surface-3); }
.card--person { text-align: center; align-items: center; padding: var(--sp-5); }
.card--person .avatar { width: 96px; height: 96px; margin-bottom: var(--sp-3); }
.card--person .card__title { font-size: 1.1rem; }

/* agency card */
.card--agency .card__media { aspect-ratio: 16 / 7; }
.agency-logo { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); background:#fff; }

/* ---- Breadcrumbs --------------------------------------------------------- */
.breadcrumb { padding-block: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }

/* ---- Page header band ---------------------------------------------------- */
.page-band { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: var(--sp-6); }
.page-band h1 { margin-bottom: .35rem; }
.page-band p { color: var(--muted); max-width: 60ch; }

/* ---- Listing layout (filters + grid) ------------------------------------- */
.listing { display: grid; grid-template-columns: 270px 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 880px) { .listing { grid-template-columns: 1fr; } }
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5);
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.filters h3 { font-size: 1rem; margin-bottom: var(--sp-3); }
.filters fieldset { border: none; padding: 0; margin: 0 0 var(--sp-4); }
.filters legend { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .25rem 0; color: var(--ink-2); font-size: .92rem; }
.check input { accent-color: var(--brand); width: 17px; height: 17px; }
.listing__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.listing__bar .count { color: var(--muted); font-size: .92rem; }
.sort { display: inline-flex; align-items: center; gap: .5rem; }
.sort select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem .7rem; background: var(--surface); font-weight: 600; }

/* ---- Pagination ---------------------------------------------------------- */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: var(--sp-6); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; background: var(--surface);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination [aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Detail page (tour/activity) ----------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-6); align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 150px; gap: .5rem; border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a:first-child { grid-row: span 2; grid-column: 1; }
.gallery a { position: relative; overflow: hidden; border-radius: 6px; }
.gallery a:first-child { border-radius: var(--r); }
.gallery .more { position: absolute; inset: 0; background: rgba(15,23,42,.5); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery a:first-child { grid-column: span 2; } }

.detail-title h1 { margin-bottom: .5rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); align-items: center; margin: .25rem 0 1rem; }
.detail-meta span { display: inline-flex; align-items: center; gap: .4rem; }

.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin: var(--sp-5) 0; }
@media (max-width: 640px) { .quick-facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-4); }
.fact .ico { color: var(--brand); margin-bottom: .35rem; }
.fact b { display: block; }
.fact span { color: var(--muted); font-size: .82rem; }

/* Tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: var(--sp-6) 0 var(--sp-5); overflow-x: auto; }
.tabs button {
  padding: .8rem 1rem; background: transparent; border: none; border-bottom: 3px solid transparent;
  color: var(--muted); font-weight: 600; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.prose > * + * { margin-top: var(--sp-3); }
.prose h2, .prose h3 { margin-top: var(--sp-5); }
.prose ul { display: grid; gap: .4rem; }

/* Includes / excludes list */
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 560px) { .incl { grid-template-columns: 1fr; } }
.incl ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.incl li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); }
.incl .yes { color: var(--success); flex: none; }
.incl .no  { color: var(--danger);  flex: none; }

/* Itinerary accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:first-child { border-top: none; }
.accordion summary {
  list-style: none; cursor: pointer; padding: var(--sp-4); display: flex; gap: .8rem; align-items: center;
  font-weight: 600; font-family: var(--font-display);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .step { width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-size: .85rem; flex: none; }
.accordion summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.3rem; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 var(--sp-4) var(--sp-4) calc(var(--sp-4) + 42px); color: var(--ink-2); }

/* Booking box (sticky) */
.booking {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 1rem);
}
.booking .price-row { display: flex; align-items: baseline; gap: .5rem; margin-bottom: var(--sp-4); }
.booking .price-row .price { font-size: 1.8rem; }
.booking .field { margin-bottom: var(--sp-3); }
.booking .by { display: flex; align-items: center; gap: .6rem; padding: var(--sp-3) 0; margin-top: var(--sp-3); border-top: 1px solid var(--line-2); font-size: .88rem; color: var(--muted); }
.booking .by img { width: 36px; height: 36px; border-radius: var(--r-pill); }
.assurance { display: grid; gap: .5rem; margin-top: var(--sp-4); font-size: .85rem; color: var(--ink-2); }
.assurance li { display: flex; gap: .5rem; align-items: center; list-style: none; }
.assurance { padding: 0; }

/* ---- Reviews ------------------------------------------------------------- */
.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
@media (max-width: 640px) { .review-summary { grid-template-columns: 1fr; } }
.score-big { text-align: center; }
.score-big b { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--ink); }
.score-big span { color: var(--muted); font-size: .9rem; }
.bars { display: grid; gap: .4rem; }
.bar { display: grid; grid-template-columns: 70px 1fr 40px; gap: .6rem; align-items: center; font-size: .85rem; color: var(--muted); }
.bar .track { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.bar .fill { height: 100%; background: var(--gold); border-radius: var(--r-pill); }

.review { display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
.review .avatar { width: 52px; height: 52px; }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.review__head b { color: var(--ink); }
.review__head .when { color: var(--muted); font-size: .82rem; }
.review h4 { font-family: var(--font-sans); font-size: 1rem; margin-top: .4rem; }
.review p { margin-top: .25rem; }
.review .reply { margin-top: var(--sp-3); margin-left: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .92rem; }

/* Interactive star input */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 0; }
.star-input label { font-size: 1.7rem; color: var(--line); cursor: pointer; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }

/* ---- Forms / auth -------------------------------------------------------- */
.field { display: grid; gap: .35rem; margin-bottom: var(--sp-4); }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field .hint { color: var(--muted); font-size: .8rem; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.auth-wrap { max-width: 440px; margin: var(--sp-7) auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .82rem; margin: var(--sp-4) 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.social-row { display: grid; gap: .6rem; }

/* ---- Profile heroes (agency / guide / destination) ----------------------- */
.profile-hero { position: relative; }
.profile-hero__cover { aspect-ratio: 32 / 9; background: var(--surface-3); }
.profile-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero__body { display: flex; gap: var(--sp-5); align-items: flex-end; margin-top: -56px; position: relative; flex-wrap: wrap; }
.profile-hero__body .avatar, .profile-hero__body .agency-logo { width: 112px; height: 112px; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-hero__info { flex: 1; padding-bottom: .5rem; min-width: 240px; }
.profile-hero__info h1 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.profile-hero__actions { display: flex; gap: .6rem; padding-bottom: .5rem; }

.stat-row { display: flex; gap: var(--sp-6); flex-wrap: wrap; margin: var(--sp-4) 0; }
.stat-row div b { font-family: var(--font-display); font-size: 1.3rem; display: block; }
.stat-row div span { color: var(--muted); font-size: .82rem; }

/* ---- Destination tiles --------------------------------------------------- */
.dest-tile { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; display: block; }
.dest-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dest-tile:hover img { transform: scale(1.06); }
.dest-tile__cap { position: absolute; inset: auto 0 0 0; padding: var(--sp-4); color: #fff; background: linear-gradient(transparent, rgba(8,20,30,.85)); }
.dest-tile__cap b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.dest-tile__cap span { font-size: .82rem; opacity: .9; }

/* ---- Blog ---------------------------------------------------------------- */
.post-hero { max-width: 760px; margin: 0 auto; }
.post-hero h1 { margin: .5rem 0; }
.byline { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .9rem; }
.byline .avatar { width: 40px; height: 40px; }
.post-cover { border-radius: var(--r-lg); overflow: hidden; margin: var(--sp-5) 0; max-height: 460px; }
.post-cover img { width: 100%; object-fit: cover; }
.post-body { max-width: 720px; margin: 0 auto; font-size: 1.06rem; }
.post-body > * + * { margin-top: var(--sp-4); }
.post-body h2 { margin-top: var(--sp-6); }
.post-body blockquote { border-left: 4px solid var(--brand); padding: .5rem 0 .5rem 1.2rem; color: var(--ink); font-style: italic; font-size: 1.15rem; }
.post-body img { border-radius: var(--r); margin-block: var(--sp-4); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---- Newsletter / CTA band ---------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--brand-700), var(--brand)); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem,5vw,3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin: .5rem auto var(--sp-4); }
.cta-band form { display: flex; gap: .5rem; max-width: 440px; margin: 0 auto; }
.cta-band input { flex: 1; border: none; border-radius: var(--r-pill); padding: .8rem 1.1rem; }
@media (max-width: 480px) { .cta-band form { flex-direction: column; } }

/* ---- Trust / how-it-works ------------------------------------------------ */
.feature { text-align: center; padding: var(--sp-4); }
.feature .ico { width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto var(--sp-3); }
.feature h3 { font-family: var(--font-sans); font-size: 1.05rem; }
.feature p { font-size: .92rem; }

/* ---- Account dashboard --------------------------------------------------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; } }
.dash-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-3); display: grid; gap: .15rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.dash-nav a { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; }
.dash-nav a:hover { background: var(--surface-3); color: var(--ink); }
.dash-nav a[aria-current] { background: var(--brand-50); color: var(--brand-700); }
.stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
@media (max-width: 640px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
.stat-card b { font-family: var(--font-display); font-size: 1.8rem; display: block; }
.stat-card span { color: var(--muted); font-size: .85rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.status { padding: .2rem .6rem; border-radius: var(--r-pill); font-size: .76rem; font-weight: 700; }
.status--ok { background: #dcfce7; color: #166534; }
.status--pending { background: #fef3c7; color: #92400e; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cbd5e1; margin-top: var(--sp-8); }
.site-footer .container { padding-block: var(--sp-7) var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-3); }
.site-footer a { color: #cbd5e1; display: block; padding: .25rem 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo b { color: var(--accent); }
.footer-brand p { color: #94a3b8; margin-top: var(--sp-3); max-width: 34ch; font-size: .92rem; }
.socials { display: flex; gap: .6rem; margin-top: var(--sp-4); }
.socials a { width: 38px; height: 38px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--sp-6); padding-top: var(--sp-4); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #94a3b8; font-size: .85rem; }

/* ---- Single post: article + sticky sidebar ------------------------------- */
.post-shell { width: 100%; max-width: 1100px; margin-inline: auto; padding: var(--sp-5) var(--sp-4) var(--sp-7); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-7); align-items: start; }
.post-main { min-width: 0; }                 /* prevents long content from overflowing the grid */
.post-main .post-hero { text-align: left; margin: 0; max-width: none; }
.post-main .post-hero .byline { justify-content: flex-start; }
.post-main .post-body { margin-inline: 0; }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr; } }

.post-aside { display: grid; gap: var(--sp-5); position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 980px) { .post-aside { position: static; } }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
.widget h3 { font-size: 1rem; margin-bottom: var(--sp-3); }

.rel-item { display: grid; grid-template-columns: 64px 1fr; gap: .7rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line-2); }
.rel-item:first-of-type { border-top: none; padding-top: 0; }
.rel-item img { width: 64px; height: 56px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-3); }
.rel-item b { font-size: .9rem; line-height: 1.3; color: var(--ink); display: block; }
.rel-item span { font-size: .74rem; color: var(--muted); }
.rel-item:hover b { color: var(--brand); }

.cat-list { list-style: none; padding: 0; display: grid; gap: .1rem; }
.cat-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .4rem; border-radius: var(--r-sm); color: var(--ink-2); }
.cat-list a:hover { background: var(--surface-3); color: var(--ink); }
.cat-list .count { color: var(--muted); font-size: .85rem; }

.ad-slot {
  min-height: 260px; display: grid; place-items: center; border-radius: var(--r);
  border: 1px dashed var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 10px, var(--surface-2) 10px, var(--surface-2) 20px);
}
.widget--cta { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; border: none; }
.widget--cta h3, .widget--cta p { color: #fff; }
.widget--cta p { font-size: .9rem; opacity: .92; margin: .25rem 0 .9rem; }

/* ---- Admin wide layout --------------------------------------------------- */
/* The back office fills the screen (like Tourister) instead of the 1180px cap. */
.admin .site-header .container { max-width: 1760px; }
.admin-main {
  width: 100%; max-width: 1760px; margin-inline: auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 3.5rem;
}
.admin .dash { grid-template-columns: 250px 1fr; gap: var(--sp-5); }
.admin .stat-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 820px) { .admin .dash { grid-template-columns: 1fr; } }

/* ---- Utilities ----------------------------------------------------------- */
.flex { display: flex; gap: var(--sp-3); align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-2)}.mt-3{margin-top:var(--sp-3)}.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}.mt-6{margin-top:var(--sp-6)}
.mb-0{margin-bottom:0}.mb-3{margin-bottom:var(--sp-3)}.mb-4{margin-bottom:var(--sp-4)}
.text-sm{font-size:.88rem}.text-lg{font-size:1.1rem}.bold{font-weight:700}
.hide { display: none !important; }
.divider-line { height: 1px; background: var(--line); border: none; margin: var(--sp-6) 0; }
