/* --- Vendored fonts (woff2 files in /fonts/, committed to git) --- */
/* --- ulita product shell styles appended below the original prototype styles --- */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/BricolageGrotesque-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Geist"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/Geist-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/GeistMono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/GeistMono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/GeistMono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/GeistMono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Geist Mono"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/GeistMono-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/GeistMono-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ */

:root {
  --bg-warm: #eef3f8;
  --card-cream: #f8fbff;
  --card-cream-2: #eef4fb;
  --card-cream-3: #e1e9f3;
  --ink: #10203f;
  --ink-60: rgba(16, 32, 63, 0.62);
  --warm-brown: #6b5d4d;
  --warm-brown-light: #596579;
  --accent: #00266c;
  --accent-cta-a: #dbe9ff;
  --accent-cta-b: #f1c7a8;
  --feed-bg: #07111f;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --map-size: 96px;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

html {
  background: var(--feed-bg);
  overscroll-behavior: none;
}

body {
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--card-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
}

.boot {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #07111f 0%, #10203f 58%, #050914 100%);
}

.boot-mark {
  display: grid;
  place-items: center;
}

.boot-mark img {
  width: 72px;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 1px rgba(248, 251, 255, 0.86))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
}

.boot-line {
  position: fixed;
  width: 120px;
  height: 3px;
  top: calc(50% + 44px);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 99px;
  overflow: hidden;
  background: rgba(248, 251, 255, 0.18);
}

.boot-line::after {
  content: "";
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: bootSlide 1s ease-in-out infinite alternate;
}

.app-shell {
  width: 100%;
  height: 100%;
  background: var(--feed-bg);
  position: relative;
  overflow: hidden;
}

.feed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-x;
  background: var(--feed-bg);
}

.feed.is-deep {
  touch-action: auto;
}

.feed-stack {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.feed-page {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
}

.listing-card {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--feed-bg);
}

.photos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.photo-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.photo-slide {
  height: 100%;
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.fallback-visual {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  color: var(--card-cream);
  background:
    linear-gradient(135deg, hsla(var(--hue), 58%, 34%, 0.8), hsla(calc(var(--hue) + 34), 58%, 24%, 0.92)),
    #3a2618;
}

.fallback-visual::before,
.fallback-visual::after {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 248, 240, 0.2) 39% 40%, transparent 41%),
    repeating-linear-gradient(90deg, rgba(255, 248, 240, 0.08) 0 1px, transparent 1px 44px);
  transform: rotate(var(--tilt));
}

.fallback-visual::after {
  inset: auto -20% -18% -20%;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(26, 15, 8, 0.55)),
    repeating-linear-gradient(0deg, rgba(255, 248, 240, 0.14) 0 2px, transparent 2px 22px);
  transform: none;
}

.fallback-meta {
  position: absolute;
  left: 22px;
  top: 128px;
  max-width: min(72vw, 520px);
  z-index: 1;
}

.fallback-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.14);
  border: 1px solid rgba(255, 248, 240, 0.18);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fallback-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 86px);
  line-height: 0.95;
  font-weight: 700;
  max-width: 680px;
}

.fallback-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 320px;
  color: rgba(255, 248, 240, 0.72);
}

.chrome-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 116px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.18) 44%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.chrome-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 585px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(26, 15, 8, 0.12) 58%,
    rgba(26, 15, 8, 0.34) 72%,
    rgba(26, 15, 8, 0.74) 88%,
    rgba(26, 15, 8, 0.91) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.photo-arrow,
.action-btn,
.expanded-map-controls button,
.expanded-map-close,
.dev-toggle,
.drawer-close {
  border: 0;
  cursor: pointer;
}

