/**
 * Fenelon Units — Frontend Styles
 *
 * Variáveis CSS no :root podem ser sobrescritas via Custom CSS.
 *
 * Estrutura por componente:
 *   1. Grid de cards
 *   2. Card individual
 *   3. Estado vazio
 *   4. Botões genéricos (.fn-btn)
 *   5. Barra de filtros (.fn-filter-bar)
 *   6. Chips de filtro (.fn-chip)
 *   7. Paginação numerada (.fn-pag)
 *   8. Checkbox "Perto de mim" (.fn-nearby)
 *
 * Nota sobre especificidade: vários seletores usam `body` como prefixo
 * pra ganhar do tema/Elementor que aplica estilos genéricos a `button`,
 * `a`, etc. Sem isso o tema sobrescreve nossa cor primária.
 */

:root {
  --fn-primary: #10408D;
  --fn-primary-hover: #0d3373;
  --fn-primary-soft: #eef3fb;
  --fn-card-bg: #f4f4f4;
  --fn-card-radius: 12px;
  --fn-chip-radius: 50px;
  --fn-text-muted: #555;
  --fn-text-light: #888;
  --fn-border: #ddd;
}

/* ─────────────────────────────────────────────────────────────────────────
   1. Grid de cards
   ───────────────────────────────────────────────────────────────────────── */

.fn-grid {
  display: grid;
  gap: 24px;
}

.fn-grid--cols-1 { grid-template-columns: 1fr; }
.fn-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fn-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.fn-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .fn-grid--cols-2,
  .fn-grid--cols-3,
  .fn-grid--cols-4 { grid-template-columns: 1fr; }
}

.fn-grid__loading {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. Card individual

   Estrutura visual:
   ┌─────────────────────────┐ ← card (cinza, padding 16px lateral)
   │ ┌─────────────────────┐ │ ← foto 97px com padding em volta
   │ │      foto 97px      │ │   (não encosta nas bordas do card)
   │ └─────────────────────┘ │
   │                         │
   │ Título da Unidade       │
   │ [300m de você]  [♿]    │
   │                         │
   │ Endereço da unidade...  │
   │                         │
   │ [   Mais informações  ] │ ← CTA full-width, 36px de altura
   └─────────────────────────┘
   ───────────────────────────────────────────────────────────────────────── */

body .fn-card {
  display: flex;
  flex-direction: column;
  background: var(--fn-card-bg);
  border-radius: var(--fn-card-radius);
  padding: 16px;
  transition: transform .15s, box-shadow .15s;
}

body .fn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

body .fn-card__photo {
  width: 100%;
  height: 97px;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}

body .fn-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body .fn-card__photo--placeholder {
  background: linear-gradient(135deg, #e0e0e0, #f4f4f4);
}

body .fn-card__body {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

body .fn-card__title {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

body .fn-card__title a,
body .fn-card__title a:visited {
  color: var(--fn-primary) !important;
  text-decoration: none;
}

body .fn-card__title a:hover {
  text-decoration: underline;
}

body .fn-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body .fn-card__dist {
  background: #fff;
  border-radius: var(--fn-chip-radius);
  padding: 4px 12px;
  color: var(--fn-text-muted);
  font-family: 'Hind Vadodara', inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}

/* Container do ícone de acessibilidade — agora sem fundo (a "pílula" branca
   vem do PNG externo) */
body .fn-card__access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  width: 26px;
  height: 26px;
}

body .fn-card__access img {
  width: 26px;
  height: 26px;
  display: block;
}

body .fn-card__address {
  font-family: 'Hind Vadodara', inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--fn-text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* CTA "Mais informações" — specs do Figma:
   - height: 36px
   - font: Hind Vadodara, peso 500, tamanho 16px
   - line-height 100%, letter-spacing 0%
   - gap interno (entre ícone e texto, se algum dia adicionar): 16px */
body .fn-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 36px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1.5px solid var(--fn-primary) !important;
  border-radius: var(--fn-chip-radius);
  color: var(--fn-primary) !important;
  background: transparent !important;
  text-decoration: none;
  font-family: 'Hind Vadodara', inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  transition: all .15s;
  box-sizing: border-box;
}

body .fn-card__cta:hover {
  background: var(--fn-primary) !important;
  color: #fff !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. Estado vazio
   ───────────────────────────────────────────────────────────────────────── */

.fn-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
}

.fn-empty__msg {
  color: #666;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────
   4. Botões genéricos
   ───────────────────────────────────────────────────────────────────────── */

body .fn-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--fn-chip-radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 14px;
  font-family: inherit;
}

body .fn-btn--primary {
  background: var(--fn-primary) !important;
  color: #fff !important;
}

body .fn-btn--primary:hover {
  opacity: .9;
}

/* ─────────────────────────────────────────────────────────────────────────
   5. Barra de filtros
   ───────────────────────────────────────────────────────────────────────── */

.fn-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--fn-card-bg);
  border-radius: var(--fn-chip-radius);
  margin-bottom: 16px;
}

.fn-filter-bar__label {
  font-size: 14px;
  color: var(--fn-text-muted);
  font-weight: 500;
}

.fn-filter-bar__divider {
  color: #ccc;
}

/* Linha única com scroll horizontal — chips de cidade não quebram em várias linhas.
   Scrollbar é escondida visualmente mas o scroll continua funcional:
   - Mobile: arrasta com o dedo (gesto de touch)
   - Desktop: roda do mouse + Shift, ou click+drag, ou trackpad horizontal */
.fn-filter-regions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  /* iOS: rolagem suave com inércia */
  -webkit-overflow-scrolling: touch;
  /* Snap opcional: cada chip "encaixa" ao parar de rolar (UX melhor em touch) */
  scroll-snap-type: x proximity;
  /* Esconde scrollbar no Firefox */
  scrollbar-width: none;
  /* Esconde scrollbar no IE/Edge antigo */
  -ms-overflow-style: none;
  /* Indicador visual de fade nas bordas — sugere que tem conteúdo escondido */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
}

