:root {
  --ink: #241b15;
  --muted: #7d6a58;
  --soft: #aa927a;
  --paper: #f2e8d6;
  --paper-deep: #dbc6a8;
  --surface: #fff8ec;
  --surface-soft: #f6ead7;
  --line: #bfa98b;
  --sage: #738865;
  --sage-dark: #405a42;
  --sage-soft: #dbe5d3;
  --brick: #9a6048;
  --brick-soft: #e8c7ae;
  --gold: #d2a756;
  --blue: #5d7481;
  --wood-deep: #3a2419;
  --wood: #6f4630;
  --wood-mid: #8b5e3c;
  --wood-light: #b98858;
  --wood-gold: #d9b06f;
  --shelf-shadow: rgba(31, 20, 13, 0.34);
  --glass: rgba(255, 248, 236, 0.58);
  --glass-strong: rgba(255, 248, 236, 0.72);
  --glass-soft: rgba(246, 234, 215, 0.44);
  --glass-line: rgba(255, 248, 236, 0.58);
  --liquid-border: rgba(255, 248, 236, 0.64);
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-soft: 0 24px 64px rgba(31, 20, 13, 0.24);
  --shadow-card: 0 18px 42px rgba(31, 20, 13, 0.2);
  --shadow-light: 0 10px 26px rgba(31, 20, 13, 0.16);
  --shadow-liquid: 0 22px 58px rgba(31, 20, 13, 0.26), inset 0 1px 0 rgba(255, 248, 236, 0.5);
  --ease-bounce: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-liquid: cubic-bezier(0.18, 0.84, 0.28, 1);
  font-family:
    Pretendard, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 176, 111, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(58, 36, 25, 0.96), rgba(111, 70, 48, 0.92) 42%, rgba(52, 35, 25, 0.98)),
    var(--wood-deep);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(255, 248, 236, 0.05) 1px, transparent 1px),
    repeating-linear-gradient(8deg, rgba(255, 248, 236, 0.035) 0 1px, transparent 1px 9px);
  background-size: 84px 100%, 100% 100%;
  mix-blend-mode: soft-light;
  content: "";
  pointer-events: none;
}

@keyframes liquid-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }

  64% {
    opacity: 1;
    transform: translateY(-3px) scale(1.035);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes liquid-sheet-in {
  0% {
    transform: translateY(calc(100% + 18px)) scaleY(0.96);
  }

  68% {
    transform: translateY(-9px) scaleY(1.01);
  }

  100% {
    transform: translateY(0) scaleY(1);
  }
}

@keyframes liquid-button-pop {
  0% {
    transform: translateX(-50%) translateY(12px) scale(0.92);
  }

  70% {
    transform: translateX(-50%) translateY(-4px) scale(1.045);
  }

  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes map-card-bounce-in {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.82);
    filter: blur(5px);
  }

  58% {
    opacity: 1;
    transform: translateY(-5px) scale(1.055);
    filter: blur(0);
  }

  78% {
    transform: translateY(2px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes map-pill-bounce-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.72);
    filter: blur(4px);
  }

  66% {
    opacity: 1;
    transform: translateY(-3px) scale(1.08);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes map-dot-pulse-in {
  0% {
    opacity: 0;
    transform: scale(0.45);
  }

  70% {
    opacity: 1;
    transform: scale(1.28);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nearby-index-in {
  from {
    opacity: 0;
    transform: translateX(-16px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes nearby-index-select {
  50% {
    transform: translateX(-8px) scale(0.97);
  }

  100% {
    opacity: 0;
    transform: translateX(-18px) scale(0.94);
  }
}

@keyframes intro-mark-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes intro-line-draw {
  0% {
    stroke-dashoffset: 620;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes intro-dissolve {
  0% {
    opacity: 1;
    filter: blur(0);
  }

  65% {
    opacity: 0.18;
    filter: blur(4px);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
  }
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 253, 248, 0.72), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(247, 241, 230, 0.96)),
    var(--paper);
}

.intro-screen::before,
.intro-screen::after,
.intro-paper-grain {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.intro-screen::before {
  z-index: 1;
  background: rgba(255, 253, 248, 0.16);
}

.intro-screen::after {
  z-index: 2;
  background-image:
    linear-gradient(rgba(138, 106, 86, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 122, 103, 0.024) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: multiply;
}

.intro-paper-grain {
  z-index: 3;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(98deg, rgba(43, 41, 37, 0.018) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(8deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 7px);
}

.intro-screen.is-hiding {
  animation: intro-dissolve 880ms ease-in-out forwards;
  pointer-events: none;
}

.intro-screen.is-hidden {
  display: none;
}

.intro-skip {
  position: relative;
  display: grid;
  width: min(100vw, 640px);
  min-height: min(100vh, 720px);
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.intro-page-stack {
  display: none;
}

.intro-page {
  position: absolute;
  inset: -4vh -4vw;
  border-left: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.92), rgba(247, 241, 230, 0.95) 54%, rgba(255, 253, 248, 0.84)),
    repeating-linear-gradient(96deg, rgba(43, 41, 37, 0.018) 0 1px, transparent 1px 6px),
    var(--surface);
  box-shadow:
    -28px 16px 58px rgba(62, 54, 42, 0.16),
    -8px 42px 62px rgba(62, 54, 42, 0.14),
    inset 12px 0 24px rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform-origin: left center;
}

.intro-page::before,
.intro-page::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.intro-page::before {
  background:
    linear-gradient(162deg, transparent 42%, rgba(62, 54, 42, 0.16) 58%, transparent 76%),
    radial-gradient(ellipse at 62% 82%, rgba(62, 54, 42, 0.18), transparent 44%);
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.intro-page::after {
  background:
    radial-gradient(circle at 28% 32%, rgba(190, 164, 122, 0.06), transparent 26%),
    linear-gradient(90deg, rgba(62, 54, 42, 0.05), transparent 16%, rgba(255, 255, 255, 0.18));
}

.intro-skip:focus-visible {
  outline: 2px solid rgba(79, 111, 93, 0.45);
  outline-offset: -18px;
}

.intro-mark {
  position: relative;
  z-index: 1;
  width: min(54vw, 260px);
  max-width: 260px;
  filter: drop-shadow(0 10px 20px rgba(62, 54, 42, 0.08));
  opacity: 0;
  transform-origin: 50% 58%;
  animation: intro-mark-in 720ms 120ms var(--ease-liquid) forwards;
}

.intro-pen {
  fill: none;
  stroke: rgba(43, 41, 37, 0.74);
  stroke-width: 5.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: intro-line-draw 1600ms 260ms var(--ease-liquid) forwards;
}

.intro-pen-soft {
  stroke: rgba(111, 139, 120, 0.54);
  stroke-width: 4.6;
}

.intro-pen-fine {
  stroke: rgba(43, 41, 37, 0.48);
  stroke-width: 3.2;
  animation-delay: 420ms;
}

.intro-studio {
  position: absolute;
  right: 0;
  bottom: clamp(34px, 8vh, 70px);
  left: 0;
  z-index: 1;
  color: rgba(43, 41, 37, 0.62);
  font-size: clamp(15px, 3.6vw, 19px);
  font-weight: 720;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.5);
  opacity: 0;
  transform: translateY(6px);
  animation: intro-mark-in 620ms 520ms var(--ease-liquid) forwards;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(220px, 520px) auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px clamp(16px, 3.2vw, 30px);
  border-bottom: 1px solid rgba(217, 176, 111, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 248, 236, 0.08) 0 1px, transparent 1px 62px),
    linear-gradient(135deg, rgba(93, 57, 37, 0.96), rgba(52, 33, 23, 0.96)),
    var(--wood-deep);
  background-size: 62px 100%, 100% 100%, 100% 100%;
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow:
    0 12px 34px rgba(31, 20, 13, 0.38),
    inset 0 -1px 0 rgba(255, 248, 236, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff3df;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 176, 111, 0.42);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.22), transparent 38%),
    linear-gradient(145deg, var(--wood-light), var(--brick));
  box-shadow: 0 8px 22px rgba(31, 20, 13, 0.28), inset 0 1px 0 rgba(255, 248, 236, 0.3);
  color: #fffdf8;
  font-family: Georgia, serif;
  font-size: 18px;
}

.search-wrap {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #cdb28b;
  transform: translateY(-50%);
}

#searchInput {
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid rgba(217, 176, 111, 0.44);
  border-radius: 999px;
  outline: none;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.2), rgba(217, 176, 111, 0.08)),
    rgba(36, 24, 18, 0.62);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.12), 0 8px 24px rgba(31, 20, 13, 0.18);
  color: #fff6e8;
}

#searchInput::placeholder {
  color: rgba(255, 236, 205, 0.62);
}

#searchInput:focus {
  border-color: rgba(217, 176, 111, 0.72);
  box-shadow:
    0 0 0 3px rgba(217, 176, 111, 0.16),
    inset 0 1px 0 rgba(255, 248, 236, 0.16);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.icon-button,
.feed-actions button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(217, 176, 111, 0.4);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.16), rgba(217, 176, 111, 0.08)),
    rgba(36, 24, 18, 0.46);
  backdrop-filter: blur(14px) saturate(1.08);
  color: #f9e8cc;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 180ms var(--ease-bounce);
}