.photo-arrow > svg,
.action-btn > svg,
.drawer-close > svg,
.expanded-map-close > svg,
.expanded-map-controls button > svg {
  display: block;
  width: 1em;
  height: 1em;
  margin: auto;
  flex: 0 0 auto;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.photo-arrow.left {
  left: 8px;
}

.photo-arrow.right {
  right: 8px;
}

.photo-arrow:disabled {
  opacity: 0;
  cursor: default;
}

.dots {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 29;
  pointer-events: none;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 248, 240, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.active {
  width: 18px;
  background: rgba(255, 248, 240, 0.95);
}

.counter {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 16px;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(58, 38, 24, 0.35);
  backdrop-filter: blur(10px);
  color: rgba(255, 248, 240, 0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.counter .current {
  color: var(--accent-cta-b);
}

.counter .slash {
  opacity: 0.5;
}

.counter .total {
  opacity: 0.7;
}

.counter,
.action-rail,
.mini-map-wrap {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.counter.is-faded,
.action-rail.is-faded {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}

.counter.is-faded {
  transform: translateX(-8px);
}

.language-pill {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 66px;
  z-index: 31;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(58, 38, 24, 0.35);
  backdrop-filter: blur(10px);
  color: rgba(255, 248, 240, 0.96);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-pill.is-faded {
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
}

.language-pill-flag {
  font-size: 15px;
  line-height: 1;
}

.language-pill-label {
  white-space: nowrap;
}

.language-pill-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drafts-filter-toggle {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  left: 16px;
  z-index: 31;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(58, 38, 24, 0.35);
  backdrop-filter: blur(10px);
  color: rgba(255, 248, 240, 0.96);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.drafts-filter-toggle.is-faded {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
}

.drafts-filter-toggle.is-on {
  background: rgba(201, 74, 42, 0.28);
  color: rgba(255, 248, 240, 0.98);
}

.mini-map-wrap.is-faded {
  opacity: 0;
  pointer-events: none;
}

.peek-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 20px 20px 34px;
  color: var(--card-cream);
  cursor: pointer;
}

.peek-title {
  max-width: 880px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.peek-neighborhood {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 248, 240, 0.84);
}

.country-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 248, 240, 0.9);
  line-height: 1;
}

.country-flag {
  font-size: 15px;
  line-height: 1;
}

.country-sep {
  opacity: 0.4;
  margin: 0 1px;
}

.country-city {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.8;
}

.peek-body {
  padding-left: 118px;
  min-height: 102px;
}

.price-clip {
  display: inline-block;
  min-width: calc(var(--price-ch, 0) * 0.66em);
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: break-word;
  white-space: nowrap;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: min(620px, calc(100vw - 138px));
}

.price-hit-zone {
  width: fit-content;
  max-width: 100%;
  margin: -6px 0;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.price-hit-zone:focus-visible {
  outline: 2px solid rgba(255, 248, 240, 0.9);
  outline-offset: 5px;
}

.price-clip > span {
  display: block;
}

.price-clip.is-blurred {
  min-width: 0;
  position: relative;
  isolation: isolate;
}

/* Soft, asymmetric cloud sitting behind the blurred glyphs. Two offset
   radial gradients merge into an irregular blob — not a pill — so the
   tap target reads as a "cloud" rather than the previous sausage mask.
   Sized in em so it tracks the price font-size. */
.price-clip.is-blurred::before,
.price-clip.is-blurred::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -0.45em;
  right: -0.45em;
  top: -0.5em;
  bottom: -0.5em;
}

.price-clip.is-blurred::before {
  background:
    radial-gradient(ellipse 58% 92% at 28% 48%,
      rgba(255, 248, 240, 0.58) 0%,
      rgba(255, 248, 240, 0.30) 48%,
      rgba(255, 248, 240, 0) 78%),
    radial-gradient(ellipse 52% 84% at 74% 56%,
      rgba(255, 248, 240, 0.53) 0%,
      rgba(255, 248, 240, 0.24) 54%,
      rgba(255, 248, 240, 0) 84%),
    radial-gradient(ellipse 88% 108% at 50% 50%,
      rgba(255, 248, 240, 0.34) 0%,
      rgba(255, 248, 240, 0.14) 64%,
      rgba(255, 248, 240, 0) 92%);
  filter: blur(10px);
  transition: filter 0.22s ease, transform 0.22s ease,
              opacity 0.22s ease;
  animation: price-cloud-breathe 4.9s ease-in-out infinite;
}

.price-clip.is-blurred::after {
  background:
    radial-gradient(ellipse 40% 62% at 50% 50%,
      rgba(255, 248, 240, 0.44) 0%,
      rgba(255, 248, 240, 0.25) 34%,
      rgba(255, 248, 240, 0.08) 56%,
      rgba(255, 248, 240, 0) 76%);
  filter: blur(12px);
  opacity: 0;
  transform: scale(0.55);
  animation: price-cloud-billow 3.8s ease-out infinite;
}

.price-clip.is-blurred > span {
  filter: blur(11px);
  opacity: 0.62;
  transform: translateY(0) scale(1.02);
  text-shadow:
    0 0 0 currentColor,
    0 0.028em 0 currentColor,
    0 -0.028em 0 currentColor;
  user-select: none;
  animation: price-text-mist 5.4s ease-in-out infinite;
}

.price-hit-zone:hover .price-clip.is-blurred::before,
.price-hit-zone:focus-visible .price-clip.is-blurred::before {
  filter: blur(8px);
  transform: scale(1.04);
  opacity: 1;
}

.price-hit-zone:active .price-clip.is-blurred::before {
  transform: scale(0.98);
}

@keyframes price-cloud-breathe {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(10px);
    opacity: 0.92;
  }
  38% {
    transform: translate3d(0.07em, -0.035em, 0) scale(1.11, 1.18);
    filter: blur(14px);
    opacity: 1;
  }
  68% {
    transform: translate3d(-0.06em, 0.035em, 0) scale(1.14, 1.06);
    filter: blur(8px);
    opacity: 0.98;
  }
}

@keyframes price-cloud-billow {
  0% {
    opacity: 0;
    transform: scale(0.44);
    filter: blur(8px);
  }
  16% {
    opacity: 0.7;
  }
  62% {
    opacity: 0.34;
    transform: scale(1.28, 1.52);
    filter: blur(16px);
  }
  100% {
    opacity: 0;
    transform: scale(1.6, 1.88);
    filter: blur(22px);
  }
}

@keyframes price-text-mist {
  0%, 100% {
    filter: blur(11px);
    opacity: 0.58;
    transform: translateY(0) scale(1.02);
  }
  45% {
    filter: blur(14px);
    opacity: 0.76;
    transform: translateY(-0.01em) scale(1.065, 1.03);
  }
  72% {
    filter: blur(9px);
    opacity: 0.64;
    transform: translateY(0.01em) scale(1.015, 1.055);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-clip.is-blurred::before,
  .price-clip.is-blurred::after,
  .price-clip.is-blurred > span {
    animation: none;
    transition: none;
  }
}

.price-clip.is-long-price,
.drawer-price.is-long-price {
  font-size: 24px;
}

.price-clip.is-very-long-price,
.drawer-price.is-very-long-price {
  font-size: 21px;
}

.usd-toggle {
  min-width: 64px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid rgba(255, 248, 240, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.14), rgba(255, 248, 240, 0.05)),
    rgba(26, 15, 8, 0.2);
  color: rgba(255, 248, 240, 0.74);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.usd-toggle:active {
  transform: scale(0.97);
}

.usd-toggle:focus-visible {
  outline: 2px solid rgba(255, 248, 240, 0.9);
  outline-offset: 3px;
}

.usd-toggle:disabled {
  opacity: 0.42;
  cursor: default;
}

.usd-toggle.is-on {
  border-color: rgba(248, 200, 151, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.22), rgba(248, 221, 193, 0.12)),
    rgba(201, 74, 42, 0.12);
}

.usd-toggle-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  transition: color 0.18s ease;
}

.usd-toggle-code.is-active {
  color: rgba(255, 248, 240, 0.98);
}

.usd-toggle-code.is-inactive {
  color: rgba(255, 248, 240, 0.42);
}

.usd-toggle-sep {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 248, 240, 0.32);
  user-select: none;
}

.price-meta {
  margin-top: 4px;
  margin-bottom: 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.72);
}

