/* ════════════════════════════════════════════════════════════════════════════
   IPANEMA SATELLITE EXPLORER
   Full-bleed cinematic map section. Sits below the bento hero on /.
   ════════════════════════════════════════════════════════════════════════════ */

.ipanema-explorer {
  position: relative;
  padding: 0;
  background: #050505;
  overflow: hidden;
}

.ipanema-explorer__intro {
  position: relative;
  z-index: 3;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* When the explorer is the page hero (first section), clear the fixed navbar */
.ipanema-explorer--hero .ipanema-explorer__intro {
  padding-top: calc(80px + clamp(1.75rem, 4vw, 3rem));
}

.ipanema-explorer__kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.06);
}

.ipanema-explorer__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.ipanema-explorer__title em {
  color: var(--color-gold);
  font-style: normal;
}

.ipanema-explorer__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Map stage ────────────────────────────────────────────────────────────── */

.ipanema-explorer__stage {
  position: relative;
  width: 100%;
  height: clamp(540px, 78vh, 820px);
  background: #050505;
  overflow: hidden;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
}

#ipanema-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
}

/* Atmospheric overlays — kept light so satellite imagery stays crisp,
   vignette only at the extreme edges where the HUD/controls sit. */
.ipanema-explorer__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.30) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.30) 100%);
}

.ipanema-explorer__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 140px 30px rgba(13, 43, 30, 0.22);
}

/* ── HUD: badge counter top-left ──────────────────────────────────────────── */

.ipanema-hud {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  left: clamp(1rem, 2vw, 1.5rem);
  z-index: 5;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 14px;
  padding: 0.85rem 1.05rem;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ipanema-hud__num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.ipanema-hud__sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.18);
}

.ipanema-hud__label {
  line-height: 1.2;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.ipanema-hud__label strong {
  color: #fff;
  font-weight: 600;
  display: block;
  font-size: 0.92rem;
}

/* ── Key panel: bottom-left ───────────────────────────────────────────────── */
/* Replaces the old .ipanema-legend with a richer map-key + click-info panel.  */

.ipanema-keypanel {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.5rem);
  left: clamp(1rem, 2vw, 1.5rem);
  z-index: 5;
  width: clamp(280px, 24vw, 340px);
  max-height: calc(100% - 6.5rem);
  background:
    linear-gradient(180deg, rgba(12, 14, 12, 0.92) 0%, rgba(8, 22, 16, 0.92) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 16px;
  color: #fff;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ipanema-keypanel.is-collapsed {
  max-height: 60px;
}
.ipanema-keypanel.is-collapsed .ipanema-keypanel__body,
.ipanema-keypanel.is-collapsed .ipanema-keypanel__foot {
  display: none;
}
.ipanema-keypanel.is-collapsed .ipanema-keypanel__chev {
  transform: rotate(180deg);
}

/* Head */
.ipanema-keypanel__head {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  position: relative;
  background:
    radial-gradient(ellipse at top left, rgba(201, 168, 76, 0.10), transparent 70%);
  flex-shrink: 0;
}
.ipanema-keypanel__kicker {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}
.ipanema-keypanel__title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}
.ipanema-keypanel__collapse {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.ipanema-keypanel__collapse:hover {
  background: var(--color-gold);
  color: #0a0a0a;
  border-color: var(--color-gold);
}
.ipanema-keypanel__chev {
  display: inline-block;
  line-height: 1;
  transition: transform 0.25s ease;
}

/* Scrollable body */
.ipanema-keypanel__body {
  overflow-y: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.3) transparent;
}
.ipanema-keypanel__body::-webkit-scrollbar { width: 6px; }
.ipanema-keypanel__body::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 4px;
}

.ipanema-keypanel__section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ipanema-keypanel__section:last-child { border-bottom: none; }

.ipanema-keypanel__section-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Layer toggle rows (re-using .ipanema-legend__row so JS untouched) */
.ipanema-legend__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  padding: 0.45rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 9px;
  transition: background 0.16s ease, opacity 0.2s ease;
}
.ipanema-legend__row:hover { background: rgba(255, 255, 255, 0.04); }
.ipanema-legend__row.is-off {
  opacity: 0.4;
}
.ipanema-legend__row.is-off .ipanema-keypanel__toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.ipanema-legend__row.is-off .ipanema-keypanel__toggle::after { transform: translateX(0); }