.icon-button.active,
.icon-button:hover,
.feed-actions button:hover {
  border-color: rgba(217, 176, 111, 0.72);
  background:
    linear-gradient(145deg, rgba(217, 176, 111, 0.24), rgba(154, 96, 72, 0.16)),
    rgba(58, 36, 25, 0.68);
  color: #fff7e8;
}

.icon-button:active,
.feed-actions button:active,
.nearby-button:active {
  transform: translateY(1px);
}

.app-shell {
  display: block;
  min-height: calc(100vh - 70px);
}

.map-panel {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(58, 36, 25, 0.88), rgba(139, 94, 60, 0.62)),
    var(--wood);
}

.map-panel::after {
  position: absolute;
  inset: 0;
  z-index: 140;
  background:
    linear-gradient(rgba(58, 36, 25, 0.2), rgba(58, 36, 25, 0.3)),
    radial-gradient(circle at 50% 42%, rgba(217, 176, 111, 0.1), transparent 38%);
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(82, 55, 38, 0.22), rgba(58, 36, 25, 0.24)),
    #d6c4a7;
}

.map > div {
  filter: saturate(0.86) contrast(0.94) brightness(0.92);
}

.fallback-map::before,
.fallback-map::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.fallback-map::before {
  background:
    radial-gradient(circle at 38% 34%, rgba(95, 122, 103, 0.18), transparent 18%),
    radial-gradient(circle at 61% 58%, rgba(184, 106, 82, 0.14), transparent 20%),
    linear-gradient(115deg, transparent 42%, rgba(97, 121, 143, 0.14) 43% 46%, transparent 47%),
    linear-gradient(28deg, transparent 48%, rgba(199, 162, 86, 0.16) 49% 52%, transparent 53%);
}

.fallback-map::after {
  border: 1px solid rgba(95, 122, 103, 0.1);
  background-image:
    linear-gradient(90deg, rgba(95, 122, 103, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(95, 122, 103, 0.12) 1px, transparent 1px);
  background-size: 92px 92px;
}

.fallback-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: var(--shadow-light);
  color: #fff;
  font-weight: 850;
  transform: translate(-50%, -50%);
}

.map-illustration-overlay {
  position: absolute;
  z-index: 120;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 18px;
  opacity: var(--overlay-opacity, 0.68);
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: saturate(0.92) contrast(1.04);
  box-shadow:
    0 18px 44px rgba(48, 58, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.map-illustration-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.map-feed-layer {
  position: absolute;
  inset: 0;
  z-index: 470;
  overflow: hidden;
  pointer-events: none;
}

.map-store-marker {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  vertical-align: top;
}

.map-dot {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 50%;
  background: color-mix(in srgb, var(--store-color), var(--ink) 30%);
  box-shadow:
    0 3px 8px rgba(43, 41, 37, 0.18),
    0 0 0 3px rgba(255, 253, 248, 0.22);
  transform-origin: 50% 50%;
}

.map-store-marker .map-pin-label,
.map-store-marker .map-feed-card,
.map-store-marker .main-info-card-wrapper {
  display: none;
}

.map-store-marker.stage-3 .map-pin-label {
  display: inline-flex;
}

.map-store-marker.stage-2 .map-feed-card,
.map-store-marker.stage-1 .map-feed-card {
  display: block;
}

.map-store-marker.stage-1 .main-info-card-wrapper {
  position: absolute;
  bottom: 42px;
  left: 50%;
  display: block;
  transform: translateX(calc(-50% + var(--main-card-shift-x, 0px)));
}

.map-store-marker.stage-1 {
  display: block;
  width: 12px;
  height: 12px;
}

.map-store-marker.stage-2 .map-feed-card {
  width: max-content;
  min-width: 72px;
  max-width: min(220px, calc(100vw - 40px));
  border-color: rgba(217, 176, 111, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(139, 94, 60, 0.66), rgba(58, 36, 25, 0.54)),
    rgba(58, 36, 25, 0.5);
  backdrop-filter: blur(8px) saturate(1.02);
  box-shadow: 0 10px 24px rgba(31, 20, 13, 0.18), inset 0 1px 0 rgba(255, 248, 236, 0.3);
  transform-origin: 50% 100%;
}

.map-store-marker.stage-2 .map-feed-card::after {
  width: 8px;
  height: 8px;
  border-color: color-mix(in srgb, var(--store-color), var(--line) 72%);
}

.map-store-marker.stage-2 .map-feed-media,
.map-store-marker.stage-2 .map-feed-topline small,
.map-store-marker.stage-2 .map-feed-body p,
.map-store-marker.stage-2 .map-feed-tags,
.map-store-marker.stage-2 .map-card-actions {
  display: none;
}

.map-store-marker.stage-2 .map-feed-body {
  display: block;
  padding: 7px 12px;
}

.map-store-marker.stage-2 .map-feed-topline {
  display: block;
}

.map-store-marker.stage-2 .map-feed-topline strong {
  display: inline-block;
  overflow: hidden;
  max-width: 188px;
  color: #fff7e8;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-store-marker.stage-2 .map-feed-topline strong::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--store-color);
  content: "";
  vertical-align: 1px;
}

.map-store-marker.stage-2 .map-dot,
.map-store-marker.stage-3 .map-dot {
  display: none;
}

.map-store-marker.stage-1 .map-dot {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 50%;
  z-index: 4;
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 248, 236, 0.92);
  background: color-mix(in srgb, var(--store-color), var(--wood-deep) 24%);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--store-color), transparent 76%),
    0 8px 18px rgba(31, 20, 13, 0.26);
  transform: translate(-50%, -50%);
}

.map-store-marker.is-selected .map-pin-label,
.map-store-marker.is-selected .map-dot {
  border-color: rgba(95, 122, 103, 0.62);
  box-shadow: 0 0 0 5px rgba(95, 122, 103, 0.16), var(--shadow-light);
}

.map-store-marker.is-entering.stage-1 .map-feed-card {
  animation: map-card-bounce-in 520ms var(--ease-liquid) both;
  animation-delay: var(--rank-delay, 0ms);
}

.map-store-marker.is-entering.stage-2 .map-feed-card,
.map-store-marker.is-entering.stage-3 .map-pin-label {
  animation: map-pill-bounce-in 420ms var(--ease-liquid) both;
  animation-delay: var(--rank-delay, 0ms);
}

.map-store-marker.is-entering.stage-4 .map-dot {
  animation: map-dot-pulse-in 320ms var(--ease-liquid) both;
  animation-delay: var(--rank-delay, 0ms);
}

.floating-feed-card {
  position: absolute;
  width: 224px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: var(--feed-opacity, 1);
  pointer-events: auto;
  transform: translate(-50%, -100%) scale(1);
  transform-origin: 50% 100%;
  transition:
    width 260ms var(--ease-liquid),
    opacity 180ms ease,
    transform 320ms var(--ease-bounce);
  will-change: opacity, transform, width;
}

.floating-feed-card.stage-2 {
  width: 124px;
  transform: translate(-50%, -100%);
}

.floating-feed-card.stage-3 {
  width: 92px;
  transform: translate(-50%, -100%);
}

.floating-feed-card.pin-only {
  transform: translate(-50%, -50%);
}

.floating-feed-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% + 12px)) scale(0.46);
}

.floating-feed-card.is-selected .map-feed-card {
  border-color: color-mix(in srgb, var(--store-color), var(--sage) 34%);
  box-shadow:
    0 0 0 4px rgba(95, 122, 103, 0.1),
    0 16px 42px rgba(48, 58, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.map-feed-card {
  position: relative;
  z-index: 2;
  width: 238px;
  overflow: visible;
  border: 1px solid rgba(217, 176, 111, 0.54);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(58, 36, 25, 0.92) 0 64px, rgba(255, 248, 236, 0) 64px),
    linear-gradient(90deg, rgba(111, 70, 48, 0.74) 0 10px, transparent 10px),
    radial-gradient(circle at 20% 0%, rgba(255, 248, 236, 0.5), transparent 32%),
    linear-gradient(145deg, rgba(250, 240, 222, 0.88), rgba(230, 206, 171, 0.68) 58%, rgba(181, 126, 77, 0.34)),
    rgba(244, 226, 195, 0.76);
  backdrop-filter: blur(12px) saturate(1.02);
  box-shadow:
    0 24px 48px rgba(31, 20, 13, 0.28),
    0 2px 12px rgba(111, 70, 48, 0.18),
    inset 0 1px 0 rgba(255, 248, 236, 0.56);
  text-align: left;
  transform-origin: 50% 100%;
  transition:
    width 260ms var(--ease-liquid),
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 280ms var(--ease-bounce);
}

.map-store-marker.stage-1 .map-feed-card::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, rgba(255, 248, 236, 0.035) 0 1px, transparent 1px 48px),
    radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.24), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(217, 176, 111, 0.14), transparent 24%);
  content: "";
  pointer-events: none;
}