.text-obscured {
  filter: blur(7px);
  opacity: 0.7;
  user-select: none;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.stats-row .muted {
  color: rgba(255, 248, 240, 0.66);
  font-weight: 500;
}

.stats-row .sep {
  opacity: 0.35;
}

.tap-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.58);
  animation: hintPulseInline 2.4s ease-in-out infinite;
}

.drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: var(--card-cream);
  color: var(--ink);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3);
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer.full {
  height: 94%;
}

.drawer-handle-wrap {
  display: none;
}

.drawer-handle {
  width: 44px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #d4bfa7;
  cursor: pointer;
}

.drawer-header {
  position: relative;
  flex-shrink: 0;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(58, 38, 24, 0.08);
}

.drawer-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.drawer-price {
  display: inline-block;
  min-width: calc(var(--price-ch, 0) * 0.66em);
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.drawer-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-bottom: 6px;
}

.drawer-price-row .drawer-price {
  margin-bottom: 0;
}

.drawer-price-row .usd-toggle {
  background:
    linear-gradient(135deg, rgba(58, 38, 24, 0.08), rgba(58, 38, 24, 0.03)),
    rgba(255, 255, 255, 0.52);
  border-color: rgba(58, 38, 24, 0.14);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(58, 38, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.drawer-price-row .usd-toggle.is-on {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 221, 193, 0.4)),
    rgba(201, 74, 42, 0.08);
  border-color: rgba(138, 90, 58, 0.24);
}

.drawer-price-row .usd-toggle .usd-toggle-code.is-active {
  color: rgba(58, 38, 24, 0.96);
}

.drawer-price-row .usd-toggle .usd-toggle-code.is-inactive {
  color: rgba(58, 38, 24, 0.42);
}

