:root {
    --ocean: #005b96;
    --ocean-dark: #03396c;
    --sand: #f4f7f9;
    --text: #1e293b;
    --muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --green: #16a34a;
    --orange: #d97706;
    --red: #dc2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Topbar Disponibilidade */
.topbar { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 0.85rem; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-info { display: flex; gap: 18px; font-weight: 600; color: var(--text); }
.topbar-info i { color: var(--ocean); margin-right: 4px; }

.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 20px; font-weight: 700; font-size: 0.82rem; text-decoration: none; }
.status-badge .dot { width: 9px; height: 9px; border-radius: 50%; }
.status-disponivel { background: #dcfce7; color: #166534; }
.status-disponivel .dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-consulta { background: #fef3c7; color: #92400e; }
.status-consulta .dot { background: var(--orange); }
.status-indisponivel { background: #fee2e2; color: #991b1b; }
.status-indisponivel .dot { background: var(--red); }

/* Header Ajustado - Sem quebra de linha */
.header { background: var(--ocean-dark); padding: 12px 0; position: sticky; top: 0; z-index: 900; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; flex-shrink: 0; }
.logo i { font-size: 1.7rem; color: #38bdf8; }
.logo h1 { font-size: 1.15rem; font-weight: 800; margin: 0; white-space: nowrap; }
.logo small { display: block; font-size: 0.72rem; color: #bae6fd; white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 14px; }
.nav-menu a { color: #f1f5f9; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: color 0.2s; white-space: nowrap; }
.nav-menu a:hover { color: #38bdf8; }
.btn-whats-nav { background: #25d366; color: #fff !important; padding: 8px 14px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Barra Seletora Multi-Imóveis */
.unit-switcher-bar { background: #e0f2fe; border-bottom: 1px solid #bae6fd; padding: 10px 0; }
.unit-switcher-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.switcher-label { font-size: 0.85rem; font-weight: 800; color: var(--ocean-dark); }
.switcher-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.unit-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--white); color: var(--text); text-decoration: none; padding: 7px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; border: 2px solid transparent; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.unit-pill small { font-weight: 500; color: var(--muted); }
.unit-pill:hover { border-color: #38bdf8; }
.unit-pill.active { background: var(--ocean); color: var(--white); border-color: var(--ocean-dark); }
.unit-pill.active small { color: #e0f2fe; }
.unit-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-disponivel { background: var(--green); }
.dot-consulta { background: var(--orange); }
.dot-indisponivel { background: var(--red); }

/* Cabeçalho do Imóvel e Galeria Mosaico */
.hero-section { padding: 28px 0 15px; }
.property-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; margin-bottom: 18px; }
.badges-topo { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.badge-praia { background: #e0f2fe; color: #0369a1; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }
.badge-capacidade { background: #f1f5f9; color: #334155; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }
.property-header h2 { font-size: 1.85rem; color: var(--ocean-dark); font-weight: 800; }
.endereco-sub { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.endereco-sub a { color: var(--ocean); font-weight: 700; }

.rating-box-top { display: flex; align-items: center; gap: 10px; }
.rating-text { text-align: right; }
.rating-text strong { display: block; font-size: 0.95rem; color: var(--ocean-dark); }
.rating-text span { font-size: 0.8rem; color: var(--muted); }
.rating-score { background: var(--ocean-dark); color: #fff; font-weight: 800; font-size: 1.2rem; padding: 8px 12px; border-radius: 8px 8px 8px 0; }

/* Mosaico Flexível que nunca quebra */
.photo-mosaic { position: relative; display: grid; gap: 8px; border-radius: 12px; overflow: hidden; height: 420px; }
.photo-mosaic.count-1 { grid-template-columns: 1fr; }
.photo-mosaic.count-2 { grid-template-columns: 1fr 1fr; }
.photo-mosaic.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.photo-mosaic.count-3 .item-0 { grid-row: span 2; }
.photo-mosaic.count-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.photo-mosaic.count-4 .item-0 { grid-row: span 2; }
.photo-mosaic.count-4 .item-1 { grid-column: span 2; }
.photo-mosaic.count-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.photo-mosaic.count-5 .item-0 { grid-row: span 2; }

.mosaic-item { position: relative; cursor: pointer; overflow: hidden; background: #cbd5e1; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mosaic-item:hover img { transform: scale(1.04); }
.more-photos-overlay { position: absolute; inset: 0; background: rgba(3, 57, 108, 0.72); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; gap: 8px; }
.btn-ver-todas { position: absolute; bottom: 14px; right: 14px; background: var(--white); color: var(--text); border: 1px solid var(--text); padding: 8px 15px; border-radius: 6px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.thumbnails-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.thumbnails-strip img { width: 78px; height: 56px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.8; border: 2px solid transparent; flex-shrink: 0; }
.thumbnails-strip img:hover { opacity: 1; border-color: var(--ocean); }

/* Layout Principal 2 Colunas */
.section-main { padding: 30px 0 60px; }
.main-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 35px; align-items: start; }

.capacity-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; background: var(--sand); padding: 15px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 28px; }
.cap-item { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.cap-item i { color: var(--ocean); font-size: 1.1rem; }

.sec-title { font-size: 1.35rem; color: var(--ocean-dark); margin: 26px 0 14px; font-weight: 800; }
.highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.highlight-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.highlight-card i { font-size: 1.3rem; color: var(--ocean); margin-top: 3px; }
.highlight-card strong { display: block; font-size: 0.92rem; }
.highlight-card span { font-size: 0.8rem; color: var(--muted); }

.description-text { color: #334155; font-size: 0.96rem; line-height: 1.7; }

/* Comodidades Infinitas */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.amenity-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sand); border-radius: 8px; font-size: 0.9rem; font-weight: 600; }
.amenity-item i { color: var(--green); font-size: 1.1rem; width: 20px; text-align: center; }

/* Card Lateral de Disponibilidade */
.booking-card { position: sticky; top: 85px; background: var(--white); border: 2px solid var(--ocean); border-radius: 12px; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.booking-status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; margin-bottom: 16px; }
.booking-card h4 { font-size: 1.15rem; color: var(--ocean-dark); margin-bottom: 4px; }
.booking-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.availability-box { background: var(--sand); padding: 14px; border-radius: 8px; font-size: 0.88rem; border-left: 4px solid var(--ocean); margin-bottom: 16px; }
.booking-capacity-summary { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; font-size: 0.9rem; }
.btn-booking-whats { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #25d366; color: #fff; text-decoration: none; padding: 14px; border-radius: 8px; font-weight: 800; font-size: 1rem; transition: background 0.2s; }
.btn-booking-whats:hover { background: #1ebe5b; }
.no-fees { display: block; text-align: center; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }

/* Seções Gerais */
.section { padding: 55px 0; }
.bg-sand { background: var(--sand); }

/* Avaliações */
.reviews-header-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.score-badge-large { background: var(--ocean-dark); color: #fff; font-size: 1.4rem; font-weight: 800; padding: 10px 14px; border-radius: 8px 8px 8px 0; }
.reviews-header-bar strong { display: block; font-size: 1.1rem; }
.reviews-header-bar span { font-size: 0.85rem; color: var(--muted); }

.categories-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 20px; }
.cat-bar-top { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 5px; font-weight: 600; }
.progress-track { width: 100%; height: 8px; background: #cbd5e1; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--ocean-dark); border-radius: 4px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.review-card { background: var(--white); padding: 20px; border-radius: 10px; border: 1px solid var(--border); }
.reviewer-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--ocean); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.reviewer-info span { display: block; font-size: 0.78rem; color: var(--muted); }
.review-quote { font-size: 0.9rem; color: #334155; font-style: italic; }

/* FAQ e Regras */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 35px; }
.faq-card { border: 1px solid var(--border); border-radius: 8px; padding: 15px 18px; cursor: pointer; background: var(--white); }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.93rem; }
.faq-q-left { display: flex; align-items: center; gap: 10px; }
.faq-q-left i { color: var(--ocean); font-size: 1.1rem; }
.faq-answer { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.88rem; color: #475569; }
.faq-card.open .faq-answer { display: block; }

.rules-box { background: #fffbeb; border: 1px solid #fde68a; padding: 22px; border-radius: 10px; }
.rules-box h4 { color: #92400e; margin-bottom: 10px; }
.rules-content { font-size: 0.9rem; color: #78350f; }

/* Mapa */
.map-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 18px; }
.btn-outline { border: 2px solid var(--ocean); color: var(--ocean); text-decoration: none; padding: 8px 16px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; }
.map-frame-wrapper { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

/* Cards de Outras Acomodações no Final */
.other-units-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.other-unit-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--white); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.other-unit-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); border-color: var(--ocean); }
.other-unit-img { position: relative; height: 200px; background: #cbd5e1; }
.other-unit-img img { width: 100%; height: 100%; object-fit: cover; }
.other-unit-img .status-badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.other-unit-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.other-unit-body h4 { font-size: 1.1rem; color: var(--ocean-dark); }
.other-unit-body p { font-size: 0.85rem; color: var(--muted); }
.other-unit-specs { display: flex; gap: 14px; font-size: 0.85rem; font-weight: 600; margin: 4px 0; }
.btn-ver-imovel { margin-top: auto; color: var(--ocean); font-weight: 800; font-size: 0.9rem; }

/* Lightbox Modal */
.lightbox-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000; align-items: center; justify-content: center; }
.lightbox-modal.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 85vh; text-align: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 6px; }
.lightbox-counter { color: #fff; margin-top: 10px; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2.5rem; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 2rem; padding: 12px 18px; cursor: pointer; border-radius: 6px; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* Rodapé & WhatsApp Flutuante */
.footer { background: var(--ocean-dark); color: #cbd5e1; padding: 40px 0 0; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 25px; padding-bottom: 30px; }
.footer h3 { color: #fff; margin-bottom: 8px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #bae6fd; text-decoration: none; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 15px 0; text-align: center; font-size: 0.82rem; }
.whatsapp-float { position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); z-index: 1000; text-decoration: none; }

@media (max-width: 1080px) {
    .topbar-info { display: none; }
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ocean-dark); padding: 18px; }
    .nav-menu.active { display: flex; }
    .main-grid, .highlights-grid, .faq-grid { grid-template-columns: 1fr; }
    .photo-mosaic { height: 260px; grid-template-columns: 1fr !important; }
    .photo-mosaic .mosaic-item:not(.item-0) { display: none; }
}