.floating-feed-card.stage-1:not(.is-hidden) .map-feed-card {
  animation: liquid-pop 360ms var(--ease-liquid) both;
}

.stage-2 .map-feed-card,
.stage-3 .map-feed-card {
  width: 100%;
  border-color: rgba(217, 176, 111, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(139, 94, 60, 0.68), rgba(58, 36, 25, 0.56)),
    rgba(58, 36, 25, 0.52);
  backdrop-filter: blur(8px) saturate(1.04);
  box-shadow: 0 10px 24px rgba(31, 20, 13, 0.18), inset 0 1px 0 rgba(255, 248, 236, 0.3);
  transform-origin: 50% 100%;
}

.stage-2 .map-feed-card::after,
.stage-3 .map-feed-card::after {
  width: 8px;
  height: 8px;
  border-color: color-mix(in srgb, var(--store-color), var(--line) 72%);
}

.stage-2 .map-feed-media,
.stage-3 .map-feed-media,
.stage-2 .map-feed-topline small,
.stage-3 .map-feed-topline small,
.stage-2 .map-feed-body p,
.stage-3 .map-feed-body p,
.stage-2 .map-feed-tags,
.stage-3 .map-feed-tags,
.stage-2 .map-card-actions,
.stage-3 .map-card-actions {
  display: none;
}

.stage-2 .map-feed-body,
.stage-3 .map-feed-body {
  display: block;
  padding: 7px 10px;
}

.stage-2 .map-feed-topline,
.stage-3 .map-feed-topline {
  display: block;
}

.stage-2 .map-feed-topline strong,
.stage-3 .map-feed-topline strong {
  overflow: hidden;
  color: #fff1d7;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-2 .map-feed-topline strong::before,
.stage-3 .map-feed-topline strong::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--store-color);
  content: "";
  vertical-align: 1px;
}

.stage-3 .map-feed-topline strong {
  font-size: 10px;
}

.pin-only .map-feed-card {
  display: none;
}

.map-pin-label {
  display: none;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: min(220px, calc(100vw - 40px));
  padding: 5px 8px;
  border: 1px solid rgba(217, 176, 111, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(139, 94, 60, 0.62), rgba(58, 36, 25, 0.46)),
    rgba(58, 36, 25, 0.48);
  backdrop-filter: blur(5px) saturate(1.06);
  box-shadow: 0 5px 14px rgba(31, 20, 13, 0.16), inset 0 1px 0 rgba(255, 248, 236, 0.2);
  color: #fff1d7;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
  transform-origin: 50% 100%;
}

.map-pin-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--store-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-color), transparent 82%);
}

.floating-feed-card.is-selected .map-pin-label span {
  box-shadow: 0 0 0 5px rgba(95, 122, 103, 0.18);
}

.pin-only .map-pin-label {
  display: inline-flex;
}

.map-feed-card::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-right: 1px solid rgba(255, 253, 248, 0.34);
  border-bottom: 1px solid rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.26);
  backdrop-filter: blur(6px) saturate(1.08);
  content: "";
  transform: rotate(45deg);
}

.map-store-marker.stage-1 .map-feed-card::after {
  z-index: 1;
  display: block;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-right-color: rgba(255, 253, 248, 0.38);
  border-bottom-color: rgba(255, 253, 248, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(247, 241, 230, 0.16)),
    rgba(255, 253, 248, 0.42);
  box-shadow: 8px 8px 18px rgba(48, 58, 50, 0.08);
}

.nearby-index-list {
  position: absolute;
  top: 13px;
  left: calc(100% - 8px);
  z-index: 1;
  display: grid;
  gap: 5px;
  width: 132px;
  pointer-events: auto;
}

.nearby-index {
  --index-color: var(--point-yellow);
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) 23px;
  gap: 6px;
  align-items: center;
  width: 132px;
  min-width: 0;
  height: 46px;
  padding: 5px 8px 5px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 236, 0.48);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--index-color), transparent 72%), transparent 48%),
    rgba(255, 248, 236, 0.94);
  box-shadow:
    0 8px 20px rgba(7, 24, 45, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--navy);
  text-align: left;
  pointer-events: auto;
  transform-origin: 0 50%;
  animation: nearby-index-in 360ms var(--index-delay) var(--ease-liquid) both;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-liquid);
}

.nearby-index::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--index-color);
  content: "";
}

.nearby-index-rank1 {
  --index-color: var(--point-yellow);
}

.nearby-index-rank2 {
  --index-color: var(--point-purple);
}

.nearby-index-rank3 {
  --index-color: var(--point-green);
}

.nearby-index:hover,
.nearby-index:focus-visible {
  z-index: 2;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--index-color), transparent 58%), transparent 54%),
    var(--paper);
  box-shadow:
    0 12px 28px rgba(7, 24, 45, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

.nearby-index:active {
  transform: translateX(1px) scale(0.98);
}

.nearby-index.is-selecting {
  animation: nearby-index-select 160ms ease forwards;
}

.nearby-index-rank {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 4px;
  background: var(--index-color);
  color: var(--navy-deep);
  font-size: 9px;
  font-weight: 900;
}

.nearby-index-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.nearby-index-copy strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-index-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  line-height: 1;
}

.nearby-index-arrow {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--index-color), var(--navy) 22%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--index-color), transparent 78%);
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  transform: rotate(var(--direction-angle));
}

.map-feed-media {
  position: relative;
  z-index: 2;
  overflow: hidden;
  height: 78px;
  border-radius: 13px 13px 0 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.5);
  background:
    linear-gradient(135deg, rgba(43, 41, 37, 0.06), rgba(255, 253, 248, 0.18)),
    var(--media);
}

.map-feed-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  padding: 12px 13px 14px;
}

.map-feed-topline {
  display: grid;
  gap: 3px;
}

.map-feed-topline strong {
  color: #2f2118;
  font-size: 15px;
  font-weight: 880;
  line-height: 1.22;
}

.map-feed-topline small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.map-feed-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6f5b49;
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-feed-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(217, 176, 111, 0.22);
  color: #5b3a27;
  font-size: 9px;
  font-weight: 850;
}

.map-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding-top: 2px;
}

.map-card-actions button {
  min-width: 0;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(139, 94, 60, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.46), rgba(217, 176, 111, 0.14)),
    rgba(255, 248, 236, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.46);
  color: #5b3a27;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 220ms var(--ease-liquid);
}

.map-card-actions button:hover {
  border-color: rgba(139, 94, 60, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.52), rgba(217, 176, 111, 0.22)),
    rgba(139, 94, 60, 0.12);
}

.map-card-actions button:active {
  transform: translateY(1px) scale(0.98);
}

.eyebrow {
  margin: 0 0 6px;
  color: #e1bd82;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 600px;
  font-size: 40px;
  line-height: 1.05;
}

h2 {
  color: #fff3df;
  font-size: 25px;
  font-weight: 850;
}

.nearby-button {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 520;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(217, 176, 111, 0.58);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.18), transparent 44%),
    rgba(58, 36, 25, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow-liquid);
  color: #fffdf8;
  font-weight: 850;
  transition:
    background 160ms ease,
    transform 220ms var(--ease-bounce),
    box-shadow 160ms ease;
}

.nearby-button:hover {
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.22), transparent 44%),
    rgba(111, 70, 48, 0.86);
  box-shadow: 0 14px 34px rgba(31, 20, 13, 0.26);
}

.nearby-button:disabled {
  cursor: wait;
}

.nearby-button.is-loading {
  color: transparent;
}

.nearby-button.is-loading::after {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 248, 236, 0.34);
  border-top-color: var(--point-yellow);
  border-radius: 50%;
  content: "";
  animation: location-spin 760ms linear infinite;
}

.nearby-button.is-located {
  border-color: rgba(79, 167, 155, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.18), transparent 44%),
    rgba(79, 167, 155, 0.92);
  box-shadow:
    0 0 0 4px rgba(79, 167, 155, 0.16),
    0 14px 34px rgba(7, 24, 45, 0.24);
}

.nearby-button.is-error {
  border-color: rgba(242, 122, 61, 0.7);
}

.location-status {
  position: absolute;
  right: 22px;
  bottom: 74px;
  z-index: 521;
  max-width: min(280px, calc(100% - 36px));
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 248, 236, 0.46);
  border-radius: 8px;
  background: rgba(16, 35, 63, 0.92);
  box-shadow: 0 12px 28px rgba(7, 24, 45, 0.24);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.location-status[data-state="success"] {
  border-color: rgba(79, 167, 155, 0.66);
}

.location-status[data-state="error"] {
  border-color: rgba(242, 122, 61, 0.68);
}

.current-location-marker {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--point-green);
  box-shadow:
    0 0 0 7px rgba(79, 167, 155, 0.2),
    0 5px 14px rgba(7, 24, 45, 0.34);
}

