:root {
  /* Onda palette — mirrors the iOS app */
  --sand: #F6EEE3;
  --sand-deep: #EADBC6;
  --charcoal: #2B2724;
  --charcoal-soft: #3A352F;
  --teal: #1B8C8C;
  --teal-deep: #126B6B;
  --teal-soft: #7FBDBD;
  --coral: #F2774E;
  --coral-soft: #F7A688;
  --sunshine: #F4C95D;
  --text: #2B2724;
  --text-2: #6B6258;
  --card: #FFFFFF;
  --card-border: #DDD3C3;
  --radius: 20px;
  --shadow: 0 8px 28px rgba(43, 39, 36, 0.10);
  --shadow-sm: 0 4px 14px rgba(43, 39, 36, 0.07);

  /* category tints */
  --cat-eat: #F2774E;
  --cat-move: #1B8C8C;
  --cat-nature: #4FA86B;
  --cat-music: #8A6BC9;
  --cat-give: #F4C95D;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #2B2724;
    --sand-deep: #4A443C;
    --text: #F6EEE3;
    --text-2: #B9AE9D;
    --card: #3A352F;
    --card-border: #544E45;
    --teal: #7FBDBD;
    --coral: #F7A688;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
/* The `hidden` attribute must win over our display rules below. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--sand);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  line-height: 1.5;
  padding-bottom: 40px;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; }
img { display: block; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px calc(14px + env(safe-area-inset-top, 0));
  padding-top: max(14px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--sand) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--card-border) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 9px; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.brand:active { transform: scale(0.97); }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; display: block; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-size: 26px; letter-spacing: -0.02em;
  color: var(--teal);
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.town-pill, .lang-pill {
  border: 1px solid var(--card-border); background: var(--card);
  color: var(--text); border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 6px;
}
.town-pill { padding: 8px 14px; }
.lang-pill { padding: 8px 12px; min-width: 44px; justify-content: center; }
.town-pill .chev { color: var(--text-2); font-size: 11px; }
.town-pill:active, .lang-pill:active { transform: scale(0.97); }

/* ---------- Container ---------- */
.container { max-width: 720px; margin: 0 auto; padding: 0 18px; }

/* ---------- First-run intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 120; color: #fff;
  background: linear-gradient(160deg, var(--teal), var(--teal-deep));
  display: flex; flex-direction: column; animation: fade .35s ease;
}
.intro-skip {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 18px;
  background: rgba(255,255,255,.18); color: #fff; border: none; border-radius: 999px;
  padding: 8px 15px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit;
}
.intro-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 14px; }
.intro-emoji { font-size: 66px; animation: bob 4s ease-in-out infinite; }
.intro-title { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; }
.intro-text { font-size: 16px; max-width: 350px; opacity: .94; line-height: 1.55; }
.intro-foot { padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro-dots { display: flex; gap: 8px; }
.intro-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); transition: all .2s; }
.intro-dot.on { background: #fff; width: 22px; border-radius: 4px; }
.intro-next {
  background: #fff; color: var(--teal-deep); border: none; border-radius: 999px;
  padding: 14px 32px; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; min-width: 220px;
}
.intro-next:active { transform: scale(0.98); }

/* ---------- Saved hearts ---------- */
.lang-pill[aria-pressed="true"] { background: var(--coral); color: #fff; border-color: var(--coral); }
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.4); color: #fff; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.heart.on { color: #FF5A7A; }
.heart:active { transform: scale(0.9); }

/* ---------- Offline + install bars ---------- */
.offline-bar {
  background: var(--sunshine); color: #2B2724; text-align: center;
  font-size: 13px; font-weight: 600; padding: 8px 14px;
}
.install-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--charcoal); color: #fff; padding: 12px 14px 12px 18px;
  border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: slideup .3s ease;
}
@media (prefers-color-scheme: dark) { .install-bar { background: #1c2a2a; border: 1px solid #2f4444; } }
.ib-text { font-weight: 600; font-size: 14px; }
.ib-actions { display: flex; align-items: center; gap: 6px; }
.ib-yes { background: var(--teal); color: #fff; border: none; border-radius: 999px; padding: 8px 16px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.ib-no { background: transparent; color: #fff; border: none; font-size: 16px; cursor: pointer; opacity: .7; padding: 6px; }

/* ---------- Search ---------- */
.search-wrap { position: relative; margin-top: 14px; }
.search-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .6; pointer-events: none;
}
.search {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px;
  padding: 12px 14px 12px 40px; border-radius: 14px; color: var(--text);
  background: var(--card); border: 1px solid var(--card-border); outline: none;
}
.search:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }

/* ---------- Today's vibe ---------- */
.vibe {
  margin-top: 12px; font-size: 15px; color: var(--text);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
  padding: 11px 14px; border-radius: 14px; line-height: 1.45;
}

/* ---------- Day headers (agenda) ---------- */
.day-header {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px; color: var(--teal);
  margin: 18px 2px 6px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}
.day-header::after {
  content: ''; flex: 1; height: 2.5px; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--teal) 55%, transparent), transparent);
}
.day-header.today { color: var(--coral); }
.day-header.today::after { background: linear-gradient(90deg, color-mix(in srgb, var(--coral) 60%, transparent), transparent); }

