/* ============================================================
   Temporada Itapoá : style.css
   Mobile-first responsive CSS with CSS custom properties.
   Author: Temporada Itapoá
   ============================================================ */

/* ── Google Fonts are imported via <link> in HTML ── */

/* ──────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ────────────────────────────────────────────────── */
:root {
  /* ─── Paleta Solar & Praia (Extraída da Obra Original & Mockup) ─── */
  --sand-bg:        #FAF5EB; /* Fundo linho marfim solar */
  --sand-card:      #EFE4D2; /* Superfície areia nobre dos cards */
  --sand-alt:       #F3EAE0; /* Areia suave */
  --sand-border:    #DBCDB5; /* Bordas e divisórias suaves */

  /* Aliases para compatibilidade total */
  --navy:           #FAF5EB;
  --navy-light:     #F3EAE0;
  --navy-card:      #EFE4D2;
  
  --teal:           #148F96; /* Turquesa vibrante dos selos */
  --teal-dark:      #0D7076;
  --orange:         #D4A044; /* Dourado Âmbar Solar */
  --bronze:         #683B11; /* Bronze Nobre Elegante */
  --green-wa:       #25d366;
  --green-wa-dark:  #128c7e;

  --text-primary:   #3E2714; /* Texto café escuro de alto contraste */
  --text-secondary: #683B11; /* Bronze nobre para títulos e destaques */
  --text-muted:     #8C6A48;

  --available:      #22c55e;
  --occupied:       #ef4444;
  --selected:       #3E2714; /* Cor escura elegante (Café Escuro) */

  /* Typography: Poppins (Versão Primária: Forte, Convidativa e Elegante) */
  --font-base:  'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows para fundo solar claro */
  --shadow-card:  0 6px 20px rgba(120, 80, 30, 0.07);
  --shadow-hover: 0 14px 32px rgba(120, 80, 30, 0.16);
  --shadow-modal: 0 24px 60px rgba(62, 39, 20, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid:  0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ──────────────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  background-color: var(--navy);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* Proteção contra download/cópia de fotos e vídeos */
.card-photo img,
.card-photo video,
.modal-gallery img,
.modal-gallery video,
.hero-art-img,
.nav-logo-img {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-base);
  cursor: pointer;
  border: none;
  background: none;
}

ul { list-style: none; }

/* ──────────────────────────────────────────────────
   3. UTILITY CLASSES
   ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────
   4. HEADER / NAVBAR
   ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 235, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-border);
  padding: clamp(0.45rem, 0.9vh, 0.75rem) clamp(0.85rem, 2.5vw, 1.5rem);
  transition: background var(--transition-mid), box-shadow var(--transition-mid);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(104, 59, 17, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Logo lockup */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(104, 59, 17, 0.12);
  flex-shrink: 0;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bronze);
  text-decoration: none;
}

.nav-brand-sub {
  font-family: var(--font-base);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header WhatsApp button */
.btn-wa-header {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--green-wa);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-wa-header:hover {
  background: var(--green-wa-dark);
  transform: translateY(-1px);
}

.btn-wa-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 0.75rem;
  }
  .nav.container {
    padding-inline: 0;
  }
  .nav-logo-img {
    width: 38px;
    height: 38px;
  }
  .nav-brand-name {
    font-size: 0.95rem;
  }
  .nav-brand-sub {
    font-size: 0.62rem;
  }
  .btn-wa-header {
    font-size: 0.78rem;
    padding: 0.38rem 0.75rem;
    gap: 0.35rem;
  }
  .btn-wa-header svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 440px) {
  .wa-label {
    display: none;
  }
  .btn-wa-header {
    padding: 0.45rem;
    border-radius: 50%;
  }
  .btn-wa-header svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 380px) {
  .nav-brand-sub {
    display: none;
  }
  .nav-brand-name {
    font-size: 0.92rem;
  }
}

