/* ============================================================
   floorplan.css - spec_16 interactive unit floorplan
   Brand: Montserrat, #0B2A4A (navy), #E59536 (orange), neutrals
   ============================================================ */

/* ---- Reset body font for floorplan page ---- */
body.floorplan-page {
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--tg-page, #eef1f4);
}

body.floorplan-page main {
  max-width: none;
  padding: 0;
}

/* Transaction feedback is a compact toast: it must not insert a blank band
   between the public navigation and the center hero. */
body.floorplan-page .messages {
  left: 50%;
  margin: 0;
  max-width: min(560px, calc(100vw - 32px));
  pointer-events: none;
  position: fixed;
  top: 140px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 80;
}

body.floorplan-page .messages .message {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(11, 34, 61, 0.16);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}

@media (max-width: 720px) {
  body.floorplan-page .messages {
    top: 180px;
  }
}

body.floorplan-page #plano,
body.floorplan-page #unidades {
  scroll-margin-top: 128px;
}

/* Top call strip and floating WhatsApp are shared shell pieces owned by
   public.css (loaded after this file on the center page). */

/* ---- CSS Custom Properties ---- */
.fp {
  --navy: var(--tg-navy, #0f294b);
  --navy-light: var(--tg-navy-deep, #0a1d36);
  --orange: var(--tg-orange, #e59536);
  --orange-dark: var(--tg-orange-ink, #c97616);
  --orange-light: rgba(229, 149, 54, 0.12);
  --white: var(--tg-white, #ffffff);
  --bg: var(--tg-surface, #f7f9fb);
  --surface: var(--tg-white, #ffffff);
  --border: var(--tg-line, #d8e0e8);
  --text: var(--tg-ink, #0b0b0b);
  --muted: var(--tg-muted, #657386);
  --success: #16a34a;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---- Hero Centro (handoff Centro 2a: angled entrance photo right, white
   gradient does the separation, text left) ---- */
.fp-hero {
  background: var(--white);
  border-bottom: 0;
  overflow: hidden;
  position: relative;
}

/* Angled entrance photo, right-aligned panel (2a: width ~56%, object cover) */
.fp-hero-photo-bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 56%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* White gradient overlay: opaque left, fades to reveal the photo on the right */
.fp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    #fff 0%,
    #fff 40%,
    rgba(255, 255, 255, 0.86) 52%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%);
}

.fp-hero-inner {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(390px, 560px) 1fr;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 460px;
  padding: 36px 28px 44px;
  position: relative;
  z-index: 2;
}

.fp-hero-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
  position: relative;
  z-index: 2;
}

.fp-hero-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.fp-hero-back:hover {
  color: var(--navy);
  text-decoration: none;
}

.fp-hero-title {
  color: var(--navy);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
}

.fp-hero-title-prefix {
  color: var(--orange-dark);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.fp-hero-address {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 15px;
  gap: 6px;
}

.fp-hero-address svg {
  flex-shrink: 0;
}

.fp-hero-badges {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  width: min(306px, 100%);
}

.fp-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 35, 74, 0.12);
  border-radius: 8px;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  min-height: 47px;
  padding: 11px 14px;
  box-shadow: 0 1px 2px rgba(8, 35, 74, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fp-badge svg {
  color: var(--navy);
  width: 18px;
  height: 18px;
}

.fp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.fp-hero-photo {
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.fp-hero-reviews {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fp-stars {
  color: var(--orange);
  display: inline-flex;
  gap: 2px;
}

.fp-stars svg {
  fill: var(--orange);
  width: 18px;
  height: 18px;
}

.fp-review-link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.fp-review-link:hover {
  color: var(--orange);
}

/* ---- Buttons ---- */
.fp-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.fp-btn:hover {
  text-decoration: none;
}

.fp-btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.fp-btn-primary:hover {
  background: var(--tg-navy-deep, #0a1d36);
  border-color: var(--tg-navy-deep, #0a1d36);
}

.fp-btn-accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.fp-btn-accent:hover,
.fp-btn-accent:focus-visible {
  background: #fff;
  border-color: var(--orange);
  color: var(--orange);
}

.fp-btn-outline {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.fp-btn-outline:hover {
  background: var(--bg);
  border-color: var(--navy);
}

.fp-btn-whatsapp {
  background: #25d366;
  color: #062b18;
}

.fp-btn-whatsapp:hover {
  background: #1fbd5a;
}

.fp-btn-sm {
  font-size: 13px;
  min-height: 34px;
  padding: 7px 14px;
}

.fp-btn-lg {
  font-size: 16px;
  min-height: 46px;
  padding: 12px 24px;
}

/* ---- Floorplan Section ---- */
.fp-floorplan-section {
  background: var(--white);
  padding: 48px 0 12px;
}

.fp-floorplan-inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 28px;
}

.fp-section-heading {
  margin-bottom: 8px;
}

.fp-section-heading h2 {
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
}

.fp-section-heading p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 640px;
}

.fp-subtitle-audience {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin: 4px 0 0;
}

/* ---- Legend ---- */
.fp-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 20px;
}

.fp-legend-item {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}

.fp-legend-swatch {
  border-radius: 4px;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.fp-legend-swatch--available {
  background: var(--white);
  border: 1.5px solid var(--border);
}

.fp-legend-swatch--occupied {
  background: var(--orange);
  border: 1.5px solid var(--orange);
}

.fp-legend-swatch--selected {
  background: var(--white);
  border: 2px solid var(--navy);
}

/* ---- Plan + Panel layout ---- */
.fp-plan-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 340px;
  align-items: start;
}

.fp-map-column {
  min-width: 0;
}

/* ---- SVG container ---- */
.fp-svg-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.fp-svg-container svg {
  display: block;
  height: auto;
  width: 100%;
}

/* ---- SVG state overrides ----
   The SVG has internal styles scoped to #plano-trasteros-svg that paint
   ocupado in dark-blue translucent. We override here so the public page
   shows the correct brand colors. !important is scoped only to this
   container and only for fill/stroke/cursor on unit states. */
.fp-svg-container #plano-trasteros-svg .unit[data-status="libre"] {
  fill: #0B2A4A !important;
  cursor: pointer !important;
}
.fp-svg-container #plano-trasteros-svg .unit[data-status="libre"]:hover,
.fp-svg-container #plano-trasteros-svg .unit[data-status="libre"]:focus-visible {
  fill: #0f3a66 !important;
}
.fp-svg-container #plano-trasteros-svg .unit[data-status="ocupado"] {
  fill: #E59536 !important;
  cursor: not-allowed !important;
}
.fp-svg-container #plano-trasteros-svg .unit[data-status="ocupado"]:hover {
  fill: #E59536 !important;
}
.fp-svg-container #plano-trasteros-svg .unit[data-status="reservado"] {
  fill: #E59536 !important;
  cursor: not-allowed !important;
}
.fp-svg-container #plano-trasteros-svg .unit[data-status="privado"] {
  fill: rgba(11, 11, 11, 0.07) !important;
  cursor: default !important;
}
.fp-svg-container #plano-trasteros-svg .unit.selected {
  fill: #0B2A4A !important;
  stroke: #E59536 !important;
  stroke-width: 4px !important;
  filter: drop-shadow(0 0 6px rgba(229, 149, 54, 0.45));
}
.fp-svg-container #plano-trasteros-svg .unit.selected[data-status="ocupado"] {
  fill: #E59536 !important;
  stroke: #c97616 !important;
}

.fp-svg-container #plano-trasteros-svg .unit-label:not(.private-label) {
  fill: #fff !important;
  font-weight: 700 !important;
}

/* Access marker positioned via CSS to match corrected position */
.fp-access-marker {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 42, 74, 0.12);
  border-radius: 8px;
  color: var(--navy);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 4px;
  padding: 4px 6px;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 56%;
  transform: translateY(-50%);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fp-access-marker svg {
  width: 16px;
  height: 16px;
}

/* zoom controls */
.fp-zoom-controls {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  width: max-content;
}

.fp-zoom-btn {
  align-items: center;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.fp-zoom-btn + .fp-zoom-btn {
  border-left: 1px solid var(--border);
}

.fp-zoom-btn:hover {
  background: var(--bg);
}

/* ---- Unit panel / popup (sidebar on desktop, bottom sheet on mobile) ---- */
.fp-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: none;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.fp-panel.is-open {
  display: block;
}

.fp-panel-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.fp-panel-close:hover {
  color: var(--text);
}

.fp-panel-code {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
}

.fp-panel-status {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 5px;
  margin-bottom: 16px;
}

.fp-panel-status--available {
  color: var(--success);
}

.fp-panel-status--occupied {
  color: var(--orange-dark);
}

.fp-panel-status .fp-dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.fp-panel-status--available .fp-dot {
  background: var(--success);
}

.fp-panel-status--occupied .fp-dot {
  background: var(--orange-dark);
}

.fp-panel-size {
  color: var(--navy);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 4px;
}

.fp-panel-price {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.fp-panel-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.fp-panel-features li {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 14px;
  gap: 8px;
  padding: 5px 0;
}

.fp-panel-features li svg {
  color: var(--success);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.fp-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-panel-whatsapp-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* ---- Fallback List ---- */
.fp-fallback-section {
  background: var(--white);
  border-top: 0;
  padding: 12px 0 44px;
}

.fp-fallback-inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 28px;
}

.fp-fallback-details {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.fp-fallback-details summary {
  align-items: center;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 18px 20px;
}

.fp-fallback-details[open] summary {
  border-bottom: 1px solid var(--border);
}

.fp-fallback-details summary::-webkit-details-marker {
  display: none;
}

.fp-fallback-summary-title {
  color: var(--navy);
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.fp-fallback-summary-note {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.fp-fallback-summary-action {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  transition: transform 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
  width: 28px;
}

.fp-fallback-details[open] .fp-fallback-summary-action {
  transform: rotate(180deg);
}

/* ---- Size selector chips (handoff Centro 2a/3a) ---- */
.fp-size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.fp-size-chips:empty {
  display: none;
}

.fp-size-chip {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 116px;
  padding: 13px 18px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.fp-size-chip:hover,
.fp-size-chip:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.fp-size-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.fp-size-chip:hover .fp-size-chip-label,
.fp-size-chip:hover .fp-size-chip-hint,
.fp-size-chip:focus-visible .fp-size-chip-label,
.fp-size-chip:focus-visible .fp-size-chip-hint,
.fp-size-chip.is-active .fp-size-chip-label,
.fp-size-chip.is-active .fp-size-chip-hint {
  color: #fff;
}

.fp-size-chip:hover .fp-size-chip-hint,
.fp-size-chip:focus-visible .fp-size-chip-hint,
.fp-size-chip.is-active .fp-size-chip-hint {
  opacity: 1;
}

.fp-size-chip-label {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.fp-size-chip-hint {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.75;
  white-space: nowrap;
}

/* Non-destructive highlight of units matching the active size on the plano. */
.fp-svg-container .unit.fp-size-hit {
  filter: drop-shadow(0 0 0 3px var(--orange));
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}

/* ---- Availability toggle + list toolbar ---- */
.fp-list-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 20px;
  padding: 18px 0 16px;
}

.fp-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  min-height: 0;
  padding: 0;
}

.fp-toggle:hover {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.fp-toggle:focus {
  outline: none;
}

.fp-toggle:focus-visible .fp-toggle-track {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.fp-toggle-track {
  align-items: center;
  background: #cbd3db;
  border-radius: 999px;
  display: inline-flex;
  height: 26px;
  padding: 3px;
  transition: background 140ms ease;
  width: 46px;
}

.fp-toggle:hover .fp-toggle-track {
  background: #b8c4ce;
}

.fp-toggle-knob {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  height: 20px;
  transition: transform 140ms ease;
  width: 20px;
}

.fp-toggle:hover .fp-toggle-knob {
  box-shadow: 0 1px 5px rgba(15, 41, 75, 0.28);
}

.fp-toggle.is-on .fp-toggle-track {
  background: var(--navy);
}

.fp-toggle.is-on:hover .fp-toggle-track {
  background: var(--navy-light);
}

.fp-toggle.is-on .fp-toggle-knob {
  transform: translateX(20px);
}

.fp-toggle-label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.fp-list-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-left: auto;
}

.fp-fallback-empty {
  color: var(--muted);
  display: block;
  font-size: 14px;
  padding: 0 20px 20px;
}

.fp-fallback-empty[hidden] {
  display: none;
}

/* ---- Unit price cards (handoff Centro 2a) ---- */
.fp-fallback-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 20px 24px;
}

.fp-unit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fp-unit-card[hidden] {
  display: none;
}

.fp-unit-card:hover {
  border-color: var(--navy);
  box-shadow: 0 10px 28px rgba(15, 41, 75, 0.12);
}

.fp-unit-card.is-highlighted {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}

.fp-unit-card--occupied {
  opacity: 0.65;
}

.fp-unit-card--occupied:hover {
  border-color: var(--border);
  box-shadow: none;
}

.fp-unit-card-top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.fp-unit-card-size {
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.fp-unit-card-badge {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.fp-unit-card-badge--available {
  background: #eaf5ef;
  border: 1px solid #b9dcc8;
  color: #2f855a;
}

.fp-unit-card-badge--occupied {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.fp-unit-card-floor {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.fp-unit-card-dims {
  color: #96a0ac;
  font-size: 13px;
  margin: 2px 0 0;
}

.fp-unit-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 16px 0 18px;
  padding: 0;
}

.fp-unit-card-features li {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 9px;
}

.fp-unit-card-features svg {
  color: var(--success);
  flex: 0 0 16px;
  height: 16px;
  width: 16px;
}

.fp-unit-card-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.fp-unit-card-price {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.fp-unit-card-unavailable {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #96a0ac;
  cursor: not-allowed;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 46px;
}

.fp-unit-card-foot .fp-btn {
  justify-content: center;
  width: 100%;
}

/* ---- Navy center data strip (handoff Centro 2a) ---- */
.center-trust-strip {
  background: var(--navy);
  color: #fff;
}

.center-trust-strip__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 15px 28px;
}

.center-trust-strip__item {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 9px;
  line-height: 1.2;
}

.center-trust-strip__item--soft {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.center-trust-strip__item svg {
  color: var(--orange);
  flex: 0 0 19px;
  height: 19px;
  width: 19px;
}

.center-trust-strip__dot {
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.center-trust-strip__dot--off {
  background: rgba(255, 255, 255, 0.4);
}

.center-trust-strip__divider {
  background: rgba(255, 255, 255, 0.2);
  height: 16px;
  width: 1px;
}

.center-trust-strip__reviews {
  align-items: center;
  color: var(--orange);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  margin-left: auto;
}

.center-trust-strip__reviews svg {
  fill: var(--orange);
  height: 15px;
  width: 15px;
}

.center-trust-strip__reviews:hover {
  color: #fff;
  text-decoration: none;
}

/* Footer is the shared pub-footer include styled by public.css. */

/* ---- Inline popup overlay (appears on SVG for small panels) ---- */
.fp-popup-overlay {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .fp-hero-photo-bg {
    width: 62%;
  }

  .fp-hero-inner {
    grid-template-columns: minmax(340px, 500px) 1fr;
    min-height: 460px;
  }

  .fp-plan-layout {
    grid-template-columns: 1fr;
  }

  .fp-panel {
    border-radius: var(--radius) var(--radius) 0 0;
    bottom: 0;
    box-shadow: var(--shadow-lg);
    left: 0;
    max-height: 50vh;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: auto;
    z-index: 50;
  }

}

@media (max-width: 900px) {
  body.floorplan-page #plano,
  body.floorplan-page #unidades {
    scroll-margin-top: 96px;
  }

  .fp-fallback-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  /* Mobile hero (handoff Centro 3a): full-bleed angled entrance photo under a
     navy gradient, readable white hero text. */
  .fp-hero {
    background: var(--navy);
  }

  .fp-hero-photo-bg {
    width: 100%;
    object-position: center;
  }

  /* 3a: keep the mid-band of the photo brighter/cleaner so it reads larger,
     with darker top/bottom just for legibility of the copy that sits over it. */
  .fp-hero::after {
    background: linear-gradient(180deg,
      rgba(15, 41, 75, 0.55) 0%,
      rgba(15, 41, 75, 0.2) 34%,
      rgba(15, 41, 75, 0.55) 66%,
      rgba(15, 41, 75, 0.94) 100%);
  }

  /* More vertical air for the photo; copy stays contained at the bottom. */
  .fp-hero-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    min-height: 420px;
    padding: 22px 20px 26px;
  }

  /* 3a: back link pinned to the top, hero content pushed to the bottom where the
     navy gradient is darkest; this keeps prefix/title/address readable over the photo. */
  .fp-hero-back {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: auto;
  }

  /* Soft shadow keeps hero copy legible over the bright corridor in the photo. */
  .fp-hero-title,
  .fp-hero-title-prefix,
  .fp-hero-address {
    text-shadow: 0 1px 14px rgba(9, 22, 43, 0.55);
  }

  .fp-hero-back:hover {
    color: #fff;
  }

  .fp-hero-title {
    color: #fff;
    font-size: 32px;
    letter-spacing: -0.01em;
    line-height: 1.05;
    max-width: 15ch;
  }

  .fp-hero-title-prefix {
    color: var(--orange);
  }

  .fp-hero-address {
    color: rgba(255, 255, 255, 0.9);
    max-width: 34ch;
  }

  .fp-hero-badges {
    display: none;
  }

  .fp-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-hero-actions .fp-btn {
    justify-content: center;
    min-height: 50px;
  }

  .center-trust-strip__inner {
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 13px 18px;
    -webkit-overflow-scrolling: touch;
  }

  .center-trust-strip__item,
  .center-trust-strip__reviews {
    white-space: nowrap;
  }

  .center-trust-strip__divider {
    display: none;
  }

  .fp-floorplan-inner,
  .fp-fallback-inner {
    padding: 0 18px;
  }

  /* Zoom buttons are not the primary mobile interaction: the plano is
     already enlarged and pannable by touch instead. */
  .fp-zoom-controls {
    display: none;
  }

  .fp-svg-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .fp-svg-container svg {
    width: auto;
    min-width: 160%;
    max-width: none;
  }

  .fp-section-heading h2 {
    font-size: 22px;
  }

  .fp-fallback-summary-title {
    font-size: 20px;
    font-weight: 700;
  }

  .fp-fallback-grid {
    grid-template-columns: 1fr;
  }

  /* Chips scroll horizontally instead of overflowing the viewport. */
  .fp-size-chips {
    flex-wrap: nowrap;
    gap: 10px;
    margin: 14px -18px 0;
    overflow-x: auto;
    padding: 0 18px 6px;
    -webkit-overflow-scrolling: touch;
  }

  .fp-size-chip {
    flex: 0 0 auto;
  }

  .fp-list-count {
    margin-left: 0;
    width: 100%;
  }

  .fp-panel-size {
    font-size: 28px;
  }
}

/* ---- SVG touch-zoom on mobile ---- */
.fp-svg-container.is-zooming {
  touch-action: none;
}

/* Progressive-enhancement fallback: backend list remains the usable surface. */
.fp-floorplan-notice {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  color: var(--text);
  margin: 20px 0 0;
  padding: 14px 16px;
}
