/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Ink */
  --ink: #1C1C1C;
  --ink-s: #4A4A4A;
  --ink-m: #767676;

  /* Surface */
  --bg: #F7F5F2;
  --white: #FFFFFF;
  --border: #EAEAEA;

  /* Brand accent — actions, links, active states */
  --accent: #243B6B;
  --accent-mid: #35548F;
  --accent-tint: #E3E7F0;
  --sappan: #9E3B32;
  --blush: #F2C8C4;
  --red: #E24B4A;

  /* Category placeholders — neutral only, colour comes from photography */
  --cat-default: #E8E4DF;
  --cat-default-deep: #D0CCC7;

  /* Semantic */
  --warn-surface: #FDF6E3;
  --warn-icon: #6B5100;
  --warn-ink: #6B5100;
  --alert-surface: #FDF0EE;
  --alert-ink: #B3261E;
  --halal-surface: #E6F5E6;
  --halal-border: #A8D8A8;
  --halal-ink: #2D7A2D;

  /* Type scale */
  --t-xs: 11px;      /* labels, eyebrows, metadata */
  --t-sm: 12px;      /* UI text, captions, secondary */
  --t-base: 14px;    /* body copy */
  --t-lg: 16px;      /* card titles, emphasis, form inputs */
  --t-xl: 20px;      /* screen titles */
  --t-display: clamp(26px, 8vw, 34px); /* hero only */

  --wordmark-tracking: 0.28em;

  --font-serif: 'Literata', 'Noto Serif KR', Georgia, serif;
  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Bottom nav geometry. The nav floats, so nothing can assume the
     viewport bottom is free real estate — anything that sits at the
     bottom of a screen reserves --nav-clear, whether it scrolls or not. */
  --nav-h: 54px;                    /* the pill itself */
  --nav-gap: 16px;                  /* pill to viewport bottom */
  --nav-clear: calc(var(--nav-gap) + var(--nav-h) + var(--safe-bottom) + 12px);

  /* Photo scrim. Every card and hero that lays text over a photograph uses
     this one ramp, so legibility doesn't depend on which photo landed there.
     Tuned so white text clears WCAG AA (4.5:1) over a blown-out white photo
     across the bottom ~45% of the frame, which covers every title we lay on a
     photo — down to the Saved card, whose two lines of text sit highest in
     frame. The shallower ramps this replaced failed on any pale image. */
  --scrim-photo: linear-gradient(to top,
    rgba(8,8,8,0.82) 0%,
    rgba(8,8,8,0.68) 36%,
    rgba(8,8,8,0.32) 60%,
    rgba(8,8,8,0.10) 78%,
    rgba(8,8,8,0) 100%);

  --cloud: 'https://res.cloudinary.com/dyd76m3ni/image/upload/f_auto,q_auto';
}
html, body { height: 100%; overflow: hidden; background: var(--bg); font-family: var(--font-sans); color: var(--ink); word-break: keep-all; overflow-wrap: break-word; }
button { font-family: var(--font-sans); border: none; background: none; cursor: pointer; }
a { text-decoration: none; color: inherit; }
input, textarea { font-family: var(--font-sans); }

/* ── APP SHELL ─────────────────────────────────────────────── */
#app { width: 100%; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; position: relative; }

/* ── SCREENS ───────────────────────────────────────────────── */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--bg); }
.screen.active { display: flex; }
.screen-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: var(--nav-clear); }
.screen-scroll::-webkit-scrollbar { display: none; }

/* ── SPLASH ────────────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }

/* ── FRONTISPIECE ──────────────────────────────────────────── */
/* Sits under the splash from load (z-index below splash, above the
   app shell and its floating nav), so it's simply what's revealed
   once the splash fades — no extra open/close choreography needed. */