.drawer-price-row .usd-toggle .usd-toggle-sep {
  color: rgba(58, 38, 24, 0.32);
}

.drawer-title {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.drawer-location {
  font-size: 13px;
  color: rgba(58, 38, 24, 0.65);
}

.drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(58, 38, 24, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(58, 38, 24, 0.08);
}

.drawer-stats {
  display: flex;
  margin-top: 14px;
}

.drawer-stat {
  flex: 1;
  text-align: center;
  padding: 2px 0;
}

.drawer-stat + .drawer-stat {
  border-left: 1px solid rgba(58, 38, 24, 0.1);
}

.drawer-stat .value {
  font-size: 18px;
  font-weight: 700;
}

.drawer-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.55;
}

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 40px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.rewrite-box {
  margin-bottom: 16px;
}


.drawer-blurb {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  user-select: text;
  -webkit-user-select: text;
}

.description-text {
  user-select: text;
  -webkit-user-select: text;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card-cream-3);
  color: var(--warm-brown-light);
  font-size: 12px;
  font-weight: 600;
}

.deep-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-cta-a), var(--accent-cta-b));
  color: #5a2e0f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.deep-cta .tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--warm-brown);
}

.section p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.feature-label {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.55;
}

.feature-value {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.room-list,
.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(120px, 1.4fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--card-cream-2);
}

.room-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.room-area {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--warm-brown);
}

.room-note {
  font-size: 12px;
  color: rgba(58, 38, 24, 0.65);
}

.nearby-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 38, 24, 0.08);
}

.nearby-row:last-child {
  border-bottom: 0;
}

.nearby-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card-cream-3);
  color: var(--warm-brown);
}

.nearby-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.nearby-dist {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(58, 38, 24, 0.55);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card-cream-3);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.source-link svg {
  flex: 0 0 auto;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card-cream-2);
}

.avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8c8a0, #c89870);
  color: var(--card-cream);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.agent-main {
  min-width: 0;
  flex: 1;
}

.agent-name {
  font-size: 14px;
  font-weight: 700;
}

.agent-company {
  font-size: 12px;
  color: rgba(58, 38, 24, 0.62);
}

.contact-btn {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--card-cream);
  font-size: 13px;
  font-weight: 700;
}

.mini-map-wrap {
  position: absolute;
  left: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 20;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.map-orb {
  width: var(--map-size);
  height: var(--map-size);
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  box-shadow:
    0 8px 24px rgba(40, 20, 10, 0.25),
    0 2px 6px rgba(40, 20, 10, 0.15),
    0 0 0 4px rgba(255, 248, 240, 0.9),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #e8dccb;
}

.map-clip.is-blurred-tiles {
  filter: blur(4px) saturate(0.75);
  transform: scale(1.06);
}

.map-orb.no-coords {
  box-shadow:
    0 8px 24px rgba(40, 20, 10, 0.23),
    0 0 0 4px rgba(255, 248, 240, 0.9),
    0 0 0 7px rgba(201, 74, 42, 0.26);
}

.map-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #e7dfcf;
}

.map-tile-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 768px;
  height: 768px;
  transform-origin: 0 0;
}

.map-tile-grid img {
  position: absolute;
  width: 256px;
  height: 256px;
  display: block;
  user-select: none;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 18px;
  height: 24px;
  transform: translate(-50%, -100%);
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(40, 20, 10, 0.35));
}

.map-pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.25;
  text-transform: uppercase;
  color: rgba(58, 38, 24, 0.78);
}


.expanded-map {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: 50%;
  min-height: 360px;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: var(--card-cream);
  color: var(--ink);
  box-shadow: 0 -18px 52px rgba(0, 0, 0, 0.36);
}

.expanded-map-head {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(58, 38, 24, 0.1);
}

.expanded-map-location {
  min-width: 0;
}

.expanded-map-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expanded-map-flag {
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.expanded-map-coords {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(58, 38, 24, 0.55);
}

.expanded-map-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--card-cream-3);
  color: var(--ink);
  cursor: pointer;
}

.expanded-map-stage {
  position: absolute;
  inset: 72px 0 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    linear-gradient(145deg, #244b62 0%, #69a699 36%, #d8bf8d 37%, #9f7654 64%, #28425d 100%);
}

.maplibre-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 24% 32%, rgba(79, 106, 57, 0.48) 0 14%, transparent 15%),
    radial-gradient(ellipse at 72% 28%, rgba(92, 123, 71, 0.5) 0 18%, transparent 19%),
    linear-gradient(145deg, #244b62 0%, #69a699 45%, #d8bf8d 46%, #28425d 100%);
}

.maplibregl-canvas {
  outline: none;
}

