/* OniGiri Friend Food Map — cosy game-island look
   Layout: full-screen island map of Japan; a soft cream "phone app" card holds the list (bottom sheet on phones).
   Token names are shared with admin.css. */

:root {
  --rice: #ffffff;
  --paper: #fbf6e6;          /* card cream */
  --nori: #6b5440;           /* warm brown ink */
  --nori-2: #9a8571;         /* soft brown */
  --ume: #ffd75e;            /* sunny yellow: primary actions, selection */
  --ume-deep: #e3b23c;       /* yellow button base */
  --ume-ink: #c2453b;        /* error text */
  --leaf: #7cc35a;
  --leaf-soft: #e3f4d3;
  --sea: #5fcfd4;
  --tamago: #ffd75e;
  --tamago-soft: #fff6d6;
  --sakura-soft: #ffe7e3;
  --line: #ece2c9;
  --shadow-sm: 0 2px 0 rgba(107, 84, 64, 0.12), 0 4px 10px rgba(107, 84, 64, 0.08);
  --hard-shadow: 0 10px 30px rgba(70, 60, 30, 0.22), 0 2px 0 rgba(107, 84, 64, 0.08);
  --r-lg: 30px;
  --r-md: 20px;
  --font-pop: 'Fredoka', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  --font-body: 'Nunito', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--nori);
  background: var(--sea);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #3aa7ad; outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- avatars ---------- */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  background: var(--tamago);
  color: var(--nori);
  font: 700 0.72rem/1 var(--font-pop);
  user-select: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--rice);
  color: var(--nori);
  font: 600 0.95rem/1.1 var(--font-pop);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #e2d5b8, 0 4px 10px rgba(107, 84, 64, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #e2d5b8; }
.btn-primary { background: var(--ume); box-shadow: 0 3px 0 var(--ume-deep), 0 4px 10px rgba(227, 178, 60, 0.3); }
.btn-primary:active { box-shadow: 0 1px 0 var(--ume-deep); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- full-screen map ---------- */
.map { position: fixed; inset: 0; background: var(--sea); }
.maplibregl-ctrl-group {
  border: 0;
  border-radius: 999px !important;
  background: var(--rice) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
}
.maplibregl-ctrl-group button { width: 38px; height: 38px; }
.maplibregl-ctrl-group button + button { border-top: 1.5px solid var(--line) !important; }
.maplibregl-ctrl-top-right { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 0; }
.maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 16px 16px 0 0; }
.maplibregl-ctrl-attrib { font-family: var(--font-body); font-weight: 600; }

/* prefecture and ward names */
.area-label {
  z-index: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  pointer-events: none;
  white-space: nowrap;
  color: var(--nori);
  text-shadow: 0 0 2px #fffbe8, 0 0 3px #fffbe8, 0 0 4px #fffbe8, 0 1px 5px #fffbe8;
}
.area-en { font: 600 15px/1.05 var(--font-pop); letter-spacing: 0.01em; }
.area-ja { font: 700 10px/1.1 'M PLUS Rounded 1c', var(--font-body); color: var(--nori-2); }
.area-label.ward .area-en { font-size: 13px; }
.area-label.ward .area-ja { font-size: 9.5px; }

/* ---------- side card ---------- */
.panel {
  position: fixed;
  z-index: 2;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 380px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
}
.sheet-handle { display: none; }

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px 22px 6px;
}
.brand-mark { width: 58px; height: 58px; flex: none; border: 3px solid var(--rice); border-radius: 50%; background: var(--tamago-soft); box-shadow: var(--shadow-sm); object-fit: cover; }
.brand h1 {
  margin: 0 0 3px;
  font-family: var(--font-pop);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
  text-wrap: balance;
}
.tagline { margin: 0; max-width: 32ch; font-size: 0.86rem; line-height: 1.45; color: var(--nori-2); }

.stats {
  align-self: flex-start;
  margin: 12px 22px 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: #4c7a35;
  font: 600 0.84rem/1.2 var(--font-pop);
}

.search { padding: 0 22px; }
.search input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border: 0;
  border-radius: 999px;
  background: var(--rice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a8571' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 4.5 4.5'/%3E%3C/svg%3E") 16px 50% / 18px no-repeat;
  color: var(--nori);
  font: 600 1rem var(--font-body);
  box-shadow: inset 0 2px 4px rgba(107, 84, 64, 0.1);
}
.search input::placeholder { color: var(--nori-2); opacity: 0.85; }

