/* TripTrust design system
   Type: Plus Jakarta Sans. Brand: deep teal (trust). Accent: saffron-coral (warmth, CTAs).
   Patterns: TourRadar-style trust strip + pill search, Airbnb-style image-first cards. */

:root {
  --bg: #ffffff;
  --surface: #f6f6f3;
  --card: #ffffff;
  --ink: #1a1d1c;
  --ink-2: #3d4441;
  --muted: #6b726f;
  --line: #e7e6e1;
  --brand: #0e6b5c;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ed;
  --accent: #f26b3a;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee7;
  --star: #f2a516;
  --warn: #b43d22;
  --warn-soft: #fbe9e3;
  --ok: #0e6b5c;
  --hero-a: #e9f4f0;
  --hero-b: #fdf1e9;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 20px rgba(20, 30, 25, .07);
  --shadow-lg: 0 12px 40px rgba(20, 30, 25, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --grad: linear-gradient(135deg, #ff7a3d 0%, #ff3d77 50%, #7b5cff 100%);
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111413; --surface: #171b19; --card: #1c211f; --ink: #eef1ef; --ink-2: #cdd3d0; --muted: #98a19d; --line: #2a302d;
    --brand: #3fb89f; --brand-ink: #08130f; --brand-soft: #173029; --accent: #ff8a5b; --accent-ink: #1a0d06; --accent-soft: #35211a;
    --warn: #ff9b80; --warn-soft: #3a211b; --ok: #3fb89f; --hero-a: #13231e; --hero-b: #241a15;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lg: 0 12px 40px rgba(0,0,0,.45);
  }
}

:root { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: .5em 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- top chrome ---------- */
.trustbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; padding: 7px 16px; font-size: 12.5px; color: var(--ink-2); background: var(--surface); border-bottom: 1px solid var(--line); }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { position: relative; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
#nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
nav .links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav .links a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
nav .links a:hover { background: var(--surface); text-decoration: none; }
nav .links a.active { background: var(--ink); color: var(--bg); }
nav .right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.userchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.userchip small { color: var(--muted); font-weight: 500; }

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 72px; min-height: 60vh; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head p { margin: 4px 0 0; }
.see-all { font-weight: 700; font-size: 14px; white-space: nowrap; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head p { margin: 6px 0 0; max-width: 640px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.stack > * + * { margin-top: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 28px; padding: 64px 24px 56px; text-align: center; background: radial-gradient(1200px 400px at 10% 0%, var(--hero-a), transparent 60%), radial-gradient(900px 400px at 100% 100%, var(--hero-b), transparent 60%), var(--surface); overflow: hidden; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); max-width: 820px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 620px; margin: 16px auto 28px; }
.searchpill { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; padding: 8px 8px 8px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); }
.searchpill svg { flex-shrink: 0; color: var(--muted); }
.searchpill input { border: 0; background: transparent; padding: 10px 4px; font-size: 16px; box-shadow: none; }
.searchpill input:focus { outline: none; box-shadow: none; }
.searchpill button { border-radius: 999px; padding: 12px 24px; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.hero-stats b { color: var(--ink); font-size: 18px; margin-right: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--ink-2); text-decoration: none; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.pad-lg { padding: 28px; }
.card + .card { margin-top: 14px; }
.grid > .card, .grid-3 > .card { margin-top: 0; }
.tripcard { display: block; color: inherit; }
.tripcard:hover { text-decoration: none; }
.tripcard .media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tripcard .media > svg { display: block; width: 100%; height: 100%; transition: transform .4s ease; }
.tripcard:hover .media > svg { transform: scale(1.04); }
.tripcard .body { padding: 12px 2px 0; }
.tripcard h3 { margin: 2px 0 4px; }
.tripcard .meta { font-size: 13.5px; color: var(--muted); }
.tripcard .price { margin-top: 6px; font-size: 14.5px; }
.tripcard .price b { font-size: 16px; }
.overlay-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: #1a1d1c; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
.overlay-badge svg { color: var(--star); }
.overlay-badge.right { left: auto; right: 12px; }
.overlay-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row.between { justify-content: space-between; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.rating svg { color: var(--star); }
.rating .count { color: var(--muted); font-weight: 500; }
.seats { height: 5px; border-radius: 9px; background: var(--line); overflow: hidden; margin-top: 8px; }
.seats > i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }

/* badges / pills */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.solid { background: var(--ink); color: var(--bg); border-color: transparent; }

/* avatars */
.avatar { --s: 36px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .38); color: #fff; letter-spacing: .02em; }
.avatar.lg { --s: 64px; }
.avatar.xl { --s: 88px; border: 4px solid var(--bg); }
.avatar.sq { border-radius: 16px; }

/* story cards */
.story { display: flex; flex-direction: column; gap: 10px; }
.story .who { display: flex; align-items: center; gap: 10px; }
.story .who .name { font-weight: 700; font-size: 14px; }
.story .who .sub { font-size: 12.5px; color: var(--muted); }
.story h3 { font-size: 16.5px; }
.story .text { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.story .scores { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.story .scores b { color: var(--ink); }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .off { color: color-mix(in srgb, var(--muted) 40%, transparent); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); }
.step .num { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-weight: 800; margin-bottom: 14px; color: var(--brand); }
.step p { color: var(--ink-2); margin: 6px 0 0; font-size: 14px; }

/* trip / agency detail */
.banner { position: relative; height: clamp(200px, 32vw, 360px); border-radius: 24px; overflow: hidden; }
.banner > svg { width: 100%; height: 100%; display: block; }
.detail-title { margin: 22px 0 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 14.5px; }
.facts span { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { color: var(--muted); }
.bookbox { position: sticky; top: 92px; box-shadow: var(--shadow-lg); border-radius: 22px; }
.bookbox .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.note { font-size: 13px; color: var(--muted); background: var(--surface); padding: 10px 12px; border-radius: var(--radius-sm); display: flex; gap: 8px; }
.note svg { flex-shrink: 0; color: var(--brand); margin-top: 1px; }
.agency-head { display: flex; align-items: flex-start; gap: 18px; margin-top: -44px; padding: 0 24px; position: relative; flex-wrap: wrap; }
.agency-head .titles { padding-top: 54px; }
.scorepanel { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.bigscore { text-align: center; }
.bigscore .n { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px 1fr 34px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.bar .track { height: 7px; background: var(--line); border-radius: 9px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--brand); border-radius: 9px; }
.bar b { text-align: right; }
aside .scorepanel { grid-template-columns: 1fr; gap: 18px; }
aside .bar { grid-template-columns: 96px 1fr 30px; }
@media (max-width: 560px) { .scorepanel { grid-template-columns: 1fr; } }

/* agency mini card */
.agencycard { display: flex; gap: 14px; align-items: center; color: inherit; }
.agencycard:hover { text-decoration: none; }
.agency-tile { display: flex; flex-direction: column; gap: 12px; color: inherit; transition: box-shadow .2s, transform .2s; }
.agency-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }

/* reputation / trust panel */
.trustpanel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 14px 16px; }
.trustpanel.bad { background: var(--warn-soft); border-color: transparent; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tile .v svg { color: var(--star); }
.tile .v { font-size: 20px; font-weight: 800; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.tile.bad .v { color: var(--warn); }
.flagline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--warn); margin-top: 10px; }

/* bookings */
.booking { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; }
.booking .thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.booking .thumb svg { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) { .booking { grid-template-columns: 1fr; } .booking .thumb { aspect-ratio: 16/7; } }

/* forms */
form label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--brand); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
button, .btn { font: inherit; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s, transform .05s; }
button:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--brand); color: var(--brand-ink); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
button.ghost:hover { background: var(--surface); }
button.danger { background: transparent; color: var(--warn); border-color: var(--warn-soft); }
button.block, .btn.block { width: 100%; }
button.sm, .btn.sm { padding: 7px 14px; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
details { margin-top: 12px; }
details > summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '+'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); font-size: 14px; }
details[open] > summary::before { content: '−'; }

/* star rating input */
.starinput { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.starinput input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.starinput label { margin: 0; cursor: pointer; color: color-mix(in srgb, var(--muted) 40%, transparent); font-size: 28px; line-height: 1; padding: 0 1px; transition: color .1s, transform .1s; }
.starinput label:hover { transform: scale(1.12); }
.starinput input:checked ~ label, .starinput label:hover, .starinput label:hover ~ label { color: var(--star); }
.starinput input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.ratinggrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 20px; }

/* auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--card); min-height: 540px; }
.auth .art { position: relative; }
.auth .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth .art .quote { position: absolute; left: 28px; right: 28px; bottom: 28px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.auth .form { padding: 40px clamp(20px, 4vw, 48px); }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth .art { min-height: 200px; } }
.demo-users { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.demo-users button { padding: 5px 12px 5px 5px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.demo-users button:hover { background: var(--surface); }
.demo-users .avatar { --s: 26px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 26px 0 4px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.segmented { display: inline-flex; padding: 4px; background: var(--surface); border-radius: 999px; border: 1px solid var(--line); }
.segmented label { margin: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.segmented input { display: none; }
.segmented input:checked + span { color: var(--bg); }
.segmented label:has(input:checked) { background: var(--ink); color: var(--bg); }

/* empty state */
.empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* footer + toast */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; }
.small-brand { font-size: 15px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .trustbar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .top-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  nav { flex-basis: 100%; order: 3; }
  nav .right { position: absolute; right: 16px; top: 10px; }
  .userchip .uname { display: none; }
  main { padding: 20px 16px 56px; }
  .hero { padding: 40px 16px; border-radius: 22px; }
  .searchpill { padding-left: 14px; }
  .searchpill button { padding: 11px 16px; }
  .agency-head { padding: 0 8px; }
}