#frontispiece {
  position: fixed; inset: 0; z-index: 500;
  overflow: hidden;
  transition: opacity 0.5s ease;
}
#frontispiece.hide { opacity: 0; pointer-events: none; }
.fp-photo {
  position: absolute; inset: -6%;
  background-image: url('https://res.cloudinary.com/dyd76m3ni/image/upload/f_auto,q_auto/v1785057187/L9430167_hox1uh.jpg');
  background-size: cover; background-position: center 30%;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.fp-veil { position: absolute; inset: 0; background: var(--scrim-photo); }
.fp-veil-top {
  position: absolute; top: 0; left: 0; right: 0; height: 110px; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
}
.fp-top {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); left: 22px; right: 22px;
  display: flex; justify-content: space-between; z-index: 2;
}
.fp-eyebrow { font-size: 8.5px; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.fp-mid {
  position: absolute; left: 0; right: 0; bottom: 224px; z-index: 2;
  padding: 0 26px; text-align: center;
  transition: opacity 0.22s ease;
}
.fp-mid.dim { opacity: 0; }
.fp-word { font-family: var(--font-serif); font-size: 32px; font-style: italic; color: #fff; line-height: 1; }
.fp-hair { width: 40px; height: 0.5px; background: var(--accent); margin: 12px auto; opacity: 0.7; }
.fp-one { font-size: var(--t-base); color: rgba(255,255,255,0.92); line-height: 1.7; max-width: 27ch; margin: 0 auto; font-weight: 300; }
.fp-bot {
  position: absolute; left: 22px; right: 22px; bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); z-index: 2;
  transition: opacity 0.22s ease;
}
.fp-bot.dim { opacity: 0; }
.fp-choose { font-size: 9px; letter-spacing: 2.2px; text-transform: uppercase; color: rgba(255,255,255,0.55); text-align: center; margin-bottom: 12px; }
.fp-city-row { display: flex; gap: 10px; }
.fp-city-btn {
  flex: 1; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.4); border-radius: 9px; padding: 15px 8px; text-align: center; cursor: pointer;
  transition: transform 0.12s ease;
}
.fp-city-btn:active { transform: scale(0.97); }
.fp-city-name { font-family: var(--font-serif); font-size: var(--t-lg); color: #fff; }
.fp-city-sub { font-size: 8.5px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 3px; }
.fp-fine { font-size: 8px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,0.4); text-align: center; margin-top: 14px; }
.fp-toast {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,6,0.98); opacity: 0; pointer-events: none; transition: opacity 0.32s ease;
}
.fp-toast.show { opacity: 1; }
.fp-toast-k { font-size: 9px; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(255,255,255,0.5); text-align: center; }
.fp-toast-t { font-family: var(--font-serif); font-size: 22px; color: #fff; margin-top: 10px; text-align: center; }

/* ── BOTTOM NAV ────────────────────────────────────────────── */
#bottom-nav {
  position: fixed; bottom: calc(var(--nav-gap) + var(--safe-bottom));
  left: 50%; transform: translateX(-50%);
  background: rgba(16,26,46,0.5);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  display: flex; align-items: center;
  padding: 0 10px; height: var(--nav-h);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  z-index: 100;
}
#bottom-nav::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0) 55%);
  mix-blend-mode: overlay; pointer-events: none;
}
#bottom-nav::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.5), inset 0 -6px 10px -6px rgba(0,0,0,0.35);
}
.nav-item { display: flex; align-items: center; justify-content: center; padding: 15px 15px; position: relative; z-index: 1; cursor: pointer; }
.nav-item svg { width: 21px; height: 21px; stroke: rgba(247,245,242,0.72); color: rgba(247,245,242,0.72); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: all 0.2s; }
.nav-item span { display: none; }
.nav-item.active svg { stroke: var(--bg); color: var(--bg); }