.expanded-map-stage:active {
  cursor: grabbing;
}

.expanded-map-canvas {
  position: absolute;
  inset: -35%;
  transform-origin: 50% 50%;
  will-change: transform;
}

.expanded-map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 248, 240, 0.5) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 248, 240, 0.5) 31px 32px);
  transform: rotate(-11deg) scale(1.08);
}

.expanded-map-land {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 24% 32%, rgba(79, 106, 57, 0.86) 0 14%, transparent 15%),
    radial-gradient(ellipse at 72% 28%, rgba(92, 123, 71, 0.88) 0 18%, transparent 19%),
    radial-gradient(ellipse at 46% 72%, rgba(126, 101, 60, 0.82) 0 24%, transparent 25%),
    radial-gradient(ellipse at 82% 76%, rgba(78, 105, 63, 0.72) 0 11%, transparent 12%);
  mix-blend-mode: multiply;
}

.expanded-map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 28px;
  height: 38px;
  color: var(--accent);
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 5px 10px rgba(40, 20, 10, 0.42));
}

.expanded-map-pin svg {
  width: 28px;
  height: 38px;
}

.expanded-map-pending {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.84);
  color: var(--ink);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.expanded-map-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.expanded-map-controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.9);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(40, 20, 10, 0.16);
  cursor: pointer;
}

.action-rail {
  position: absolute;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 200px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.action-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(58, 38, 24, 0.4);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--card-cream);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 248, 240, 0.15);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.action-btn:active {
  transform: scale(0.92);
}

.action-btn.active {
  background: rgba(255, 248, 240, 0.95);
  color: var(--accent);
}


.dev-toggle {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  z-index: 30;
  width: 30px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(58, 38, 24, 0.25);
  color: rgba(255, 248, 240, 0.45);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1;
}

.tweaks-panel {
  position: absolute;
  right: 12px;
  bottom: 60px;
  z-index: 9999;
  width: min(280px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(58, 38, 24, 0.08);
  border-radius: 20px;
  background: var(--card-cream);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(58, 38, 24, 0.25), 0 2px 8px rgba(58, 38, 24, 0.12);
}

.tweaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tweaks-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.tweaks-mark,
.tweak-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--warm-brown);
}

.tweak-row {
  margin-bottom: 10px;
}

.tweak-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tweak-row-inline .tweak-label {
  margin-bottom: 0;
}

.tweak-label {
  margin-bottom: 6px;
}

.dev-reset-btn {
  padding: 4px 12px;
  border: 1px solid rgba(58, 38, 24, 0.2);
  border-radius: 6px;
  background: var(--card-cream-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.notice-pill {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 60;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(58, 38, 24, 0.9);
  color: var(--card-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 32px rgba(26, 15, 8, 0.3);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}


.error-state {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--feed-bg);
  color: var(--card-cream);
}

.error-box {
  max-width: 520px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 240, 0.14);
}

.error-box h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
}

.error-box p {
  margin: 0;
  color: rgba(255, 248, 240, 0.75);
}


@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -4px);
  }
}

@keyframes hintPulseInline {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-4px);
  }
}


@keyframes bootSlide {
  from {
    transform: translateX(-8%);
  }
  to {
    transform: translateX(148%);
  }
}