/* =========================================================
   Gen Z layer: stories, vibes, bento, tab bar, stickers.
   Patterns from Instagram/Zepto/Swiggy-era Indian apps:
   thumb-first nav, emoji filters, short-video-style stories,
   bold display type, gradient energy on a calm base.
   ========================================================= */
h1, h2, .b-n, .bookbox .price, .bigscore .n { font-family: var(--display); letter-spacing: -.025em; }
h2 { font-size: 24px; }
.section.tight { margin-top: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13px; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero { padding: 56px 24px 40px; background: radial-gradient(700px 320px at 12% 0%, color-mix(in srgb, #ff7a3d 22%, transparent), transparent 70%), radial-gradient(700px 360px at 95% 100%, color-mix(in srgb, #7b5cff 20%, transparent), transparent 70%), radial-gradient(600px 300px at 50% 50%, var(--hero-a), transparent 70%), var(--surface); }
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; line-height: 1.02; }
.hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.searchpill button { background: var(--grad); color: #fff; }

.vibes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.vibes.left { justify-content: flex-start; }
.vibe { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 14px; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.vibe span { font-size: 17px; line-height: 1; }
.vibe:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.vibe.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* story rail */
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.ring { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--ink); scroll-snap-align: start; font-weight: 600; }
.ring:hover { filter: none; }
.ring-img { position: relative; width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: var(--grad); display: block; }
.ring.verified .ring-img { background: conic-gradient(from 200deg, #0e6b5c, #3fb89f, #b9f3df, #0e6b5c); }
.ring-img > svg { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); display: block; }
.ring-av { position: absolute; right: -2px; bottom: -2px; }
.ring-av .avatar { --s: 28px; border: 2.5px solid var(--bg); }
.ring-name { font-size: 12.5px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* story viewer */
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: grid; place-items: center; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sv { position: relative; width: min(420px, 100vw); height: min(760px, 100dvh); border-radius: 22px; overflow: hidden; background: #111; color: #fff; }
@media (max-width: 480px) { .sv { border-radius: 0; } }
.sv-art, .sv-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), transparent 25%, transparent 40%, rgba(0,0,0,.75)); pointer-events: none; }
.sv-bars { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv-bars i.done b { width: 100%; }
.sv-bars i.now b { animation: grow 7s linear forwards; }
@keyframes grow { to { width: 100%; } }
.sv-top { position: absolute; z-index: 3; top: 26px; left: 14px; right: 8px; display: flex; align-items: center; justify-content: space-between; }
.sv-top .who { display: flex; gap: 10px; align-items: center; } .sv-top .name { font-weight: 700; } .sv-top .sub { font-size: 12.5px; opacity: .85; }
.sv-x { background: transparent; color: #fff; padding: 8px; }
.sv-tap { position: absolute; z-index: 2; top: 80px; bottom: 45%; width: 40%; background: transparent; border: 0; padding: 0; border-radius: 0; }
.sv-tap.prev { left: 0; } .sv-tap.next { right: 0; width: 60%; }
.sv-tap:active { transform: none; }
.sv-card { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 14px; background: rgba(20,20,20,.62); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 16px; }
.sv-card h3 { font-family: var(--display); font-size: 20px; margin: 10px 0 6px; }
.sv-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; opacity: .92; max-height: 9.5em; overflow: auto; }
.sv-card .badge { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
.sv-card .stars .off { color: rgba(255,255,255,.3); }

/* trip cards */
.tripwrap { position: relative; }
.tripcard .media { border-radius: 22px; }
.save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.28); color: #fff; backdrop-filter: blur(6px); }
.save svg { transition: transform .2s; }
.save.on { color: #ff3d77; background: #fff; }
.save.on svg { fill: currentColor; transform: scale(1.1); }
.daypill { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.overlay-badge.bottom { top: auto; bottom: 12px; left: auto; right: 12px; background: var(--ink); color: var(--bg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.hot { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tripcard .seats > i { background: var(--grad); }

/* home trips scroll sideways on phones */
@media (max-width: 760px) {
  .hscroll.grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .hscroll.grid > * { flex: 0 0 78%; scroll-snap-align: start; }
  .scrollx { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; }
  .vibes.left { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; }
  .scrollx > *, .vibes.left > * { flex-shrink: 0; }
}

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.b { border-radius: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
a.b:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
a.b { transition: transform .2s, box-shadow .2s; }
.b p { margin: 0; color: var(--ink-2); font-size: 14px; }
.b-k { font-weight: 800; font-size: 14px; }
.b-n { font-size: 56px; font-weight: 800; line-height: 1; }
.b-n.sm { font-size: 40px; } .b-n span { font-size: 22px; color: var(--muted); }
.b-big { grid-column: span 2; grid-row: span 2; background: radial-gradient(400px 260px at 100% 0%, color-mix(in srgb, #7b5cff 18%, transparent), transparent 70%), var(--surface); justify-content: flex-end; }
.b-big .b-n { font-size: 96px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-big p { font-size: 16px; max-width: 420px; }
.b-accent { background: var(--grad); color: #fff; border-color: transparent; }
.b-accent p { color: rgba(255,255,255,.9); }
.b-brand { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.b-brand p { color: color-mix(in srgb, var(--brand-ink) 85%, transparent); }
.b-trip { grid-column: 1 / -1; padding: 0; min-height: 190px; color: #fff; }
.b-trip > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); display: flex; flex-direction: column; gap: 2px; }
.b-over b { font-family: var(--display); font-size: 20px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .b-big { grid-row: span 1; } .b-big .b-n { font-size: 72px; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr 1fr; gap: 10px; } .b { padding: 16px; border-radius: 20px; } .b-big, .b-trip { grid-column: 1 / -1; } .b-n { font-size: 40px; } }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 32px; border-radius: 28px; background: var(--ink); color: var(--bg); }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin: 6px 0 0; }
.btn.light { background: var(--bg); color: var(--ink); }

/* trips page sort */
.sortbar { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.sortbar a { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.sortbar a:hover { text-decoration: none; }
.sortbar a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* trip detail */
.banner-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.banner-actions .save { position: static; }
.iconbtn { width: 38px; height: 38px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.28); color: #fff; backdrop-filter: blur(6px); }
.sharerow { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.sharerow > * { font-size: 14px; padding: 10px 14px; white-space: nowrap; }
.btn.wa { background: #25d366; color: #06301a; }
.mobilebar { display: none; }

/* bottom tab bar (phones) */
#tabbar { display: none; }
@media (max-width: 760px) {
  #nav .links { display: none; }
  .trustbar { display: none; }
  #tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  #tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
  #tabbar a:hover { text-decoration: none; }
  #tabbar a.active { color: var(--ink); }
  #tabbar a.fab { margin-top: -18px; }
  #tabbar .fab-in { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255,61,119,.35); }
  main { padding-bottom: 110px; }
  .foot { padding-bottom: 70px; }
  #toast { bottom: 86px; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 39; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mobilebar b { font-family: var(--display); font-size: 20px; }
  .mobilebar button { background: var(--grad); color: #fff; padding: 12px 22px; }
  main:has(.mobilebar) { padding-bottom: 180px; }
  .bookbox { position: static; }
  .hero { padding: 36px 16px 28px; text-align: left; }
  .hero .vibes { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .hero .vibe { flex-shrink: 0; }
  .hero p.lead { margin-left: 0; }
  .page-head .sortbar { width: 100%; } .sortbar a { flex: 1; text-align: center; }
}
@media (max-width: 640px) { #nav { flex-basis: auto; order: 0; } }
@media (prefers-reduced-motion: reduce) { *, .sv-bars i.now b { animation-duration: .01s !important; transition: none !important; } }

/* ---------- Insta Studio ---------- */
.igbtn { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5); color: #fff; border: 0; }
.story .igbtn { align-self: flex-start; }
.studio { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.studio-preview { position: relative; border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; width: 100%; position: sticky; top: 92px; }
.studio-preview.post { aspect-ratio: 4 / 5; }
.studio-preview canvas { width: 100%; height: 100%; display: block; }
.studio-busy { position: absolute; inset: 0; display: none; place-items: center; background: color-mix(in srgb, var(--bg) 50%, transparent); font-weight: 700; }
.studio-preview.busy .studio-busy { display: grid; }
.studio-controls .segmented { display: flex; } .studio-controls .segmented label { flex: 1; text-align: center; }
.studio-controls .vibes { margin-top: 0; }
.studio-controls .vibe { font-family: inherit; }
.studio-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.studio-actions button { padding: 14px 16px; }
.captions { display: grid; gap: 8px; }
.caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; text-align: left; font-weight: 500; font-size: 14.5px; line-height: 1.45; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.caption svg { flex-shrink: 0; color: var(--muted); margin-top: 2px; }
.caption:hover { border-color: var(--ink-2); filter: none; }
.tags-line { margin-top: 8px; color: var(--brand); font-weight: 600; font-size: 13.5px; }
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; gap: 22px; }
  .studio-preview { position: relative; top: 0; max-width: 340px; }
  .studio-preview.post { max-width: 380px; }
}