/* ── TOP BAR ───────────────────────────────────────────────── */
.top-bar { background: var(--white); padding: 12px 16px; border-bottom: 0.5px solid var(--border); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.top-bar-title { font-size: var(--t-lg); font-weight: 500; color: var(--ink); }
.top-bar-sub { font-size: var(--t-xs); color: var(--ink-m); margin-top: 1px; }
.back-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.back-btn svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.8; }

/* ── HOME SCREEN ───────────────────────────────────────────── */
.home-hero {
  height: 56dvh; min-height: 340px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.home-hero-bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.05) translate(-1%, -0.5%); } }
.home-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,8,8,0.5) 0%, transparent 24%),
    var(--scrim-photo);
}
.home-hero-content { position: relative; z-index: 2; padding: 0 20px 30px; width: 100%; }
.home-hero-season { font-size: var(--t-xs); letter-spacing: 2.2px; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 8px; }
.home-hero-title { font-family: var(--font-serif); font-size: var(--t-display); color: #fff; line-height: 1.15; }
.home-hero-caption { font-size: var(--t-sm); font-style: italic; color: rgba(255,255,255,0.85); margin-top: 8px; line-height: 1.5; max-width: 82%; }

.home-greet {
  position: absolute; z-index: 2;
  top: calc(16px + env(safe-area-inset-top, 0px)); left: 20px; right: 20px;
}
.home-greet-name { font-size: var(--t-sm); font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,0.88); }
.home-greet-sub { font-size: var(--t-xs); font-style: italic; color: rgba(255,255,255,0.85); margin-top: 3px; }

.home-section { padding: 24px 20px 28px; background: var(--bg); }
.home-section-label { font-size: var(--t-xs); font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-m); margin-bottom: 14px; }

.trip-placeholder { border: 0.5px dashed var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.trip-placeholder svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; display: block; margin: 0 auto 6px; }
.trip-placeholder p { font-size: var(--t-xs); color: var(--ink-s); line-height: 1.5; }