.ipanema-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.ipanema-legend__swatch--building { background: var(--color-gold); }
.ipanema-legend__swatch--listing  { background: #28e0c8; }
.ipanema-legend__swatch--poi      { background: #9d4edd; }
.ipanema-legend__swatch--gem      { background: #4ad6ff; }

.ipanema-keypanel__row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.ipanema-keypanel__row-text strong {
  font-size: 0.83rem;
  font-weight: 600;
  color: #fff;
}
.ipanema-keypanel__row-text em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1px;
}

.ipanema-keypanel__toggle {
  flex-shrink: 0;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.7);
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ipanema-keypanel__toggle::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  transform: translateX(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Color key grid */
.ipanema-keypanel__colors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.8rem;
}
.ipanema-keypanel__colors li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.2;
}
.ipanema-keypanel__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Selection / Click-Info section */
.ipanema-keypanel__section--info {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.04), transparent 60%);
}

.ipanema-keypanel__info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ipanema-keypanel__empty {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  line-height: 1.4;
}
.ipanema-keypanel__empty p { margin: 0; }
.ipanema-keypanel__empty strong { color: #fff; font-weight: 600; display: block; margin-bottom: 2px; }
.ipanema-keypanel__empty-glyph {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 168, 76, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.15rem;
}

/* Filled state — building / listing / poi card */
.ipanema-keypanel__info[data-info-state="filled"] .ipanema-keypanel__empty { display: none; }

.ipanema-keypanel__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: ipanemaKeypanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ipanemaKeypanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ipanema-keypanel__card-media {
  position: relative;
  height: 96px;
  border-radius: 10px;
  background: #14241c center/cover no-repeat;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ipanema-keypanel__card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,16,12,0.7) 100%);
}
.ipanema-keypanel__card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.45);
  font-weight: 600;
}

.ipanema-keypanel__card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ipanema-keypanel__card-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.35;
}

.ipanema-keypanel__card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ipanema-keypanel__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ipanema-keypanel__stat-num {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
}
.ipanema-keypanel__stat-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.ipanema-keypanel__listings {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ipanema-keypanel__listing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.ipanema-keypanel__listing-row:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.3);
}
.ipanema-keypanel__listing-row strong {
  color: var(--color-gold);
  font-weight: 700;
}
.ipanema-keypanel__listing-row span:last-child {
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
  flex-shrink: 0;
  font-size: 0.68rem;
}

.ipanema-keypanel__blurb {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
  margin: 0;
}

.ipanema-keypanel__card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  background: var(--color-gold);
  color: #0a0a0a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.16s ease, transform 0.16s ease;
}
.ipanema-keypanel__card-cta:hover {
  background: #e8c878;
  transform: translateY(-1px);
}

/* Foot — tour button */
.ipanema-keypanel__foot {
  flex-shrink: 0;
  padding: 0.7rem 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}
.ipanema-keypanel__tour-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.ipanema-keypanel__tour-btn:hover {
  background: var(--color-gold);
  color: #0a0a0a;
  transform: translateY(-1px);
}
.ipanema-keypanel__tour-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  display: inline-flex;
}
.ipanema-keypanel__tour-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 6px solid #0a0a0a;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.ipanema-keypanel__tour-btn:hover .ipanema-keypanel__tour-icon::before { border-left-color: #fff; }

/* ── 30-second cinematic tour overlay ─────────────────────────────────────── */

