/* ==========================================================================
   Vila Galé Eco Resort de Angra — página individual de acomodação (template)
   ========================================================================== */

/* ---------- Ficha técnica no topo (rótulo pequeno + valor em uma linha) ---------- */
.hero-stats--specs { margin-bottom: 0; }
.hero-stats--specs > div { padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-stats--specs > div + div { border-left: 1px solid var(--sand-200); }
.hero-stats--specs dt {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-text);
}
.hero-stats--specs dd {
  margin: 0; color: var(--brand-700); font-size: 1rem; font-weight: 600; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Imagem com etiqueta "Imagem ilustrativa" */
.split__media--note { position: relative; }

/* ---------- Comodidades numeradas ---------- */
.feature-cards--compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.feature-cards--compact .feature-card { padding: 22px; }
.feature-cards--compact .feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-cards--compact .feature-card p { margin: 0; font-size: var(--fs-p); }
.empty-note { color: var(--muted); font-style: italic; }
.empty-note:empty { display: none; }

/* ---------- Galeria (slider horizontal) ---------- */
.slider { display: grid; gap: 14px; }
.slider__stage { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--brand-900); }
.slider__track {
  display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 16 / 9;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slider__btn img { width: 100%; height: 100%; object-fit: cover; }
.slider__count {
  position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(18, 52, 45, 0.72); color: var(--white); font-size: var(--fs-small); font-weight: 600;
}
.slider__count:empty { display: none; }
.slider__arrow {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--brand-900); font-size: 1.25rem; line-height: 1;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: background 0.2s, opacity 0.2s;
}
.slider__arrow:hover { background: var(--white); }
.slider__arrow:disabled { opacity: 0.35; cursor: default; }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.slider__thumbs { display: flex; gap: 10px; margin: 0; padding: 2px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.slider__thumb {
  display: block; flex: none; width: 120px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent;
  border-radius: var(--radius-sm); overflow: hidden; background: none; opacity: 0.6; cursor: pointer; transition: opacity 0.2s, border-color 0.2s;
}
.slider__thumb img { width: 100%; height: 100%; object-fit: cover; }
.slider__thumb:hover, .slider__thumb.is-active { opacity: 1; }
.slider__thumb.is-active { border-color: var(--brand-400); }
.slider--single .slider__arrow, .slider--single .slider__thumbs, .slider--single .slider__count { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, 92vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--brand-900); color: var(--white); overflow: hidden;
}
.lightbox::backdrop { background: rgba(18, 52, 45, 0.85); }
.lightbox img { width: 100%; max-height: calc(92vh - 56px); object-fit: contain; background: #000; }
.lightbox__caption { margin: 0; padding: 14px 20px; font-size: var(--fs-p); }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--brand-900); font-size: 1.5rem; line-height: 1;
}

/* ---------- Comparação rápida ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compare-card {
  display: flex; flex-direction: column; padding: 24px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--sand-200); box-shadow: var(--shadow-sm);
}
.compare-card h3 { font-size: 1.1rem; }
.compare-card p { flex: 1; color: var(--muted); font-size: var(--fs-p); }
.compare-card a { font-weight: 600; font-size: 0.9rem; }
.compare-card.is-current { border: 2px solid var(--brand-400); }
.compare-card.is-current a { pointer-events: none; color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsivo ---------- */
/* Ficha em 2 colunas antes que os valores fiquem apertados */
@media (max-width: 1180px) {
  .hero-stats--specs { grid-template-columns: repeat(2, 1fr); }
  .hero-stats--specs > div:nth-child(3) { border-left: 0; }
  .hero-stats--specs > div:nth-child(n + 3) { border-top: 1px solid var(--sand-200); }
}

@media (max-width: 860px) {
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-stats--specs > div { padding: 14px 16px; }
  .hero-stats--specs dd { font-size: 0.9rem; white-space: normal; }
  .slider__track { aspect-ratio: 4 / 3; }
  .slider__arrow { width: 40px; height: 40px; margin-top: -20px; }
  .slider__thumb { width: 84px; }
}