/* Esconde scrollbar no Chrome/Safari/Edge moderno */
.fn-filter-regions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Cada chip não pode ser comprimido pelo flex */
.fn-filter-regions .fn-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Specs Figma pros chips de região (cidades) — sobrescreve o .fn-chip base.
   Não afeta o "Todos" standalone (que tem regras próprias mais específicas). */
body .fn-filter-regions .fn-chip:not(.fn-chip--all) {
  border-radius: 70px !important;
  padding: 10px 22px;
  font-family: 'Hind Vadodara', inherit;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────────────
   6. Chips de filtro
   ───────────────────────────────────────────────────────────────────────── */

body .fn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1.5px solid var(--fn-primary) !important;
  border-radius: var(--fn-chip-radius);
  background: #fff !important;
  color: var(--fn-primary) !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  line-height: 1.4;
}

body .fn-chip:hover {
  background: var(--fn-primary-soft) !important;
}

body .fn-chip--active,
body .fn-chip[aria-pressed="true"] {
  background: var(--fn-primary) !important;
  color: #fff !important;
}

/* "Todos" tem visual diferente: aparece sem borda quando inativo */
body .fn-chip--all {
  border-color: transparent !important;
  background: transparent !important;
  padding: 6px 12px;
}

body .fn-chip--all.fn-chip--active,
body .fn-chip--all[aria-pressed="true"] {
  background: #fff !important;
  color: var(--fn-primary) !important;
  border-color: var(--fn-primary) !important;
}

