/* FIND web preview styles. Layout, icons and cards follow the app screenshots:
   white surface, pink accent, rounded cards, colored category tags, bottom tab bar. */
:root {
  --pink: #ff007a;
  --pink-btn: #e5006b;      /* white text on this passes WCAG AA */
  --pink-ink: #d1005f;      /* pink text on white passes WCAG AA */
  --ink: #111114;
  --muted: #62626e;
  --line: #e9e9ef;
  --bg: #ffffff;
  --soft: #f6f5f8;
  --c-food: #e3161c;
  --c-night: #b514e6;
  --c-date: #f3cf1a;
  --c-activities: #7fe0f2;
  --radius: 16px;
  --tabs-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: calc(var(--tabs-h) + 32px + env(safe-area-inset-bottom));
}
body.lock { overflow: hidden; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* banner */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; text-align: center;
}
.banner-text { margin: 0; }
.banner-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.banner-link { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.pill-soon { border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 2px 10px; font-size: 13px; }

/* header */
.top { max-width: 1100px; margin: 0 auto; padding: 20px 16px 8px; text-align: center; }
.wordmark { height: 52px; width: auto; margin: 0 auto; }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* controls */
.controls { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); padding: 10px 0 8px; border-bottom: 1px solid var(--line); margin: 0 -16px 16px; padding-left: 16px; padding-right: 16px; backdrop-filter: blur(8px); }
.search { position: relative; max-width: 640px; margin: 0 auto; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft);
  padding: 0 16px 0 44px; font-size: 16px; color: var(--ink);
}
.search input::placeholder { color: #767684; }
.cats { display: flex; justify-content: center; gap: 8px; margin: 12px auto 0; max-width: 640px; }
.cat {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 1px solid transparent; border-radius: 14px; padding: 8px 4px;
}
.cat-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.cat-ico svg { width: 22px; height: 22px; }
.cat-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.cat.food .cat-ico { color: var(--c-food); }
.cat.night-life .cat-ico { color: var(--c-night); }
.cat.date .cat-ico { color: #b89600; }
.cat.activities .cat-ico { color: #0a8fa8; }
.cat[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }
.cat[aria-pressed="true"] .cat-label { color: var(--ink); }
.status { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 0; min-height: 1.4em; }

/* feed */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(17, 17, 20, .05); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.media-missing { width: 100%; height: 100%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.media-missing svg { width: 44px; height: 44px; }
.rating { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.rating.inline { position: static; display: inline-block; }
.rating.big { position: static; font-size: 15px; white-space: nowrap; flex: none; }
.play { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.fav {
  position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(17, 17, 20, .55); color: #fff; display: grid; place-items: center;
}
.fav svg { width: 22px; height: 22px; }
.fav[aria-pressed="true"] svg, .fav-wide[aria-pressed="true"] svg { fill: var(--pink); stroke: var(--pink); }
.card-body { padding: 12px 14px 14px; }
.card-title { margin: 0; font-size: 18px; line-height: 1.25; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.place { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px 3px 8px; color: #fff; }
.chip svg { width: 14px; height: 14px; }
.chip.food { background: var(--c-food); }
.chip.night-life { background: var(--c-night); }
.chip.date { background: var(--c-date); color: var(--ink); }
.chip.activities { background: var(--c-activities); color: var(--ink); }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty p { margin: 0 0 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  background: var(--pink-btn); color: #fff; border: 0; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn.fav-wide { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn.fav-wide svg { width: 20px; height: 20px; }

/* map */
.map-wrap { position: relative; height: calc(100dvh - 300px); max-height: 760px; min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
#map { position: absolute; inset: 0; z-index: 0; background: #eceaf0; }
.map-tools { position: absolute; right: 10px; top: 10px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-btn { background: #fff; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.map-sheet {
  position: fixed; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  bottom: calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); z-index: 600; display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
}
.ms-thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; background: var(--soft); }
.ms-thumb img, .ms-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ms-body { flex: 1; min-width: 0; }
.ms-body h3 { margin: 0; font-size: 16px; }
.ms-body .place { margin: 2px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-wrap { background: none; border: 0; }
.pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); color: #fff; }
.pin svg { width: 18px; height: 18px; transform: rotate(45deg); }
.pin.food { background: var(--c-food); }
.pin.night-life { background: var(--c-night); }
.pin.date { background: var(--c-date); color: var(--ink); }
.pin.activities { background: var(--c-activities); color: var(--ink); }

/* detail */
.overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto; border-radius: 20px 20px 0 0; overscroll-behavior: contain; }
.close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(17, 17, 20, .65); color: #fff; display: grid; place-items: center; }
.close svg { width: 20px; height: 20px; }
.detail-media { background: #000; }
.detail-media img, .detail-media video { width: 100%; max-height: 62dvh; object-fit: contain; margin: 0 auto; }
.detail-media .media-missing { min-height: 240px; }
.detail-body { padding: 16px 18px 24px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-head h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.detail-body .place { margin: 6px 0 12px; font-size: 15px; }
.note { margin: 14px 0 0; font-size: 16px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.similar { margin-top: 24px; }
.similar h3 { margin: 0 0 10px; font-size: 16px; }
.similar-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.similar-item { text-decoration: none; font-size: 12px; font-weight: 600; }
.similar-item img, .similar-item video, .similar-item .media-missing { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 20px; max-height: 90dvh; }
}

/* tab bar (bottom, like the app) */
.tabs {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  display: flex; gap: 4px; padding: 6px; width: min(420px, calc(100% - 24px));
  background: #eeecf0; border-radius: 22px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.tab {
  flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; background: none; border: 0; border-radius: 16px; color: var(--muted); font-size: 12px; font-weight: 700;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.count { position: absolute; top: 4px; right: calc(50% - 26px); background: var(--pink-btn); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; text-align: center; }

.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 32px 0 8px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--pink-ink); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