.current-location-marker::before {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(79, 167, 155, 0.52);
  border-radius: 50%;
  content: "";
  animation: current-location-pulse 2.2s ease-out infinite;
}

.current-location-marker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper);
}

@keyframes location-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes current-location-pulse {
  0% {
    opacity: 0.82;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.feed-toggle-button {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1120;
  display: grid;
  width: 92px;
  height: 60px;
  place-items: center;
  padding: 8px 10px 8px 15px;
  border: 1px solid rgba(217, 176, 111, 0.58);
  border-left: 8px solid rgba(58, 36, 25, 0.88);
  border-radius: 8px 13px 13px 8px;
  background:
    linear-gradient(90deg, rgba(58, 36, 25, 0.72) 0 10px, transparent 10px 14px, rgba(154, 96, 72, 0.72) 14px 27px, transparent 27px 31px, rgba(217, 176, 111, 0.5) 31px 44px, transparent 44px),
    radial-gradient(circle at 22% 15%, rgba(255, 248, 236, 0.42), transparent 27%),
    linear-gradient(135deg, rgba(139, 94, 60, 0.92), rgba(58, 36, 25, 0.9) 64%, rgba(31, 20, 13, 0.86));
  background-size: 100% 100%;
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    inset 4px 0 0 rgba(255, 253, 248, 0.42),
    var(--shadow-liquid);
  color: #ffe8bf;
  font-size: 13px;
  font-weight: 900;
  transform: translateX(-50%);
  transition:
    bottom 390ms var(--ease-bounce),
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 260ms var(--ease-bounce);
}

.feed-toggle-button:hover {
  background:
    linear-gradient(90deg, rgba(58, 36, 25, 0.78) 0 10px, transparent 10px 14px, rgba(154, 96, 72, 0.78) 14px 27px, transparent 27px 31px, rgba(217, 176, 111, 0.58) 31px 44px, transparent 44px),
    radial-gradient(circle at 22% 15%, rgba(255, 248, 236, 0.48), transparent 27%),
    linear-gradient(135deg, rgba(166, 108, 68, 0.96), rgba(58, 36, 25, 0.94) 58%, rgba(31, 20, 13, 0.86));
  box-shadow: 0 16px 38px rgba(31, 20, 13, 0.3);
  color: #fff4df;
}

.feed-toggle-button:active {
  transform: translateX(-50%) translateY(1px);
}

body.feed-open .feed-toggle-button {
  bottom: calc(min(66.666vh, calc(100vh - 92px)) - 1px);
  border-bottom-color: rgba(217, 176, 111, 0.44);
  background:
    linear-gradient(90deg, rgba(58, 36, 25, 0.74) 0 10px, transparent 10px 14px, rgba(154, 96, 72, 0.76) 14px 27px, transparent 27px 31px, rgba(217, 176, 111, 0.56) 31px 44px, transparent 44px),
    radial-gradient(circle at 22% 15%, rgba(255, 248, 236, 0.46), transparent 27%),
    linear-gradient(135deg, rgba(139, 94, 60, 0.95), rgba(58, 36, 25, 0.95) 62%, rgba(31, 20, 13, 0.86));
  box-shadow: 0 -10px 28px rgba(31, 20, 13, 0.28);
  color: #fff2d8;
  animation: liquid-button-pop 360ms var(--ease-liquid) both;
}

.book-cover-label {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 6px 10px 10px 6px;
  background:
    linear-gradient(90deg, rgba(31, 20, 13, 0.34) 0 18%, transparent 18%),
    linear-gradient(145deg, rgba(255, 248, 236, 0.2), rgba(217, 176, 111, 0.08)),
    rgba(58, 36, 25, 0.34);
  letter-spacing: 0;
}

.feed-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: min(66.666vh, calc(100vh - 92px));
  padding: 14px clamp(14px, 3vw, 28px) 26px;
  overflow: auto;
  border: 1px solid rgba(217, 176, 111, 0.42);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 248, 236, 0.16), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255, 248, 236, 0.04) 0 1px, transparent 1px 64px),
    linear-gradient(rgba(139, 94, 60, 0.74) 0 31%, rgba(58, 36, 25, 0.86) 31% 33%, rgba(111, 70, 48, 0.78) 33% 64%, rgba(58, 36, 25, 0.86) 64% 66%, rgba(93, 57, 37, 0.8) 66% 100%),
    rgba(58, 36, 25, 0.88);
  background-size: 100% 100%, 100% 126px, 100% 126px, 100% 100%;
  backdrop-filter: blur(24px) saturate(1.06);
  box-shadow: 0 -26px 76px rgba(31, 20, 13, 0.44), inset 0 1px 0 rgba(255, 248, 236, 0.12);
  pointer-events: none;
  transform: translateY(calc(100% + 18px));
  transition: transform 420ms var(--ease-bounce);
  will-change: transform;
}

body.feed-open .feed-panel {
  pointer-events: auto;
  transform: translateY(0);
  animation: liquid-sheet-in 460ms var(--ease-liquid) both;
}

.sheet-handle {
  flex: 0 0 auto;
  align-self: center;
  width: 42px;
  height: 4px;
  margin: 2px 0 0;
  border-radius: 999px;
  background: rgba(255, 220, 164, 0.36);
}

.feed-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(217, 176, 111, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.14), rgba(217, 176, 111, 0.06)),
    rgba(36, 24, 18, 0.22);
  backdrop-filter: blur(14px) saturate(1.04);
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 164px;
  padding: 3px;
  border: 1px solid rgba(217, 176, 111, 0.36);
  border-radius: var(--radius-sm);
  background: rgba(36, 24, 18, 0.3);
  backdrop-filter: blur(14px) saturate(1.04);
}

.segment {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 232, 191, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.segment.active {
  background: linear-gradient(145deg, rgba(217, 176, 111, 0.86), rgba(154, 96, 72, 0.78));
  box-shadow: 0 8px 22px rgba(31, 20, 13, 0.22), inset 0 1px 0 rgba(255, 248, 236, 0.2);
  color: #2f2118;
}

.store-strip {
  display: grid;
  grid-auto-columns: minmax(184px, 1fr);
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.store-strip::-webkit-scrollbar,
.feed-panel::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.store-strip::-webkit-scrollbar-thumb,
.feed-panel::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(217, 176, 111, 0.46);
  background-clip: content-box;
}

.store-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid rgba(217, 176, 111, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(58, 36, 25, 0.42) 0 8px, transparent 8px),
    linear-gradient(145deg, rgba(255, 248, 236, 0.18), rgba(217, 176, 111, 0.07)),
    rgba(36, 24, 18, 0.36);
  backdrop-filter: blur(14px) saturate(1.04);
  box-shadow: 0 10px 26px rgba(31, 20, 13, 0.22), inset 0 1px 0 rgba(255, 248, 236, 0.12);
  color: #fff3df;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 220ms var(--ease-bounce);
}

.store-pill.active,
.store-pill:hover {
  border-color: rgba(217, 176, 111, 0.58);
  background:
    linear-gradient(90deg, rgba(217, 176, 111, 0.44) 0 8px, transparent 8px),
    linear-gradient(145deg, rgba(255, 248, 236, 0.22), rgba(217, 176, 111, 0.12)),
    rgba(58, 36, 25, 0.46);
  box-shadow: 0 12px 30px rgba(31, 20, 13, 0.28);
  transform: translateY(-1px) scale(1.01);
}

.store-thumb,
.avatar {
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--thumb);
  background-position: center;
  background-size: cover;
}

.store-thumb {
  width: 44px;
  height: 44px;
}

.store-meta strong,
.feed-author strong {
  display: block;
  color: #2d2118;
  line-height: 1.2;
}

.store-meta small,
.feed-author small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.store-pill .store-meta strong {
  color: #fff3df;
}

.store-pill .store-meta small {
  color: rgba(255, 232, 191, 0.72);
}

.feed-list {
  display: grid;
  gap: 15px;
}

.feed-card {
  overflow: hidden;
  border: 1px solid rgba(217, 176, 111, 0.34);
  border-left: 8px solid color-mix(in srgb, var(--wood), var(--brick) 32%);
  border-radius: 6px 10px 10px 6px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 248, 236, 0.72), transparent 28%),
    linear-gradient(90deg, rgba(31, 20, 13, 0.08) 0 1px, transparent 1px 100%),
    rgba(255, 248, 236, 0.84);
  background-size: 100% 100%, 10px 100%, 100% 100%;
  backdrop-filter: blur(18px) saturate(1.04);
  box-shadow:
    inset 3px 0 0 rgba(255, 248, 236, 0.54),
    0 16px 36px rgba(31, 20, 13, 0.24);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 260ms var(--ease-bounce);
}

.feed-card:hover {
  border-color: rgba(217, 176, 111, 0.56);
  box-shadow:
    inset 3px 0 0 rgba(255, 248, 236, 0.66),
    var(--shadow-card);
  transform: translateY(-3px) scale(1.005);
}

