/* /real-estate hub + section chrome (own section, not finance) */
.re-view {
  --re-ink: #1a2421;
  --re-muted: #5c6b66;
  --re-line: #d5ddd9;
  --re-accent: #0d6e6e;
  --re-soft: #e6f3f2;
  color: var(--re-ink);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.re-hero {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--re-line);
  background:
    radial-gradient(900px 220px at 10% 0%, rgba(13, 110, 110, 0.12), transparent 60%),
    linear-gradient(180deg, #f7fbfa 0%, #fff 70%);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.re-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.re-hero p {
  margin: 0.45rem 0 0;
  color: var(--re-muted);
  max-width: 40rem;
  line-height: 1.45;
  font-size: 0.95rem;
}

.re-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem 0 1.1rem;
  border-bottom: 1px solid var(--re-line);
  margin-bottom: 1.25rem;
}

.re-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--re-line);
  background: #fff;
  color: var(--re-ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.re-tab:hover {
  border-color: var(--re-accent);
  color: var(--re-accent);
}

.re-tab.active {
  background: var(--re-accent);
  border-color: var(--re-accent);
  color: #fff;
}

.re-tab--external {
  margin-left: auto;
  font-weight: 500;
  color: var(--re-muted);
}

.re-section {
  margin: 0 0 1.75rem;
}

.re-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.re-section p {
  margin: 0;
  color: var(--re-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.re-cta {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--re-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.re-cta:hover {
  filter: brightness(1.05);
}

.re-link-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
  line-height: 1.75;
}

.re-link-list a {
  color: var(--re-accent);
}

.re-map-wrap {
  max-width: none;
  padding-bottom: 0;
}

.re-app-wrap .real-estate-application {
  margin-top: 0.25rem;
}

/* Full-bleed map lander (/real-estate) */
body.real-estate-map-page .main-wrapper {
  min-height: 100dvh;
  height: 100dvh;
  align-items: stretch;
}

body.real-estate-map-page .chat-container {
  padding: 0 !important;
  margin: 0;
  max-width: none;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.real-estate-map-page .re-map-wrap--bleed {
  position: relative;
  flex: 1;
  min-height: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body.real-estate-map-page .real-estate-map-shell {
  flex: 1;
  min-height: 0;
  height: 100%;
  margin: 0;
  width: 100%;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

body.real-estate-map-page .real-estate-map-shell > .re-map-pane,
body.real-estate-map-page .real-estate-map-shell > #map {
  min-height: 0 !important;
  height: 100%;
  overflow: hidden;
}

body.real-estate-map-page .real-estate-map-shell > aside {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Tangazo overlaid on the map (bottom), not in page flow */
body.real-estate-map-page .re-map-ad-overlay {
  position: absolute;
  left: 0.65rem;
  right: auto;
  bottom: 0.65rem;
  z-index: 900;
  width: min(34rem, calc(100% - 1.3rem));
  max-width: calc(100% - 1.3rem);
  pointer-events: none;
}

body.real-estate-map-page .re-map-ad-overlay .nukta-ad-slot,
body.real-estate-map-page .re-map-ad-overlay .nukta-adsense {
  pointer-events: auto;
  margin: 0;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

body.real-estate-map-page .re-map-ad-overlay .nukta-ad-slot .nukta-house-ad {
  max-height: 120px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

body.real-estate-map-page .re-map-ad-overlay:empty {
  display: none;
}

@media (max-width: 860px) {
  body.real-estate-map-page .re-map-ad-overlay {
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    width: auto;
    max-width: none;
  }

  body.real-estate-map-page .re-map-ad-overlay .nukta-ad-slot .nukta-house-ad {
    max-height: 104px;
    padding: 0.65rem;
  }
}

body.real-estate-map-page .re-map-overlay-nav {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1200;
  pointer-events: none;
}

body.real-estate-map-page .re-map-overlay-nav .re-tabs {
  pointer-events: auto;
  margin: 0;
  padding: 0.3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

body.real-estate-map-page .re-map-overlay-nav .re-tab--external {
  margin-left: 0;
}

body.real-estate-map-page .real-estate-map-shell > header {
  padding: 0.45rem 0.65rem;
  gap: 0.45rem;
  /* Leave room for overlay tabs on the left */
  padding-left: min(18rem, 42vw);
}

@media (max-width: 860px) {
  body.real-estate-map-page .main-wrapper {
    /* mobile top bar ~56px */
    height: calc(100dvh - 56px);
    min-height: calc(100dvh - 56px);
  }

  body.real-estate-map-page .real-estate-map-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 42vh);
  }

  body.real-estate-map-page .real-estate-map-shell > header {
    padding-left: 0.65rem;
    padding-top: 3rem; /* tabs sit above controls */
  }

  body.real-estate-map-page .re-map-overlay-nav {
    top: 0.4rem;
    left: 0.4rem;
    right: 0.4rem;
  }
}

@media (max-width: 640px) {
  .re-tab--external {
    margin-left: 0;
  }
}
