/* ct · Consultórios (escura) — o percurso termina em Botafogo e no Nova América */

.ct-malha {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 10% 8% in oklab, rgb(143 138 166 / .32), rgb(143 138 166 / 0)),
    radial-gradient(ellipse 46% 36% at 92% 60% in oklab, rgb(240 195 168 / .1), rgb(240 195 168 / 0)),
    radial-gradient(ellipse 50% 34% at 20% 92% in oklab, rgb(78 90 69 / .4), rgb(78 90 69 / 0)),
    radial-gradient(ellipse 40% 30% at 70% 30% in oklab, rgb(13 34 56 / .6), rgb(13 34 56 / 0));
}

/* ---------- topo ---------- */
.ct-topo {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px clamp(32px, 6vw, 96px);
}
.ct-topo .h2 { max-width: 13em; }
.ct-topo-apoio .texto { margin: 0 0 22px; max-width: 26em; }

/* ---------- o mapa: a cidade inteira, de borda a borda ---------- */
.ct-palco { margin-top: clamp(-48px, -3vw, 8px); }
.ct-mapa { position: relative; margin: 0 calc(50% - 50vw); aspect-ratio: 1000 / 611; }
.ct-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}
/* luz de fim de tarde sobre a baía */
.ct-luz {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 34% at 82% 38% in oklab, rgb(240 195 168 / .16), rgb(240 195 168 / 0)),
    radial-gradient(ellipse 22% 26% at 68% 66% in oklab, rgb(240 138 118 / .12), rgb(240 138 118 / 0)),
    radial-gradient(ellipse 36% 40% at 30% 30% in oklab, rgb(143 138 166 / .16), rgb(143 138 166 / 0));
}
.ct-vias { fill: none; stroke: rgb(239 230 218 / .12); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ct-costa { fill: none; stroke: rgb(239 230 218 / .5); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ct-agua { font: 600 12.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; fill: rgb(239 230 218 / .55); }
.ct-svg .rota-traco { vector-effect: none; stroke-width: 1.8; } /* sem non-scaling: o tracejado com pathLength erra quando o svg escala */
.ct-svg .rota-destino { filter: drop-shadow(0 0 6px rgb(240 138 118 / .8)); }
.ct-ramal { fill: none; stroke: rgb(240 195 168 / .55); stroke-width: 1.2; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .9s ease-out .2s; }
.ct-ramal-fim { fill: var(--pessego); opacity: 0; transition: opacity .9s ease-out .5s; }
.rota-chegou .ct-ramal, .rota-chegou .ct-ramal-fim { opacity: 1; }
/* painel em foco: o ponto dele cresce e o ramal acende */
.ct-svg .rota-destino { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
.ct-foco-na .ct-pino--na .rota-destino, .ct-foco-bt .ct-pino--bt .rota-destino { transform: scale(1.7); }
.ct-ramal { transition: opacity .9s ease-out .2s, stroke .4s, stroke-dasharray .4s; }
.ct-foco-na .ct-ramal--na, .ct-foco-bt .ct-ramal--bt { stroke: var(--pessego); stroke-dasharray: none; }
.ct-local { transition: border-color .4s, background-color .4s; }
.ct-local:hover, .ct-local:focus-within { border-color: rgb(240 195 168 / .4); background: rgb(13 34 56 / .82); }

.ct-rotulo {
  position: absolute;
  margin: 0;
  display: grid;
  gap: 2px;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 18px rgb(13 34 56 / .9);
}
.ct-rotulo .lugar { font-size: clamp(1.5rem, .9rem + 2.1vw, 3.1rem); color: var(--creme); }
.ct-nota { font-size: var(--t-mini); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(239 230 218 / .78); }
.ct-rotulo--na { left: 31.37%; top: 18.43%; transform: translate(calc(-100% - 22px), -84%); text-align: right; }
.ct-rotulo--bt { left: 68.2%; top: 64.58%; transform: translate(calc(-100% - 24px), -50%); text-align: right; }
.ct-credito { margin: 22px 0 0; font-size: var(--t-mini); color: rgb(239 230 218 / .6); }

/* ---------- os dois endereços, sobre a base do mapa ---------- */
.ct-enderecos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: min(-9%, -40px);
}
.ct-local {
  position: relative;
  display: grid;
  align-content: start;
  border-radius: var(--raio);
  overflow: clip;
  background: rgb(13 34 56 / .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgb(239 230 218 / .12);
  box-shadow: 0 30px 60px -36px rgb(10 27 45 / .9);
}
.ct-local--bt { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-content: stretch; }
.ct-local--na { grid-column: 1; grid-row: 1; }
.ct-foto { margin: 0; position: relative; min-height: 100%; }
.ct-foto { overflow: clip; }
.ct-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 40%; transition: transform 1.2s var(--ease); }
/* a mesma luz de fim de tarde do hero sobre a foto */
.ct-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 70% 55% at 22% 30% in oklab, rgb(240 195 168 / .75), rgb(240 195 168 / 0)),
    radial-gradient(ellipse 60% 60% at 100% 100% in oklab, rgb(143 138 166 / .8), rgb(143 138 166 / 0)),
    linear-gradient(90deg in oklab, rgb(13 34 56 / 0) 70%, rgb(13 34 56 / .55));
}
.ct-local--bt:hover .ct-foto img, .ct-local--bt:focus-within .ct-foto img { transform: scale(1.035); }
.ct-local-txt { padding: clamp(26px, 3vw, 40px); }
.ct-zona { margin: 0 0 10px; font-size: var(--t-mini); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--pessego); }
.ct-nome { margin: 0 0 16px; font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.02; font-weight: 500; color: var(--creme); }
.ct-cep { white-space: nowrap; }
.ct-end { margin: 0; font-style: normal; font-size: var(--t-corpo); line-height: 1.5; color: var(--tx-escuro-2); }
.ct-hora { margin: 14px 0 0; font-size: var(--t-corpo); color: var(--tx-escuro-2); }
.ct-hora b { color: var(--creme); font-weight: 600; }
.ct-ir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 20px 0 22px;
  border-radius: 999px;
  border: 1px solid rgb(240 195 168 / .5);
  color: var(--creme);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s, border-color .3s, color .3s;
}
.ct-ir svg { width: 18px; height: 18px; flex: none; }
.ct-ir:hover { background: var(--pessego); border-color: var(--pessego); color: var(--marinho); }
.ct-tele { margin: 0; padding: 20px clamp(26px, 3vw, 40px) 24px; border-top: 1px solid rgb(239 230 218 / .12); font-size: 1rem; line-height: 1.5; color: var(--tx-escuro-2); }
.ct-tele b { color: var(--creme); font-weight: 600; }
.ct-tele a { color: var(--creme); font-weight: 600; text-decoration-color: rgb(240 195 168 / .6); text-underline-offset: 4px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .ct-agua { display: none; }
  .ct-rotulo--na { transform: translate(-50%, -138%); text-align: center; }
  .ct-nota-x { display: none; }
  .ct-palco { margin-top: clamp(8px, 2vw, 24px); }
  .ct-enderecos { grid-template-columns: minmax(0, 1fr); margin-top: -6%; }
  .ct-local--bt, .ct-local--na { grid-column: 1; grid-row: auto; }
  .ct-ramais { display: none; }
}

@media (max-width: 900px) {
  .ct-topo { grid-template-columns: minmax(0, 1fr); }
  .ct-topo .h2 { max-width: 11em; }
}

/* ---------- celular ---------- */
@media (max-width: 700px) {
  .ct-mapa { aspect-ratio: .8 / 1; }
  .ct-rotulo .lugar { font-size: 1.75rem; }
  .ct-rotulo--na { left: 11.89%; transform: translate(-6px, -128%); text-align: left; }
  .ct-rotulo--bt { left: 87.24%; }
  .ct-svg .rota-traco { stroke-width: 3; }
  .ct-nota-x { display: none; }
  .ct-enderecos { margin-top: -28px; }
  .ct-local--bt { grid-template-columns: minmax(0, 1fr); }
  .ct-foto { aspect-ratio: 3 / 2; min-height: 0; }
}
