/* ── Galeria dos chalés (home PT/EN/FR) ── */
.chales-grid { grid-auto-flow: row dense; }
.chale-card { outline: none; }
.chale-card:focus-visible { box-shadow: 0 0 0 2px var(--sky) inset; }
.chale-card:first-child { aspect-ratio: auto; grid-row: span 2; }
.chale-card.is-wide { grid-column: span 2; aspect-ratio: auto; }
/* destaque 2x2 (Chalé 3 Quartos): fecha a grade ao lado do 07 e das áreas comuns */
.chale-card.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.chale-card.is-big .chale-name { font-size: 36px; }
img.chale-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.chale-photos {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  background: rgba(6,14,22,0.55);
  border: 1px solid rgba(194,235,245,0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}
.chale-photos svg { width: 13px; height: 13px; flex: none; }
.chale-card:hover .chale-photos { background: rgba(6,14,22,0.8); border-color: var(--sky); }

/* Legibilidade: as paredes brancas das fotos apagavam o texto claro. O
   degradê sobe mais e a descrição só ocupa espaço quando aparece, então o
   nome fica sempre na parte escura do card. */
.chale-overlay {
  background: linear-gradient(to top,
    rgba(6,14,22,0.94) 0%, rgba(6,14,22,0.78) 28%,
    rgba(6,14,22,0.40) 55%, rgba(6,14,22,0) 80%);
}
.chale-card:hover .chale-overlay, .chale-card:focus-visible .chale-overlay {
  background: linear-gradient(to top,
    rgba(6,14,22,0.95) 0%, rgba(6,14,22,0.86) 45%,
    rgba(6,14,22,0.55) 75%, rgba(6,14,22,0.25) 100%);
}
.chale-pax { color: rgba(226,246,251,0.82); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.chale-name { text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.45); }
.chale-desc {
  color: rgba(226,246,251,0.82);
  margin-top: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.3s, transform 0.3s, max-height 0.35s, margin-top 0.35s;
}
.chale-card:hover .chale-desc, .chale-card:focus-visible .chale-desc { max-height: 7em; margin-top: 8px; opacity: 1; transform: none; }
.chale-badge { opacity: 1; transform: none; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

@media (max-width: 900px) {
  .chale-card:first-child, .chale-card.is-wide, .chale-card.is-big { aspect-ratio: 4/3; grid-row: auto; grid-column: auto; }
  .chale-info { padding: 22px; }
  .chale-card:first-child .chale-name, .chale-card.is-big .chale-name, .chale-name { font-size: 26px; }
  .chale-desc { display: none; }
  .chale-photos { top: 12px; right: 12px; }
}

/* ── Lightbox ── */
.lb { position: fixed; inset: 0; z-index: 9998; display: none; flex-direction: column;
  background: #040A10; color: var(--white, #fff); }
.lb.open { display: flex; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.lb-title { font-family: var(--serif, serif); font-size: 22px; font-weight: 300; line-height: 1.2; }
.lb-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(194,235,245,0.55); margin-top: 3px; }
.lb-desc { font-size: 12px; line-height: 1.5; color: rgba(226,246,251,0.7); margin-top: 6px; max-width: 640px; }
.lb-count { margin-left: auto; font-size: 11px; letter-spacing: 0.12em; color: rgba(194,235,245,0.7); white-space: nowrap; }
.lb-btn { background: none; border: 1px solid rgba(194,235,245,0.25); color: inherit; cursor: pointer;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  transition: border-color 0.2s, background 0.2s; }
.lb-btn:hover, .lb-btn:focus-visible { border-color: var(--sky, #50C0D4); background: rgba(80,192,212,0.12); outline: none; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 0.2s; }
.lb-img.loading { opacity: 0.25; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(6,14,22,0.5); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-bottom { display: flex; align-items: center; gap: 16px; padding: 14px 20px 18px; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: thin; padding-bottom: 4px; }
.lb-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 1px solid transparent; cursor: pointer;
  background: #0A1C28 center/cover no-repeat; opacity: 0.45; transition: opacity 0.2s, border-color 0.2s; }
.lb-thumbs button:hover { opacity: 0.8; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--sky, #50C0D4); }
.lb-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px;
  background: var(--sky, #50C0D4); color: #061018; text-decoration: none;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.lb-cta:hover { filter: brightness(1.08); }
body.lb-lock { overflow: hidden; }
body.lb-lock .lang-hint { display: none; }
@media (max-width: 700px) {
  .lb-top { padding: 12px 14px; }
  .lb-top { align-items: flex-start; }
  .lb-title { font-size: 18px; }
  .lb-desc { font-size: 11.5px; }
  .lb-count { padding-top: 13px; }
  .lb-stage { padding: 0; }
  .lb-prev, .lb-next { width: 38px; height: 38px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-bottom { flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 10px; }
  .lb-thumbs button { width: 52px; height: 40px; }
  .lb-cta { justify-content: center; }
}

/* ── Grade de fotos (página de facilidades e páginas dos chalés) ── */
.fotos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.fotos-grid a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #0A1C28; outline: none; }
.fotos-grid a:focus-visible { box-shadow: 0 0 0 2px var(--sky) inset; }
.fotos-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.fotos-grid a:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .fotos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .fotos-grid { grid-template-columns: repeat(2, 1fr); } }