.chips {
  display: flex;
  gap: 8px;
  padding: 14px 22px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: var(--rice);
  font: 600 0.88rem/1 var(--font-pop);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.chip .avatar { width: 30px; height: 30px; }
.chip-all { padding: 4px 16px; min-height: 38px; }
.chip-n { color: var(--nori-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] { background: var(--ume); box-shadow: 0 2px 0 var(--ume-deep); }
.chip[aria-pressed='true'] .chip-n { color: var(--nori); }

.places {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 4px 16px 22px;
  list-style: none;
  overflow-y: auto;
}
.place {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--rice);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease;
}
.place:hover { transform: translateY(-1px); }
.place[aria-current='true'] { background: var(--tamago-soft); box-shadow: 0 0 0 3px var(--ume), var(--shadow-sm); }
.place-name { font: 600 1.02rem/1.25 var(--font-pop); }
.place-addr { font-size: 0.8rem; line-height: 1.4; color: var(--nori-2); }
.nowrap { white-space: nowrap; }
.stack { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; padding-left: 10px; }
.stack .avatar {
  width: 34px;
  height: 34px;
  margin-left: -10px;
  border: 3px solid var(--rice);
}
.place[aria-current='true'] .stack .avatar { border-color: var(--tamago-soft); }
.stack-more { margin-left: 6px; font: 600 0.8rem var(--font-pop); color: var(--nori-2); }
/* group-by switch + grouped sections */
.groupby { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 22px 12px; }
.groupby-label { margin-right: 2px; color: var(--nori-2); font-size: 0.78rem; font-weight: 800; }
.groupby button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--nori-2);
  font: 600 0.86rem/1 var(--font-pop);
  cursor: pointer;
}
.groupby button:hover { color: var(--nori); }
.groupby button[aria-checked='true'] { background: var(--nori); box-shadow: none; color: var(--paper); }
.groupby button:focus-visible { outline: 3px solid #3aa7ad; outline-offset: 2px; }
.group { display: grid; gap: 8px; }
.group-bar { position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 6px 0 4px; background: var(--paper); }
.group-head {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--nori);
  text-align: left;
  cursor: pointer;
}
.group-head:hover { background: rgba(255, 215, 94, 0.25); }
.group-head .avatar { width: 28px; height: 28px; flex: none; }
.group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; min-width: 0; }
.group-name { font: 600 1.02rem/1.2 var(--font-pop); }
.group-sub { color: var(--nori-2); font: 700 0.74rem/1.2 'M PLUS Rounded 1c', var(--font-body); }
.group-n { flex: none; min-width: 26px; margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--tamago-soft); font: 600 0.78rem/1 var(--font-pop); text-align: center; }
.group-chev { flex: none; width: 9px; height: 9px; margin: 0 6px 3px 4px; border-right: 2.5px solid var(--nori-2); border-bottom: 2.5px solid var(--nori-2); transform: rotate(45deg); transition: transform 0.15s; }
.group-head[aria-expanded='false'] .group-chev { margin-bottom: 0; transform: rotate(-45deg); }
.group-map { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--rice); color: var(--nori); box-shadow: var(--shadow-sm); cursor: pointer; }
.group-map:hover { background: var(--tamago-soft); }
.group-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.group-items[hidden] { display: none; }
.empty { padding: 24px 12px; font-size: 0.92rem; line-height: 1.5; color: var(--nori-2); text-align: center; }
.empty-art { display: block; width: 88px; height: 88px; margin: 0 auto 12px; border: 4px solid var(--rice); border-radius: 50%; box-shadow: var(--shadow-sm); }
.empty p { margin: 0; }