.feed-card-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 178px;
  max-height: 360px;
  overflow: hidden;
  border-bottom: 1px solid rgba(191, 169, 139, 0.72);
  background:
    linear-gradient(135deg, rgba(31, 35, 33, 0.08), rgba(255, 253, 248, 0.12)),
    var(--media);
  background-color: rgba(58, 36, 25, 0.32);
  background-size: cover;
  background-position: center;
}

.feed-card-media::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(58, 36, 25, 0.22);
  backdrop-filter: blur(18px) saturate(0.74) brightness(0.9);
}

.feed-card-media-object {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

img.feed-card-media-object {
  height: auto;
}

video.feed-card-media-object {
  height: 100%;
  min-height: 220px;
  background: rgba(31, 20, 13, 0.36);
}

.feed-card-body {
  display: grid;
  gap: 13px;
  padding: 15px;
}

.feed-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
}

.feed-copy {
  margin: 0;
  color: #3b3027;
  font-size: 14px;
  line-height: 1.6;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(217, 176, 111, 0.18);
  backdrop-filter: blur(12px) saturate(1.1);
  color: #5b3a27;
  font-size: 11px;
  font-weight: 850;
}

.feed-actions {
  display: flex;
  gap: 7px;
}

.custom-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: var(--shadow-light);
  color: #fff;
  font-weight: 850;
}

.popup-title {
  margin: 0 0 4px;
  font-weight: 850;
}

.popup-copy {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .search-wrap {
    grid-column: 1 / -1;
    order: 3;
  }

  .map-panel {
    position: relative;
    top: 0;
    height: calc(100vh - 122px);
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 12px;
    padding: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .feed-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nearby-button {
    right: 14px;
    bottom: 76px;
  }

  .location-status {
    right: 14px;
    bottom: 128px;
  }

  .feed-toggle-button {
    bottom: 16px;
    width: 92px;
    min-width: 0;
    height: 58px;
  }

  .map-feed-card,
  .floating-feed-card {
    width: 204px;
  }

  .floating-feed-card.stage-2 {
    width: 112px;
  }

  .floating-feed-card.stage-3 {
    width: 86px;
  }

  .map-feed-media {
    height: 54px;
  }

  .map-feed-body p {
    font-size: 10px;
  }

  .feed-panel {
    height: min(66.666vh, calc(100vh - 78px));
    padding: 10px 14px 18px;
  }

  body.feed-open .feed-toggle-button {
    bottom: calc(min(66.666vh, calc(100vh - 78px)) - 1px);
  }

  .feed-controls {
    align-items: stretch;
  }

  .segmented {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .nearby-index {
    animation-name: none !important;
    opacity: 1;
  }
}

/* Deep Navy & Book Point theme override */
:root {
  --ink: #241b15;
  --muted: #6f6a61;
  --soft: #8a8175;
  --paper: #fff8ec;
  --paper-deep: #f4ebdd;
  --surface: #fff8ec;
  --surface-soft: #f4ebdd;
  --line: rgba(16, 35, 63, 0.14);
  --sage: #6f8f72;
  --sage-dark: #466447;
  --brick: #f27a3d;
  --gold: #f5c542;
  --blue: #10233f;
  --navy-deep: #07182d;
  --navy: #10233f;
  --navy-surface: #162b4a;
  --point-yellow: #f5c542;
  --point-orange: #f27a3d;
  --point-green: #6f8f72;
  --point-purple: #7161a8;
  --glass: rgba(255, 248, 236, 0.72);
  --glass-strong: rgba(255, 248, 236, 0.88);
  --glass-soft: rgba(255, 248, 236, 0.52);
  --glass-line: rgba(255, 248, 236, 0.22);
  --liquid-border: rgba(255, 248, 236, 0.52);
  --shadow-soft: 0 24px 64px rgba(7, 24, 45, 0.24);
  --shadow-card: 0 14px 36px rgba(7, 24, 45, 0.28);
  --shadow-light: 0 10px 26px rgba(7, 24, 45, 0.16);
  --shadow-liquid: 0 18px 42px rgba(7, 24, 45, 0.24), inset 0 1px 0 rgba(255, 248, 236, 0.34);
}

body {
  background:
    radial-gradient(circle at 16% -8%, rgba(245, 197, 66, 0.16), transparent 28%),
    radial-gradient(circle at 94% 10%, rgba(113, 97, 168, 0.18), transparent 24%),
    linear-gradient(135deg, #07182d, #10233f 48%, #07182d);
}

body::before {
  background-image:
    linear-gradient(90deg, rgba(255, 248, 236, 0.035) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255, 248, 236, 0.024) 0 1px, transparent 1px 18px);
  background-size: 72px 100%, 100% 100%;
  mix-blend-mode: screen;
}

.topbar {
  border-bottom: 1px solid rgba(255, 248, 236, 0.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 197, 66, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(22, 43, 74, 0.98), rgba(7, 24, 45, 0.98)),
    var(--navy);
  background-size: 100% 100%;
  box-shadow:
    0 14px 34px rgba(7, 24, 45, 0.34),
    inset 0 -1px 0 rgba(255, 248, 236, 0.08);
}

.brand {
  color: var(--paper);
}

.brand-mark {
  border-color: rgba(255, 248, 236, 0.24);
  background:
    linear-gradient(145deg, rgba(245, 197, 66, 0.95), rgba(242, 122, 61, 0.84));
  box-shadow: 0 8px 22px rgba(7, 24, 45, 0.28), inset 0 1px 0 rgba(255, 248, 236, 0.46);
  color: var(--navy-deep);
}

.search-icon {
  color: var(--navy);
}

#searchInput {
  border-color: rgba(16, 35, 63, 0.12);
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(7, 24, 45, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

#searchInput::placeholder {
  color: #8a8175;
}

#searchInput:focus {
  border-color: rgba(245, 197, 66, 0.68);
  box-shadow:
    0 0 0 3px rgba(245, 197, 66, 0.18),
    0 8px 22px rgba(7, 24, 45, 0.22);
}

.icon-button,
.feed-actions button {
  border-color: rgba(255, 248, 236, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.icon-button.active,
.icon-button:hover,
.feed-actions button:hover {
  border-color: rgba(245, 197, 66, 0.54);
  background: rgba(245, 197, 66, 0.16);
  color: var(--point-yellow);
}

.map-panel {
  background:
    linear-gradient(135deg, rgba(7, 24, 45, 0.74), rgba(16, 35, 63, 0.42)),
    var(--navy);
}

.map-panel::after {
  background:
    linear-gradient(rgba(255, 248, 236, 0.07), rgba(255, 248, 236, 0.08)),
    radial-gradient(circle at 50% 42%, rgba(245, 197, 66, 0.06), transparent 40%);
  mix-blend-mode: soft-light;
}

.map {
  background:
    linear-gradient(rgba(255, 248, 236, 0.08), rgba(255, 248, 236, 0.08)),
    #dfe3dd;
}

.map > div {
  filter: saturate(0.88) contrast(0.96) brightness(0.98);
}

.map-dot {
  border-color: rgba(255, 248, 236, 0.86);
  background: color-mix(in srgb, var(--store-color), var(--navy) 40%);
  box-shadow:
    0 3px 8px rgba(7, 24, 45, 0.2),
    0 0 0 3px rgba(255, 248, 236, 0.32);
}

.map-store-marker.stage-1 .map-dot {
  border-color: var(--paper);
  background: var(--point-yellow);
  box-shadow:
    0 0 0 5px rgba(16, 35, 63, 0.18),
    0 8px 18px rgba(7, 24, 45, 0.28);
}

.map-feed-card {
  border-color: rgba(16, 35, 63, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 35, 63, 0.96) 0 56px, rgba(255, 248, 236, 0) 56px),
    linear-gradient(90deg, rgba(245, 197, 66, 0.9) 0 7px, transparent 7px),
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 236, 0.96), rgba(244, 235, 221, 0.88)),
    var(--paper);
  box-shadow:
    0 14px 36px rgba(7, 24, 45, 0.28),
    0 2px 12px rgba(16, 35, 63, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.map-store-marker.stage-1 .map-feed-card::before {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 248, 236, 0.2), transparent 32%),
    linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.05));
}

.map-feed-media {
  height: 64px;
  border-bottom-color: rgba(16, 35, 63, 0.18);
}

.map-feed-topline strong {
  color: var(--ink);
}

.map-feed-topline small,
.map-feed-body p {
  color: var(--muted);
}

.map-feed-tags span {
  background: var(--paper-deep);
  color: var(--navy);
}

.map-card-actions button {
  border-color: rgba(16, 35, 63, 0.18);
  background: rgba(255, 248, 236, 0.72);
  color: var(--navy);
}