/* ──────────────────────────────────────────────────
   5. HERO : Design Fluido e Dinâmico (Totalmente Visível em Qualquer Tela)
   ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.5rem, 1.8vh, 1.25rem) 1.25rem clamp(1.6rem, 3.2vh, 2.4rem);
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF2E6 35%, #F4E6D2 70%, #EAD8C1 100%);
  border-bottom: 1px solid var(--sand-border);
  overflow: hidden;
  box-sizing: border-box;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 25%, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
              radial-gradient(circle at 85% 80%, rgba(212, 160, 68, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: clamp(14px, 2.2vh, 22px);
  background: var(--sand-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: clamp(0.15rem, 0.5vh, 0.4rem);
}

.hero-art-wrapper {
  margin-top: -0.75rem;
  margin-bottom: clamp(0.15rem, 0.5vh, 0.4rem);
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-art-img {
  width: min(88vw, 540px);
  max-width: 540px;
  height: auto;
  max-height: clamp(210px, 38vh, 380px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(104, 59, 17, 0.08));
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.4vh + 1.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bronze);
  margin-bottom: clamp(0.25rem, 0.6vh, 0.45rem);
}

.hero-title span {
  color: #C68E28;
}

.hero-subtitle {
  font-family: var(--font-base);
  font-size: clamp(0.78rem, 0.85vh + 0.3vw, 0.96rem);
  color: #5C3D20;
  max-width: min(90vw, 560px);
  margin-inline: auto;
  margin-bottom: clamp(0.4rem, 1vh, 0.85rem);
  font-weight: 500;
  line-height: 1.38;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.45rem, 1vw, 0.85rem);
  justify-content: center;
  margin-bottom: clamp(0.4rem, 1vh, 0.85rem);
  max-width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--orange);
  color: #3E2714;
  font-family: var(--font-base);
  font-size: clamp(0.76rem, 0.78vh + 0.3vw, 0.9rem);
  font-weight: 700;
  padding: clamp(0.48rem, 0.9vh, 0.68rem) clamp(0.95rem, 1.8vw, 1.85rem);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(212, 160, 68, 0.35);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 160, 68, 0.45);
  background: #C68E28;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.85);
  color: var(--bronze);
  font-family: var(--font-base);
  font-size: clamp(0.76rem, 0.78vh + 0.3vw, 0.9rem);
  font-weight: 700;
  padding: clamp(0.48rem, 0.9vh, 0.68rem) clamp(0.95rem, 1.8vw, 1.85rem);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--bronze);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #FAF5EB;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 2.4rem);
  margin: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(219, 205, 181, 0.6);
  padding-top: clamp(0.35rem, 0.7vh, 0.75rem);
  width: 100%;
  max-width: 540px;
}

.hero-stat {
  text-align: center;
  flex: 1;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 1.3vh + 0.5vw, 1.38rem);
  font-weight: 800;
  color: #C68E28;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: clamp(0.55rem, 0.65vh + 0.22vw, 0.68rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────
   6. SECTION HEADING & CASAS
   ────────────────────────────────────────────────── */
.section-casas {
  background-color: var(--sand-bg);
  padding: 3.5rem 0 5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bronze);
  line-height: 1.2;
}

.section-desc {
  font-size: 0.95rem;
  color: #5C3D20;
  max-width: 580px;
  margin-inline: auto;
  margin-top: 0.5rem;
}

/* ──────────────────────────────────────────────────
   7. CASAS SECTION
   ────────────────────────────────────────────────── */
#casas {
  padding: var(--space-3xl) 0;
  background: var(--navy);
  scroll-margin-top: 70px;
}