/* ---------- photo-bubble pins ---------- */
.pin, .cluster { z-index: 1; }
.pin {
  display: block;
  width: 54px;
  height: 66px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pin-shadow {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 22px;
  height: 7px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgba(40, 70, 40, 0.28);
}
.pin-body {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pop-in {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.pin-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  padding: 4px;
  border-radius: 50%;
  background: var(--rice);
  box-shadow: 0 3px 0 rgba(107, 84, 64, 0.2), 0 6px 12px rgba(40, 60, 40, 0.18);
}
/* little tail under the bubble */
.pin-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 0 0 5px 0;
  background: var(--rice);
  transform: rotate(45deg);
  z-index: -1;
}
.pin-face { width: 100%; height: 100%; font-size: 0.85rem; }
.pin-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 3px solid var(--rice);
  border-radius: 999px;
  background: var(--ume);
  color: var(--nori);
  font: 700 12px/1 var(--font-pop);
}
.pin:hover .pin-body, .pin:focus-visible .pin-body { transform: translateY(-5px); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-bubble { box-shadow: 0 0 0 3px #3aa7ad; }
.pin.is-active { z-index: 5; }
.pin.is-active .pin-body { transform: scale(1.18) translateY(-3px); }
.pin.is-active .pin-bubble, .pin.is-active .pin-bubble::after { background: var(--ume); }
.pin.is-active .pin-count { background: var(--rice); }

/* clusters: stacked faces like a little group photo, with the total */
.cluster {
  width: 64px;
  height: 58px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.cluster-body {
  position: absolute;
  inset: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cluster:hover .cluster-body, .cluster:focus-visible .cluster-body { transform: translateY(-4px); }
.cluster:focus-visible { outline: none; }
.cluster:focus-visible .cluster-faces .avatar:last-child { box-shadow: 0 0 0 3px #3aa7ad; }
.cluster-faces { position: absolute; inset: 0; }
.cluster-faces .avatar {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3.5px solid var(--rice);
  box-shadow: 0 3px 0 rgba(107, 84, 64, 0.18), 0 5px 10px rgba(40, 60, 40, 0.16);
}
/* back faces peek out behind the front one */
.cluster-faces .avatar:nth-last-child(1) { left: 8px; top: 12px; width: 46px; height: 46px; }
.cluster-faces .avatar:nth-last-child(2) { left: 22px; top: 0; }
.cluster-faces .avatar:nth-last-child(3) { left: 0; top: 0; }
.cluster-faces:empty::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 48px;
  height: 48px;
  border: 3.5px solid var(--rice);
  border-radius: 50%;
  background: var(--tamago-soft);
}
.cluster-n {
  position: absolute;
  right: -4px;
  bottom: -2px;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 3px solid var(--rice);
  border-radius: 999px;
  background: var(--ume);
  color: var(--nori);
  font: 700 0.9rem/1 var(--font-pop);
  font-variant-numeric: tabular-nums;
}

/* ---------- popup ---------- */
/* Above every pin and cluster (they sit at z-index 1-5), so neighbouring pins never cover it. */
.maplibregl-popup { z-index: 10; }
.maplibregl-popup-content {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--hard-shadow);
  font-family: var(--font-body);
  color: var(--nori);
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--paper); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--paper); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--paper); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--paper); }
.maplibregl-popup-close-button {
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rice);
  box-shadow: var(--shadow-sm);
  font-size: 1.2rem;
  line-height: 1;
}
.maplibregl-popup-close-button:hover { background: var(--tamago-soft); }

