/* One Drop Recommendations — guest site */

:root {
  --ink: #0d0d11;
  --panel: #16161c;
  --panel-2: #1c1c24;
  --line: rgba(201, 161, 90, 0.18);
  --line-soft: rgba(240, 233, 220, 0.08);
  --gold: #c9a15a;
  --gold-bright: #e8cf9a;
  --cream: #f0e9dc;
  --mut: #9a938a;
  --serif: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Outfit", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(201, 161, 90, 0.35); }
a { color: var(--gold-bright); text-decoration: none; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.22s; }

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 50% -12rem, rgba(201, 161, 90, 0.13), transparent 60%),
    radial-gradient(30rem 20rem at 88% 108%, rgba(201, 161, 90, 0.05), transparent 65%);
  z-index: 0;
}

/* ----------------------------------------------------------------- share */

.topbtns {
  position: absolute;
  top: 1.1rem;
  right: clamp(1rem, 4vw, 2.5rem);
  z-index: 45;
  display: flex;
  gap: 0.55rem;
}
.share-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 13, 17, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
}
.share-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.share-btn svg { width: 17px; height: 17px; fill: var(--gold); color: var(--gold); }

.inst-sub {
  color: var(--mut);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: -0.4rem 0 1rem;
}
.inst-card {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: left;
  margin-top: 0.6rem;
}
.inst-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.inst-card p { font-size: 0.88rem; line-height: 1.7; color: var(--cream); }
.inst-card b { font-weight: 500; color: var(--gold-bright); }
.inst-ic {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  color: var(--gold-bright);
}

.share-shell { max-width: 21rem; }
.share-sheet { padding: 1.6rem 1.5rem 1.5rem; text-align: center; }
.share-logo { width: 34px; height: 34px; fill: var(--gold); margin-bottom: 0.7rem; }
.share-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.share-qr {
  width: min(13rem, 70vw);
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem;
}
.share-qr svg { display: block; width: 100%; height: auto; }
.share-scan {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut);
}
.share-linkrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  min-width: 0;
  width: 100%;
}
.share-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  font-size: 0.76rem;
  color: var(--gold-bright);
  text-align: left;
}
.share-copy {
  flex: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 0.48rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.share-copy:hover { background: rgba(201, 161, 90, 0.1); }
.share-native { width: 100%; margin-top: 0.8rem; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(3.6rem, 7vw, 4.6rem) 1.25rem 1.5rem;
}
.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 4vw, 2.4rem);
}
.mark {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.mark-logo { width: clamp(52px, 8vw, 64px); height: auto; fill: var(--gold); }
.mark-word {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--cream);
  font-weight: 300;
  white-space: nowrap;
}
.hero-text { text-align: left; max-width: 28rem; min-width: 0; }
.hero-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--mut);
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.95rem, 6.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0.12rem 0 0.4rem;
}
.hero-sub {
  color: var(--mut);
  font-size: 0.88rem;
  line-height: 1.65;
}
.hero-sub a { border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color 0.2s; }
.hero-sub a:hover { color: var(--gold); }

/* --------------------------------------------------------------- toolbar */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.toolbar .view-toggle { align-self: center; }
.subfilters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.6rem;
}
.fgroup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.fgroup-label {
  flex: none;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mut);
}
.chips.mini .chip {
  font-size: 0.72rem;
  padding: 0.24rem 0.7rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding: 2px;
}
.chip {
  flex: none;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--mut);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
}
.chip:hover { color: var(--cream); border-color: var(--line); }
.chip.icon-only {
  font-size: 1.02rem;
  padding: 0.36rem 0.66rem;
  line-height: 1.15;
}
.chip.on {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 400;
}
.view-toggle {
  flex: none;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.view-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mut);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.05rem;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.view-toggle button.on { background: var(--gold); color: var(--ink); font-weight: 400; }

/* ------------------------------------------------------------------ grid */

main { flex: 1; position: relative; z-index: 1; }
#listView { padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 4vw, 2.5rem) 3rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: 1.1rem;
  max-width: 78rem;
  margin: 0 auto;
}
.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.22s, box-shadow 0.22s;
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.card-photo {
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--panel-2), #14141a 65%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-photo img { transform: scale(1.035); }
.card-photo .ph {
  font-size: 2rem;
  opacity: 0.5;
  filter: grayscale(0.3);
}
.card-body { padding: 0.95rem 1.05rem 1.05rem; }
.card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.card-meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.card-meta .dot { color: var(--mut); margin: 0 0.35rem; }
.card-meta .walk { color: var(--mut); }
.card-by {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--mut);
}
.card-by b { font-weight: 400; color: var(--cream); }

.empty {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--mut);
  line-height: 1.8;
}
.empty svg { width: 34px; height: 34px; fill: var(--line); margin-bottom: 1rem; }

/* ------------------------------------------------------------------- map */

#mapView { padding: 0; }
#bigmap {
  height: calc(100dvh - 11.5rem);
  min-height: 24rem;
  background: var(--ink);
}
.leaflet-container { font-family: var(--sans); background: #101014; }

.bar-pin { position: relative; }
.bar-pin .ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(201, 161, 90, 0.5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.42); opacity: 0.9; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  100% { opacity: 0; }
}
.bar-pin .core {
  position: absolute;
  left: 50%; top: 50%;
  width: 15px; height: 15px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(13, 13, 17, 0.85), 0 0 18px rgba(201, 161, 90, 0.6);
}
.bar-pin .tag {
  position: absolute;
  left: 50%; top: 100%;
  transform: translate(-50%, 10px);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--gold-bright);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.shop-pin {
  width: 100%; height: 100%;
  border-radius: 50%;
  /* dark disc + gold ring: the emoji reads clearly instead of blending
     into a gold background */
  background: #191920;
  border: 2px solid var(--gold);
  box-shadow: 0 0 9px rgba(201, 161, 90, 0.35), 0 2px 8px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s;
}
.shop-pin:hover { transform: scale(1.25); }