.map-card-actions button:nth-child(2) {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.map-card-actions button:nth-child(3) {
  border-color: rgba(245, 197, 66, 0.88);
  background: var(--point-yellow);
  color: var(--navy-deep);
}

.map-card-actions button:hover {
  border-color: rgba(16, 35, 63, 0.32);
  background: rgba(244, 235, 221, 0.92);
}

.stage-2 .map-feed-card,
.stage-3 .map-feed-card,
.map-store-marker.stage-2 .map-feed-card {
  border-color: rgba(255, 248, 236, 0.42);
  background:
    linear-gradient(135deg, rgba(16, 35, 63, 0.86), rgba(7, 24, 45, 0.74)),
    rgba(16, 35, 63, 0.72);
  box-shadow: 0 10px 24px rgba(7, 24, 45, 0.22), inset 0 1px 0 rgba(255, 248, 236, 0.16);
}

.stage-2 .map-feed-topline strong,
.stage-3 .map-feed-topline strong,
.map-store-marker.stage-2 .map-feed-topline strong {
  color: var(--paper);
}

.map-pin-label {
  border-color: rgba(255, 248, 236, 0.36);
  background:
    linear-gradient(135deg, rgba(16, 35, 63, 0.82), rgba(7, 24, 45, 0.72)),
    rgba(16, 35, 63, 0.72);
  box-shadow: 0 5px 14px rgba(7, 24, 45, 0.18), inset 0 1px 0 rgba(255, 248, 236, 0.18);
  color: var(--paper);
}

.map-feed-card::after,
.map-store-marker.stage-1 .map-feed-card::after {
  border-right-color: rgba(16, 35, 63, 0.16);
  border-bottom-color: rgba(16, 35, 63, 0.16);
  background: var(--paper);
  box-shadow: 8px 8px 18px rgba(7, 24, 45, 0.12);
}

.nearby-button {
  border-color: rgba(255, 248, 236, 0.26);
  background:
    linear-gradient(145deg, rgba(245, 197, 66, 0.18), transparent 44%),
    rgba(16, 35, 63, 0.9);
  color: var(--paper);
}

.feed-toggle-button {
  border-color: rgba(255, 248, 236, 0.28);
  border-left-color: var(--navy-deep);
  background:
    linear-gradient(90deg, #07182d 0 11px, transparent 11px 15px, #10233f 15px 29px, transparent 29px 33px, #f5c542 33px 45px, transparent 45px 49px, #f27a3d 49px 61px, transparent 61px),
    linear-gradient(135deg, rgba(22, 43, 74, 0.98), rgba(7, 24, 45, 0.94));
  box-shadow:
    inset 4px 0 0 rgba(255, 248, 236, 0.28),
    0 18px 42px rgba(7, 24, 45, 0.34);
  color: var(--paper);
}

.feed-toggle-button:hover,
body.feed-open .feed-toggle-button {
  background:
    linear-gradient(90deg, #07182d 0 11px, transparent 11px 15px, #10233f 15px 29px, transparent 29px 33px, #f5c542 33px 45px, transparent 45px 49px, #7161a8 49px 61px, transparent 61px),
    linear-gradient(135deg, rgba(22, 43, 74, 1), rgba(7, 24, 45, 0.98));
  color: var(--paper);
}

.book-cover-label {
  border-color: rgba(255, 248, 236, 0.22);
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.22) 0 18%, transparent 18%),
    rgba(16, 35, 63, 0.78);
}

.feed-panel {
  border-color: rgba(255, 248, 236, 0.18);
  background:
    radial-gradient(circle at 24% 0%, rgba(245, 197, 66, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(16, 35, 63, 0.96), rgba(7, 24, 45, 0.98)),
    var(--navy-deep);
  background-size: 100% 100%;
  box-shadow: 0 -26px 76px rgba(7, 24, 45, 0.46), inset 0 1px 0 rgba(255, 248, 236, 0.1);
}

.sheet-handle {
  background: rgba(255, 248, 236, 0.38);
}

.feed-header {
  border-bottom-color: rgba(255, 248, 236, 0.18);
  background: rgba(255, 248, 236, 0.04);
}

.eyebrow {
  color: var(--point-yellow);
}

h2 {
  color: var(--paper);
}

.segmented {
  border-color: rgba(255, 248, 236, 0.18);
  background: rgba(255, 248, 236, 0.08);
}

.segment {
  color: rgba(255, 248, 236, 0.7);
}

.segment.active {
  background: var(--point-yellow);
  color: var(--navy-deep);
}

.store-strip::-webkit-scrollbar-thumb,
.feed-panel::-webkit-scrollbar-thumb {
  background: rgba(245, 197, 66, 0.48);
  background-clip: content-box;
}

.store-pill {
  border-color: rgba(255, 248, 236, 0.16);
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.38) 0 7px, transparent 7px),
    rgba(255, 248, 236, 0.08);
  color: var(--paper);
  box-shadow: 0 10px 26px rgba(7, 24, 45, 0.22), inset 0 1px 0 rgba(255, 248, 236, 0.12);
}

.store-pill.active,
.store-pill:hover {
  border-color: rgba(245, 197, 66, 0.54);
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.74) 0 7px, transparent 7px),
    rgba(255, 248, 236, 0.12);
  box-shadow: 0 12px 30px rgba(7, 24, 45, 0.28);
}

.store-pill .store-meta strong {
  color: var(--paper);
}

.store-pill .store-meta small {
  color: rgba(255, 248, 236, 0.68);
}

.feed-card {
  border-color: rgba(255, 248, 236, 0.18);
  border-left-color: var(--point-yellow);
  border-radius: 16px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.78), transparent 28%),
    var(--paper);
  box-shadow: 0 16px 36px rgba(7, 24, 45, 0.26);
}

.feed-card:hover {
  border-color: rgba(245, 197, 66, 0.48);
  box-shadow: 0 20px 44px rgba(7, 24, 45, 0.32);
}

.feed-card-media {
  border-bottom-color: rgba(16, 35, 63, 0.14);
  background-color: rgba(16, 35, 63, 0.2);
}

.feed-card-media::before {
  background: rgba(7, 24, 45, 0.18);
}

.feed-author strong,
.store-meta strong {
  color: var(--ink);
}

.feed-author small,
.store-meta small {
  color: var(--muted);
}

.tag {
  background: var(--paper-deep);
  color: var(--navy);
}

/* Reference polish: Deep Navy archive, paper cards, book-point accents */
:root {
  --point-green: #4fa79b;
}

.topbar {
  min-height: 72px;
  gap: 14px;
  padding: 12px clamp(14px, 3vw, 26px);
}

.brand {
  font-size: 20px;
}

.top-actions {
  gap: 9px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.search-icon {
  right: 5px;
  left: auto;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--point-yellow);
  color: var(--navy);
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(7, 24, 45, 0.16);
}

#searchInput {
  min-height: 44px;
  padding-right: 52px;
  padding-left: 22px;
  border-radius: 999px;
}

.map-store-marker.stage-1 .map-feed-card {
  width: 268px;
  overflow: visible;
  border-radius: 17px;
  background:
    linear-gradient(180deg, var(--navy) 0 7px, transparent 7px),
    linear-gradient(90deg, rgba(245, 197, 66, 0.95) 0 6px, transparent 6px),
    radial-gradient(circle at 95% 10%, rgba(245, 197, 66, 0.16), transparent 22%),
    var(--paper);
  box-shadow:
    0 18px 44px rgba(7, 24, 45, 0.28),
    0 4px 14px rgba(7, 24, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.map-card-content {
  position: relative;
  z-index: 2;
}

.map-store-marker.stage-1 .map-card-content {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 14px 9px;
}

.map-store-marker.stage-1 .map-feed-media {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.1), rgba(7, 24, 45, 0.06)),
    var(--profile-media, var(--media));
  background-color: var(--soft-paper);
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 18px rgba(7, 24, 45, 0.12);
}

@keyframes story-tray-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.story-tray {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 1200;
  width: min(520px, calc(100vw - 24px));
  pointer-events: none;
  transform: translateX(-50%);
  animation: story-tray-in 360ms var(--ease-liquid) both;
}

.story-tray[hidden] {
  display: none;
}

.story-tray-list {
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 10px 7px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 18px;
  background: rgba(7, 24, 45, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
  box-shadow:
    0 14px 30px rgba(7, 24, 45, 0.3),
    inset 0 1px 0 rgba(255, 248, 236, 0.12);
  pointer-events: auto;
  scrollbar-width: none;
}

.story-tray-list::-webkit-scrollbar {
  display: none;
}

.story-tray-button {
  display: grid;
  flex: 0 0 70px;
  gap: 4px;
  place-items: center;
  min-width: 70px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  -webkit-tap-highlight-color: transparent;
}

.story-tray-ring {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from 205deg,
    var(--point-yellow),
    var(--point-orange),
    var(--point-purple),
    var(--point-green),
    var(--point-yellow)
  );
  box-shadow:
    0 7px 18px rgba(7, 24, 45, 0.28),
    0 0 0 2px rgba(255, 248, 236, 0.16);
  transition:
    transform 200ms var(--ease-liquid),
    filter 180ms ease;
}