.pop-name { margin: 0 36px 2px 0; font: 600 1.25rem/1.2 var(--font-pop); text-wrap: balance; }
.pop-addr { margin: 0 0 14px; font-size: 0.82rem; line-height: 1.4; color: var(--nori-2); }
/* The scroll area gets a little inner padding so button and card shadows aren't clipped at its edges. */
.pop { max-height: min(72vh, 680px); margin: -2px -8px -6px -4px; padding: 2px 8px 8px 4px; overflow-y: auto; overscroll-behavior: contain; }
.pop-desc { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.5; }
.pop-recs { display: grid; gap: 14px; margin: 0 0 16px; padding: 4px 2px 2px; list-style: none; }
.rec { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.rec .avatar { width: 44px; height: 44px; border: 3px solid var(--rice); box-shadow: var(--shadow-sm); }
/* name tag + speech bubble, like a game dialogue box */
.rec-who {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-left: 6px;
  padding: 3px 11px 4px;
  border-radius: 999px;
  background: var(--ume);
  color: var(--nori);
  font: 600 0.84rem/1.2 var(--font-pop);
  transform: rotate(-2deg);
}
.rec:nth-child(3n + 2) .rec-who { background: #ffc2b4; }
.rec:nth-child(3n + 3) .rec-who { background: #b9e6a0; }
a.rec-who { text-decoration: none; }
a.rec-who:hover { text-decoration: underline; text-underline-offset: 2px; }
.rec-note {
  margin: -6px 0 0;
  padding: 12px 13px 9px;
  border-radius: 16px;
  background: var(--rice);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-actions .btn { padding: 9px 15px; font-size: 0.9rem; }

/* ---------- phones: bottom sheet ---------- */
@media (max-width: 720px) {
  .panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 44dvh;
    max-height: calc(100dvh - 12px);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 24px rgba(70, 60, 30, 0.2);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: height 0.25s ease;
  }
  .panel[data-sheet='min'] { height: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .panel[data-sheet='full'] { height: 86dvh; }
  .panel.is-dragging { transition: none; }
  /* Big grab area across the top of the sheet; touch-action stops the page scrolling while dragging. */
  .sheet-handle {
    display: block;
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    padding: 11px 0 0;
    border: 0;
    border-radius: 28px 28px 0 0;
    background: none;
    cursor: grab;
    touch-action: none;
  }
  .sheet-handle:active, .panel.is-dragging .sheet-handle { cursor: grabbing; }
  .sheet-handle:focus-visible { outline: 3px solid #3aa7ad; outline-offset: -3px; }
  .sheet-handle span[aria-hidden] { display: block; width: 48px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--nori); opacity: 0.35; }
  .panel.is-dragging .sheet-handle span[aria-hidden] { opacity: 0.6; }
  .brand { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); }
  .brand-mark { width: 42px; height: 42px; }
  .brand h1 { margin: 0; font-size: 1.15rem; }
  .tagline { display: none; }
  .stats { margin: 10px 16px 10px; }
  .search { padding: 0 16px; }
  .chips { padding: 12px 16px 14px; }
  .groupby { padding: 0 16px 10px; }
  .places { padding: 4px 12px 18px; }
  .maplibregl-popup-content { max-width: 86vw; }
  .pop { max-height: calc(56dvh - 150px); }
  .maplibregl-ctrl-group { display: none; } /* pinch to zoom on phones */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Google place cards (Places UI Kit, styled within Google's allowed properties) ---------- */
.gcard {
  color-scheme: light;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  --gmp-mat-color-surface: var(--rice);
  --gmp-mat-color-on-surface: var(--nori);
  --gmp-mat-color-on-surface-variant: var(--nori-2);
  --gmp-mat-color-primary: #2a8f96;
  --gmp-mat-color-outline-decorative: transparent;
  --gmp-mat-color-secondary-container: var(--tamago-soft);
  --gmp-mat-color-on-secondary-container: var(--nori);
  --gmp-mat-color-neutral-container: #f3ecd9;
  --gmp-mat-font-family: var(--font-body);
}
.gcard-box { margin: 30px 0 14px; min-height: 140px; border-radius: 16px; background: var(--rice); }

/* ---------- food & menu photo strip ---------- */
.photo-strip { margin: 0 0 14px; }
.photo-strip-label { margin: 0 0 6px; font-size: 0.76rem; color: var(--nori-2); }
.photo-strip-label strong { color: var(--nori); font: 600 0.84rem var(--font-pop); }
.photo-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.photo-row::-webkit-scrollbar { display: none; }
.photo-thumb {
  position: relative;
  flex: none;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.photo-strip-small .photo-thumb { width: 62px; height: 62px; }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-thumb:focus-visible { outline: 3px solid #3aa7ad; outline-offset: 2px; }
.photo-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(60, 45, 30, 0.55); color: #fff; font: 600 1rem var(--font-pop); }

/* ---------- hover preview ---------- */
.hover-layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.hcard {
  position: fixed;
  width: 300px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--hard-shadow);
  color: var(--nori);
  font-family: var(--font-body);
  pointer-events: auto;
  cursor: pointer;
  animation: hcard-in 0.16s ease-out;
}
.hcard { max-height: calc(100vh - 16px); overflow-y: auto; }
.hcard[hidden] { display: none; }
@keyframes hcard-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hcard-top { display: grid; gap: 3px; }
.hcard-hero { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 4px; border-radius: 14px; object-fit: cover; }
.hcard-name { margin: 0; font: 600 1.1rem/1.2 var(--font-pop); }
.hcard-addr { margin: 0; font-size: 0.8rem; line-height: 1.35; color: var(--nori-2); }
.hcard-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.hcard .photo-strip { margin: 0; }
.hcard-who { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--nori-2); }
.hcard-who .stack .avatar { width: 26px; height: 26px; }
.hcard-hint { margin: 0; font-size: 0.74rem; color: var(--nori-2); }

/* ---------- photo lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(35, 28, 20, 0.88); }
.lightbox-fig { display: grid; justify-items: center; gap: 10px; max-width: min(92vw, 1100px); margin: 0; }
.lightbox-img { max-width: 100%; max-height: 78vh; border-radius: 16px; background: #2b241c; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.lightbox figcaption { display: grid; gap: 2px; color: #fff8e6; font-size: 0.95rem; text-align: center; }
.lightbox-cap:empty { display: none; }
.lightbox-count { font-size: 0.78rem; opacity: 0.75; }
.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--rice);
  color: var(--nori);
  box-shadow: var(--shadow-sm);
  font: 600 1.7rem/1 var(--font-pop);
  cursor: pointer;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { top: 50%; left: 18px; translate: 0 -50%; }
.lightbox-next { top: 50%; right: 18px; translate: 0 -50%; }