@media (max-width: 640px) {
  #casas {
    padding: 0 0 2.5rem 0;
    scroll-margin-top: 54px;
  }
  /* Oculta o bloco de texto introdutório no celular para não empurrar os imóveis e permitir que o 2º imóvel já apareça de cara */
  .section-heading {
    display: none !important;
  }
  .casas-nav-sticky-wrapper {
    padding: 4px 0 6px 0;
    margin-bottom: 0.6rem;
  }
  .casa-pill {
    padding: 4px 11px;
    font-size: 0.76rem;
    gap: 4px;
  }

  /* Grid e Cards Ultra-Compactos Estilo Airbnb para Revelar o Próximo Imóvel (Content Peeking) */
  .casas-grid {
    gap: 12px;
  }
  .card {
    padding: 8px 8px 10px 8px;
    border-radius: 14px;
    scroll-margin-top: 104px;
    box-shadow: 0 4px 14px rgba(120, 80, 30, 0.06);
  }
  .card-photo {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    margin-bottom: 0.45rem;
  }
  .card-photo img,
  .card-photo video {
    border-radius: 10px;
  }
  .card-body {
    padding: 2px 2px 0;
  }
  .card-name {
    font-size: 1.05rem;
    line-height: 1.22;
    margin-bottom: 0.12rem;
  }
  .card-location {
    font-size: 0.74rem;
    margin-bottom: 0.4rem;
    line-height: 1.25;
  }
  .card-amenities {
    gap: 4px;
    margin-bottom: 0.55rem;
  }
  .amenity-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    gap: 3px;
  }
  .btn-card-action,
  .btn-ver-mais {
    padding: 7px 12px;
    font-size: 0.82rem;
    border-radius: 7px;
    font-weight: 600;
  }
}

/* Badge de Quantidade no Título/Label */
.casas-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 4px;
  box-shadow: 0 2px 6px rgba(20, 143, 150, 0.25);
  vertical-align: middle;
}

/* Container Sticky para a Barra de Navegação Rápida */
.casas-nav-sticky-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-actual-h, 60px);
  z-index: 90;
  background: rgba(250, 245, 235, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 0 10px 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(219, 205, 181, 0.75);
  box-shadow: 0 4px 16px rgba(104, 59, 17, 0.05);
  transition: box-shadow 0.2s ease;
}

@media (max-width: 640px) {
  .casas-nav-sticky-wrapper {
    padding: 6px 0 8px 0;
    margin-bottom: 1rem;
  }
}

/* Barra de Navegação Rápida entre as Casas (Pills com rolagem horizontal suave) */
.casas-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  padding: 2px 2px;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.casas-nav-bar::-webkit-scrollbar {
  display: none;
}
.casa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 160, 68, 0.35);
  border-radius: 999px;
  font-family: var(--font-base);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bronze);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(120, 80, 30, 0.05);
  flex-shrink: 0;
}
.casa-pill:hover {
  background: #FFFFFF;
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(120, 80, 30, 0.1);
}
.casa-pill.active {
  background: var(--bronze);
  color: #FFFFFF;
  border-color: var(--bronze);
  box-shadow: 0 4px 12px rgba(92, 61, 32, 0.25);
}
.casa-pill-icon {
  font-size: 0.95rem;
}

/* Loading state */
.loading-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 160, 68, 0.25);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-md);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error state */
.error-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--text-secondary);
}

.error-state h3 {
  color: var(--occupied);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

/* Cards grid */
.casas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .casas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .casas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ──────────────────────────────────────────────────
   8. PROPERTY CARD : Luxury Resort Card Layout
   ────────────────────────────────────────────────── */
.card {
  background: var(--sand-card);
  border-radius: 20px;
  padding: 14px 14px 18px 14px;
  border: 1px solid rgba(215, 195, 165, 0.75);
  box-shadow: 0 6px 20px rgba(120, 80, 30, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  scroll-margin-top: 135px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(120, 80, 30, 0.16);
  border-color: rgba(212, 160, 68, 0.6);
}

@keyframes cardGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 160, 68, 0.8); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(212, 160, 68, 0.35); }
  100% { transform: scale(1); box-shadow: 0 6px 20px rgba(120, 80, 30, 0.07); }
}
.card.highlighted {
  animation: cardGlow 1.2s ease forwards;
}

