/* ═══════════════════════════════════════════════════════════
   Página "Monte o seu plano" — escolha de prédios em uma tela só
   (desktop). No celular vira coluna e rola normalmente.
   ═══════════════════════════════════════════════════════════ */

body.pp {
  background: linear-gradient(180deg, var(--bg) 0%, #ece7f2 100%);
  min-height: 100vh;
  padding-bottom: 96px;
}

.pp__back {
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.pp__back:hover {
  color: var(--ink);
}

.pp__main {
  padding-top: 12px;
}

.pp__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.pp__head {
  min-width: 0;
}

.bc__facts {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pp__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  white-space: nowrap;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.pp__title em {
  font-style: normal;
  font-weight: 800;
}

.pp__lead {
  margin: 6px 0 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

/* ── Barra de busca (Onde / Período / Início) ─────────── */

.finder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: none;
  width: min(600px, 100%);
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(17, 58, 99, 0.08);
}

.finder__cell {
  display: grid;
  gap: 2px;
  padding: 8px 20px;
  min-width: 0;
}

.finder__cell + .finder__cell {
  border-left: 1px solid var(--border);
}

.finder__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.finder__value,
.finder__input {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finder__input {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
}

.finder__input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Filtros e modo de visualização ───────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.chips-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-f {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-f:hover {
  border-color: var(--ink);
}

.chip-f.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.view {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: #e6e1ee;
}

.view__btn {
  padding: 7px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view__btn.is-on {
  background: var(--bg-alt);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(10, 10, 14, 0.12);
}

/* ── Cartões dos prédios ──────────────────────────────── */

.pp__body {
  margin-top: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.cards[hidden],
.mapview[hidden] {
  display: none !important;
}

.bc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 24px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s var(--ease);
}

.bc:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(17, 58, 99, 0.12);
}

.bc.is-on {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(195, 242, 48, 0.55);
}

.bc__photo {
  position: relative;
  flex: 1 1 130px;
  min-height: 70px;
  background-color: #dcd7e4;
  background-size: cover;
  background-position: center;
}

.bc__tags {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.tag--lime {
  background: var(--lime);
  color: var(--ink);
}

.bc__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 12px 14px 14px;
}

.bc__name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bc__addr {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.bc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.bc__plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}

.bc__plan {
  display: grid;
  gap: 1px;
  padding: 7px 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bc__plan b {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.bc__plan span {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bc__plan.is-on {
  background: var(--ink);
  border-color: var(--ink);
}

.bc__plan.is-on b {
  color: rgba(255, 255, 255, 0.7);
}

.bc__plan.is-on span {
  color: var(--lime);
}

.bc__add {
  margin-top: 2px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bc__add:hover {
  background: var(--ink);
  color: #fff;
}

.bc.is-on .bc__add {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}

.bc--soon {
  border-style: dashed;
  background: transparent;
}

.bc--soon .bc__photo {
  filter: grayscale(1);
  opacity: 0.55;
}

.bc--soon:hover {
  transform: none;
  box-shadow: none;
}

.bc__soon {
  margin-top: 2px;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  background: #e6e1ee;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-faint);
}

/* cartão-guia: explica os métodos */
.bc--guide {
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.bc--guide:hover {
  transform: none;
}

.bc--guide h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.bc--guide p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.bc--guide strong {
  color: #fff;
}

/* ── Mapa ─────────────────────────────────────────────── */

.mapview__map {
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: #dcd7e4;
  box-shadow: 0 18px 44px rgba(17, 58, 99, 0.12);
  z-index: 0;
}

.mapview__hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-faint);
}

/* ── Barra de resumo (fixa no rodapé) ─────────────────── */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 -10px 40px rgba(10, 10, 14, 0.22);
}

.bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
}

.bar__line {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.bar__total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 0;
}

.bar__value {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.bar__unit {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.52);
}

.bar__note {
  flex: 1;
  max-width: 34ch;
  margin: 0 0 0 auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.bar__cta {
  flex: none;
}

/* ── Tudo em uma tela (desktop) ───────────────────────── */

@media (min-width: 960px) and (min-height: 600px) {
  body.pp {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }

  .pp__main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
  }

  .pp__body {
    flex: 1;
    min-height: 0;
  }

  .cards {
    height: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .mapview {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .mapview[hidden] {
    display: none;
  }

  .mapview__map {
    flex: 1;
    height: auto;
    min-height: 0;
  }

  .bar {
    position: static;
    flex: none;
  }
}

@media (max-width: 959px) {
  .pp__row {
    flex-direction: column;
    align-items: stretch;
  }

  .pp__head {
    text-align: center;
  }

  .pp__title {
    white-space: normal;
  }

  .finder {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .finder__cell + .finder__cell {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .bar__note {
    display: none;
  }

  .pp__back {
    display: none;
  }
}

@media (max-width: 560px) {
  .bar__row {
    gap: 12px;
  }

  .bar__cta {
    padding-inline: 18px;
    font-size: 0.95rem;
  }

  .mapview__map {
    height: 420px;
  }
}

.pop__name,
.pop__meta {
  display: block;
}

/* ── Barra: ações (contratar + WhatsApp) ──────────────── */

.bar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.bar__alt {
  background: none;
  border: 0;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bar__alt:hover:not(:disabled) {
  color: #fff;
}

.bar__alt:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .bar__actions {
    gap: 8px;
  }
  .bar__alt {
    max-width: 8.5rem;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: right;
  }
}

/* ── Contratação (diálogo) ────────────────────────────── */

.co {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--bg-alt);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(10, 10, 14, 0.35);
  overflow: auto;
}

.co::backdrop {
  background: rgba(10, 10, 14, 0.62);
  backdrop-filter: blur(3px);
}

.co__panel {
  position: relative;
  padding: 30px clamp(20px, 5vw, 36px) 28px;
}

.co__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.co__title {
  margin: 0 36px 6px 0;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.co__lead {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.co__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.co__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.co__field--full {
  grid-column: 1 / -1;
}

.co__field input,
.co__field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
}

.co__field input:focus,
.co__field select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.co__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.co__terms {
  display: flex;
  gap: 10px;
  margin: 16px 0 6px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.co__terms input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.co__terms a {
  color: var(--blue);
}

.co__error {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-field);
  background: #fde8e8;
  color: #7f1d1d;
  font-size: 0.88rem;
}

.co__submit {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
  text-align: center;
}

.co__fine {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.co__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: var(--radius-box);
  background: var(--bg);
}

.co__amount span {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.co__amount small {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.co__method {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
}

.co__method h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.co__qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  border-radius: 12px;
}

.co__copy {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.co__copy textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: 0.8rem/1.4 ui-monospace, 'SF Mono', Menlo, monospace;
  text-transform: none;
  letter-spacing: 0;
  word-break: break-all;
}

.co__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.co__btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
}

.co__wait {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-faint);
}

@media (max-width: 520px) {
  .co__grid {
    grid-template-columns: 1fr;
  }
}

.co [hidden] {
  display: none !important;
}