.story-tray-avatar {
  width: 50px;
  height: 50px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.08), rgba(7, 24, 45, 0.08)),
    var(--story-profile, var(--story-store-color));
  background-color: var(--soft-paper);
  background-position: center;
  background-size: cover;
}

.story-tray-count {
  position: absolute;
  right: -2px;
  bottom: -1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--navy-deep);
  border-radius: 999px;
  background: var(--point-yellow);
  color: var(--navy-deep);
  font-size: 9px;
  font-weight: 900;
}

.story-tray-name {
  display: block;
  overflow: hidden;
  width: 68px;
  color: var(--paper);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-tray-button:hover .story-tray-ring,
.story-tray-button:focus-visible .story-tray-ring {
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-2px) scale(1.045);
}

.story-tray-button:active .story-tray-ring {
  transform: scale(0.94);
}

.story-tray-button:focus-visible {
  outline: 2px solid var(--point-yellow);
  outline-offset: 3px;
  border-radius: 12px;
}

@keyframes story-progress-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

body.story-open {
  overflow: hidden;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(4, 12, 24, 0.88);
  backdrop-filter: blur(12px);
}

.story-viewer[hidden] {
  display: none;
}

.story-player {
  position: relative;
  width: min(430px, 92vw);
  height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 248, 236, 0.26);
  border-radius: 8px;
  background: var(--navy-deep);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  isolation: isolate;
}

.story-progress {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  z-index: 6;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
}

.story-progress-segment {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.34);
}

.story-progress-segment i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left center;
}

.story-progress-segment.is-complete i {
  transform: scaleX(1);
}

.story-progress-segment.is-active.is-playing i {
  animation: story-progress-fill var(--story-duration, 5000ms) linear forwards;
}

.story-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 24px 12px 28px;
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.8), transparent);
  color: var(--paper);
}

.story-header strong,
.story-header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-header strong {
  font-size: 14px;
}

.story-header small {
  margin-top: 3px;
  color: rgba(255, 248, 236, 0.7);
  font-size: 11px;
}

.story-avatar {
  width: 38px;
  height: 38px;
  border: 2px solid var(--point-yellow);
  border-radius: 50%;
  background: var(--story-avatar) center / cover no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 248, 236, 0.32);
}

.story-icon-button,
.story-navigation {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 50%;
  background: rgba(7, 24, 45, 0.48);
  color: var(--paper);
  backdrop-filter: blur(8px);
}

.story-icon-button {
  font-size: 25px;
}

.story-media-backdrop {
  position: absolute;
  inset: -36px;
  z-index: 0;
  background: var(--story-background) center / cover no-repeat;
  filter: blur(28px) brightness(0.44) saturate(0.8);
  transform: scale(1.08);
}

.story-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.story-media img,
.story-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-navigation {
  position: absolute;
  top: 50%;
  z-index: 4;
  font-size: 30px;
  transform: translateY(-50%);
}

.story-navigation-previous {
  left: 10px;
}

.story-navigation-next {
  right: 10px;
}

.story-navigation:disabled {
  visibility: hidden;
}

.story-instagram-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  padding: 8px 11px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  border-radius: 999px;
  background: rgba(7, 24, 45, 0.58);
  color: var(--paper);
  font-size: 11px;
  font-weight: 760;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

@media (max-width: 560px) {
  .story-viewer {
    padding: 0;
  }

  .story-player {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-tray {
    animation: none;
  }

  .story-tray-ring {
    transition: none;
  }

  .story-progress-segment.is-active.is-playing i {
    animation: none;
    transform: scaleX(1);
  }
}

.map-store-marker.stage-1 .map-feed-body {
  gap: 7px;
  padding: 0;
}

.map-store-marker.stage-1 .map-feed-topline strong {
  padding-right: 18px;
  font-size: 15px;
  line-height: 1.18;
}

.map-store-marker.stage-1 .map-feed-topline::after {
  position: absolute;
  top: 16px;
  right: 15px;
  width: 10px;
  height: 18px;
  border-radius: 2px 2px 5px 5px;
  background: var(--point-yellow);
  box-shadow: inset 0 -5px 0 rgba(7, 24, 45, 0.08);
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}

.map-store-marker.stage-1 .map-feed-body p {
  font-size: 11px;
  line-height: 1.44;
  -webkit-line-clamp: 2;
}

.map-store-marker.stage-1 .map-feed-tags {
  gap: 5px;
}

.map-store-marker.stage-1 .map-feed-tags span {
  padding: 4px 7px;
  background: var(--soft-paper);
  color: var(--navy);
}

.map-store-marker.stage-1 .map-card-actions {
  position: relative;
  z-index: 2;
  gap: 8px;
  padding: 7px 14px 14px;
}

.map-store-marker.stage-1 .map-card-actions button {
  min-height: 31px;
  border-radius: 10px;
  font-size: 10px;
}

.map-store-marker.stage-1 .map-feed-card::after {
  bottom: -11px;
  width: 20px;
  height: 20px;
  background: var(--navy);
  border-right-color: rgba(255, 248, 236, 0.3);
  border-bottom-color: rgba(255, 248, 236, 0.3);
}

.map-store-marker.stage-1 .map-dot {
  background: var(--navy);
  box-shadow:
    0 0 0 5px rgba(245, 197, 66, 0.34),
    0 8px 18px rgba(7, 24, 45, 0.3);
}

.feed-toggle-button {
  width: 108px;
  height: 68px;
  padding: 10px 12px 10px 26px;
  border-radius: 10px 16px 16px 10px;
  background:
    linear-gradient(90deg, #07182d 0 10px, transparent 10px 14px, #f5c542 14px 25px, transparent 25px 29px, #f27a3d 29px 39px, transparent 39px 43px, #10233f 43px 58px, transparent 58px 62px, #7161a8 62px 73px, transparent 73px 77px, #4fa79b 77px 88px, transparent 88px),
    linear-gradient(135deg, rgba(22, 43, 74, 0.98), rgba(7, 24, 45, 0.98));
}

.book-cover-label {
  border-radius: 7px 12px 12px 7px;
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.32) 0 18%, transparent 18%),
    var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.2);
}

.feed-panel {
  border-radius: 18px 18px 0 0;
  padding-top: 12px;
}

.feed-panel::before {
  position: sticky;
  top: -12px;
  z-index: 1;
  display: block;
  height: 10px;
  margin: -12px -1px 8px;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(90deg, transparent 0 24%, #f5c542 24% 28%, transparent 28% 36%, #f27a3d 36% 40%, transparent 40% 47%, #7161a8 47% 51%, transparent 51% 58%, #4fa79b 58% 62%, transparent 62%),
    var(--navy-surface);
  content: "";
}

.feed-header {
  align-items: center;
}

.feed-header h2::after {
  display: block;
  margin-top: 3px;
  color: rgba(255, 248, 236, 0.62);
  font-size: 11px;
  font-weight: 650;
  content: "부산 책방의 오늘 소식";
}

.segmented {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: min(360px, 100%);
  border-radius: 14px;
}

.segment {
  border-radius: 10px;
}

.feed-card {
  border-left-width: 6px;
  border-radius: 18px;
}

.feed-card-media {
  margin: 12px 14px 0;
  border: 0;
  border-radius: 14px;
  background-color: var(--soft-paper);
  background-image:
    var(--media),
    linear-gradient(135deg, rgba(16, 35, 63, 0.12), rgba(255, 248, 236, 0.08));
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
}

.feed-card-media::before {
  background: rgba(7, 24, 45, 0.2);
  backdrop-filter: blur(18px) saturate(0.86) brightness(0.95);
}

.feed-card-media-object {
  width: auto;
  height: auto;
  border-radius: 12px;
}

.feed-card-body {
  padding: 14px 15px 15px;
}

.feed-card > .feed-card-body:first-of-type {
  padding: 14px 15px 8px;
}

.feed-card-content-body {
  padding-top: 12px;
}

video.feed-card-media-object {
  width: auto;
  height: 100%;
  min-height: 0;
  background: transparent;
}

@media (max-width: 560px) {
  .map-store-marker.stage-1 .main-info-card-wrapper {
    --main-card-shift-x: -44px;
  }

  .map-store-marker.stage-1 .map-feed-card::after {
    left: 88px;
  }

  .map-store-marker.stage-1 .map-feed-card,
  .map-feed-card,
  .floating-feed-card {
    width: 258px;
  }

  .nearby-index-list {
    left: calc(100% - 7px);
    width: 116px;
  }

  .nearby-index {
    grid-template-columns: 15px minmax(0, 1fr) 21px;
    width: 116px;
    height: 43px;
    padding: 5px 7px 5px 12px;
  }

  .nearby-index-rank {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }

  .nearby-index-copy strong {
    font-size: 9px;
  }

  .nearby-index-arrow {
    width: 20px;
    height: 20px;
  }

  .map-store-marker.stage-1 .map-card-content {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 12px 8px;
  }

  .map-store-marker.stage-1 .map-feed-media {
    width: 68px;
    height: 68px;
  }

  .map-store-marker.stage-1 .map-card-actions {
    padding: 7px 12px 13px;
  }
}

/* Image-based bookshelf button */
.feed-toggle-button,
.feed-toggle-button:hover,
body.feed-open .feed-toggle-button {
  width: 132px;
  height: 88px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  color: var(--paper);
  filter: none;
  isolation: auto;
  overflow: visible;
}

.feed-toggle-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  box-shadow: none !important;
  mix-blend-mode: normal;
  pointer-events: none;
}