/* Card photo : Formato Horizontal Panorâmico Conforme Padrão Airbnb / Mercado */
.card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #E2D3BE;
  flex-shrink: 0;
  margin-bottom: 0.85rem;
  touch-action: pan-y;
  user-select: none;
}

.card-photo img,
.card-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
  display: block;
  transition: transform 0.35s ease;
}

.card:hover .card-photo img,
.card:hover .card-photo video {
  transform: scale(1.02);
}

/* Card Photo Gallery Navigation */
.card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(219, 205, 181, 0.6);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  opacity: 0;
}

.card:hover .card-nav:not(:disabled) {
  opacity: 0.92;
}

.card-nav:hover:not(:disabled) {
  background: #ffffff;
  color: var(--orange);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  opacity: 1 !important;
}

.card-nav-prev {
  left: 8px;
}

.card-nav-next {
  right: 8px;
}

.card-nav:disabled,
.card-nav.is-disabled {
  opacity: 0 !important;
  pointer-events: none;
}

@media (hover: none) or (max-width: 768px) {
  .card-nav:not(:disabled) {
    opacity: 0.88;
  }
}

.card-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(24, 16, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 4;
}

/* Photo placeholder */
.card-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #F5E8D0 0%, #E8D5B5 100%);
  color: var(--bronze);
}

.card-photo-placeholder .ph-icon {
  font-size: 3rem;
  line-height: 1;
}

.card-photo-placeholder .ph-text {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card body */
.card-body {
  padding: 4px 6px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bronze);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.card-location {
  font-family: var(--font-base);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.1rem;
}

.amenity-tag {
  background: var(--teal);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amenity-more {
  background: rgba(20, 143, 150, 0.18);
  color: var(--teal-dark);
}

.btn-card-action,
.btn-ver-mais {
  width: 100%;
  background: var(--orange);
  color: #3E2714;
  font-family: var(--font-base);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(212, 160, 68, 0.25);
  display: block;
}

.btn-card-action:hover,
.btn-ver-mais:hover {
  background: #E2AD4F;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 160, 68, 0.4);
}

/* ──────────────────────────────────────────────────
   9. MODAL
   ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 27, 14, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Slide up from bottom on mobile, centered on desktop */
.modal-box {
  background: #FFFDF8;
  border: 1px solid var(--sand-border);
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 157, 147, 0.4) transparent;
  transform: translateY(40px);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-modal);
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    padding: var(--space-lg);
  }

  .modal-box {
    border-radius: var(--radius-lg);
    max-height: 90vh;
    transform: translateY(20px) scale(0.98);
  }

  .modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
  }
}

/* Modal header fixo (Sticky Header) amigavel */
.modal-sticky-header {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-border);
  box-shadow: 0 2px 10px rgba(45, 27, 14, 0.06);
}

.modal-header-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FAF3E0;
  border: 1px solid var(--sand-border);
  color: var(--teal-deep);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-header-back-btn:hover {
  background: var(--teal-light);
  color: var(--teal-deep);
  transform: translateX(-2px);
}

.modal-header-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bronze);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.modal-close-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FAF3E0;
  border: 1px solid var(--sand-border);
  color: var(--bronze);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-icon-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: scale(1.08);
}

/* Modal close button legatus fallback */
.modal-close {
  display: none;
}

/* Botao secundario de rodape para voltar a lista */
.modal-bottom-back-action {
  margin-top: var(--space-md);
  text-align: center;
}

.btn-modal-back-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #FAF3E0;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  color: var(--teal-deep);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-back-bottom:hover {
  background: var(--teal-light);
  color: var(--teal-deep);
}

/* Modal gallery */
.modal-gallery {
  position: relative;
  width: 100%;
  height: clamp(380px, 62vh, 540px);
  background: #181109;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
}

.modal-gallery img,
.modal-gallery video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #261A10 0%, #1A1108 50%, #120C07 100%);
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.gallery-placeholder .ph-icon { font-size: 4rem; }

