@font-face {
  font-family: Inter;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Buyer page only. Agent desk keeps the forest/cream palette in app.css. */
.public-page {
  --am-bg: #0b0b0d;
  --am-surface: #1c1c1e;
  --am-text: #ffffff;
  --am-secondary: #8e8e93;
  --am-accent: #fa2d48;
  --am-accent-2: #fc3c44;
  --am-maroon: #a1124a;
  --am-purple: #5b1a8c;
  --am-glass: rgba(255, 255, 255, 0.08);
  --am-glass-border: rgba(255, 255, 255, 0.14);
  --am-header: rgba(11, 11, 13, 0.72);
  --am-header-border: rgba(255, 255, 255, 0.06);
  --am-panel: rgba(28, 28, 30, 0.68);
  --am-control: rgba(255, 255, 255, 0.08);
  --am-control-active: rgba(255, 255, 255, 0.16);
  --am-hover: rgba(255, 255, 255, 0.14);
  --am-panel-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --am-wash-1: rgba(161, 18, 74, 0.28);
  --am-wash-2: rgba(91, 26, 140, 0.32);
  --am-wash-3: rgba(250, 45, 72, 0.12);
  --am-font: -apple-system, "SF Pro Text", "SF Pro Display", "SF Pro", Inter, system-ui, "Segoe UI", sans-serif;
  font-family: var(--am-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  color: var(--am-text);
  color-scheme: dark;
  background:
    radial-gradient(900px 520px at 8% -10%, var(--am-wash-1) 0%, transparent 58%),
    radial-gradient(800px 480px at 100% 0%, var(--am-wash-2) 0%, transparent 55%),
    radial-gradient(700px 400px at 50% 120%, var(--am-wash-3) 0%, transparent 50%),
    var(--am-bg);
  min-height: 100vh;
}

.public-page a { color: var(--am-text); }
.public-page .muted,
.public-page .count,
.public-page .public-count { color: var(--am-secondary); }


:is(html.theme-light, html[data-theme="light"]) .public-page {
  color-scheme: light;
  --am-bg: #f5f5f7;
  --am-surface: #ffffff;
  --am-text: #1d1d1f;
  --am-secondary: #6e6e73;
  --am-glass: rgba(255, 255, 255, 0.78);
  --am-glass-border: rgba(0, 0, 0, 0.08);
  --am-header: rgba(245, 245, 247, 0.4);
  --am-header-border: rgba(0, 0, 0, 0.04);
  --am-panel: rgba(255, 255, 255, 0.78);
  --am-control: rgba(255, 255, 255, 0.94);
  --am-control-active: #ffffff;
  --am-hover: rgba(0, 0, 0, 0.05);
  --am-panel-shadow: 0 12px 32px rgba(29, 29, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --am-wash-1: rgba(250, 45, 72, 0.14);
  --am-wash-2: rgba(91, 26, 140, 0.12);
  --am-wash-3: rgba(161, 18, 74, 0.08);
  /* One continuous soft wash from the very top to the bottom.
     Dark theme keeps the original .public-page background. */
  background:
    radial-gradient(ellipse 120% 90% at 0% 0%, var(--am-wash-1), transparent 58%),
    radial-gradient(ellipse 110% 85% at 100% 0%, var(--am-wash-2), transparent 56%),
    radial-gradient(ellipse 110% 80% at 0% 100%, var(--am-wash-2), transparent 58%),
    radial-gradient(ellipse 110% 80% at 100% 100%, var(--am-wash-1), transparent 58%),
    linear-gradient(180deg, rgba(250, 45, 72, 0.07) 0%, rgba(91, 26, 140, 0.06) 50%, rgba(161, 18, 74, 0.06) 100%),
    var(--am-bg);
}

/* Light mode: the shelf/feed must not paint their own background
   (a clipped box-shadow was reading as a hard edge above/below the cards). */
:is(html.theme-light, html[data-theme="light"]) .listing-shelf,
:is(html.theme-light, html[data-theme="light"]) .listing-feed,
:is(html.theme-light, html[data-theme="light"]) .public-desk,
:is(html.theme-light, html[data-theme="light"]) .public-count {
  background: none;
}
:is(html.theme-light, html[data-theme="light"]) .listing-feed {
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
}
:is(html.theme-light, html[data-theme="light"]) .listing-card[data-theme="pink"] .listing-card-frame {
  box-shadow: 0 8px 22px rgba(250, 45, 72, 0.16), 0 0 16px rgba(250, 45, 72, 0.08);
}
:is(html.theme-light, html[data-theme="light"]) .listing-card[data-theme="magenta"] .listing-card-frame {
  box-shadow: 0 8px 22px rgba(225, 29, 116, 0.16), 0 0 16px rgba(225, 29, 116, 0.08);
}
:is(html.theme-light, html[data-theme="light"]) .listing-card[data-theme="plum"] .listing-card-frame {
  box-shadow: 0 8px 22px rgba(91, 26, 140, 0.16), 0 0 16px rgba(124, 58, 237, 0.08);
}
:is(html.theme-light, html[data-theme="light"]) .listing-card[data-theme="maroon"] .listing-card-frame {
  box-shadow: 0 8px 22px rgba(161, 18, 74, 0.16), 0 0 16px rgba(161, 18, 74, 0.08);
}
:is(html.theme-light, html[data-theme="light"]) .listing-card[data-theme="violet"] .listing-card-frame {
  box-shadow: 0 8px 22px rgba(91, 33, 182, 0.16), 0 0 16px rgba(139, 92, 246, 0.08);
}

.theme-toggle-wrap { display: none; }

.header-theme-toggle,
.theme-toggle.header-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  flex: 0 0 auto;
  max-width: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: #1d1d1f;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFE08A 0%, #FFD23F 45%, #F5A623 100%);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.38);
}
.header-theme-toggle:hover,
.theme-toggle.header-theme-toggle:hover {
  filter: brightness(1.06);
  color: #1d1d1f;
}
.header-theme-toggle .theme-icon {
  display: none;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.header-theme-toggle .theme-icon svg { display: block; }
.header-theme-toggle .theme-icon-sun { display: inline-flex; }
:is(html.theme-light, html[data-theme="light"]) .header-theme-toggle .theme-icon-sun { display: none; }
:is(html.theme-light, html[data-theme="light"]) .header-theme-toggle .theme-icon-moon { display: inline-flex; }
.header-theme-toggle .theme-label-short { display: none; }
:is(html.theme-light, html[data-theme="light"]) .header-theme-toggle,
:is(html.theme-light, html[data-theme="light"]) .theme-toggle.header-theme-toggle {
  color: #fff;
  background: linear-gradient(180deg, #4b5f8a 0%, #2a3a66 50%, #152044 100%);
  box-shadow: 0 2px 8px rgba(21, 32, 68, 0.35);
}
:is(html.theme-light, html[data-theme="light"]) .header-theme-toggle:hover,
:is(html.theme-light, html[data-theme="light"]) .theme-toggle.header-theme-toggle:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .public-top .header-start,
  .public-top .header-apps {
    flex-wrap: nowrap;
    width: auto;
    margin-top: 0;
  }
  .public-top .header-apps {
    flex: 0 0 auto;
    justify-content: flex-end;
  }
  .header-theme-toggle,
  .theme-toggle.header-theme-toggle {
    height: 36px;
    min-height: 36px;
    padding: 0 0.4rem;
    font-size: 0.58rem;
  }
  .header-theme-toggle .theme-label-full { display: none; }
  .header-theme-toggle .theme-label-short { display: inline; }
}


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

.public-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 12px;
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--am-header);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--am-header-border);
}