/* merged cluster pill: category emojis + count, split apart on zoom-in */
.cluster-wrap { background: none; border: none; }
.cluster-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.28rem;
  background: #191920;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  box-shadow: 0 0 10px rgba(201, 161, 90, 0.35), 0 2px 8px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s;
}
.cluster-pin:hover { transform: translate(-50%, -50%) scale(1.1); }
.cluster-icons { font-size: 13px; line-height: 1; letter-spacing: 0.06em; }
.cluster-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.leaflet-popup-content-wrapper {
  background: var(--panel);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.leaflet-popup-tip { background: var(--panel); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 0.9rem 1.05rem; font-family: var(--sans); }
.pop-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }
.pop-meta { font-size: 0.74rem; letter-spacing: 0.05em; color: var(--gold); margin-top: 0.2rem; }
.pop-btn {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: 0.34rem 0.9rem;
  cursor: pointer;
  font-family: var(--sans);
}
.leaflet-popup-close-button { color: var(--mut) !important; }
.leaflet-control-zoom a {
  background: var(--panel) !important;
  color: var(--cream) !important;
  border-color: var(--line-soft) !important;
}
.leaflet-control-attribution {
  background: rgba(13, 13, 17, 0.7) !important;
  color: #6b655d !important;
  font-size: 0.62rem !important;
}
.leaflet-control-attribution a { color: #8a8378 !important; }

/* ---------------------------------------------------------------- overlay */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 100%);
  place-items: center;
  justify-items: center;
  padding: 1rem;
  background: rgba(8, 8, 11, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.overlay[hidden] { display: none; }
.overlay.show { opacity: 1; }
.sheet {
  width: min(30rem, 100%);
  max-height: min(88dvh, 46rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  scrollbar-width: thin;
}
.overlay.show .sheet { transform: none; }
/* the shell doesn't scroll, so the close button stays put while the
   sheet content scrolls underneath it */
/* width+max-width instead of min(): iOS Safari fails to resolve the 100%
   inside min() on grid items and lets the content dictate the width */
.sheet-shell { position: relative; width: 100%; max-width: 30rem; }
.sheet-shell .sheet { width: 100%; }
.sheet-close {
  position: absolute;
  top: -0.8rem; right: -0.8rem;
  z-index: 5;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: border-color 0.15s, color 0.15s;
}
.sheet-close:hover { border-color: var(--gold); color: var(--gold); }
.sheet-photo {
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--panel-2), #14141a 65%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-photo .ph { font-size: 2.6rem; opacity: 0.45; }
.sheet-body { padding: 1.3rem 1.5rem 1.5rem; }
.sheet-cat {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.sheet-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.15;
  margin-top: 0.3rem;
}
.sheet-note {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #cfc7b8;
}
.sheet-note:empty { display: none; }
.note-by {
  color: var(--gold-bright);
  font-size: 0.88em;
  white-space: nowrap;
}
.sheet-rows { margin-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.srow {
  display: flex;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.srow-k { flex: none; width: 7.2rem; color: var(--mut); letter-spacing: 0.04em; }
.srow-v { color: var(--cream); line-height: 1.5; }
.srow-v.gold { color: var(--gold-bright); }
.srow-v.hours { width: 100%; }
.hline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--mut);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.hline span:first-child { letter-spacing: 0.06em; }
.hline.today { color: var(--gold-bright); }
.hline.today span:first-child::after { content: " ·"; }
#minimap {
  height: 11rem;
  border-radius: 12px;
  margin-top: 1.1rem;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.sheet-gmap {
  width: fit-content;
  margin: 0.85rem 0 0.15rem auto;
  font-size: 0.76rem;
  padding: 0.48rem 1.05rem;
}
.btn-gold {
  display: block;
  margin-top: 1.1rem;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  transition: background 0.18s, transform 0.18s;
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }

/* ------------------------------------------------------------------ foot */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 1.7rem;
  border-top: 1px solid var(--line-soft);
  color: #6b655d;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.foot-mark { color: var(--gold); letter-spacing: 0.4em; text-indent: 0.4em; }

@media (max-width: 640px) {
  .subfilters { gap: 0.45rem 1rem; }
  #bigmap { height: calc(100dvh - 16rem); }
  .srow-k { width: 6rem; }

  /* two cards per row on phones */
  #listView { padding-left: 0.7rem; padding-right: 0.7rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .card { border-radius: 11px; }
  .card-photo { aspect-ratio: 4 / 3; }
  .card-photo .ph { font-size: 1.5rem; }
  .card-body { padding: 0.6rem 0.65rem 0.7rem; }
  .card-name { font-size: 0.95rem; line-height: 1.3; }
  .card-meta { font-size: 0.64rem; margin-top: 0.25rem; line-height: 1.5; }
  .card-meta .dot { margin: 0 0.25rem; }
  .card-by { font-size: 0.64rem; margin-top: 0.3rem; }
}

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