/* Gallery nav arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24, 16, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  transition: all var(--transition-fast);
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.gallery-nav:hover:not(:disabled) {
  background: var(--orange);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav:disabled,
.gallery-nav.is-disabled {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

.gallery-nav-prev { left: var(--space-sm); }
.gallery-nav-next { right: var(--space-sm); }

.gallery-counter {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: rgba(18, 12, 7, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-family: var(--font-base);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

/* Modal body */
.modal-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .modal-body {
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-xl);
    align-items: start;
  }
}

/* Left column */
.modal-main { display: flex; flex-direction: column; gap: var(--space-lg); }

.modal-name {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bronze);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-meta-address {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.modal-meta-address:hover {
  color: var(--bronze);
  text-decoration: underline;
}

.modal-desc {
  font-size: 0.95rem;
  color: #5C3D20;
  line-height: 1.65;
}

/* Amenities list */
.modal-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: var(--space-sm);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: #4A2E16;
}

.amenity-item::before {
  content: '✓';
  color: var(--bronze);
  font-weight: 700;
  flex-shrink: 0;
}

/* Seção de Localização no Modal */
.modal-location {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.modal-address-text {
  font-size: 0.92rem;
  color: #5C3D20;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-map-card {
  margin-top: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.modal-map-iframe {
  width: 100%;
  height: clamp(200px, 30vh, 280px);
  border: 0;
  display: block;
  background: #f1f3f4;
}

.modal-map-card .chat-map-preview {
  height: clamp(170px, 25vh, 220px);
}

.modal-map-card .chat-map-btn {
  background: #FAF6ED;
  color: var(--bronze) !important;
  font-size: 13px;
  font-weight: 600 !important;
  border-top: 1px solid var(--sand-border);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-map-card .chat-map-btn:hover {
  background: #FAF3E0;
  color: #2D1A0E !important;
}

/* Right sidebar */
.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Calendar widget */
.calendar-widget {
  background: #FAF6ED;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.cal-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FAF3E0;
  border: 1px solid var(--sand-border);
  color: var(--bronze);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.cal-nav:hover:not(:disabled) {
  background: rgba(95, 157, 147, 0.2);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-month-label {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bronze);
  text-transform: capitalize;
}

/* Day-of-week headers */
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-dow {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding-block: var(--space-xs);
}

/* Days grid */
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  font-weight: 600;
  user-select: none;
}

.cal-day.empty { background: transparent; cursor: default; }

.cal-day.available {
  color: var(--text-primary);
}

.cal-day.available:hover {
  background: rgba(62, 39, 20, 0.12);
  color: var(--text-primary);
}

.cal-day.occupied {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(239, 68, 68, 0.5);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Todos os dias selecionados com a mesma cor escura sólida e elegante */
.cal-day.selected-start,
.cal-day.selected-end,
.cal-day.in-range {
  background: var(--text-primary) !important; /* #3E2714 */
  color: #ffffff !important;
  font-weight: 700;
}

.cal-day.selected-single {
  border-radius: 8px !important;
}

.cal-day.selected-start:not(.selected-single) {
  border-radius: 8px 0 0 8px;
}

.cal-day.selected-end {
  border-radius: 0 8px 8px 0;
}

.cal-day.in-range {
  border-radius: 0;
}

.cal-day.today {
  outline: 1.5px solid rgba(212, 160, 68, 0.6);
  outline-offset: -1px;
}

/* Calendar legend */
.cal-legend {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Date range display */
.date-range-display {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  flex-wrap: wrap;
}

.date-chip {
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.78rem;
}

/* WhatsApp button in modal */
.btn-wa-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--green-wa);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  width: 100%;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-wa-modal:hover:not(.disabled) {
  background: var(--green-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.btn-wa-modal.disabled {
  background: var(--green-wa);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  opacity: 0.95;
  pointer-events: auto;
}

.btn-wa-modal.disabled:hover {
  background: var(--green-wa-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.btn-wa-modal svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Reset dates button */
.btn-reset-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: color var(--transition-fast);
}

.btn-reset-dates:hover {
  color: var(--orange);
}

/* Availability in modal */
.modal-availability {
  background: #FAF6ED;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.modal-dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.modal-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  cursor: default;
}

.modal-dot:hover::after {
  content: attr(data-month);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(62, 39, 20, 0.95);
  color: #FAF3E0;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 10;
}

/* ──────────────────────────────────────────────────
   10. FOOTER
   ────────────────────────────────────────────────── */
.site-footer {
  background: #5C350B;
  color: #FAF3E0;
  border-top: 1px solid #3E2714;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {}

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FAF3E0;
  margin-bottom: var(--space-sm);
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: #E8D5B5;
  line-height: 1.6;
  max-width: 280px;
}

.footer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: #E8D5B5;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(232, 213, 181, 0.2);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: #E8D5B5;
}

.footer-copy span {
  color: var(--orange);
}

/* ──────────────────────────────────────────────────
   11. SCROLLBAR (webkit)
   ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(104, 59, 17, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(104, 59, 17, 0.45);
}

/* ──────────────────────────────────────────────────
   12. FOCUS STYLES (accessibility)
   ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ──────────────────────────────────────────────────
   13. NOSCRIPT BANNER
   ────────────────────────────────────────────────── */
.noscript-banner {
  background: var(--occupied);
  color: #fff;
  text-align: center;
  padding: var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────
   14. ANIMATIONS
   ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeInUp 0.4s ease both;
}

/* Stagger cards */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }
.card:nth-child(7) { animation-delay: 0.35s; }

/* ──────────────────────────────────────────────────
   15. PRINT (hide interactive elements)
   ────────────────────────────────────────────────── */
@media print {
  .site-header,
  .modal-overlay,
  .btn-wa-header,
  .btn-wa-modal,
  .floating-whatsapp {
    display: none !important;
  }
}

/* ── v2.0 Additions ─────────────────────────────────────────────────────── */

/* Dot parcialmente ocupado (amarelo/laranja) */
.dot-partial {
  background: var(--orange) !important;
}

/* Dot de mês já passado : cinza discreto */
.dot-past {
  background: #2d3748 !important;
  border: 1px solid #4a5568;
  opacity: 0.5;
}


/* Vídeo no card thumbnail */
.card-thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Vídeo na galeria do modal */
.modal-gallery video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #120C07;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ── Exibição Inteligente para Mídias Verticais (Reels, Stories e Fotos em pé) ── */
.modal-gallery {
  transition: aspect-ratio var(--transition-mid), max-height var(--transition-mid);
}

.modal-gallery.is-portrait-media {
  aspect-ratio: 4 / 5;
  max-height: 68vh;
  background: radial-gradient(circle at center, #261A10 0%, #120C07 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) 0;
}

@media (min-width: 768px) {
  .modal-gallery.is-portrait-media {
    aspect-ratio: 16 / 10;
    max-height: 520px;
    padding: var(--space-md) 0;
  }
}

.modal-gallery.is-portrait-media video,
.modal-gallery.is-portrait-media img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}


/* Badge de tipo de mídia (vídeo) */
.gallery-type-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

/* ── Navegação de ano nos Dots de Disponibilidade ── */
.modal-availability {
  background: #FAF6ED;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.dots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.dots-title-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.dots-title-group .modal-section-title {
  margin-bottom: 0;
}

.dots-year-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FAF3E0;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.dots-year-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bronze);
  min-width: 44px;
  text-align: center;
  user-select: none;
}

.dots-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(95, 157, 147, 0.15);
  transition: all var(--transition-fast);
}

.dots-nav-btn:hover:not(:disabled) {
  background: var(--teal);
  color: #fff;
  transform: scale(1.1);
}

.dots-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* ── Container e Itens dos 12 Dots de Disponibilidade ── */
.modal-dots {
  display: flex;
  gap: 8px 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 0 2px;
}

.dot-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(219, 205, 181, 0.45);
  transition: all var(--transition-fast);
  min-width: 44px;
}

.dot-item:hover {
  background: #fff;
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(104, 59, 17, 0.08);
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dot-label {
  font-family: var(--font-base);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bronze);
  letter-spacing: 0.02em;
  user-select: none;
}

.dot-available {
  background: #22c55e !important;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.45);
}

.dot-occupied {
  background: #ef4444 !important;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
}

.dot-partial {
  background: #f59e0b !important;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
}

.dot-past {
  background: #CDBEAA !important;
  border: 1px solid #B5A28D;
  opacity: 0.65;
}

.dot-item:hover .dot {
  transform: scale(1.25);
}

/* ──────────────────────────────────────────────────
   16. BOTÃO FLUTUANTE DO WHATSAPP
   ────────────────────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #1ebe5d 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 150;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), visibility var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.52), 0 4px 12px rgba(0, 0, 0, 0.22);
  color: #ffffff;
}

.floating-whatsapp:active {
  transform: scale(0.96);
}

.floating-whatsapp-icon {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
  fill: currentColor;
}

/* Radar pulse animation */
.floating-whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: 1;
  pointer-events: none;
  animation: waRadarPulse 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes waRadarPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* Tooltip badge */
.floating-whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(38, 26, 16, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 3;
}

.floating-whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(38, 26, 16, 0.92);
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Oculta suavemente quando o modal de detalhes estiver aberto */
body.modal-open .floating-whatsapp,
body.modal-open .chat-widget-box,
body.modal-open .chat-widget-overlay,
.modal-overlay.is-open ~ .floating-whatsapp {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.8);
}