.signin-pill,
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #5a7dff 0%, #3b5bdb 55%, #2a3ea8 100%);
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(42, 62, 168, 0.35);
  white-space: nowrap;
}

.signin-pill:hover,
.header-phone:hover { color: #fff; filter: brightness(1.08); }
.home-pill:hover { filter: brightness(1.08); }

.header-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #5c5c64 0%, #3a3a40 55%, #2c2c31 100%);
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.public-top .header-start .home-pill,
.desk-page .home-pill {
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  aspect-ratio: 1 / 1;
}

.public-top .brand { min-width: 0; text-align: center; }

.public-top a.brand {
  color: inherit;
  text-decoration: none;
}

.public-top .eyebrow {
  margin: 0;
  color: var(--am-accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-top h1 {
  margin: 0;
  color: var(--am-text);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.public-desk {
  width: min(100%, 72rem);
  margin: 0 auto 4rem;
  padding: 0 0 2rem;
}

.public-desk > .filters-panel,
.public-desk > .public-count,
.public-desk > .feed-status,
.public-desk > .feed-end {
  width: min(100% - 1.5rem, 42rem);
  margin-left: auto;
  margin-right: auto;
}

/* Frosted search panel — compact on mobile (~150–170px collapsed) */
.filters-panel {
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem auto 0.65rem;
  padding: 0.5rem;
  border-radius: 20px;
  background: var(--am-panel);
  border: 1px solid var(--am-glass-border);
  box-shadow: var(--am-panel-shadow);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  height: 40px;
  background: var(--am-control);
  border: 1px solid var(--am-glass-border);
  border-radius: 999px;
  padding: 0 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.filter-icon-btn {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--am-glass-border);
  border-radius: 999px;
  background: var(--am-control);
  color: var(--am-text);
}

.filter-icon-btn[aria-expanded="true"] {
  background: rgba(250, 45, 72, 0.22);
  border-color: rgba(250, 45, 72, 0.45);
}

.quick-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0.4rem;
  align-items: center;
}

.quick-row .field { margin: 0; }
.quick-row .field span,
.filters-panel .field span {
  display: none;
}

.search-pill:focus-within {
  border-color: rgba(250, 45, 72, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(250, 45, 72, 0.22);
}

.search-icon { flex: 0 0 auto; color: var(--am-secondary); }

.search-pill input {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--am-text);
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: 0.9rem;
}

.search-pill input::placeholder { color: var(--am-secondary); }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 3px;
  height: 36px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: var(--am-control);
}

.segment {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment span {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 999px;
  padding: 0 2px;
  height: 30px;
  line-height: 30px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  color: var(--am-secondary);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.segment input:checked + span {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(250,45,72,0.55) 70%, rgba(91,26,140,0.65));
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.segment input:focus-visible + span {
  outline: 2px solid var(--am-accent);
  outline-offset: 1px;
}

.filters-panel .field { margin: 0; gap: 0.28rem; }

.filters-panel .field span {
  padding-left: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--am-secondary);
}

.pill-control,
.filters-panel select.pill-control,
.filters-panel input.pill-control {
  width: 100%;
  border-radius: 999px;
  background: var(--am-control);
  border: 1px solid var(--am-glass-border);
  height: 36px;
  padding: 0 0.75rem;
  color: var(--am-text);
  font-size: 0.82rem;
  box-shadow: none;
  appearance: none;
  background-image: none;
}

.filters-panel select.pill-control {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--am-secondary) 50%),
    linear-gradient(135deg, var(--am-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.7rem;
}

.filters-panel option { color: var(--am-text); background: var(--am-surface); }

:is(html.theme-light, html[data-theme="light"]) .signin-pill,
:is(html.theme-light, html[data-theme="light"]) .header-phone {
  color: #fff;
  background: linear-gradient(180deg, #5a7dff 0%, #3b5bdb 55%, #2a3ea8 100%);
  border-color: transparent;
}
:is(html.theme-light, html[data-theme="light"]) .home-pill {
  color: #1d1d1f;
  background: linear-gradient(180deg, #f3f3f5 0%, #d8d8de 55%, #c2c2c8 100%);
  border-color: transparent;
}
:is(html.theme-light, html[data-theme="light"]) .search-icon { color: var(--am-secondary); }
:is(html.theme-light, html[data-theme="light"]) .filter-icon-btn { color: var(--am-text); }
:is(html.theme-light, html[data-theme="light"]) .segment span { color: var(--am-secondary); }
:is(html.theme-light, html[data-theme="light"]) .segment input:checked + span { color: var(--am-text); }
:is(html.theme-light, html[data-theme="light"]) .card-body,
:is(html.theme-light, html[data-theme="light"]) .card-title,
:is(html.theme-light, html[data-theme="light"]) .card-meta,
:is(html.theme-light, html[data-theme="light"]) .card-scrim { color: #fff; }


.filter-row { display: grid; gap: 0.6rem; }

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding-top: 0.15rem;
}

.range-row {
  display: contents;
}

.more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0 auto;
  padding: 0.25rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--am-secondary);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
}

.more-toggle svg { transition: transform 0.28s ease; }
.more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.more-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s ease;
}

.more-wrap.is-open { grid-template-rows: 1fr; }
.more-inner { overflow: hidden; min-height: 0; }

.apply-pill {
  border: 0;
  border-radius: 999px;
  height: 36px;
  padding: 0 0.9rem;
  background: linear-gradient(90deg, #fa2d48 0%, #fc3c44 32%, #a1124a 72%, #5b1a8c 100%);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  box-shadow:
    0 6px 18px rgba(250, 45, 72, 0.42),
    0 0 14px rgba(91, 26, 140, 0.28);
}

.apply-pill:hover { filter: brightness(1.08); }

.public-count {
  margin: 0.15rem auto 0.7rem;
  font-size: 0.86rem;
}

/* Apple TV shelf */
.listing-shelf {
  margin: 0;
  width: 100%;
}

.listing-feed {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.75rem;
  padding: 0.4rem 0.75rem 1.6rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.listing-feed::-webkit-scrollbar { display: none; }

.listing-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  min-width: 0;
}

.scroll-sentinel {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
}

/* Apple TV listing card */
.listing-card-frame {
  border-radius: 26px;
  padding: 2px;
  height: 100%;
}

.listing-card[data-theme="pink"] .listing-card-frame {
  background: linear-gradient(160deg, #fa2d48, #fc3c44 45%, #a1124a);
  box-shadow: 0 18px 50px rgba(250, 45, 72, 0.34), 0 0 42px rgba(250, 45, 72, 0.18);
}
.listing-card[data-theme="magenta"] .listing-card-frame {
  background: linear-gradient(160deg, #ff2d77, #e11d74 45%, #9d174d);
  box-shadow: 0 18px 50px rgba(225, 29, 116, 0.34), 0 0 42px rgba(225, 29, 116, 0.18);
}
.listing-card[data-theme="plum"] .listing-card-frame {
  background: linear-gradient(160deg, #c084fc, #7c3aed 40%, #5b1a8c);
  box-shadow: 0 18px 50px rgba(91, 26, 140, 0.4), 0 0 42px rgba(124, 58, 237, 0.22);
}
.listing-card[data-theme="maroon"] .listing-card-frame {
  background: linear-gradient(160deg, #fb7185, #a1124a 42%, #6b1229);
  box-shadow: 0 18px 50px rgba(161, 18, 74, 0.4), 0 0 42px rgba(161, 18, 74, 0.2);
}
.listing-card[data-theme="violet"] .listing-card-frame {
  background: linear-gradient(160deg, #a78bfa, #8b5cf6 40%, #5b21b6);
  box-shadow: 0 18px 50px rgba(91, 33, 182, 0.38), 0 0 42px rgba(139, 92, 246, 0.22);
}

.carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: #121214;
  aspect-ratio: 4 / 5;
}

.carousel.is-empty { background: linear-gradient(180deg, #2a1220, #121214); }

.carousel-viewport {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  z-index: 0;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1);
}

.carousel-slide.is-active img {
  animation: kenburns 8s ease-out forwards;
}

.carousel-slide:nth-child(even).is-active img {
  animation-name: kenburns-alt;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(1.2%, 0.6%); }
}

@keyframes kenburns-alt {
  from { transform: scale(1.06) translate(0.8%, 0); }
  to { transform: scale(1) translate(0, 0); }
}

.carousel-btn {
  position: absolute;
  top: 18%;
  z-index: 6;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  display: none;
  place-items: center;
  color: #fff;
  background: rgba(20, 16, 20, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.carousel-btn.prev { left: 0.7rem; }
.carousel-btn.next { right: 0.7rem; }

/* Full-photo fade sits ABOVE the viewport/slides/Ken Burns layer.
   Default: each card uses its frame colour (75% at the bottom, 10% at 33%, then 0).
   To revert to the previous black overlay, add class "photo-fade-black" to <html>
   or .public-page. */
.listing-card {
  --photo-fade-bottom: 0.75;
  --photo-fade-mid: 0.1;
  --photo-fade-rgb: 0, 0, 0;
}
.listing-card[data-theme="pink"] { --photo-fade-rgb: 250, 45, 72; }       /* #fa2d48 */
.listing-card[data-theme="magenta"] { --photo-fade-rgb: 225, 29, 116; }  /* #e11d74 */
.listing-card[data-theme="plum"] { --photo-fade-rgb: 124, 58, 237; }     /* #7c3aed */
.listing-card[data-theme="maroon"] { --photo-fade-rgb: 161, 18, 74; }    /* #a1124a */
.listing-card[data-theme="violet"] { --photo-fade-rgb: 139, 92, 246; }   /* #8b5cf6 */

.photo-fade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(var(--photo-fade-rgb), var(--photo-fade-bottom)) 0%,
    rgba(var(--photo-fade-rgb), var(--photo-fade-mid)) 33%,
    rgba(var(--photo-fade-rgb), 0) 33%,
    transparent 100%
  );
}

html.photo-fade-black .listing-card,
.public-page.photo-fade-black .listing-card {
  --photo-fade-rgb: 0, 0, 0;
  --photo-fade-bottom: 0.5;
  --photo-fade-mid: 0.01;
}

.card-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.15rem 1.1rem;
  background: none;
  color: #fff;
  pointer-events: none;
}

.card-scrim .carousel-dots,
.card-scrim .phone-pill { pointer-events: auto; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.32rem;
  margin: 0 0 0.7rem;
}

.carousel-dots .dot {
  width: 0.38rem;
  height: 0.38rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  transition: width 0.22s ease, background 0.22s ease;
}

.carousel-dots .dot.is-active {
  width: 0.85rem;
  background: #fff;
}

.card-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.listing-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 14px rgba(0, 0, 0, 0.45);
}

.card-meta,
.card-features,
.card-price {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.card-meta { font-weight: 560; font-size: 0.95rem; }

.card-features {
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.card-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.46rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #fa2d48, #fc3c44 40%, #a1124a);
  box-shadow: 0 6px 18px rgba(250, 45, 72, 0.4);
  border: 0;
}

.phone-pill:hover { filter: brightness(1.08); }

.empty-public,
.feed-end {
  background: var(--am-panel);
  border: 1px solid var(--am-glass-border);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  color: var(--am-secondary);
  text-align: center;
}

.feed-end[hidden],
.feed-status[hidden] { display: none; }

.feed-status { text-align: center; color: var(--am-secondary); font-size: 0.88rem; padding: 0.6rem; }

@media (min-width: 800px) and (max-width: 899px) {
  .public-top h1 { font-size: 1.25rem; }
  .public-top .eyebrow { font-size: 0.7rem; }
  .carousel { aspect-ratio: 4 / 3; }
  .listing-card {
    flex-basis: min(28rem, 42%);
  }
  .listing-card h2 { font-size: 1.45rem; }
  .filter-grid { grid-template-columns: 1fr 1fr 1fr; }
  .filter-icon-btn { display: none; }
  .search-row { display: block; }
  .search-pill { height: auto; padding: 0.62rem 0.95rem; }
  .search-pill input { font-size: 1rem; }
  .filters-panel {
    gap: 0.7rem;
    margin: 0.9rem auto 0.9rem;
    padding: 0.9rem;
    border-radius: 26px;
  }
  .quick-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .quick-row .field span,
  .filters-panel .field span {
    display: block;
  }
  .segmented { height: auto; }
  .segment span {
    height: auto;
    line-height: 1.2;
    padding: 0.48rem 0.3rem;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .pill-control,
  .filters-panel select.pill-control,
  .filters-panel input.pill-control {
    height: auto;
    padding: 0.62rem 0.85rem;
    font-size: 1rem;
  }
  .apply-pill {
    height: auto;
    padding: 0.78rem 1.1rem;
    font-size: 1rem;
  }
  .more-wrap { grid-template-rows: 1fr; }
  .carousel-btn { display: grid; }
  .carousel:hover .carousel-btn { opacity: 1; }
  .listing-feed { scroll-padding-inline: 1.25rem; padding-inline: 1.25rem; }
}

/* Wide desktop: full shelf width, 2-row horizontal bar (~120–140px). */
@media (min-width: 900px) {
  .public-top { padding: 0.75rem 20px; }
  .public-top h1 { font-size: 1.25rem; }
  .public-top .eyebrow { font-size: 0.7rem; }
  .carousel { aspect-ratio: 4 / 3; }
  .listing-card { flex-basis: min(28rem, 42%); }
  .listing-card h2 { font-size: 1.45rem; }
  .carousel-btn { display: grid; }
  .carousel:hover .carousel-btn { opacity: 1; }
  .listing-feed { scroll-padding-inline: 1.25rem; padding-inline: 1.25rem; }

  .public-desk > .filters-panel {
    width: calc(100% - 2.5rem);
    max-width: none;
    margin: 0.85rem 1.25rem 0.7rem;
  }

  .filter-icon-btn { display: none; }

  .filters-panel {
    display: grid;
    grid-template-columns: minmax(16rem, 2fr) minmax(13rem, 1.15fr) minmax(8.5rem, 0.9fr) minmax(6.5rem, 0.7fr) minmax(6.5rem, 0.7fr) auto;
    grid-template-rows: 40px 36px;
    column-gap: 12px;
    row-gap: 16px;
    align-items: stretch;
    margin: 0.85rem 1.25rem 0.7rem;
    padding: 18px 20px;
    border-radius: 22px;
  }

  .search-row,
  .quick-row,
  .more-wrap,
  .more-wrap.is-open,
  .more-inner,
  .filter-grid {
    display: contents;
  }

  .search-pill {
    grid-column: 1;
    grid-row: 1;
    height: 40px;
    padding: 0 0.9rem;
  }

  .search-pill input { font-size: 0.95rem; }

  .segmented {
    grid-column: 2;
    grid-row: 1;
    height: 40px;
  }

  .segment span {
    height: 34px;
    line-height: 34px;
    padding: 0 2px;
    font-size: 0.72rem;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
  }

  .field-area { grid-column: 3; grid-row: 1; }
  .field-floor { grid-column: 4; grid-row: 1; }
  .field-rooms { grid-column: 5; grid-row: 1; }

  .apply-pill {
    grid-column: 6;
    grid-row: 1;
    height: 40px;
    width: auto;
    padding: 0 1.15rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .quick-row .field span,
  .filters-panel .field span {
    display: none;
  }

  .pill-control,
  .filters-panel select.pill-control,
  .filters-panel input.pill-control {
    height: 40px;
    padding: 0 0.8rem;
    font-size: 0.88rem;
  }

  .range-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 12px;
    min-width: 0;
  }

  .range-row .field {
    flex: 0 1 12rem;
    max-width: 14rem;
  }

  .range-row .pill-control,
  .range-row input.pill-control {
    height: 36px;
  }

  .filters-panel.is-agent {
    grid-template-columns: minmax(16rem, 2fr) minmax(8.5rem, 0.9fr) minmax(10rem, 1.1fr) minmax(6.5rem, 0.7fr) minmax(7.2rem, 0.85fr) auto;
  }
  .filters-panel.is-agent .field-area { grid-column: 2; grid-row: 1; }
  .filters-panel.is-agent .field-status { grid-column: 3; grid-row: 1; }
  .filters-panel.is-agent .field-rooms { grid-column: 4; grid-row: 1; }
  .filters-panel.is-agent .field-phone { grid-column: 5; grid-row: 1; }

  .filters-panel:not(.is-agent) {
    grid-template-columns: minmax(16rem, 2fr) minmax(13rem, 1.15fr) minmax(8.5rem, 0.9fr) minmax(6.5rem, 0.7fr) minmax(6.5rem, 0.7fr);
  }
}


/* Clickable tag chips (type, sale/rent, neighbourhood) by the search bar. */
.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 -0.5rem;
  padding: 2px 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tag-row::-webkit-scrollbar { display: none; }

.tag-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--am-glass-border);
  background: var(--am-control);
  color: var(--am-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  scroll-snap-align: start;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.tag-chip:hover { border-color: rgba(250, 45, 72, 0.45); }
.tag-chip:focus-visible { outline: 2px solid var(--am-accent); outline-offset: 1px; }
.tag-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--am-secondary);
}
.tag-chip.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, #fa2d48 0%, #fc3c44 32%, #a1124a 72%, #5b1a8c 100%);
  box-shadow: 0 4px 14px rgba(250, 45, 72, 0.35);
}
.tag-chip.is-active .tag-count { color: rgba(255, 255, 255, 0.8); }
.tag-chip.is-active::after {
  content: "×";
  margin-left: 1px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Listings without photos: placeholder until real photos arrive. */
.photo-soon {
  position: absolute;
  inset: 0 0 42% 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.photo-soon svg { opacity: 0.75; }

@media (min-width: 900px) {
  .filters-panel:has(.tag-row) { grid-template-rows: 40px 36px auto; }
  .tag-row {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .tag-chip { height: 30px; padding: 0 13px; font-size: 0.82rem; }
}


/* "I'm looking for…" type buttons below the search box. */
.look-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  grid-column: 1 / -1;
  min-width: 0;
}
.look-row::-webkit-scrollbar { display: none; }
.look-row > input { display: none; }
.look-row .look-btn {
  flex: 0 0 calc((100% - 16px) / 2.5);
  max-width: calc((100% - 16px) / 2.5);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
@media (min-width: 700px) and (max-width: 899px) {
  .look-row .look-btn {
    flex-basis: calc((100% - 24px) / 3.5);
    max-width: calc((100% - 24px) / 3.5);
  }
}
.look-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--am-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.look-icon { flex: 0 0 auto; display: block; }
.look-label { min-width: 0; }

.look-btn {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.22);
}
.look-house { background: linear-gradient(135deg, #ff9a1f 0%, #ff4d6d 55%, #ff2b8a 100%); box-shadow: 0 0 10px rgba(255, 77, 109, 0.45); }
.look-flat { background: linear-gradient(135deg, #19c9ff 0%, #3b6bff 50%, #7c3aed 100%); box-shadow: 0 0 10px rgba(59, 107, 255, 0.45); }
.look-plot { background: linear-gradient(135deg, #c8ff3d 0%, #22c55e 55%, #059669 100%); box-shadow: 0 0 10px rgba(34, 197, 94, 0.45); }
.look-warehouse { background: linear-gradient(135deg, #22f0ff 0%, #06b6d4 50%, #0f766e 100%); box-shadow: 0 0 10px rgba(6, 182, 212, 0.45); }
.look-business { background: linear-gradient(135deg, #ff2bd6 0%, #d946ef 45%, #7c3aed 100%); box-shadow: 0 0 10px rgba(217, 70, 239, 0.5); }
.look-btn:hover { border-color: rgba(255, 255, 255, 0.6); filter: brightness(1.06); }
.look-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.look-btn.is-active { color: #fff; border-color: #fff; }
.look-house.is-active { box-shadow: 0 0 18px rgba(255, 77, 109, 0.85), 0 6px 18px rgba(255, 45, 100, 0.45); }
.look-flat.is-active { box-shadow: 0 0 18px rgba(59, 107, 255, 0.85), 0 6px 18px rgba(80, 70, 229, 0.45); }
.look-plot.is-active { box-shadow: 0 0 18px rgba(34, 197, 94, 0.85), 0 6px 18px rgba(5, 150, 105, 0.45); }
.look-warehouse.is-active { box-shadow: 0 0 18px rgba(6, 182, 212, 0.85), 0 6px 18px rgba(15, 118, 110, 0.45); }
.look-business.is-active { box-shadow: 0 0 18px rgba(255, 43, 214, 0.85), 0 6px 18px rgba(124, 58, 237, 0.5); }
:is(html.theme-light, html[data-theme="light"]) .look-btn {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
:is(html.theme-light, html[data-theme="light"]) .look-house { box-shadow: 0 0 8px rgba(255, 77, 109, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-flat { box-shadow: 0 0 8px rgba(59, 107, 255, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-plot { box-shadow: 0 0 8px rgba(34, 197, 94, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-warehouse { box-shadow: 0 0 8px rgba(6, 182, 212, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-business { box-shadow: 0 0 8px rgba(217, 70, 239, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-house.is-active { box-shadow: 0 0 14px rgba(255, 77, 109, 0.5), 0 4px 12px rgba(255, 45, 100, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-flat.is-active { box-shadow: 0 0 14px rgba(59, 107, 255, 0.5), 0 4px 12px rgba(80, 70, 229, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-plot.is-active { box-shadow: 0 0 14px rgba(34, 197, 94, 0.5), 0 4px 12px rgba(5, 150, 105, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-warehouse.is-active { box-shadow: 0 0 14px rgba(6, 182, 212, 0.5), 0 4px 12px rgba(15, 118, 110, 0.28); }
:is(html.theme-light, html[data-theme="light"]) .look-business.is-active { box-shadow: 0 0 14px rgba(255, 43, 214, 0.5), 0 4px 12px rgba(124, 58, 237, 0.28); }
.phone-pill.has-agent { white-space: nowrap; }

@media (min-width: 900px) {
  .filters-panel:not(.is-agent) { grid-template-rows: 40px auto auto; }
  .filters-panel:not(.is-agent):has(.deal-row:not([hidden])) { grid-template-rows: 40px auto auto auto; }
  .filters-panel:not(.is-agent):has(.tag-row) { grid-template-rows: 40px auto auto auto; }
  .filters-panel:not(.is-agent):has(.deal-row:not([hidden])):has(.tag-row) { grid-template-rows: 40px auto auto auto auto; }
  .look-row {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .look-row .look-btn {
    flex: none;
    max-width: none;
    width: auto;
  }
  .deal-row {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
  }
  .look-btn { min-height: 46px; font-size: 0.84rem; padding: 0.4rem 0.45rem; }
  .filters-panel:not(.is-agent) .range-row,
  .filters-panel:not(.is-agent) .ios-picker-row { grid-row: 3; }
  .filters-panel:not(.is-agent) .tag-row { grid-row: 4; }
  .filters-panel:not(.is-agent):has(.deal-row:not([hidden])) .tag-row { grid-row: 5; }
}


/* "Watch video" — opens our Facebook Page reel in a new tab (videos are not hosted here). */
.listing-card-frame { position: relative; }
.video-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.95), rgba(91, 26, 140, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.video-pill:hover { filter: brightness(1.1); }
.video-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .more-wrap, .carousel-slide, .carousel-dots .dot, .segment span, .tag-chip { transition: none; }
  .carousel-slide.is-active img,
  .carousel-slide:nth-child(even).is-active img { animation: none; }
}


/* Agent contact on public cards: tiny round photo + name + Call/WhatsApp/Viber. */
.agent-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.agent-avatar.is-initial {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}
.agent-name {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.agent-contact .chat-btn,
.phone-with-chat .chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  line-height: 1;
  white-space: nowrap;
}
.agent-contact .chat-icon,
.phone-with-chat .chat-icon,
.chat-btn .chat-icon { display: block; flex: 0 0 auto; }
.chat-btn.chat-call {
  background: linear-gradient(180deg, #4ce072 0%, #34C759 55%, #1faa45 100%);
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
  color: #fff;
}
.chat-btn.chat-whatsapp {
  background: linear-gradient(180deg, #4ee07e 0%, #25D366 55%, #128C4B 100%);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
  color: #fff;
}
.chat-btn.chat-viber {
  background: linear-gradient(180deg, #9b8cff 0%, #7360F2 55%, #5844d6 100%);
  box-shadow: 0 2px 8px rgba(115, 96, 242, 0.45);
  color: #fff;
}
.chat-btn:hover { filter: brightness(1.08); }
.chat-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 639px) {
  .card-row { align-items: flex-start; }
  .agent-contact { justify-content: flex-start; }
}


.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 32px;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
img.agent-avatar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.agent-avatar.is-initial {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}


/* Home cards: listing name + photo only, whole card is the link */
.listing-card-link {
  display: block;
  position: relative;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.listing-card-link .listing-cover,
.listing-card-link .listing-cover img,
.listing-card-link .photo-soon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-scrim-title {
  pointer-events: none;
}
.card-scrim-title h2 {
  margin: 0;
}

/* Related-listings strip: transparent over the page background, gradient accents */
.related-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 6px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  border-bottom: 0;
  scrollbar-width: thin;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 48px;
  max-width: 200px;
  padding-right: 10px;
  border-radius: 10px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #ffe14a, #ff9f1c) border-box;
  box-shadow: 0 0 10px rgba(255, 200, 60, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.related-item:hover { filter: brightness(1.08); }
.related-accent-lemon {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #ffe14a, #f5c400) border-box;
  box-shadow: 0 0 10px rgba(255, 225, 74, 0.4);
}
.related-accent-lime {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #c8f542, #7ad000) border-box;
  box-shadow: 0 0 10px rgba(160, 230, 50, 0.4);
}
.related-accent-orange {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #ffb347, #ff6a00) border-box;
  box-shadow: 0 0 10px rgba(255, 120, 30, 0.4);
}
.related-accent-purple {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #c084fc, #7c3aed) border-box;
  box-shadow: 0 0 10px rgba(140, 80, 255, 0.4);
}
.related-accent-pink {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #ff7ac8, #ff2bd6) border-box;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.4);
}
.related-accent-cyan {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #5eead4, #06b6d4) border-box;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}
.related-item img,
.related-ph {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
  background: transparent;
  flex: 0 0 48px;
}
.related-item span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
:is(html.theme-light, html[data-theme="light"]) .related-strip {
  background: transparent;
}
:is(html.theme-light, html[data-theme="light"]) .related-item {
  color: #1d1d1f;
  text-shadow: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}
:is(html.theme-light, html[data-theme="light"]) .related-accent-lemon {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #ffe98a, #f0c84a) border-box;
}
:is(html.theme-light, html[data-theme="light"]) .related-accent-lime {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #d8f58a, #9ad64a) border-box;
}
:is(html.theme-light, html[data-theme="light"]) .related-accent-orange {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #ffd19a, #ff9a4a) border-box;
}
:is(html.theme-light, html[data-theme="light"]) .related-accent-purple {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #e0c4ff, #b48cff) border-box;
}
:is(html.theme-light, html[data-theme="light"]) .related-accent-pink {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #ffc2e4, #ff8ad0) border-box;
}
:is(html.theme-light, html[data-theme="light"]) .related-accent-cyan {
  background:
    linear-gradient(var(--am-bg, #0b0b0d), var(--am-bg, #0b0b0d)) padding-box,
    linear-gradient(135deg, #b8f3ec, #6ad4e0) border-box;
}
.related-item,
.related-item[class*="related-accent-"],
:is(html.theme-light, html[data-theme="light"]) .related-item,
:is(html.theme-light, html[data-theme="light"]) .related-item[class*="related-accent-"] {
  background-color: transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Listing page agent bar + YouTube-style own-video button */
.listing-agent-bar {
  background: var(--am-bg, #0b0b0d);
  border-bottom: 1px solid var(--am-header-border, rgba(255, 255, 255, 0.08));
  padding: 10px 16px;
  color: var(--am-text, #fff);
}
.listing-page .agent-name {
  color: var(--am-text, #fff);
  text-shadow: none;
}
.listing-page .agent-avatar.is-initial {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff;
  text-shadow: none;
}
:is(html.theme-light, html[data-theme="light"]) .listing-agent-bar {
  background: var(--am-bg, #f5f5f7);
  border-bottom-color: var(--am-header-border, rgba(0, 0, 0, 0.08));
  color: var(--am-text, #1d1d1f);
}
:is(html.theme-light, html[data-theme="light"]) .listing-page .agent-name {
  color: var(--am-text, #1d1d1f);
  text-shadow: none;
}
:is(html.theme-light, html[data-theme="light"]) .listing-page .agent-avatar.is-initial {
  background: #1d1d1f !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  color: #fff;
}
.listing-agent-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.listing-page .agent-contact {
  margin: 0;
}
.video-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ff3b3b 0%, #ff0000 55%, #c40000 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.15;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
  border: 0;
}
.video-tour-btn:hover,
.video-tour-btn:focus {
  background: linear-gradient(180deg, #ff5555 0%, #e00000 55%, #b00000 100%);
  color: #fff;
}
.video-tour-play {
  flex: 0 0 auto;
}

.listing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.listing-title {
  margin: 0 0 16px;
  font-size: 1.65rem;
  line-height: 1.2;
}
.listing-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1216;
  min-height: 280px;
  aspect-ratio: 16 / 10;
}
.listing-slide {
  display: none;
  margin: 0;
  height: 100%;
}
.listing-slide[data-active="1"],
.listing-slide:first-child {
  display: block;
  height: 100%;
}
.listing-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-gallery .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.listing-gallery .carousel-btn.prev { left: 10px; }
.listing-gallery .carousel-btn.next { right: 10px; }
.listing-gallery .photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 12px;
  background: rgba(0,0,0,.45);
  padding: 4px 8px;
  border-radius: 999px;
}
.listing-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  margin: 20px 0;
}
.listing-facts .fact {
  margin: 0;
}
.listing-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7380;
}
.listing-facts dd {
  margin: 2px 0 0;
  font-weight: 650;
}
.listing-features,
.listing-copy {
  margin: 0 0 14px;
  max-width: 42rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .listing-agent-bar {
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .listing-title { font-size: 1.35rem; }
  .video-tour-btn { width: 100%; justify-content: center; }
  .related-strip { height: 56px; padding: 4px 10px; }
  .related-item { height: 44px; max-width: 170px; }
  .related-item img, .related-ph { width: 44px; height: 44px; flex-basis: 44px; }
}

/* Home cards: keep a 4:5 photo frame so the title sits on the photo */
.listing-card-link {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}
.listing-card-link .listing-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #121214;
  overflow: hidden;
  border-radius: 24px;
  height: auto;
}
.listing-card-link .listing-cover img,
.listing-card-link .listing-cover .photo-soon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-scrim-title h2 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 2px 14px rgba(0,0,0,0.45);
}

/* Become our agent — same size as Agent Login, accent gradient */
.become-agent-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(90deg, #fa2d48 0%, #fc3c44 32%, #a1124a 72%, #5b1a8c 100%);
  box-shadow: 0 4px 12px rgba(161, 18, 74, 0.35);
}
.become-agent-pill:hover { color: #fff; filter: brightness(1.06); }

/* Home hero */
.home-hero {
  text-align: center;
  padding: 0.55rem 12px 0.7rem;
  max-width: 52rem;
  margin: 0 auto;
}
.hero-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-sub {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--am-secondary, #c4b8c0);
}
@media (max-width: 700px) {
  .home-hero { padding: 0.28rem 10px 0.3rem; min-height: 6.6rem; }
  .hero-title {
    font-size: 0.82rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin: 0 0 0.16rem;
  }
  .hero-sub {
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    line-height: 1.25;
  }
}
.social-apps { display: flex; justify-content: center; gap: 12px; }
.social-app {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
.social-fb { background: linear-gradient(180deg, #4a97ff 0%, #1877F2 60%, #0d5cd6 100%); }
.social-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4); }

/* Deal buttons after a type is chosen */
.deal-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0 4px;
}
.deal-row[hidden],
.filters-panel fieldset.segmented[hidden] {
  display: none !important;
}
.deal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.deal-sale { background: linear-gradient(135deg, #fa2d48, #fc3c44 40%, #a1124a); }
.deal-rent { background: linear-gradient(135deg, #7c3aed, #a1124a 55%, #5b1a8c); }
.deal-all { background: linear-gradient(135deg, #3b82f6, #4f46e5 55%, #3730a3); }
.deal-btn.is-active {
  box-shadow: 0 6px 18px rgba(250, 45, 72, 0.4);
  border-color: #fff;
}
.deal-count {
  font-weight: 700;
  font-size: 0.75rem;
  opacity: 0.92;
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
  padding: 1px 7px;
}
@media (max-width: 700px) {
  .deal-btn { min-height: 52px; font-size: 0.86rem; }
  .public-top {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0.32rem 6px;
    overflow-x: hidden;
  }
  .header-start {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
  }
  .signin-pill,
  .become-agent-pill {
    font-size: 0.58rem;
    padding: 0.28rem 0.38rem;
    letter-spacing: -0.04em;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    text-align: center;
  }
  .home-pill,
  .public-top .header-start .home-pill,
  .desk-page .home-pill {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
  .header-apps { gap: 5px; margin-left: 0; flex: 0 0 auto; }
  .header-app {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
  }
  .header-app svg { width: 16px; height: 16px; }
  .look-btn { min-height: 36px; padding: 0.28rem 0.4rem; font-size: 0.74rem; }
  .filters-panel { margin: 0.4rem auto 0.4rem; padding: 0.4rem; gap: 0.3rem; }
  .public-count { margin: 0.1rem auto 0.4rem; }
  .public-top .header-start {
    flex-wrap: nowrap;
  }
  .public-top .header-apps {
    width: auto;
    margin-left: 0;
    margin-top: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }
}

/* iOS-style silent range pickers (pill row + expandable wheel; layout is at the end of this file) */
.ios-picker-row {
  grid-column: 1 / -1;
}
.ios-picker { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ios-picker-caption {
  display: block !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--am-secondary, #9a9098);
}
.ios-picker-body { display: flex; flex-direction: column; align-items: stretch; }
.ios-picker-row {
  --ios-item: 36px;
  --ios-view: 180px;
  --ios-pad: 72px;
}
.ios-picker-viewport {
  position: relative;
  height: var(--ios-view, 180px);
  overflow: hidden;
  border-radius: 12px;
  background: rgba(120,120,128,0.16);
}
.ios-picker-band {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: var(--ios-item, 36px);
  margin-top: calc(var(--ios-item, 36px) / -2);
  border-radius: 8px;
  background: rgba(120, 120, 128, 0.22);
  pointer-events: none;
  z-index: 1;
}
.ios-picker-wheel {
  height: var(--ios-view, 180px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: var(--ios-pad, 72px) 0;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
}
.ios-picker-wheel::-webkit-scrollbar { display: none; }
.ios-wheel-item {
  height: var(--ios-item, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 17px;
  font-weight: 560;
  opacity: 0.45;
}
.ios-wheel-item.is-selected { opacity: 1; font-weight: 700; }
.ios-picker-arrow {
  border: 0;
  background: transparent;
  color: inherit;
  height: 28px;
  cursor: pointer;
  opacity: 0.7;
}
.ios-picker-arrow:hover { opacity: 1; }
@media (max-width: 700px) {
  .ios-picker-row,
  .filters-panel .range-row.ios-picker-row {
    gap: 8px;
  }
  .ios-picker { gap: 2px; }
  .ios-picker-caption {
    font-size: 8px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  .ios-wheel-item { font-size: 12px; }
  .ios-picker-arrow { height: 14px; }
  .ios-picker-viewport,
  .ios-picker-wheel { border-radius: 10px; }
}

/* Become-agent form */
.become-main { max-width: 28rem; margin: 0 auto; padding: 24px 16px 48px; }
.become-form { display: flex; flex-direction: column; gap: 12px; }
.become-form .field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.become-form input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--am-glass-border, #d6d1d8);
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: #1c1518;
}
.become-submit, .become-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
.become-submit { background: linear-gradient(90deg, #fa2d48 0%, #a1124a 72%, #5b1a8c 100%); }
.become-wa-btn { background: linear-gradient(180deg, #4ee07e 0%, #25D366 55%, #128C4B 100%); width: 100%; box-sizing: border-box; }
.become-thanks { text-align: center; }
.thanks-mk { font-size: 1.15rem; font-weight: 800; }
.thanks-en { color: var(--am-secondary, #8a8090); }

.become-form .field-en,
.become-form .field-mk,
.contact-choice .choice-en,
.contact-choice .choice-mk {
  display: block;
}
.become-form .field-mk,
.contact-choice .choice-mk {
  font-size: 0.92em;
  font-weight: 650;
  margin: 2px 0 6px;
}
.become-form .field-en,
.contact-choice .choice-en {
  font-weight: 800;
}
.field-help {
  margin: -4px 0 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--am-secondary, #8a8090);
}
.field-help .help-mk { display: block; font-weight: 600; color: inherit; }
.field-help .help-en { display: block; margin-top: 4px; opacity: 0.9; }
.contact-choice {
  border: 0;
  margin: 8px 0 4px;
  padding: 0;
}
.contact-choice legend { padding: 0; margin-bottom: 8px; }
.contact-apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.contact-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  border: 3px solid transparent;
  user-select: none;
}
.contact-app { position: relative; }
.contact-app input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
}
.contact-app svg,
.contact-app span { position: relative; z-index: 0; pointer-events: none; }
.contact-sms { background: linear-gradient(180deg, #3da2ff 0%, #0a84ff 55%, #0060d0 100%); }
.contact-whatsapp { background: linear-gradient(180deg, #4ee07e 0%, #25D366 55%, #128C4B 100%); }
.contact-viber { background: linear-gradient(180deg, #9b8cff 0%, #7360F2 55%, #5844d6 100%); }
.contact-app:has(input:checked),
.contact-app.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.35);
}
.become-handoff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
}
.become-handoff-sms { background: linear-gradient(180deg, #3da2ff 0%, #0a84ff 55%, #0060d0 100%); }
.become-handoff-whatsapp { background: linear-gradient(180deg, #4ee07e 0%, #25D366 55%, #128C4B 100%); }
.become-handoff-viber { background: linear-gradient(180deg, #9b8cff 0%, #7360F2 55%, #5844d6 100%); }
@media (min-width: 600px) {
  .contact-apps { grid-template-columns: repeat(3, 1fr); }
}

.results-heading {
  width: min(100% - 1.5rem, 42rem);
  margin: 0.35rem auto 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}
@media (min-width: 900px) {
  .results-heading { width: calc(100% - 2.5rem); max-width: none; margin-left: 1.25rem; margin-right: 1.25rem; text-align: left; }
}

/* iPhone-style header app icons (Call / Facebook / Instagram) */
.header-apps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: 2px;
}
.header-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.28);
}
.header-app-call { background: linear-gradient(180deg, #4ce072 0%, #34C759 60%, #1faa45 100%); }
.header-app-fb { background: linear-gradient(180deg, #4a97ff 0%, #1877F2 60%, #0d5cd6 100%); }
.header-app-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4); }
.header-app:hover { filter: brightness(1.06); }

@media (max-width: 700px) {
  .header-apps { gap: 5px; margin-left: 0; flex: 0 0 auto; }
  .header-app {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
  }
  .header-app svg { width: 16px; height: 16px; }
}


/* 17M Facebook views chart behind the hero copy, full width, never over the nav. */
.home-hero {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  box-sizing: border-box;
  aspect-ratio: 2282 / 600;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 12px;
  text-align: center;
}
.hero-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-color: #FF2BD6;
  -webkit-mask-image: url("/assets/img/fb-17m-chart.png");
  mask-image: url("/assets/img/fb-17m-chart.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-position: center center;
  opacity: 0.88;
}
@media (max-width: 700px) {
  .home-hero {
    padding: 0.45rem 10px;
    min-height: 0;
  }
  .hero-chart {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: center center;
    mask-position: center center;
  }
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}
.home-hero .hero-title,
.home-hero .hero-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 0, 0, 0.55);
}
:is(html.theme-light, html[data-theme="light"]) .hero-chart {
  background-color: #FF8A00;
  opacity: 0.8;
}
:is(html.theme-light, html[data-theme="light"]) .home-hero.graph-b .hero-chart {
  background-color: #FF8A00;
  opacity: 0.82;
}
:is(html.theme-light, html[data-theme="light"]) .home-hero.graph-c .hero-chart {
  background-color: #FF6A00;
  opacity: 0.86;
}
:is(html.theme-light, html[data-theme="light"]) .home-hero .hero-title,
:is(html.theme-light, html[data-theme="light"]) .home-hero .hero-sub {
  color: #1d1d1f;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 18px rgba(255, 255, 255, 0.85);
}


/* Listing page actions + share sheet */
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.listing-action-btn,
.posts-list-menu a,
.share-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
.posts-btn,
.listing-action-btn.posts-btn {
  background: linear-gradient(90deg, #1E6BFF 0%, #5B4BFF 50%, #8A2BE2 100%);
  box-shadow: 0 4px 14px rgba(30, 107, 255, 0.4);
}
.share-btn,
.listing-action-btn.share-btn {
  background: linear-gradient(90deg, #fa2d48 0%, #a1124a 60%, #5b1a8c 100%);
  box-shadow: 0 4px 12px rgba(161, 18, 74, 0.35);
}
.posts-list { position: relative; }
.posts-list summary { list-style: none; }
.posts-list summary::-webkit-details-marker { display: none; }
.posts-list-menu {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  left: 0;
  min-width: 10rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(20, 16, 22, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
}
.posts-list-menu a {
  background: linear-gradient(90deg, #1E6BFF 0%, #5B4BFF 50%, #8A2BE2 100%);
}
.share-wrap { position: relative; }
.share-sheet {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  min-width: 12.5rem;
  width: max-content;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(16, 14, 18, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.share-sheet[hidden] { display: none; }
.share-sheet-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.share-sms { background: linear-gradient(180deg, #3da2ff 0%, #0a84ff 55%, #0060d0 100%); }
.share-viber { background: linear-gradient(180deg, #9b8cff 0%, #7360F2 55%, #5844d6 100%); }
.share-whatsapp { background: linear-gradient(180deg, #4ee07e 0%, #25D366 55%, #128C4B 100%); }
:is(html.theme-light, html[data-theme="light"]) .share-sheet,
:is(html.theme-light, html[data-theme="light"]) .posts-list-menu {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.08);
}
:is(html.theme-light, html[data-theme="light"]) .share-sheet-title { color: #1d1d1f; }

.listing-action-btn.posts-btn,
.listing-action-btn.share-btn,
.share-btn,
.posts-btn {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .listing-actions { width: 100%; }
  .listing-action-btn { flex: 1 1 auto; }
  .listing-action-btn.posts-btn,
  .posts-list { flex: 1 1 auto; }
  .listing-action-btn.share-btn,
  .share-wrap { flex: 1 1 auto; }
  .share-wrap .share-btn { width: 100%; }
  .listing-action-btn.posts-btn,
  .listing-action-btn.share-btn {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    padding: 0.55rem 0.7rem;
    white-space: nowrap;
  }
}

/* Site-wide: native file-picker buttons must be gradient-filled pills, never a solid grey fill. */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-right: 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #fa2d48 0%, #fc3c44 32%, #a1124a 72%, #5b1a8c 100%);
  box-shadow: 0 4px 12px rgba(161, 18, 74, 0.35);
}
input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  filter: brightness(1.08);
}


/* Collapsed picker pills in one row; one full-width wheel opens beneath. */
.ios-picker-row,
.filters-panel .range-row.ios-picker-row {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: 0;
}
.ios-picker-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.ios-picker-pill {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0.32rem 0.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fa2d48 0%, #fc3c44 32%, #a1124a 72%, #5b1a8c 100%);
  box-shadow: 0 3px 10px rgba(161, 18, 74, 0.32);
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ios-picker-pill.is-open {
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(161, 18, 74, 0.4);
}
.ios-picker-panels { width: 100%; }
.ios-picker-panels .ios-picker {
  display: none;
  width: 100%;
}
.ios-picker-panels .ios-picker.is-open,
.filters-panel .range-row.ios-picker-row .ios-picker-panels .ios-picker.is-open,
.filters-panel .range-row.ios-picker-row .ios-picker-panels .ios-picker.field {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  --ios-item: 40px;
  --ios-view: 200px;
  --ios-pad: 80px;
}
/* closed field must stay hidden even on desktop */
.ios-picker-panels .ios-picker:not(.is-open),
.filters-panel .range-row.ios-picker-row .ios-picker-panels .ios-picker.field:not(.is-open) {
  display: none;
}
.ios-picker-panels .ios-picker.is-open .ios-picker-viewport,
.ios-picker-panels .ios-picker.is-open .ios-picker-wheel {
  height: var(--ios-view, 200px);
  width: 100%;
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.96);
}
.ios-picker-panels .ios-picker-band {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.ios-picker-panels .ios-wheel-item {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}
.ios-picker-panels .ios-wheel-item.is-selected {
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
:is(html.theme-light, html[data-theme="light"]) .ios-picker-panels .ios-picker.is-open .ios-picker-viewport,
:is(html.theme-light, html[data-theme="light"]) .ios-picker-panels .ios-picker.is-open .ios-picker-wheel {
  background: #f2f2f7;
}
:is(html.theme-light, html[data-theme="light"]) .ios-picker-panels .ios-picker-band {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
:is(html.theme-light, html[data-theme="light"]) .ios-picker-panels .ios-wheel-item {
  color: rgba(29, 29, 31, 0.4);
}
:is(html.theme-light, html[data-theme="light"]) .ios-picker-panels .ios-wheel-item.is-selected {
  color: #1d1d1f;
  text-shadow: none;
}
@media (max-width: 700px) {
  .ios-picker-pills { gap: 4px; }
  .ios-picker-pill { font-size: 0.58rem; min-height: 30px; padding: 0.28rem 0.22rem; }
  .ios-picker-panels .ios-picker.is-open {
    --ios-item: 36px;
    --ios-view: 180px;
    --ios-pad: 72px;
  }
}
