/* ==========================================================================
   Alojamento Rio Neiva — Camada PREMIUM ("Quiet Coastal Luxury")
   Sobrepõe-se a style.min.css. Refina paleta, profundidade, tipografia e
   micro-detalhes para uma sensação de hotelaria boutique de alta gama.
   ========================================================================== */

:root {
  /* Tons aprofundados + acento quente (areia/latão) — o toque de luxo */
  --ink: #0A1B2A;
  --text: #2A4054;
  --muted: #5E7588;
  --accent: #1B5180;
  --accent-dark: #103a5c;
  --accent-soft: #7FB2D8;
  --gold: #C2A06A;          /* areia/latão refinado */
  --gold-soft: #E4D2AE;
  --line: rgba(10, 27, 42, .09);
  --line-strong: rgba(10, 27, 42, .16);

  /* Sombras em camadas, baixas e largas (premium, não duras) */
  --shadow-s: 0 2px 8px -2px rgba(10, 27, 42, .10);
  --shadow-m: 0 14px 34px -16px rgba(10, 27, 42, .22);
  --shadow-l: 0 34px 70px -28px rgba(10, 27, 42, .30);
  --shadow-gold: 0 18px 40px -18px rgba(120, 92, 40, .30);

  --ease-lux: cubic-bezier(.22, 1, .36, 1);
}

/* Atmosfera de fundo — gradiente subtil + grão suave em vez de cor chapada */
body {
  background:
    radial-gradient(1200px 720px at 78% -8%, rgba(127, 178, 216, .16), transparent 60%),
    radial-gradient(900px 600px at -6% 12%, rgba(194, 160, 106, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  letter-spacing: .002em;
}

/* Grão fino global (textura premium, quase impercetível) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Tipografia refinada ===== */
h1, h2, h3, h4 { letter-spacing: -0.012em; }
.section__eyebrow, .eyebrow {
  position: relative;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .22em;
  font-size: .72rem;
}

/* Filete dourado fino antes dos eyebrows (assinatura visual) */
.hero__eyebrow::before,
.eyebrow::before {
  background: linear-gradient(90deg, var(--gold), rgba(194,160,106,0)) !important;
  height: 1.5px !important;
}

/* ===== Header — vidro fosco premium ===== */
.header {
  background: rgba(10, 27, 42, .72) !important;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 10px 30px -16px rgba(10,27,42,.5) !important;
}

/* ===== Hero — mais cinematográfico ===== */
.hero__media {
  border-radius: 20px !important;
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
/* moldura interior fina + leve gradiente sobre a imagem (profundidade) */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 -90px 120px -60px rgba(10, 27, 42, .55);
  pointer-events: none;
  z-index: 2;
}
.hero__img { transition: transform 1.4s var(--ease-lux); will-change: transform; }
.hero__media:hover .hero__img { transform: scale(1.045); }

.hero h1 em { color: var(--accent-soft) !important; }

/* preço — destaque dourado subtil */
.hero__price__main strong, .hero__price__alt strong { color: var(--ink); }
.hero__rating__stars svg { color: var(--gold) !important; fill: var(--gold) !important; }

/* ===== Botões — premium com brilho ao hover ===== */
.btn {
  border-radius: 14px;
  transition: transform .4s var(--ease-lux), box-shadow .4s var(--ease-lux), background .3s;
  letter-spacing: .01em;
}
.btn-whatsapp, .btn-primary, .btn[class*="primary"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  box-shadow: var(--shadow-m);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
/* brilho que atravessa o botão */
.btn-whatsapp::before, .btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease-lux);
}
.btn-whatsapp:hover::before, .btn-primary:hover::before { left: 130%; }

/* botão secundário/outline refinado */
.btn-outline, .btn-ghost, .btn--secondary {
  border: 1.5px solid var(--line-strong) !important;
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--gold) !important; color: var(--ink) !important; }

/* ===== Cards / superfícies — profundidade premium ===== */
.amenities__highlight,
.contact__card,
.review,
.surroundings__card,
.home-blog-card,
.faq__item {
  box-shadow: var(--shadow-m);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .5s var(--ease-lux), box-shadow .5s var(--ease-lux), border-color .5s;
}
.amenities__highlight:hover,
.review:hover,
.surroundings__card:hover,
.home-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: var(--line-strong);
}

/* ===== Galeria — molduras + hover refinado ===== */
.gallery__item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: box-shadow .5s var(--ease-lux), transform .5s var(--ease-lux);
}
.gallery__item img { transition: transform 1s var(--ease-lux); }
.gallery__item:hover { box-shadow: var(--shadow-l); transform: translateY(-2px); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__tab.is-active { background: var(--ink) !important; color: #fff !important; box-shadow: var(--shadow-s); }
.gallery__tab { border-radius: 999px; transition: all .35s var(--ease-lux); }

/* ===== Tabs/pills de acento ===== */
.gallery__tab__count { color: var(--gold); }

/* ===== Divisores elegantes entre secções ===== */
.section { position: relative; }
.section + .section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}

/* ===== Movimento de entrada (load) + reveals refinados ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-lux), transform .9s var(--ease-lux); }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Entrada do hero — staggered, elegante */
  .hero__eyebrow { animation: rnFade .9s var(--ease-lux) both .05s; }
  .hero h1 { animation: rnRise 1.05s var(--ease-lux) both .14s; }
  .hero__sub { animation: rnRise 1.05s var(--ease-lux) both .26s; }
  .hero__price { animation: rnRise 1.05s var(--ease-lux) both .36s; }
  .hero__rating { animation: rnFade 1.05s var(--ease-lux) both .46s; }
  .hero__ctas { animation: rnRise 1.05s var(--ease-lux) both .54s; }
  .hero__media { animation: rnReveal 1.3s var(--ease-lux) both .2s; }
}
@keyframes rnRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rnReveal { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }

/* ===== Footer premium ===== */
.footer { background: var(--ink); position: relative; }
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .5;
}
.footer__social { transition: transform .4s var(--ease-lux), color .3s; }
.footer__social:hover { transform: translateY(-3px); color: var(--gold); }

/* ===== Refinamentos premium adicionais ===== */

/* Navegação — sublinhado dourado animado */
.nav__link { position: relative; transition: color .3s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-lux);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Inputs do formulário — foco com anel dourado, sensação premium */
.form__input, .form__textarea {
  border-radius: 12px !important;
  border: 1.5px solid var(--line) !important;
  background: rgba(255,255,255,.7) !important;
  transition: border-color .3s, box-shadow .3s, background .3s !important;
}
.form__input:focus, .form__textarea:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(194,160,106,.16) !important;
  background: #fff !important;
}
.form__label { letter-spacing: .04em; }

/* Calendário de disponibilidade — dias mais elegantes */
.av-day { border-radius: 8px; transition: transform .2s var(--ease-lux); }
.av-day--available { color: var(--accent); font-weight: 600; }
.av-day--booked { opacity: .42; text-decoration: line-through; }
.av-month__title { color: var(--gold); letter-spacing: .04em; }

/* Reviews — aspas decorativas elegantes */
.review { position: relative; }
.review::before {
  content: "\201C";
  position: absolute; top: 6px; right: 18px;
  font-family: Georgia, serif; font-size: 4.5rem; line-height: 1;
  color: var(--gold); opacity: .16;
}
.review__avatar { box-shadow: var(--shadow-s); }

/* FAQ — interação refinada */
.faq__item { transition: box-shadow .4s var(--ease-lux), border-color .4s; }
.faq__item:hover { border-color: rgba(194,160,106,.4); }
.faq__question:hover { color: var(--accent); }

/* Lightbox — fundo mais cinematográfico */
.lightbox { background: rgba(8,18,28,.92) !important; backdrop-filter: blur(6px); }

/* Selos de confiança / badges com acento dourado */
[class*="badge"], .pill, .tag { letter-spacing: .02em; }

/* Scrollbar premium (desktop) */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--surface-alt); }
  ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; border: 3px solid var(--surface-alt); }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }
}

/* Selecção de texto com cor da marca */
::selection { background: var(--gold-soft); color: var(--ink); }

/* ==========================================================================
   CORRECÇÕES + refinamentos da revisão de design (classes REAIS verificadas)
   ========================================================================== */

/* As classes premium apontavam para nomes inexistentes. Aplicar às reais: */
.amenity,
.place,
.blog-card {
  position: relative;
  border-radius: 18px;
  box-shadow: var(--shadow-m);
  transition: transform .5s var(--ease-lux), box-shadow .5s var(--ease-lux), border-color .5s;
}
@media (hover: hover) and (pointer: fine) {
  .amenity:hover,
  .place:hover,
  .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-l);
  }
}

/* Metal único: estrelas e rating das reviews em DOURADO (estavam azuis) */
.reviews__stars svg { color: var(--gold) !important; }
.reviews__score { position: relative; }

/* Remover a aspa decorativa duplicada (o markup já tem .review__quote) */
.review::before { content: none !important; }

/* Badges (distância / categoria) em latão quente — coeso e WCAG AA sobre claro */
.place__dist,
.blog-card__category {
  color: #8a6d35 !important;
  background: rgba(194, 160, 106, .14) !important;
  border: 1px solid rgba(194, 160, 106, .28) !important;
}

/* Foco comercial: o símbolo de euro do preço em dourado discreto */
.hero__price__main strong::first-letter { color: var(--gold); }

/* H2 de secção com densidade editorial */
.section-head h2 { letter-spacing: -0.018em; }

/* ==========================================================================
   Calendário de disponibilidade — estilo "date-picker" premium
   ========================================================================== */
.availability__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.av-month {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-m);
  transition: box-shadow .4s var(--ease-lux);
}
.av-month:hover { box-shadow: var(--shadow-l); }
.av-month__title {
  font-family: var(--font-display);
  text-transform: capitalize;
  color: var(--gold) !important;
  letter-spacing: .015em !important;
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.av-grid-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.av-day {
  display: inline-flex; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 10px !important;
  font-size: .82rem; font-weight: 500;
  transition: background .2s, color .2s, transform .16s var(--ease-lux) !important;
}
.av-day--weekday {
  aspect-ratio: auto; color: var(--muted); font-weight: 600;
  font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8;
}
.av-day--empty { background: transparent; }
.av-day--available {
  color: var(--accent) !important; font-weight: 600 !important;
  background: rgba(27, 81, 128, .06);
}
.av-day--available:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff !important;
  transform: translateY(-2px); box-shadow: var(--shadow-s);
}
.av-day--booked {
  color: var(--muted) !important; opacity: .5 !important;
  text-decoration: line-through; background: var(--surface-alt);
}
.av-day--past { color: rgba(94, 117, 136, .38) !important; }