/* Ajustes responsivos mobile */
@media (max-width: 600px) {
  .floating-whatsapp {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .floating-whatsapp-icon {
    width: 28px;
    height: 28px;
  }
  .floating-whatsapp-tooltip {
    display: none;
  }
}

/* Badge de notificação no botão flutuante */
.floating-whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff3b30;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: waBadgeBounce 2.5s infinite;
  z-index: 4;
}

@keyframes waBadgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ──────────────────────────────────────────────────
   15. WIDGET DE CHAT FLUTUANTE (ROBÔ COM IA)
   ────────────────────────────────────────────────── */
.chat-widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 240;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chat-widget-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.chat-widget-box {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 580px;
  max-height: calc(100vh - 120px);
  background: #efeae2;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.chat-widget-box.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header estilo WhatsApp */
.chat-widget-header {
  background: #075E54;
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  z-index: 5;
  flex-shrink: 0;
}

.chat-widget-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #25D366;
  flex-shrink: 0;
}

.chat-widget-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-widget-header-info {
  flex: 1;
  overflow: hidden;
}

.chat-widget-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.chat-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: #25D366;
  color: #075E54;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 800;
}

.chat-widget-status {
  font-size: 11.5px;
  color: #d1e7dd;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #25D366;
}

.chat-widget-close {
  background: none;
  border: none;
  color: #ffffff;
  opacity: 0.85;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.15s, background 0.15s;
}