.ipanema-tour {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.ipanema-tour.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ipanema-tour__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 18%, transparent 78%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.ipanema-tour__caption {
  position: absolute;
  left: 50%;
  bottom: clamp(4rem, 8vw, 6rem);
  transform: translateX(-50%);
  width: min(540px, 88vw);
  text-align: center;
  color: #fff;
  padding: 1.1rem 1.5rem 1.25rem;
  background: rgba(10, 10, 10, 0.74);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: ipanemaTourCaptionIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ipanemaTourCaptionIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.ipanema-tour__step {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ipanema-tour__title {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}
.ipanema-tour__sub {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.ipanema-tour__progress {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 4vw, 3rem);
  transform: translateX(-50%);
  width: min(540px, 88vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ipanema-tour__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), #e8c878);
  transition: width 0.3s linear;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
}

.ipanema-tour__skip {
  position: absolute;
  top: clamp(1rem, 2.4vw, 1.5rem);
  right: clamp(1rem, 2.4vw, 1.5rem);
  background: rgba(10, 10, 10, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.ipanema-tour__skip:hover {
  background: var(--color-gold);
  color: #0a0a0a;
  border-color: var(--color-gold);
}

/* ── Neighborhood selector: top-center ────────────────────────────────────── */

.ipanema-nbhd {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: calc(100% - 2rem);
}

.ipanema-nbhd__chip {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ipanema-nbhd__chip:hover {
  background: rgba(201, 168, 76, 0.16);
  color: #fff;
}

.ipanema-nbhd__chip.is-active {
  background: var(--color-gold);
  color: #0a0a0a;
}

.ipanema-nbhd__chip--all {
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── Building & POI tooltips (hover) ──────────────────────────────────────── */

.maplibregl-popup {
  z-index: 6;
}

.maplibregl-popup-content {
  background: rgba(10, 10, 10, 0.92) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.8rem !important;
  font-family: 'Figtree', sans-serif !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.maplibregl-popup-tip {
  border-top-color: rgba(10, 10, 10, 0.92) !important;
  border-bottom-color: rgba(10, 10, 10, 0.92) !important;
}

.ipanema-tip__title {
  font-weight: 600;
  color: var(--color-gold);
  display: block;
  margin-bottom: 2px;
}

.ipanema-tip__meta {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── MapLibre control restyle ─────────────────────────────────────────────── */

.maplibregl-ctrl-group {
  background: rgba(10, 10, 10, 0.78) !important;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.maplibregl-ctrl-group button {
  background-color: transparent !important;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1) brightness(1.6);
}

.maplibregl-ctrl-attrib {
  background: rgba(10, 10, 10, 0.72) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.65rem !important;
}

.maplibregl-ctrl-attrib a {
  color: var(--color-gold) !important;
}

/* ── Building drawer (right side) ─────────────────────────────────────────── */

.ipanema-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92%);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.96) 0%, rgba(13, 43, 30, 0.96) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-left: 1px solid rgba(201, 168, 76, 0.3);
  z-index: 7;
  transform: translateX(105%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5);
}

.ipanema-drawer.is-open {
  transform: translateX(0);
}

.ipanema-drawer__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
}

.ipanema-drawer__close:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #0a0a0a;
}

.ipanema-drawer__media {
  position: relative;
  width: 100%;
  height: 220px;
  background: #1a1a1a center/cover no-repeat;
  flex-shrink: 0;
  overflow: hidden;
}

.ipanema-drawer__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(10, 10, 10, 0.85) 100%);
}

.ipanema-drawer__body {
  padding: 1.4rem 1.6rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.ipanema-drawer__kicker {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.ipanema-drawer__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.ipanema-drawer__address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.ipanema-drawer__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.85rem 0 1.2rem;
}

.ipanema-drawer__stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.ipanema-drawer__stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ipanema-drawer__stat-lbl {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ipanema-drawer__blurb {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.2rem;
}

.ipanema-drawer__section-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 1.3rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ipanema-drawer__section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--color-gold);
}

.ipanema-listing {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.ipanema-listing:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateX(2px);
}

.ipanema-listing__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ipanema-listing__main strong {
  color: #fff;
  font-weight: 600;
}

.ipanema-listing__meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.ipanema-listing__price {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ipanema-no-listings {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.6rem;
}

.ipanema-drawer__cta {
  display: block;
  width: 100%;
  background: var(--color-gold);
  color: #0a0a0a;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1.4rem;
  transition: background 0.18s, transform 0.18s;
  letter-spacing: 0.01em;
}

.ipanema-drawer__cta:hover {
  background: #d4b45a;
  transform: translateY(-1px);
}

.ipanema-drawer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.ipanema-drawer__tag {
  font-size: 0.7rem;
  background: rgba(123, 47, 255, 0.15);
  color: #c8b5ff;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 47, 255, 0.35);
  letter-spacing: 0.02em;
}

/* ── Badge toast (slide-in unlock) ────────────────────────────────────────── */

.ipanema-badge-toast {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 8;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a4a2e 100%);
  border: 1px solid var(--color-gold);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(201, 168, 76, 0.08);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  max-width: 340px;
  pointer-events: none;
}

.ipanema-badge-toast.is-showing {
  transform: translateX(0);
  opacity: 1;
}

.ipanema-badge-toast__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ipanema-badge-toast__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ipanema-badge-toast__kicker {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.ipanema-badge-toast__name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.ipanema-badge-toast__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Badge case overlay (bottom-center button reveals all badges) ─────────── */

.ipanema-badge-case-btn {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  z-index: 5;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--color-gold);
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.18s, transform 0.18s;
}

.ipanema-badge-case-btn:hover {
  background: var(--color-gold);
  color: #0a0a0a;
}

/* ── Loading state ────────────────────────────────────────────────────────── */

.ipanema-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  background: radial-gradient(ellipse at center, #11261c 0%, #060a08 70%, #000 100%);
  z-index: 10;
  transition: opacity 0.6s ease;
  pointer-events: none;
  text-align: center;
}

.ipanema-loading.is-gone {
  opacity: 0;
}

.ipanema-loading__pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.22);
  border-top-color: var(--color-gold);
  animation: ipanema-spin 1s linear infinite;
}

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