.book-cover-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(7, 24, 45, 0.72),
    0 2px 5px rgba(7, 24, 45, 0.56);
  transform: translate(-50%, -18%);
  pointer-events: none;
}

@media (max-width: 560px) {
  .feed-toggle-button,
  .feed-toggle-button:hover,
  body.feed-open .feed-toggle-button {
    width: 118px;
    height: 78px;
  }

  .book-cover-label {
    width: 42px;
    height: 28px;
    font-size: 12px;
  }
}

/* Keep the image bookshelf transparent over the navy feed sheet. */
.feed-toggle-button,
.feed-toggle-button:hover,
body.feed-open .feed-toggle-button {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.feed-toggle-button:focus {
  outline: none;
}

.feed-toggle-button::after {
  position: absolute;
  inset: 18px 32px 22px;
  z-index: 2;
  border: 1px solid rgba(245, 197, 66, 0.62);
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.14);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.feed-toggle-button:focus-visible::after {
  opacity: 1;
}

body.feed-open .feed-toggle-button:focus-visible::after {
  opacity: 0;
}

body.feed-open .feed-toggle-button,
body.feed-open .feed-toggle-button:hover {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none;
}

body.feed-open .feed-toggle-art,
body.feed-open .feed-toggle-button:hover .feed-toggle-art {
  background: none !important;
  filter: none !important;
  box-shadow: none !important;
}

body.feed-open .map-store-marker.stage-1,
body.feed-open .floating-feed-card.stage-1 {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Move the bookshelf button and feed shelf as one physical object. */
:root {
  --feed-sheet-height: min(66.666vh, calc(100vh - 92px));
  --feed-shelf-peek: 0px;
  --feed-shelf-overlap: 0px;
  --feed-shelf-motion: 420ms var(--ease-bounce);
}

.feed-shelf-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1120;
  height: var(--feed-sheet-height);
  pointer-events: none;
  transform: translateY(calc(var(--feed-sheet-height) - var(--feed-shelf-peek)));
  transition: transform var(--feed-shelf-motion);
  will-change: transform;
}

body.feed-open .feed-shelf-dock {
  transform: translateY(0);
}

.feed-panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  pointer-events: none;
  transform: none;
  transition: none;
  animation: none;
}

body:not(.feed-open) .feed-panel {
  border-top-color: transparent;
  box-shadow: none;
}

body.feed-open .feed-panel {
  pointer-events: auto;
  transform: none;
  animation: none;
}

.feed-toggle-button,
.feed-toggle-button:hover {
  position: absolute;
  top: 0;
  bottom: auto;
  z-index: 2;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-100%);
  transition:
    filter 160ms ease,
    opacity 160ms ease;
  animation: none;
}

.feed-toggle-button:active {
  transform: translateX(-50%) translateY(-100%);
}

body.feed-open .feed-toggle-button,
body.feed-open .feed-toggle-button:hover {
  bottom: auto;
  transform: translateX(-50%) translateY(-100%);
  animation: none;
}

body.feed-open .feed-toggle-button:active {
  transform: translateX(-50%) translateY(-100%);
}

/* Wide web layout: panels overlay the fixed map instead of resizing its camera. */
@media (min-width: 1100px) {
  :root {
    --desktop-feed-width: clamp(520px, 44vw, 640px);
    --desktop-directory-width: clamp(340px, 28vw, 420px);
  }

  .map-panel {
    width: 100%;
    margin-left: 0;
  }

  .feed-shelf-dock {
    right: auto;
    bottom: 0;
    left: 0;
    width: var(--desktop-feed-width);
    height: calc(100vh - 72px);
    transform: translateX(-100%);
  }

  body.feed-open .feed-shelf-dock {
    transform: translateX(0);
  }

  .feed-panel {
    border-top: 1px solid rgba(255, 248, 236, 0.18);
    border-right: 1px solid rgba(255, 248, 236, 0.18);
    border-radius: 0 20px 0 0;
  }

  .feed-panel::before {
    border-radius: 0 20px 0 0;
  }

  .feed-header {
    padding-right: 132px;
  }

  .feed-toggle-button,
  .feed-toggle-button:hover,
  .feed-toggle-button:active {
    top: 18px;
    left: 100%;
    transform: translateX(0);
  }

  body.feed-open .feed-toggle-button,
  body.feed-open .feed-toggle-button:hover,
  body.feed-open .feed-toggle-button:active {
    transform: translateX(-100%);
  }

  .feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .feed-card-media {
    min-height: 210px;
    max-height: 320px;
  }

  .feed-card-media-object {
    max-height: 320px;
  }

  body.feed-open .map-store-marker.stage-1,
  body.feed-open .floating-feed-card.stage-1 {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .store-directory-panel {
    width: var(--desktop-directory-width);
  }
}

/* Complete bookstore directory */
.store-directory-toggle {
  font-size: 22px;
  line-height: 1;
}

.store-directory-toggle[aria-expanded="true"] {
  border-color: rgba(245, 197, 66, 0.66);
  background: rgba(245, 197, 66, 0.18);
  color: var(--point-yellow);
}

.store-directory-panel {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  z-index: 1300;
  display: flex;
  width: min(390px, calc(100vw - 18px));
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid rgba(255, 248, 236, 0.18);
  border-left: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 18px 0 0 0;
  background: var(--paper);
  box-shadow: -20px 0 54px rgba(7, 24, 45, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition:
    transform 380ms var(--ease-liquid),
    opacity 220ms ease;
  will-change: transform;
}

body.store-directory-open .store-directory-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.store-directory-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 22px 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 197, 66, 0.18), transparent 34%),
    linear-gradient(145deg, var(--navy-surface), var(--navy-deep));
  color: var(--paper);
}

.store-directory-header .eyebrow {
  margin: 0 0 5px;
  color: var(--point-yellow);
}

.store-directory-header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.store-directory-count {
  margin: 6px 0 0;
  color: rgba(255, 248, 236, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.store-directory-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 180ms var(--ease-liquid);
}

.store-directory-close:hover,
.store-directory-close:focus-visible {
  background: rgba(245, 197, 66, 0.18);
  color: var(--point-yellow);
}

.store-directory-close:active {
  transform: scale(0.95);
}

.store-directory-search {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin: 16px 18px 10px;
}

.store-directory-search > span {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: var(--navy);
  transform: translateY(-50%);
}

#storeDirectorySearchInput {
  width: 100%;
  height: 44px;
  padding: 0 15px 0 40px;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 999px;
  outline: none;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

#storeDirectorySearchInput:focus {
  border-color: rgba(245, 197, 66, 0.82);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18);
}

#storeDirectorySearchInput::placeholder {
  color: var(--muted);
}

.store-directory-list {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 18px 24px;
  scrollbar-color: rgba(16, 35, 63, 0.22) transparent;
  scrollbar-width: thin;
}

.store-directory-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease,
    padding 200ms var(--ease-liquid);
}

.store-directory-item:hover,
.store-directory-item:focus-visible,
.store-directory-item[aria-current="true"] {
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 8px;
  outline: none;
  background: rgba(79, 167, 155, 0.12);
}

.store-directory-item[aria-current="true"] {
  box-shadow: inset 3px 0 0 var(--point-yellow);
}

.store-directory-marker {
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--store-color);
  box-shadow: 0 0 0 1px rgba(16, 35, 63, 0.18);
}

.store-directory-item-copy,
.store-directory-item-copy strong,
.store-directory-item-copy small,
.store-directory-address {
  display: block;
  min-width: 0;
}

.store-directory-item-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-directory-item-copy small {
  margin-top: 4px;
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 750;
}

.store-directory-address {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-directory-arrow {
  color: var(--navy);
  font-size: 26px;
  text-align: center;
  transition: transform 180ms var(--ease-liquid);
}

.store-directory-item:hover .store-directory-arrow,
.store-directory-item:focus-visible .store-directory-arrow {
  transform: translateX(3px);
}

.store-directory-empty {
  margin: 40px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 920px) {
  .store-directory-panel {
    top: 122px;
  }
}

@media (max-width: 420px) {
  .top-actions {
    gap: 4px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .store-directory-panel {
    width: calc(100% - 12px);
  }

  .store-directory-header {
    padding: 20px 18px 17px;
  }

  .store-directory-search {
    margin-right: 14px;
    margin-left: 14px;
  }

  .store-directory-list {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (min-width: 1100px) {
  .store-directory-panel {
    width: var(--desktop-directory-width);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-directory-panel,
  .store-directory-item,
  .store-directory-arrow {
    transition-duration: 1ms;
  }
}