.chat-widget-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* Corpo das Mensagens */
.chat-widget-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #e5ddd5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" opacity="0.04"><path d="M20 20 L60 60 M60 20 L20 60" stroke="%23000" stroke-width="2"/></svg>') repeat;
  position: relative;
}

.chat-widget-notice {
  align-self: center;
  background: #ffeecd;
  color: #54656f;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
  max-width: 92%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  line-height: 1.3;
}

.chat-msg {
  max-width: 86%;
  padding: 7px 10px 5px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.12);
}

.chat-msg-bot {
  background: #ffffff;
  color: #111b21;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chat-msg-user {
  background: #d9fdd3;
  color: #111b21;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.chat-msg-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 3px;
  font-size: 10.5px;
  color: #667781;
}

.chat-checkmarks {
  color: #53bdeb;
  font-weight: 700;
  font-size: 12px;
}

/* Botões Interativos dentro do chat */
.chat-interactive-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  border-top: 1px solid #f0f2f5;
  padding-top: 6px;
}

.chat-btn-action {
  background: #ffffff;
  border: 1px solid #e9edef;
  color: #008069;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  text-align: center;
  font-family: inherit;
}

.chat-btn-action:hover {
  background: #f5f6f6;
  border-color: #008069;
}

.chat-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  margin-top: 6px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
  transition: background 0.15s;
  width: 100%;
}