@media (min-width: 760px) and (min-height: 700px), (orientation: landscape) and (min-width: 700px) and (max-height: 620px) {
  :root {
    --wide-panel-width: clamp(320px, 34vw, 460px);
    --map-size: clamp(112px, 12vw, 148px);
  }

  body {
    background:
      radial-gradient(circle at 18% 16%, rgba(248, 221, 193, 0.22), transparent 30%),
      radial-gradient(circle at 82% 78%, rgba(201, 74, 42, 0.16), transparent 32%),
      var(--bg-warm);
  }

  .app-shell {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: var(--bg-warm);
    box-shadow: none;
  }

  .feed {
    background:
      linear-gradient(90deg, var(--feed-bg) 0 calc(100% - var(--wide-panel-width)), var(--card-cream) calc(100% - var(--wide-panel-width)) 100%);
  }

  .listing-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--wide-panel-width);
    background: var(--card-cream);
  }

  .photos {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    background: var(--feed-bg);
    touch-action: pan-y;
  }

  .chrome-top {
    right: var(--wide-panel-width);
    height: 190px;
  }

  .chrome-bottom {
    right: var(--wide-panel-width);
    height: 330px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 42%,
      rgba(26, 15, 8, 0.14) 60%,
      rgba(26, 15, 8, 0.36) 74%,
      rgba(26, 15, 8, 0.68) 88%,
      rgba(26, 15, 8, 0.82) 100%
    );
  }

  .dots {
    right: var(--wide-panel-width);
  }

  .counter {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 22px;
  }

  .language-pill {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
  }

  .peek-card,
  .drawer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255, 248, 240, 0.98), rgba(249, 239, 223, 0.98)),
      var(--card-cream);
    color: var(--ink);
    box-shadow: -18px 0 52px rgba(26, 15, 8, 0.2);
  }

  .peek-card {
    display: flex;
    align-items: center;
    padding: clamp(24px, 4vw, 48px) clamp(22px, 3.2vw, 40px);
    cursor: pointer;
  }

  .peek-body {
    width: 100%;
    min-height: 0;
    padding-left: 0;
    padding-bottom: calc(var(--map-size) + 34px);
  }

  .price-row {
    max-width: 100%;
  }

  .price-clip {
    color: var(--ink);
    text-shadow: none;
  }

  .country-chip {
    color: rgba(58, 38, 24, 0.88);
  }

  .stats-row {
    color: var(--ink);
  }

  .stats-row .muted {
    color: rgba(58, 38, 24, 0.62);
  }

  .tap-hint {
    color: rgba(58, 38, 24, 0.54);
  }

  .peek-card .usd-toggle,
  .drawer-price-row .usd-toggle {
    background:
      linear-gradient(135deg, rgba(58, 38, 24, 0.08), rgba(58, 38, 24, 0.03)),
      rgba(255, 255, 255, 0.52);
    border-color: rgba(58, 38, 24, 0.14);
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(58, 38, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .peek-card .usd-toggle.is-on,
  .drawer-price-row .usd-toggle.is-on {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 221, 193, 0.4)),
      rgba(201, 74, 42, 0.08);
    border-color: rgba(138, 90, 58, 0.24);
  }

  .peek-card .usd-toggle .usd-toggle-code.is-active,
  .drawer-price-row .usd-toggle .usd-toggle-code.is-active {
    color: rgba(58, 38, 24, 0.96);
  }

  .peek-card .usd-toggle .usd-toggle-code.is-inactive,
  .drawer-price-row .usd-toggle .usd-toggle-code.is-inactive {
    color: rgba(58, 38, 24, 0.42);
  }

  .peek-card .usd-toggle .usd-toggle-sep,
  .drawer-price-row .usd-toggle .usd-toggle-sep {
    color: rgba(58, 38, 24, 0.32);
  }

  .drawer,
  .drawer.full {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .drawer-handle-wrap {
    display: none;
  }

  .drawer-header {
    padding-top: clamp(28px, 4vw, 48px);
  }

  .drawer-body {
    padding-bottom: 34px;
  }

  .mini-map-wrap {
    left: auto;
    right: clamp(18px, 2.8vw, 34px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 2.8vw, 34px));
  }

  .map-orb {
    box-shadow:
      0 12px 32px rgba(58, 38, 24, 0.22),
      0 2px 8px rgba(58, 38, 24, 0.14),
      0 0 0 5px rgba(255, 248, 240, 0.94),
      inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  .action-rail {
    right: calc(var(--wide-panel-width) + 18px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  }

  .dev-toggle {
    right: calc(var(--wide-panel-width) + 14px);
  }

  .tweaks-panel {
    right: calc(var(--wide-panel-width) + 14px);
  }

  .expanded-map {
    left: auto;
    right: clamp(16px, 3vw, 34px);
    top: clamp(16px, 3vw, 34px);
    bottom: clamp(16px, 3vw, 34px);
    width: min(720px, calc(100vw - var(--wide-panel-width) - 64px));
    height: auto;
    min-height: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(26, 15, 8, 0.34);
  }
}

@media (min-width: 1200px) and (min-height: 720px) {
  :root {
    --wide-panel-width: clamp(420px, 30vw, 520px);
  }

  .peek-card {
    padding-left: clamp(36px, 4vw, 60px);
    padding-right: clamp(36px, 4vw, 60px);
  }

  .price-clip {
    font-size: clamp(30px, 3vw, 44px);
  }

  .drawer-price {
    font-size: clamp(30px, 3vw, 42px);
  }
}

@media (orientation: landscape) and (min-width: 700px) and (max-height: 620px) {
  :root {
    --wide-panel-width: clamp(300px, 37vw, 360px);
    --map-size: 88px;
  }

  .peek-card {
    align-items: flex-start;
    padding: 20px 22px;
    overflow: hidden;
  }

  .peek-body {
    padding-bottom: 102px;
  }

  .price-clip {
    font-size: 24px;
  }

  .country-chip {
    margin-top: 4px;
  }

  .stats-row {
    gap: 7px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .drawer-header {
    padding: 18px 18px 14px;
  }

  .drawer-body {
    padding: 0 18px 20px;
  }

  .drawer-stats {
    gap: 0;
  }

  .section {
    margin-bottom: 16px;
  }

  .mini-map-wrap {
    right: 20px;
    bottom: 18px;
  }

  .action-rail {
    right: calc(var(--wide-panel-width) + 14px);
    bottom: 18px;
  }

  .action-btn {
    width: 40px;
    height: 40px;
  }

  .expanded-map {
    right: 16px;
    top: 16px;
    bottom: 16px;
    width: min(560px, calc(100vw - var(--wide-panel-width) - 40px));
  }
}

@media (max-width: 520px) {
  .peek-card {
    padding: 20px 18px 32px;
  }

  .peek-body {
    padding-left: 112px;
  }

  .room-row {
    grid-template-columns: 1fr auto;
  }

  .room-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  :root {
    --map-size: 88px;
  }

  .peek-body {
    padding-left: 104px;
  }

}

/* ================================================================== */
/* ulita Product Shell — Menu, Static Pages, Collection States         */
/* ================================================================== */

/* -- Hamburger menu toggle button -- */
.menu-toggle {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(58, 38, 24, 0.38);
  color: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,248,240,0.12);
  transition: background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:active {
  background: rgba(58, 38, 24, 0.58);
}

@media (min-width: 760px) and (min-height: 700px), (orientation: landscape) and (min-width: 700px) and (max-height: 620px) {
  .menu-toggle {
    right: calc(var(--wide-panel-width) + 14px);
  }

  .language-pill {
    right: calc(var(--wide-panel-width) + 66px);
  }
}

/* -- Menu overlay (tappable backdrop) -- */
.menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 39;
  background: rgba(26,15,8,0.55);
  backdrop-filter: blur(2px);
}

/* -- Menu panel -- */
.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 env(safe-area-inset-bottom, 20px);
  background: var(--card-cream);
  color: var(--ink);
  box-shadow: -12px 0 48px rgba(26,15,8,0.36);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 20px 14px;
  border-bottom: 1px solid rgba(58,38,24,0.1);
  flex-shrink: 0;
}