/* "Todos" standalone (shortcode [fn_filter_all]) — specs Figma:
   min-width 79, height 26, radius 100px, fonte Hind Vadodara 18px regular.

   Comportamento:
   - INATIVO (alguma região ou acessibilidade marcada): SEM borda, texto azul
   - ATIVO (.fn-chip--active, sem filtros aplicados): preenchido azul Fenelon
     (igual as chips de região ativas)
*/
body .fn-chip--all.fn-chip--standalone {
  min-width: 79px;
  height: 26px;
  padding: 0 12px;
  border: none !important;
  border-radius: 100px !important;
  background: #fff !important;
  color: var(--fn-primary) !important;
  font-family: 'Hind Vadodara', inherit;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body .fn-chip--all.fn-chip--standalone:hover {
  background: var(--fn-primary-soft) !important;
}

/* Estado ativo — preenchido azul Fenelon, igual chips de região ativas */
body .fn-chip--all.fn-chip--standalone.fn-chip--active,
body .fn-chip--all.fn-chip--standalone[aria-pressed="true"] {
  background: var(--fn-primary) !important;
  color: #fff !important;
  border: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   7. "Mostrar mais unidades" (substituiu paginação numerada na v3.7.6)
   ───────────────────────────────────────────────────────────────────────── */

.fn-load-more-wrap,
.fn-pagination-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

body .fn-load-more__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  border-radius: 999px;
  background: var(--fn-primary, #10408D) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  font-family: inherit;
}

body .fn-load-more__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

body .fn-load-more__btn:active {
  transform: translateY(0);
}

.fn-load-more__remaining {
  opacity: 0.85;
  font-size: 13px;
  font-weight: 500;
}

.fn-load-more__done {
  margin: 0;
  padding: 12px 24px;
  color: #888;
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────
   8. Checkbox "Perto de mim"
   ───────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────
   8. Toggles "Perto de mim" e "Acessibilidade" (.fn-toggle)

   Estrutura:
     <label class="fn-toggle">
       <input type="checkbox" class="fn-toggle__input">
       <span class="fn-toggle__check"></span>      ← caixinha quadrada
       <img class="fn-toggle__icon">                ← ícone (URL externa)
       <span class="fn-toggle__label">Texto</span>
     </label>

   Quando checked, a caixa fica preenchida com a cor primária.
   ───────────────────────────────────────────────────────────────────────── */

.fn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
  font-family: inherit;
  padding: 4px 8px;
}

.fn-toggle__input {
  /* Esconde o checkbox real — controlado via .fn-toggle__check */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fn-toggle__check {
  width: 25px;
  height: 25px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  background: #fff;
}

/* Quando o checkbox está marcado (via :checked direto OU classe .is-active aplicada por JS) */
.fn-toggle__input:checked + .fn-toggle__check,
.fn-toggle.is-active .fn-toggle__check {
  background: var(--fn-primary, #10408D);
  border-color: var(--fn-primary, #10408D);
}

.fn-toggle__input:checked + .fn-toggle__check::after,
.fn-toggle.is-active .fn-toggle__check::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.fn-toggle__icon {
  width: 35px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.fn-toggle__label {
  font-family: 'Hind Vadodara', inherit;
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: 0;
  color: #1a1a1a;
}

.fn-nearby-status {
  font-size: 11px;
  color: var(--fn-text-light);
  font-style: italic;
  margin-left: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────
   9. Galeria de fotos (Splide carousel)

   Specs do design:
   - Tamanho fixo: 936x308 com border-radius 60px
   - 1 slide por vez
   - Setas POR FORA do slide (laterais externas)
   - Imagens cobrem o slide (object-fit cover, equivalente a background-size cover)

   Estrutura:
   ┌──────────────────────────────────────────────────────────┐
   │ .fn-gallery (wrapper)                                    │
   │ ┌─ .splide (936x308, radius 60px) ─────────────────────┐ │
   │ │ ←   .splide__slide com <img object-fit:cover>     →  │ │
   │ └──────────────────────────────────────────────────────┘ │
   │                · · ⓘ · ·   (dots embaixo)               │
   └──────────────────────────────────────────────────────────┘
   ───────────────────────────────────────────────────────────────────────── */

.fn-gallery {
  /* Sem padding — setas ficam dentro do .splide com posições negativas
     e podem ultrapassar visualmente quando há espaço externo no container pai */
  max-width: 936px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  background: transparent;
}

.fn-gallery--empty {
  padding: 40px;
  text-align: center;
  color: #888;
  font-style: italic;
  background: #f4f4f4;
  border-radius: 20px;
  max-width: 936px;
  margin: 0 auto;
}

/* O .splide agora NÃO tem overflow hidden nem radius — pra setas
   poderem ficar fora dele sem serem cortadas. O radius e overflow
   migraram pro .splide__track (que envolve as imagens). */
.fn-gallery.splide {
  width: 936px !important;
  max-width: 100% !important;
  height: 308px !important;
  position: relative;
  /* SEM overflow hidden aqui — setas precisam ultrapassar */
  overflow: visible !important;
  /* SEM border-radius aqui também — fica no track */
}

/* Track tem o radius e overflow hidden — corta as imagens nos cantos
   arredondados, mas não interfere com as setas (que são filhas diretas
   de .splide, não de .splide__track). */
.fn-gallery .splide__track {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.fn-gallery .splide__list {
  height: 100%;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Cada slide ocupa todo o card */
.fn-gallery .splide__slide {
  width: 936px;
  max-width: 100%;
  height: 308px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fn-gallery .splide__slide::before,
.fn-gallery .splide__slide::marker,
.fn-gallery .splide__list::before,
.fn-gallery .splide__list::marker {
  content: none !important;
  display: none !important;
}

/* Imagem cobre o slide inteiro (corta sobras pra preencher 936x308 sem
   barras vazias, mesmo quando proporção da foto não bate) */
.fn-gallery .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Container das setas — herda o position relative do .splide */
.fn-gallery .splide__arrows {
  position: static;
}

.fn-gallery .splide__arrow {
  background: var(--fn-primary, #10408D) !important;
  opacity: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  z-index: 2;
}

.fn-gallery .splide__arrow:hover {
  opacity: 0.85;
}

.fn-gallery .splide__arrow svg {
  fill: #fff;
  width: 16px;
  height: 16px;
}

.fn-gallery .splide__arrow:disabled {
  opacity: 0.3;
}

/* Setas POR FORA do slide — posicionadas com valores NEGATIVOS pra
   ultrapassar as bordas do .splide (que tem 936px de largura).
   Como .splide agora tem overflow visible, as setas aparecem fora.
   Como .fn-gallery (wrapper externo) tem padding 64px, há espaço pra elas. */
.fn-gallery .splide__arrow--prev {
  left: -64px;
}

.fn-gallery .splide__arrow--next {
  right: -64px;
}

/* Dots na cor primária — abaixo do carrossel */
.fn-gallery .splide__pagination {
  position: static;
  margin-top: 16px;
  padding: 0;
}

.fn-gallery .splide__pagination__page {
  background: #ddd;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  opacity: 1;
  border: none;
  transition: all .15s;
}

.fn-gallery .splide__pagination__page.is-active {
  background: var(--fn-primary, #10408D);
  transform: scale(1.3);
}

/* Responsivo */
@media (max-width: 1064px) {
  /* Em telas onde o wrapper externo do tema não tem espaço pras setas
     externas (-64px), encolhe as setas pra ficarem mais próximas */
  .fn-gallery .splide__arrow--prev { left: -56px; }
  .fn-gallery .splide__arrow--next { right: -56px; }
}

@media (max-width: 980px) {
  .fn-gallery.splide {
    width: 100% !important;
  }
  .fn-gallery .splide__slide {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .fn-gallery.splide {
    height: 200px !important;
  }
  .fn-gallery .splide__track {
    border-radius: 20px;
  }
  .fn-gallery .splide__slide {
    height: 200px;
  }
  .fn-gallery .splide__arrow {
    width: 36px;
    height: 36px;
  }
  .fn-gallery .splide__arrow--prev { left: -44px; }
  .fn-gallery .splide__arrow--next { right: -44px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   10. Horários de funcionamento (shortcode [fn_this_hours])
   ───────────────────────────────────────────────────────────────────────── */

.fn-hours {
  list-style: none;
  font-family: 'Hind Vadodara', inherit;
  font-weight: 400;
  font-size: 18px;
  line-height: 120%;
  padding: 0;
  margin: 0;
}

.fn-hours li {
  padding: 4px 0;
}

.fn-hours li strong {
  font-weight: 700;
}

.fn-hours--empty {
  color: #888;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────
   11. Botão "Ver Rota" (shortcode [fn_this_directions])

   Layout: pílula azul Fenelon com ícone circular branco no início.
   ┌────────────────────────────────────────────┐
   │  ⓘ      Ver Rota                          │
   └────────────────────────────────────────────┘
   ───────────────────────────────────────────────────────────────────────── */

body .fn-directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  font-family: inherit;
}

/* Ícone circular branco com seta — posicionado à esquerda */
.fn-directions-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--fn-primary, #10408D);
  flex-shrink: 0;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.fn-directions-btn__icon svg {
  width: 14px;
  height: 14px;
}

.fn-directions-btn__label {
  /* Texto centralizado no botão (o ícone fica em position absolute) */
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────────────────────
   12. Reviews / Depoimentos (shortcode [fn_this_reviews])

   Layout:
   ┌─────────────────────────────────────────────────┐
   │ ⓞ Aurora Bendicho López                         │
   │ ★ ★ ★ ★ ⯪                                       │
   │ Atendimento nota 10!!! Desde as atendente...    │
   │ (truncado em 4 linhas)                          │
   └─────────────────────────────────────────────────┘
   ───────────────────────────────────────────────────────────────────────── */

.fn-reviews {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fn-reviews li {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.fn-reviews li::before,
.fn-reviews li::marker {
  content: none !important;
  display: none !important;
}

.fn-reviews--empty {
  color: #888;
  font-style: italic;
  font-size: 14px;
}

.fn-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fn-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fn-review__avatar {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  border-radius: 999px !important;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.fn-review__avatar--placeholder {
  background: #ddd;
}

.fn-review__author {
  font-family: 'Hind Vadodara', inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #1a1a1a;
}

.fn-review__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.fn-review__star {
  display: block;
}

.fn-review__text {
  font-family: 'Hind Vadodara', inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: #1a1a1a;
  margin: 0;

  /* Trunca em 4 linhas com reticências */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────
   Mapa — wrapper compartilhado entre [fn_unit_map] (listagem) e
   [fn_this_mini_map] (single da unidade). Garante que os dois tenham
   exatamente o mesmo radius e shadow. O modificador --main existe só
   pra permitir esconder o mapa principal em mobile sem afetar o mini-map.
   ───────────────────────────────────────────────────────────────────────── */

.fn-map-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