.chat-btn-whatsapp:hover {
  background: #1ebe5d;
}

.chat-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 143, 150, 0.12);
  color: #075E54 !important;
  font-weight: 600 !important;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  margin-top: 4px;
  border: 1px solid rgba(20, 143, 150, 0.25);
  transition: background 0.15s;
}

.chat-modal-link:hover {
  background: rgba(20, 143, 150, 0.2);
}

.chat-map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 144, 255, 0.12);
  color: #1a73e8 !important;
  font-weight: 600 !important;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  margin-top: 4px;
  border: 1px solid rgba(30, 144, 255, 0.28);
  transition: background 0.15s;
}

.chat-map-link:hover {
  background: rgba(30, 144, 255, 0.22);
}

/* Mini Mapa Incorporado no Chat */
.chat-map-card {
  margin-top: 8px;
  margin-bottom: 4px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.chat-map-iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
  background: #f1f3f4;
}

.chat-map-preview {
  position: relative;
  width: 100%;
  height: 160px;
  display: block;
  background: #f1f3f4;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.chat-map-img,
.chat-map-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.chat-map-preview:hover .chat-map-img,
.chat-map-preview:hover .chat-map-canvas {
  transform: scale(1.03);
}

.chat-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: #f0f2f5;
  color: #008069 !important;
  font-size: 12.5px;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-top: 1px solid #e9edef;
  transition: background 0.15s, color 0.15s;
}

.chat-map-btn:hover {
  background: #e7f5f2;
  color: #075e54 !important;
}

.chat-map-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Indicador de Digitando */
.chat-typing-indicator {
  display: none;
  align-self: flex-start;
  background: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  border-top-left-radius: 0;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  margin-bottom: 2px;
  gap: 4px;
  align-items: center;
}

.chat-typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #8696a0;
  border-radius: 50%;
  animation: chatBounce 1.2s infinite;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Gaveta de Casas */
.chat-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 20;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-drawer-overlay.is-open {
  transform: translateY(0);
}

.chat-drawer-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e9edef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f9fa;
  flex-shrink: 0;
}

.chat-drawer-title strong {
  display: block;
  font-size: 14.5px;
  color: #111b21;
}

.chat-drawer-title span {
  display: block;
  font-size: 11.5px;
  color: #667781;
}

.chat-drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #667781;
  cursor: pointer;
  padding: 4px 8px;
}

.chat-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.chat-drawer-section {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #008069;
  background: #f0f2f5;
  letter-spacing: 0.5px;
}

.chat-drawer-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #f5f6f6;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s;
  font-family: inherit;
}

.chat-drawer-item:hover {
  background: #f0f2f5;
}

.chat-drawer-item strong {
  font-size: 13.5px;
  color: #111b21;
}

.chat-drawer-item span {
  font-size: 11.5px;
  color: #667781;
}

/* Rodapé com campo de digitação */
.chat-widget-footer {
  background: #f0f2f5;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e9edef;
  flex-shrink: 0;
}

.chat-widget-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e9edef;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13.5px;
  outline: none;
  color: #111b21;
  font-family: inherit;
  transition: border-color 0.15s;
}

.chat-widget-input:focus {
  border-color: #008069;
}

.chat-widget-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #008069;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-widget-send:hover {
  background: #075E54;
}

/* Responsividade Mobile (<600px) */
@media (max-width: 600px) {
  .chat-widget-box {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 88vh;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  }

  .chat-widget-box.is-open {
    transform: translateY(0);
  }
}