.trip-card-active { background: var(--white); border: 0.5px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.trip-card-lbl { font-size: var(--t-xs); letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; font-weight: 500; }
.trip-card-name { font-family: var(--font-serif); font-size: var(--t-lg); color: var(--ink); margin-bottom: 8px; }
.trip-card-meta { display: flex; gap: 16px; }
.trip-card-meta-k { font-size: var(--t-xs); color: var(--ink-m); }
.trip-card-meta-v { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }

.hobby-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 12px; }
.hobby-chips::-webkit-scrollbar { display: none; }
.hobby-chip { padding: 5px 12px; border-radius: 14px; border: 0.5px solid var(--border); font-size: var(--t-xs); color: var(--ink-s); background: var(--white); white-space: nowrap; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.hobby-chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.dest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Home: full-bleed gallery row */
#home-chips { gap: 18px; margin-bottom: 18px; }
#home-chips .hobby-chip { padding: 4px 0 7px; border: none; border-bottom: 1.5px solid transparent; border-radius: 0; background: transparent; font-size: var(--t-sm); color: var(--ink-m); }
#home-chips .hobby-chip.active { background: transparent; color: var(--ink); border-bottom-color: var(--ink); }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-lead { grid-column: 1 / -1; position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; }
.feat-lead-img { height: 210px; position: relative; }
.feat-lead-img .dest-card-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.feat-lead::after { content: ''; position: absolute; inset: 0; background: var(--scrim-photo); }
.feat-lead-txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.feat-lead-name { font-family: var(--font-serif); font-size: var(--t-xl); color: #fff; line-height: 1.2; }
.feat-lead-sub { font-size: var(--t-xs); font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 4px; }

.feat-grid .dest-card { border-radius: 0; overflow: visible; }
.feat-grid .dest-card-img { height: 130px; border-radius: 8px; overflow: hidden; }
.feat-grid .dest-card-img::after { display: none; }
.feat-grid .dest-card-body { padding: 9px 2px 0; background: transparent; }
.feat-grid .dest-card-name { font-family: var(--font-serif); font-size: var(--t-base); font-weight: 400; line-height: 1.3; }
.feat-grid .dest-card-sub { font-size: var(--t-xs); font-weight: 500; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-m); margin-top: 4px; }
.dest-card { border-radius: 10px; overflow: hidden; cursor: pointer; }
.dest-card-img { height: 90px; position: relative; overflow: hidden; }
.dest-card-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.dest-card-img::after { content: ''; position: absolute; inset: 0; background: var(--scrim-photo); }
.dest-card-img-tag { position: relative; z-index: 1; background: rgba(255,255,255,0.22); backdrop-filter: blur(4px); color: #fff; font-size: var(--t-xs); font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; padding: 2px 5px; border-radius: 3px; display: inline-block; margin: 5px; align-self: flex-end; }
.dest-card-img { display: flex; align-items: flex-end; }
.dest-card-body { padding: 7px 9px; background: var(--white); }
.dest-card-name { font-size: var(--t-xs); font-weight: 500; color: var(--ink); }

/* ── EXPLORE SCREEN ────────────────────────────────────────── */
.explore-header { background: var(--white); padding: 12px 16px 0; border-bottom: 0.5px solid var(--border); flex-shrink: 0; }
.explore-title { font-family: var(--font-serif); font-size: var(--t-xl); color: var(--ink); margin-bottom: 10px; }
.city-tabs { display: flex; overflow-x: auto; }
.city-tabs::-webkit-scrollbar { display: none; }
.city-tab { padding: 8px 14px; font-size: var(--t-xs); font-weight: 500; color: var(--ink-m); border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; transition: all 0.2s; }
.city-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.explore-filters { background: var(--white); padding: 9px 16px; border-bottom: 0.5px solid var(--border); flex-shrink: 0; }

.featured-card { margin: 12px 16px; border-radius: 12px; overflow: hidden; border: 0.5px solid var(--border); cursor: pointer; }
.featured-img { height: 130px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.featured-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.featured-img::after { content: ''; position: absolute; inset: 0; background: var(--scrim-photo); }
.featured-badge { position: absolute; top: 9px; left: 10px; z-index: 2; background: rgba(255,255,255,0.22); backdrop-filter: blur(4px); color: #fff; font-size: var(--t-xs); font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.featured-title { position: relative; z-index: 2; font-family: var(--font-serif); color: #fff; font-size: var(--t-lg); padding: 0 12px 10px; width: 100%; }
.featured-body { padding: 10px 12px; background: var(--white); }
.featured-body-name { font-size: var(--t-base); font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.featured-body-quote { font-size: var(--t-xs); color: var(--ink-m); margin-bottom: 6px; }
.featured-body-tags { display: flex; gap: 5px; }
.tag-pill { font-size: var(--t-xs); padding: 2px 7px; border-radius: 4px; background: var(--bg); color: var(--ink-s); }

.dest-list-item { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 0.5px solid var(--border); cursor: pointer; }
.dest-list-thumb { width: 50px; height: 50px; border-radius: 9px; flex-shrink: 0; background-size: cover; background-position: center; }
.dest-list-info { flex: 1; min-width: 0; }
.dest-list-name { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.dest-list-quote { font-size: var(--t-xs); color: var(--ink-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dest-list-chev { flex-shrink: 0; }
.dest-list-chev svg { width: 14px; height: 14px; stroke: var(--ink-m); fill: none; stroke-width: 1.8; }

/* ── DESTINATION DETAIL ────────────────────────────────────── */
#screen-detail { z-index: 50; }
.detail-hero { height: 44vw; max-height: 200px; min-height: 150px; position: relative; overflow: hidden; display: flex; align-items: flex-end; flex-shrink: 0; }
.detail-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; overflow: hidden; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: var(--scrim-photo); }
.detail-hero-content { position: relative; z-index: 2; padding: 10px 16px; width: 100%; }
.detail-hero-title { font-family: var(--font-serif); font-size: var(--t-xl); color: #fff; }
.detail-hero-sub { font-size: var(--t-xs); color: rgba(255,255,255,0.85); margin-top: 2px; }
.detail-heart-btn { position: absolute; top: 10px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); border-radius: 20px; padding: 6px 12px 6px 8px; cursor: pointer; transition: background 0.2s; border: none; }
.detail-heart-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; transition: all 0.2s; flex-shrink: 0; }
.detail-heart-btn span { font-size: var(--t-sm); color: #fff; font-family: var(--font-sans); font-weight: 500; }
.detail-heart-btn.saved svg { stroke: var(--sappan); fill: var(--sappan); }
.detail-heart-btn.saved span { color: var(--sappan); }

.detail-body { padding: 14px 16px; }
.detail-visited { display: flex; align-items: center; gap: 5px; font-size: var(--t-xs); color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.detail-visited svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 2.2; }

.detail-info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: var(--t-sm); }
.detail-info-k { color: var(--ink-m); }
.detail-info-v { font-weight: 500; color: var(--ink); text-align: right; }

.detail-alert { display: flex; align-items: flex-start; gap: 7px; background: var(--warn-surface); border-radius: 8px; padding: 8px 10px; margin: 10px 0; }
.detail-alert svg { width: 14px; height: 14px; stroke: var(--warn-icon); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 1px; }
.detail-alert span { font-size: var(--t-xs); color: var(--warn-ink); line-height: 1.45; }

.map-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; margin-bottom: 14px; }
.map-btn { padding: 9px 4px; border-radius: 8px; border: 0.5px solid var(--border); background: var(--bg); font-size: var(--t-xs); font-weight: 500; text-align: center; color: var(--ink-s); cursor: pointer; }
.map-btn svg { display: block; margin: 0 auto 3px; width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.5; }

.add-trip-btn { width: 100%; background: var(--ink); color: var(--white); border-radius: 10px; padding: 13px; font-size: var(--t-sm); font-weight: 500; text-align: center; cursor: pointer; margin-bottom: 14px; }

.detail-note { border-top: 0.5px solid var(--border); padding-top: 14px; margin-top: 4px; }
.detail-note-label { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-m); margin-bottom: 5px; }
.detail-note-text { font-size: var(--t-base); color: var(--ink); line-height: 1.6; font-style: italic; }

/* ── GALLERY OVERLAY ───────────────────────────────────────── */
#gallery-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
}
#gallery-overlay.open { display: flex; }
.gallery-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-close svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.gallery-img { width: 100%; height: 100%; object-fit: contain; }
.gallery-img-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gallery-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: var(--t-sm); color: rgba(255,255,255,0.7); }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-nav-btn svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
#gallery-prev { left: 12px; }
#gallery-next { right: 12px; }

/* ── SAVED SCREEN ──────────────────────────────────────────── */
.saved-header { padding: 14px 16px 10px; background: var(--white); border-bottom: 0.5px solid var(--border); flex-shrink: 0; }
.saved-header h1 { font-family: var(--font-serif); font-size: var(--t-xl); color: var(--ink); }
.saved-header p { font-size: var(--t-xs); color: var(--ink-m); margin-top: 3px; }

.saved-card { margin: 12px 16px 0; border-radius: 12px; overflow: hidden; border: 0.5px solid var(--border); background: var(--white); }
.saved-card-img { height: 110px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.saved-card-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.saved-card-img::after { content: ''; position: absolute; inset: 0; background: var(--scrim-photo); }
.saved-card-name { position: relative; z-index: 2; padding: 9px 12px; width: 100%; }
.saved-card-name h3 { font-family: var(--font-serif); color: #fff; font-size: var(--t-lg); }
.saved-card-name p { font-size: var(--t-xs); color: rgba(255,255,255,0.7); margin-top: 2px; }
.unsave-btn { position: absolute; top: 9px; right: 10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.unsave-btn svg { width: 13px; height: 13px; stroke: var(--sappan); fill: var(--sappan); stroke-width: 1.5; }
.saved-card-body { padding: 10px 12px; }
.saved-card-tags { display: flex; gap: 5px; margin-bottom: 8px; }
.saved-card-footer { display: flex; align-items: center; justify-content: space-between; }
.saved-card-link { font-size: var(--t-xs); color: var(--accent); font-weight: 500; cursor: pointer; }

.saved-empty { padding: 40px 20px; text-align: center; }
.saved-empty svg { width: 32px; height: 32px; stroke: var(--border); fill: none; stroke-width: 1.5; display: block; margin: 0 auto 12px; }
.saved-empty p { font-size: var(--t-sm); color: var(--ink-m); line-height: 1.6; }

/* ── MORE / TOOLBOX ────────────────────────────────────────── */
.toolbox-header { padding: 16px 16px 12px; background: var(--white); border-bottom: 0.5px solid var(--border); flex-shrink: 0; }
.toolbox-header h1 { font-family: var(--font-serif); font-size: var(--t-xl); color: var(--ink); }
.toolbox-header p { font-size: var(--t-xs); color: var(--ink-m); margin-top: 3px; }

.toolbox-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 0.5px solid var(--border); cursor: pointer; }
.toolbox-item svg.ti { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.toolbox-item.sos-row svg.ti { stroke: var(--red); }
.toolbox-item-text { flex: 1; }
.toolbox-item-name { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.toolbox-item.sos-row .toolbox-item-name { color: var(--alert-ink); }
.toolbox-item-sub { font-size: var(--t-xs); color: var(--ink-m); margin-top: 1px; }
.toolbox-item.sos-row .toolbox-item-sub { color: var(--red); }
.toolbox-item.sos-row { background: var(--alert-surface); }
.sos-badge { background: var(--alert-ink); color: #fff; font-size: var(--t-xs); font-weight: 600; padding: 2px 6px; border-radius: 3px; flex-shrink: 0; }
.toolbox-item.dim .toolbox-item-name { color: var(--ink-m); }
.toolbox-item.dim svg.ti { opacity: 0.35; }
.toolbox-chev { flex-shrink: 0; }
.toolbox-chev svg { width: 14px; height: 14px; stroke: var(--ink-m); fill: none; stroke-width: 1.8; }

/* ── RESTAURANT SCREEN ─────────────────────────────────────── */
.rest-header { padding: 12px 16px 10px; background: var(--white); border-bottom: 0.5px solid var(--border); flex-shrink: 0; }
.rest-filters { padding: 8px 16px; background: var(--white); border-bottom: 0.5px solid var(--border); display: flex; gap: 6px; overflow-x: auto; flex-shrink: 0; }
.rest-filters::-webkit-scrollbar { display: none; }
.rest-filter { padding: 4px 10px; border-radius: 14px; border: 0.5px solid var(--border); font-size: var(--t-xs); color: var(--ink-s); background: var(--white); white-space: nowrap; cursor: pointer; transition: all 0.2s; }
.rest-filter.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rest-filter.halal-chip { background: var(--halal-surface); color: var(--halal-ink); border-color: var(--halal-border); }
.rest-filter.halal-chip.active { background: var(--halal-ink); color: var(--white); }

.rest-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 0.5px solid var(--border); cursor: pointer; }
.rest-thumb { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.rest-info { flex: 1; min-width: 0; }
.rest-name { font-size: var(--t-sm); font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.rest-type { font-size: var(--t-xs); color: var(--ink-m); margin-bottom: 5px; }
.halal-badge { display: inline-block; background: var(--halal-surface); color: var(--halal-ink); font-size: var(--t-xs); font-weight: 600; padding: 1px 6px; border-radius: 3px; margin-bottom: 4px; }
.rest-links { display: flex; gap: 14px; }
.rest-link { font-size: var(--t-xs); color: var(--accent); font-weight: 500; cursor: pointer; }

/* ── ABOUT SCREEN ──────────────────────────────────────────── */
.about-top { padding: 16px 16px 12px; background: var(--bg); border-bottom: 0.5px solid var(--border); text-align: center; flex-shrink: 0; }
.about-tagline { font-size: var(--t-xs); color: var(--ink-m); margin-top: 4px; }
.about-section { padding: 14px 16px; }
.about-section-label { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-m); margin-bottom: 8px; }
.about-para { font-size: var(--t-base); color: var(--ink); line-height: 1.65; margin-bottom: 8px; }
.contributor-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 0.5px solid var(--border); }
.contributor-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--t-sm); font-weight: 500; flex-shrink: 0; }
.contributor-name { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.contributor-role { font-size: var(--t-xs); color: var(--ink-m); }
.vision-block { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.vision-text { font-size: var(--t-sm); color: var(--ink); line-height: 1.6; margin-bottom: 6px; }
.vision-link { font-size: var(--t-sm); color: var(--accent); font-weight: 500; cursor: pointer; }

/* ── COMING SOON SCREEN ────────────────────────────────────── */
.cs-photo { height: 36vw; max-height: 160px; min-height: 120px; position: relative; overflow: hidden; flex-shrink: 0; }
.cs-photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cs-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(247,245,242,0.95), transparent 65%); }
/* Doesn't scroll, so it reserves the floating nav's space itself. */
.cs-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 24px var(--nav-clear); text-align: center; }
.cs-title { font-family: var(--font-serif); font-size: var(--t-xl); color: var(--ink); margin-bottom: 6px; }
.cs-sub { font-size: var(--t-sm); color: var(--ink-m); line-height: 1.6; margin-bottom: 18px; }
.cs-email-input { width: 100%; background: var(--white); border: 0.5px solid var(--border); border-radius: 9px; padding: 11px 14px; font-size: var(--t-lg); color: var(--ink); margin-bottom: 8px; outline: none; }
.cs-email-input:focus { border-color: var(--accent); }
.cs-btn { width: 100%; background: var(--ink); color: var(--white); border-radius: 9px; padding: 12px; font-size: var(--t-sm); font-weight: 500; text-align: center; cursor: pointer; }
.cs-sent { font-size: var(--t-sm); color: var(--accent); margin-top: 8px; display: none; }

/* ── EMAIL GATE ────────────────────────────────────────────── */
#gate-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5);
  display: none; align-items: flex-end;
  opacity: 0; transition: opacity 0.3s ease;
}
#gate-overlay.open { display: flex; }
#gate-overlay.visible { opacity: 1; }
.gate-sheet {
  width: 100%; max-height: 92vh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#gate-overlay.visible .gate-sheet { transform: translateY(0); }
.gate-hero-photo {
  height: 38vw; max-height: 170px; min-height: 130px;
  position: relative; overflow: hidden;
  transition: height 0.3s ease, min-height 0.3s ease;
}
/* Hide hero photo when keyboard is open to prevent view shift */
.gate-sheet.keyboard-open .gate-hero-photo {
  height: 0 !important;
  min-height: 0 !important;
}
.gate-hero-bg {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  animation: kenburns 10s ease-in-out infinite alternate;
}
.gate-hero-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.gate-hero-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.gate-hero-dot.active { background: #fff; }
.gate-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gate-close svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2; }
.gate-body { padding: 18px 20px 24px; }
.gate-welcome { font-size: var(--t-xs); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-m); text-align: center; margin-bottom: 4px; }
.gate-wordmark { margin-bottom: 12px; }
.gate-sub { font-size: var(--t-sm); color: var(--ink-m); text-align: center; margin-bottom: 16px; line-height: 1.5; }
.gate-input { width: 100%; background: var(--white); border: 0.5px solid var(--border); border-radius: 9px; padding: 12px 14px; font-size: var(--t-lg); color: var(--ink); margin-bottom: 8px; outline: none; transition: border-color 0.2s; }
.gate-input:focus { border-color: var(--accent); }
.gate-submit { width: 100%; background: var(--ink); color: var(--white); border-radius: 9px; padding: 13px; font-size: var(--t-sm); font-weight: 500; text-align: center; cursor: pointer; margin-bottom: 10px; }
.gate-reassurance { font-size: var(--t-xs); color: var(--ink-m); text-align: center; line-height: 1.5; }

/* ── TOAST ─────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--nav-clear) + 4px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white);
  font-size: var(--t-sm); font-weight: 500;
  padding: 9px 18px; border-radius: 20px;
  opacity: 0; transition: all 0.3s ease;
  z-index: 300; white-space: nowrap; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── DESKTOP GATE ──────────────────────────────────────────── */
#desktop-gate {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px;
  text-align: center;
  display: none;
}
.dg-logo { margin-bottom: 8px; }
.dg-tagline { font-size: var(--t-base); color: var(--ink-m); margin-bottom: 32px; }
.dg-phone { width: 80px; height: 130px; border: 2px solid var(--border); border-radius: 14px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; }
.dg-phone svg { width: 28px; height: 28px; stroke: var(--ink-m); fill: none; stroke-width: 1.5; }
.dg-headline { font-family: var(--font-serif); font-size: var(--t-xl); color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.dg-body { font-size: var(--t-base); color: var(--ink-m); line-height: 1.6; margin-bottom: 28px; max-width: 360px; }
.dg-input { width: 100%; max-width: 320px; background: var(--white); border: 0.5px solid var(--border); border-radius: 9px; padding: 12px 14px; font-size: var(--t-lg); color: var(--ink); margin-bottom: 8px; outline: none; }
.dg-btn { width: 100%; max-width: 320px; background: var(--ink); color: var(--white); border-radius: 9px; padding: 13px; font-size: var(--t-sm); font-weight: 500; cursor: pointer; margin-bottom: 12px; }
.dg-preview { font-size: var(--t-sm); color: var(--ink-m); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── COLOR PLACEHOLDERS ────────────────────────────────────── */
/* One neutral treatment for all categories — colour comes from photography, not the interface. */
.placeholder-galleries,
.placeholder-museums,
.placeholder-culture,
.placeholder-tables,
.placeholder-collectibles,
.placeholder-wave,
.placeholder-learning,
.placeholder-default { background: linear-gradient(135deg, var(--cat-default), var(--cat-default-deep)); }

/* ── AFFILIATE DISCLOSURE ──────────────────────────────────── */
/* Sits inline at the point of an affiliate link. Quiet, not apologetic: no modal, no tooltip, no collapsed icon. */
.disclosure { font-size: var(--t-xs); color: var(--ink-m); margin-top: 4px; line-height: 1.5; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.wordmark { font-family: var(--font-serif); font-weight: 400; letter-spacing: var(--wordmark-tracking); text-transform: uppercase; color: var(--ink); text-align: center; font-size: var(--t-lg); }
.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
.dest-card-sub { font-size: var(--t-xs); color: var(--ink-m); margin-top: 1px; font-family: var(--font-sans); }
.dest-list-sub { font-size: var(--t-xs); color: var(--ink-m); margin-top: 1px; font-family: var(--font-sans); }
.featured-title-sub { position: relative; z-index: 2; font-size: var(--t-xs); color: rgba(255,255,255,0.65); padding: 0 12px 8px; font-family: var(--font-sans); }

#detail-save-btn { color: var(--ink-m); }
#detail-save-btn svg { stroke: var(--ink-m); }
#detail-save-btn.saved-active { color: var(--sappan); }
#detail-save-btn.saved-active svg { stroke: var(--sappan); fill: var(--sappan); }