.menu-logo {
  display: flex;
  align-items: center;
}

.menu-logo-img {
  width: 134px;
  height: auto;
  display: block;
}

.static-brand-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
}

.static-brand-emblem {
  width: min(190px, 48vw);
  height: auto;
  display: block;
}

.menu-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--card-cream-3);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-section-label {
  padding: 14px 20px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--warm-brown);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.menu-item:active,
.menu-item:hover {
  background: var(--card-cream-2);
}

.menu-item.active {
  background: rgba(201, 74, 42, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.menu-item svg {
  flex: 0 0 18px;
  opacity: 0.7;
}

.menu-item.active svg {
  opacity: 1;
}

.menu-badge {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--card-cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-divider {
  height: 1px;
  background: rgba(58,38,24,0.08);
  margin: 6px 0;
}

/* -- Collection badge in counter -- */
.collection-badge {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(201,74,42,0.2);
  color: var(--accent-cta-b);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* -- Empty feed state -- */
.feed-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  background: var(--feed-bg);
  text-align: center;
}

.feed-empty-msg {
  max-width: 320px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,248,240,0.8);
}

.feed-empty-cta {
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--card-cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* -- End-of-feed popup -- */
.eof-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: rgba(26,15,8,0.45);
  backdrop-filter: blur(3px);
}

.eof-popup {
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: var(--card-cream);
  color: var(--ink);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.24), 0 0 0 1px rgba(58,38,24,0.07);
}

.eof-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.eof-body {
  font-size: 14px;
  color: rgba(58,38,24,0.7);
  margin-bottom: 18px;
  line-height: 1.45;
}

.eof-actions {
  display: flex;
  gap: 10px;
}

.eof-btn-primary {
  flex: 1;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--card-cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.eof-btn-secondary {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--card-cream-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* -- Static pages -- */
.static-page {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--card-cream);
  color: var(--ink);
  overflow: hidden;
}

.static-head {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
  border-bottom: 1px solid rgba(58,38,24,0.1);
}

.static-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 6px;
  border: 0;
  border-radius: 10px;
  background: var(--card-cream-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.static-back svg {
  width: 18px;
  height: 18px;
}

.static-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 40px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-width: 680px;
}

.static-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.static-content h2 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.static-content p {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(58,38,24,0.85);
}

.static-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.static-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--card-cream-3);
  padding: 2px 5px;
  border-radius: 4px;
}