/* ---------- Category bar ---------- */
.cat-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 6px;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; border: 1.4px solid; border-radius: 999px;
  padding: 8px 15px; font-weight: 600; font-size: 13.5px; cursor: pointer;
  background: transparent; font-family: inherit; white-space: nowrap;
  transition: all .18s ease; display: flex; align-items: center; gap: 6px;
}
.cat-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.cat-chip[aria-pressed="true"] { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 18px 2px 6px; }
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: clamp(30px, 8vw, 44px);
  line-height: 1.05; letter-spacing: -0.02em;
}
.hero-title span { color: var(--teal); }
.hero-sub { color: var(--text-2); margin-top: 8px; font-size: 15px; }

/* ---------- Whale season banner ---------- */
.whale-bar {
  width: 100%; margin-top: 16px; text-align: left; cursor: pointer;
  background: linear-gradient(120deg, #1B4965, #3E7CB1); color: #fff;
  border: none; border-radius: 16px; padding: 14px 16px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.4;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 10px;
}
.whale-bar .wb-emoji { font-size: 22px; }
.whale-bar:active { transform: scale(0.995); }

/* ---------- List your business CTA ---------- */
.biz-cta { margin-top: 28px; }
.biz-inner {
  background: var(--card); border: 1px dashed var(--card-border);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px;
}
.biz-inner strong { font-family: 'Fraunces', serif; font-size: 18px; }
.biz-inner span { color: var(--text-2); font-size: 14px; }
.biz-link { color: var(--teal); font-weight: 700; margin-top: 8px; }

/* ---------- Beach conditions ---------- */
.conditions {
  display: flex; flex-direction: column; gap: 10px; margin-top: 18px;
}
.cond-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.cond-row::-webkit-scrollbar { display: none; }
.forecast-row { display: flex; gap: 8px; }
.fc-tile {
  flex: 1; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 10px 6px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.fc-tile .fc-day { font-size: 11px; color: var(--text-2); font-weight: 600; }
.fc-tile .fc-ic { font-size: 18px; }
.fc-tile .fc-temp { font-weight: 700; font-size: 14px; }
.fc-tile .fc-surf { font-size: 11px; color: var(--teal); }
.conditions::-webkit-scrollbar { display: none; }
.cond-tile {
  flex: 1 0 auto; min-width: 92px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
}
.cond-tile .ic { font-size: 22px; }
.cond-tile .val { font-weight: 700; font-size: 17px; font-family: 'Fraunces', serif; }
.cond-tile .lbl { color: var(--text-2); font-size: 11px; }
.dual { font-size: 11px; font-weight: 500; opacity: .7; margin-left: 2px; }
.cond-grad .dual { color: rgba(255,255,255,.85); opacity: 1; }
.fc-tile .dual { font-size: 10px; }
.cond-grad {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; border: none;
}
.cond-grad .lbl { color: rgba(255,255,255,.85); }

/* ---------- Featured carousel ---------- */
.carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px; margin: 0 -18px; padding-left: 18px; padding-right: 18px;
}
.carousel::-webkit-scrollbar { display: none; }
.feat-card {
  flex: 0 0 84%; max-width: 360px; scroll-snap-align: center; cursor: pointer;
  border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 3/4;
  box-shadow: var(--shadow); background: var(--sand-deep);
}
.feat-card img { width: 100%; height: 100%; object-fit: cover; }
.feat-card .feat-overlay {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
}
.feat-card .feat-cat {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px; margin-bottom: 6px; color: #fff;
}
.feat-card .feat-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; line-height: 1.15; }
.feat-card .feat-when { font-size: 13px; opacity: .92; margin-top: 3px; }
.feat-card:active { transform: scale(0.99); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-logo { animation: none !important; }
}