.ipanema-loading__pct {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.05em;
  text-shadow: 0 2px 18px rgba(201, 168, 76, 0.35);
}

.ipanema-loading__pct-sym {
  font-size: 0.55em;
  color: rgba(201, 168, 76, 0.7);
  margin-left: 0.05em;
}

.ipanema-loading__bar {
  width: min(360px, 70%);
  height: 3px;
  background: rgba(201, 168, 76, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.ipanema-loading__bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), #f0d27d);
  border-radius: 999px;
  transition: width 0.35s ease;
  box-shadow: 0 0 12px rgba(240, 210, 125, 0.55);
}

.ipanema-loading__msg {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  min-height: 1.3em;
  max-width: 32ch;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ipanema-loading__msg.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

/* ── Search + filters toolbar (top-center, under the chips) ───────────────── */

.ipanema-filterbar {
  position: absolute;
  top: clamp(3.6rem, 6.5vw, 4.6rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 2rem);
}

.ipanema-search {
  position: relative;
  display: flex;
  align-items: center;
}

.ipanema-search__icon {
  position: absolute;
  left: 0.7rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.ipanema-search__input {
  width: clamp(180px, 32vw, 300px);
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem 0.55rem 2.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.18s ease;
}

.ipanema-search__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.ipanema-search__input:focus { outline: none; border-color: var(--color-gold); }

.ipanema-filterbar__toggle {
  appearance: none;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.18s ease, color 0.18s ease;
}

.ipanema-filterbar__toggle:hover,
.ipanema-filterbar__toggle.is-on { background: var(--color-gold); color: #0a0a0a; }

.ipanema-filterbar__count {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  padding: 0 0.25rem;
}

.ipanema-filters {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(330px, 86vw);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ipanema-filters.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ipanema-filters__group { margin-bottom: 0.95rem; }

.ipanema-filters__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.ipanema-filters__range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ipanema-filters__range input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
}
.ipanema-filters__range input:focus { outline: none; border-color: var(--color-gold); }
.ipanema-filters__range span { color: rgba(255, 255, 255, 0.5); }

.ipanema-beds { display: flex; gap: 0.35rem; }

.ipanema-beds__opt {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.ipanema-beds__opt:hover { border-color: rgba(201, 168, 76, 0.5); }
.ipanema-beds__opt.is-active { background: var(--color-gold); color: #0a0a0a; border-color: var(--color-gold); }

.ipanema-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  margin-bottom: 0.7rem;
}
.ipanema-switch input { width: 16px; height: 16px; accent-color: var(--color-gold); cursor: pointer; }

.ipanema-filters__reset {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.35rem;
  transition: background 0.16s ease, color 0.16s ease;
}
.ipanema-filters__reset:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ── Listings rail (left slide-in) + toggle ───────────────────────────────── */

.ipanema-rail-btn {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: var(--color-gold);
  border: none;
  color: #0a0a0a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, background 0.18s ease;
}
.ipanema-rail-btn:hover { transform: translateX(-50%) translateY(-2px); background: #d4b45a; }

.ipanema-rail-btn__n {
  background: rgba(10, 10, 10, 0.22);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.74rem;
}

.ipanema-rail {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(380px, 90%);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.96) 0%, rgba(8, 26, 20, 0.96) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-right: 1px solid rgba(201, 168, 76, 0.3);
  z-index: 7;
  transform: translateX(-105%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.5);
}
.ipanema-rail.is-open { transform: translateX(0); }

.ipanema-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.6rem;
  flex-shrink: 0;
}

.ipanema-rail__tabs { display: flex; gap: 0.4rem; }

.ipanema-rail__tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.ipanema-rail__tab.is-active { background: var(--color-gold); color: #0a0a0a; border-color: var(--color-gold); }

.ipanema-rail__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.ipanema-rail__close:hover { background: var(--color-gold); color: #0a0a0a; border-color: var(--color-gold); }

.ipanema-rail__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ipanema-rail__count {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ipanema-rail__sort {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.76rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
.ipanema-rail__sort:focus { outline: none; border-color: var(--color-gold); }

.ipanema-rail__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ipanema-rail__empty {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 1.5rem 0.5rem;
  text-align: center;
}

/* Listing card */
.ipanema-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.32s ease, transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}
.ipanema-card:hover {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 76, 0.18);
}

.ipanema-card__media {
  position: relative;
  height: 128px;
  background: #14241c center/cover no-repeat;
  transition: background-size 0.6s ease, filter 0.4s ease;
  background-size: cover;
}
.ipanema-card:hover .ipanema-card__media {
  background-size: 112%;
  filter: saturate(1.08) brightness(1.04);
}
.ipanema-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(8, 18, 14, 0.65) 100%);
}

.ipanema-card__heart {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.ipanema-card__heart:hover { transform: scale(1.12); }
.ipanema-card__heart.is-saved { background: #e6584f; color: #fff; }

.ipanema-card__body {
  position: relative;
  padding: 0.6rem 0.75rem 0.75rem;
  transition: background 0.35s ease;
}
.ipanema-card__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.10) 0%, rgba(157, 78, 221, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.ipanema-card:hover .ipanema-card__body::before { opacity: 1; }
.ipanema-card__body > * { position: relative; z-index: 1; }

.ipanema-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
  transition: color 0.32s ease, letter-spacing 0.32s ease;
}
.ipanema-card:hover .ipanema-card__price {
  color: #e8c878;
  letter-spacing: 0.01em;
}
.ipanema-card__specs {
  font-size: 0.8rem;
  color: #fff;
  margin-top: 2px;
  transition: color 0.32s ease;
}
.ipanema-card__addr {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
  transition: color 0.32s ease;
}
.ipanema-card:hover .ipanema-card__addr { color: rgba(255, 255, 255, 0.78); }

/* Drawer header row (kicker + heart) */
.ipanema-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ipanema-drawer__heart {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.ipanema-drawer__heart:hover { border-color: #e6584f; }
.ipanema-drawer__heart.is-saved { background: #e6584f; border-color: #e6584f; color: #fff; }

/* ── Mobile adjustments ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ipanema-explorer__stage {
    height: 70vh;
    min-height: 480px;
  }

  .ipanema-hud {
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
  }

  .ipanema-hud__num { font-size: 1.15rem; }

  .ipanema-keypanel {
    width: calc(100% - 1.5rem);
    left: 0.75rem;
    right: 0.75rem;
    bottom: 4.5rem;
    max-height: 50vh;
    font-size: 0.78rem;
  }
  .ipanema-keypanel.is-collapsed { max-height: 56px; }

  .ipanema-tour__caption {
    bottom: 5rem;
    padding: 0.85rem 1.1rem 1rem;
  }
  .ipanema-tour__progress { bottom: 2.2rem; }

  .ipanema-drawer {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
  }

  .ipanema-drawer__media { height: 180px; }

  .ipanema-badge-case-btn {
    bottom: 1rem;
    right: 1rem;
  }

  /* Move the neighborhood selector to a scrollable strip at the bottom so it
     never collides with the top-left HUD or the top legend on small screens. */
  .ipanema-nbhd {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ipanema-nbhd::-webkit-scrollbar { display: none; }

  /* Toolbar: full-width row near the top; hide the count to save space */
  .ipanema-filterbar {
    top: 4.6rem;
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    width: auto;
    max-width: none;
  }
  .ipanema-search { flex: 1; }
  .ipanema-search__input { width: 100%; }
  .ipanema-filterbar__count { display: none; }
  .ipanema-filters { left: auto; right: 0; transform: translateY(-6px); }
  .ipanema-filters.is-open { transform: translateY(0); }

  /* Rail takes the full screen on mobile; toggle sits above the chip strip */
  .ipanema-rail { width: 100%; border-right: none; }
  .ipanema-rail-btn { bottom: 4.4rem; }
}