/* -- Contact page -- */
.contact-email-link {
  display: inline-block;
  margin: 4px 0 18px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(201,74,42,0.08);
  border: 1px solid rgba(201,74,42,0.18);
}

.contact-note {
  font-size: 13px !important;
  color: rgba(58,38,24,0.55) !important;
}

/* -- Settings page -- */
.settings-section {
  margin-bottom: 28px;
}

.settings-label {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--warm-brown);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card-cream-2);
  margin-bottom: 8px;
}

.settings-row-text {
  flex: 1;
  min-width: 0;
}

.settings-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.settings-row-desc {
  font-size: 12px;
  color: rgba(58,38,24,0.6);
  line-height: 1.45;
}

.settings-row-danger .settings-row-title {
  color: var(--accent);
}

.settings-danger-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid rgba(201,74,42,0.22);
  border-radius: 10px;
  background: rgba(201,74,42,0.12);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.settings-danger-btn:active {
  background: rgba(201,74,42,0.22);
}

/* Toggle switch (placeholder — real consent wiring is TODO) */
.settings-toggle-wrap {
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 26px;
  cursor: pointer;
}

.settings-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #c0b09a;
  transition: background 0.2s ease;
  position: relative;
}

.settings-toggle:checked + .settings-toggle-track {
  background: var(--accent);
}

.settings-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: left 0.2s ease;
}

.settings-toggle:checked + .settings-toggle-track::after {
  left: 21px;
}

.settings-toggle:disabled + .settings-toggle-track {
  opacity: 0.6;
}

.cookie-toast {
  position: fixed;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 42;
  width: min(28rem, calc(100vw - 28px));
  pointer-events: none;
}

.cookie-toast-card {
  pointer-events: auto;
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: rgba(255, 248, 241, 0.92);
  border: 1px solid rgba(125, 82, 45, 0.16);
  box-shadow: 0 18px 40px rgba(20, 14, 10, 0.24);
  backdrop-filter: blur(14px);
  text-align: left;
}

@media (max-width: 720px) {
  .cookie-toast {
    left: 14px;
    right: 14px;
    width: auto;
  }
}

/* ---------------------------------------------------------------------------
   Review controls — DEV MODE ONLY (Workstream D, 2026-04-24)
   These elements are only rendered when devModeActive is true in app.js.
   They carry no class visibility toggle — if the element exists in the DOM
   it is visible. Keep devModeActive false in production to exclude them entirely.
--------------------------------------------------------------------------- */

/* Review bar — sits above the photo area at the top of each listing card */
.review-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20, 10, 5, 0.82);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: #e8d8c8;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  flex-wrap: wrap;
  pointer-events: all;
}

.review-bar-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  opacity: 0.75;
  user-select: text;
}

.review-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(229, 117, 85, 0.18);
  color: #ffd2c6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.review-bar-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.review-btn {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(200, 180, 150, 0.4);
  border-radius: 4px;
  background: rgba(40, 25, 15, 0.86);
  color: #e8d8c8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.review-btn:hover {
  background: rgba(80, 55, 30, 0.85);
}

.review-btn-ok {
  border-color: rgba(80, 180, 80, 0.6);
  color: #9de89d;
}

.review-btn-ok:hover {
  background: rgba(30, 80, 30, 0.85);
}

.review-btn-warn {
  border-color: rgba(200, 80, 40, 0.6);
  color: #e89d7d;
}

.review-btn-warn:hover {
  background: rgba(80, 25, 10, 0.85);
}

.review-photo-actions {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 82px);
  right: 12px;
  z-index: 115;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-content: flex-end;
  max-width: min(70vw, 220px);
}

/* Per-photo moderation toggle — overlaid on each photo slide */
.review-photo-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(245, 168, 140, 0.92);
  border-radius: 999px;
  background: rgba(56, 18, 10, 0.98);
  color: #fff3ed;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.42);
  pointer-events: all;
}

.review-photo-toggle > svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.review-photo-toggle:hover {
  background: rgba(82, 26, 15, 1);
}

.review-photo-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.92);
  outline-offset: 2px;
}

.review-photo-toggle.is-hidden {
  border-color: rgba(255, 224, 116, 0.88);
  background: rgba(128, 80, 18, 0.98);
  color: #fff5bf;
}

.review-photo-badge {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 130px);
  right: 12px;
  z-index: 114;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 10, 5, 0.84);
  color: #fff2cf;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Make photo-slide position:relative so the absolute button is positioned correctly */
.photo-slide {
  position: relative;
}

.photo-slide img.is-hidden-review {
  opacity: 0.2;
}

.contact-btn.is-disabled {
  opacity: 0.7;
  pointer-events: none;
}