/* ---------- Blocks ---------- */
.block { margin-top: 28px; }
.block-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 22px; margin-bottom: 14px;
}
.empty { color: var(--text-2); font-size: 14px; padding: 6px 2px 14px; }

/* ---------- Range filter ---------- */
.range-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.range-chip {
  border: 1px solid var(--card-border); background: var(--card); color: var(--text-2);
  border-radius: 999px; padding: 7px 15px; font-family: inherit; font-weight: 600;
  font-size: 13px; cursor: pointer; transition: all .15s ease;
}
.range-chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.range-chip:active { transform: scale(0.97); }

/* ---------- Event cards ---------- */
.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-card {
  position: relative;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.event-card:active { transform: scale(0.99); }
.event-card:hover { box-shadow: var(--shadow); }
.event-media { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--sand-deep); }
.event-media.contain { object-fit: contain; background: #000; }
.event-body { padding: 14px 16px 16px; }
.event-cat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; padding: 4px 9px; border-radius: 999px; margin-bottom: 8px;
}
.event-title { font-family:'Fraunces',Georgia,serif; font-weight: 600; font-size: 19px; line-height: 1.2; }
.event-meta { color: var(--text-2); font-size: 13.5px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.event-meta .price { color: var(--teal); font-weight: 600; }

/* ---------- Block head + place controls ---------- */
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head .block-title { margin-bottom: 0; }
.place-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 7px 13px; font-family: inherit; font-weight: 600;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.ctrl-btn[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.ctrl-btn:active { transform: scale(0.97); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--card-border); border-radius: 999px; padding: 2px; }
.seg button {
  border: none; background: transparent; color: var(--text-2); cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13px; padding: 6px 13px; border-radius: 999px;
}
.seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* ---------- Map ---------- */
.map {
  width: 100%; height: 280px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--card-border); box-shadow: var(--shadow-sm);
  margin-bottom: 14px; background: var(--sand-deep);
}
.map.tall { height: 460px; }
.map:empty { display: none; }
.leaflet-container { font-family: inherit; background: var(--sand-deep); }
.map-pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2.5px solid #fff; box-shadow: 0 3px 7px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
}
.map-pin span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.map-badge {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 3px 7px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
}
.map-badge span { font-size: 14px; line-height: 1; }
.leaflet-popup-content { font-family: inherit; font-size: 13px; line-height: 1.4; }
.leaflet-popup-content b { font-weight: 700; }

/* ---------- Place grid ---------- */
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.place-card {
  position: relative;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.place-card:active { transform: scale(0.98); }
.place-media { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sand-deep); }
.place-media.contain { object-fit: contain; padding: 10px; }
.place-ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  font-size: 44px; overflow: hidden;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.place-ph::before {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='44'%3E%3Cpath d='M0 22 Q 22 6 45 22 T 90 22' fill='none' stroke='%23ffffff' stroke-width='2.5'/%3E%3Cpath d='M0 34 Q 22 18 45 34 T 90 34' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 90px 44px;
}
.place-ph > * { position: relative; z-index: 1; }
.place-body { padding: 10px 12px 12px; }
.place-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.place-type { color: var(--text-2); font-size: 12px; margin-top: 2px; }

/* ---------- Promo + footer ---------- */
.promo { margin-top: 34px; }
.promo-inner {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff; border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.promo-inner strong { font-size: 17px; }
.promo-inner span { opacity: .9; font-size: 14px; }
.promo-link { color: #fff; font-weight: 700; margin-top: 8px; }
.foot { text-align: center; color: var(--text-2); font-size: 13px; margin: 34px 0 10px; }
.foot a { color: var(--text-2); }
.foot-mark { margin-top: 8px; font-family:'Fraunces',serif; color: var(--teal); }

/* ---------- Sheet (town picker) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end;
  background: rgba(0,0,0,.4); animation: fade .2s ease;
}
.sheet-card {
  background: var(--sand); width: 100%; max-width: 720px; margin: 0 auto;
  border-radius: 24px 24px 0 0; padding: 10px 18px calc(28px + env(safe-area-inset-bottom));
  max-height: 80vh; overflow-y: auto; animation: slideup .25s ease;
}
.sheet-handle { width: 40px; height: 4px; background: var(--card-border); border-radius: 4px; margin: 6px auto 12px; }
.sheet-title { font-family:'Fraunces',serif; font-size: 20px; margin-bottom: 12px; }
.town-list { display: flex; flex-direction: column; gap: 6px; }
.town-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  cursor: pointer; font-weight: 600; font-size: 16px;
}
.town-row .emoji { font-size: 20px; }
.town-row .region { color: var(--text-2); font-weight: 400; font-size: 13px; }
.town-row[aria-selected="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }

/* ---------- Detail modal ---------- */
.detail {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5);
  overflow-y: auto; animation: fade .2s ease;
}
.detail-card {
  background: var(--sand); max-width: 720px; margin: 0 auto; min-height: 100%;
  position: relative;
}
.detail-close {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: 18px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.4); color: #fff; font-size: 16px;
}
.detail-hero { width: 100%; max-height: 380px; object-fit: cover; background: var(--sand-deep); }
.detail-hero.contain { object-fit: contain; background: #000; }
/* Flyers: show the whole poster, never cropped; tap to enlarge. */
.detail-hero.flyer { object-fit: contain; max-height: 80vh; background: #000; cursor: zoom-in; }

/* Lightbox (full-screen image) */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.93);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s ease;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-close { position: fixed; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
.detail-inner { padding: 18px 18px 72px; }
.detail-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--card-border); text-align: center; }
.df-cta { margin-bottom: 12px; }
.df-cta a { font-weight: 600; font-size: 14px; color: var(--teal); }
.df-links { color: var(--text-2); font-size: 13px; }
.df-links a { color: var(--text-2); }
.df-mark { margin-top: 10px; font-family: 'Fraunces', serif; color: var(--teal); font-size: 14px; }
.detail-inner h1 { font-family:'Fraunces',serif; font-weight: 700; font-size: 27px; line-height: 1.1; }
.detail-info { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 4px 16px; margin: 16px 0; }
.detail-info .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.detail-info .row:last-child { border-bottom: none; }
.detail-info .ic { width: 22px; text-align: center; }
.detail-info .lbl { font-size: 11px; color: var(--text-2); }
.detail-info .val { font-weight: 600; font-size: 15px; }
.detail-section-h { font-family:'Fraunces',serif; font-weight: 600; font-size: 18px; margin: 22px 0 8px; }
.detail-about { font-family: Georgia, 'Fraunces', serif; font-size: 16.5px; line-height: 1.65; white-space: pre-wrap; }
.detail-about a { text-decoration: underline; }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 auto; width: 170px; height: 128px; object-fit: cover; border-radius: 12px; border: 1px solid var(--card-border); cursor: pointer; }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 14px; font-weight: 600; font-size: 16px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-outline { background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.btn-wa { background: #25D366; color: #fff; }
.btn:active { transform: scale(0.99); }

/* ---------- Loading ---------- */
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--sand); z-index: 90; transition: opacity .3s; }
.loading.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--card-border); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideup { from { transform: translateY(30px); } }
