/* Estilos Gerais do Frontend - Casas de Luxo Alugar */

:root {
    --primary: #194e71;
    --primary-rgb: 25, 78, 113;
    --secondary: #143d59;
    --accent: #C5A880;
    --accent-hover: #B0946D;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
    --text-color: #2D3748;
    --text-muted: #718096;
    --border: #E2E8F0;
    --success: #2EC4B6;
    --max-width: 1200px;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* clip: não cria containing block para position:fixed (diferente de hidden) */
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    /* Evita scroll horizontal sem cortar fixed elements */
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

p {
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--primary);
    font-weight: 700;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--accent);
    color: var(--primary);
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
}

/* Header / Navbar com Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background-color: rgba(25, 78, 113, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
}

.logo-lux {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #FFFFFF;
    line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.nav-link--active {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(25, 78, 113, 0.45) 0%, rgba(20, 61, 89, 0.80) 100%), url('https://images.unsplash.com/photo-1499793983690-e29da59ef1c2?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    text-align: center;
    color: #FFFFFF;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: clamp(16px, 2.5vw, 19px);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Seções Gerais */
.section {
    padding: 90px 0;
}

/* Hero das páginas dedicadas (praia, casas, condomínio) */
.page-hero {
    padding: clamp(80px, 15vw, 120px) 0 clamp(40px, 8vw, 60px);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.section-bg {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* Casa Principal Destaque */
.featured-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.featured-img-container {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-box:hover .featured-img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent);
    color: var(--primary);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-content {
    padding: 50px;
}

.featured-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-desc {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Grid de Casas Secundárias */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.house-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.house-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
}

.house-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.house-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.house-card:hover .house-img {
    transform: scale(1.06);
}

.house-price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
}

.house-card-content {
    padding: 24px;
}

.house-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.house-card-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.house-card-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.house-card-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.house-card-actions .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
}

/* Condomínio Section */
.condo-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.condo-content h2 {
    margin-bottom: 20px;
}

.condo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.condo-feature-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.condo-feature-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary);
}

.condo-feature-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.condo-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.condo-img-card {
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.condo-img-card:hover {
    transform: scale(1.03);
}

.condo-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detalhes da Casa */
.detail-header-spacing {
    height: 80px;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-item-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-item-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery-item-5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
}

.detail-main {
    background-color: var(--white);
}

.detail-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.detail-short-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}

.detail-specs-bar {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.spec-box {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.detail-desc-content {
    font-size: 15px;
    color: var(--text-color);
    text-align: justify;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
    margin-top: 15px;
}

.amenity-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.amenity-item::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

/* Sidebar de Reserva */
.reservation-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: sticky;
    top: 110px;
    height: fit-content;
}

.price-display {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.price-display-label {
    font-size: 13px;
    color: var(--text-muted);
}

.price-display-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-title);
}

.reservation-info-list {
    list-style: none;
    margin-bottom: 24px;
}

.reservation-info-list li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

/* Botão Flutuante WhatsApp (Somente Círculo) */
.whatsapp-float-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3), 0 2px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gentlescale 3s infinite ease-in-out;
}

.whatsapp-float-btn:hover {
    background-color: #20BA5A;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0,0,0,0.12);
}

.whatsapp-float-btn svg {
    transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover svg {
    transform: rotate(15deg) scale(1.05);
}

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

/* =============================================================
   MENU MOBILE — Painel lateral + Hambúrguer
   Só ativo em telas ≤ 768px
   ============================================================= */

/* --- Botão hambúrguer --- */
.hamburger {
    display: none; /* oculto no desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
    /* z-index abaixo do painel mas acima do conteúdo */
    position: relative;
    z-index: 1200;
}

.hamburger:hover,
.hamburger:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    0.2s  ease,
                width      0.2s  ease;
}

/* Animação → X */
.hamburger.is-open .hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger__bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.is-open .hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Overlay escuro --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 33, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Painel lateral --- */
.nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 82vw);
    background: linear-gradient(160deg, #0c3351 0%, #194e71 60%, #163e58 100%);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Garante que não seja cortado em celulares pequenos */
    min-width: 260px;
}

.nav-panel.is-open {
    transform: translateX(0);
}

/* Bloquear scroll da página quando menu aberto */
body.menu-open {
    overflow: hidden;
}

/* --- Cabeçalho do painel --- */
.nav-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.nav-panel__logo {
    flex-shrink: 0;
}

/* Botão fechar (X) */
.nav-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.nav-panel__close:hover,
.nav-panel__close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Links do painel --- */
.nav-panel__links {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    flex: 1;
}

.nav-panel__link {
    display: flex;
    align-items: center;
    gap: 14px;
    /* Altura mínima 44px para toque confortável */
    min-height: 56px;
    padding: 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.18s ease,
                color     0.18s ease,
                border-left-color 0.18s ease;
    text-decoration: none;
}

.nav-panel__link:hover,
.nav-panel__link:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-left-color: var(--accent);
    outline: none;
}

.nav-panel__link--active {
    color: var(--accent) !important;
    background: rgba(197, 168, 128, 0.1);
    border-left-color: var(--accent) !important;
    font-weight: 600;
}

/* Ícone do link */
.nav-panel__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: inherit;
    opacity: 0.75;
    transition: opacity 0.18s ease;
}

.nav-panel__link:hover .nav-panel__icon,
.nav-panel__link--active .nav-panel__icon {
    opacity: 1;
    color: var(--accent);
}

/* --- Rodapé do painel: botão WhatsApp --- */
.nav-panel__footer {
    padding: 20px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.nav-panel__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 14px 20px;
    background: #25D366;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.nav-panel__whatsapp:hover,
.nav-panel__whatsapp:focus-visible {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* --- Respeitar prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    .hamburger__bar,
    .nav-panel,
    .nav-overlay,
    .nav-panel__link,
    .nav-panel__close,
    .nav-panel__whatsapp {
        transition: none !important;
        animation: none !important;
    }
}

/* =============================================================
   Botão WhatsApp verde — desktop
   ============================================================= */
.btn-nav.btn-nav-whatsapp {
    background-color: #25D366 !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav.btn-nav-whatsapp:hover {
    background-color: #1ebe5d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Animações globais */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =============================================================
   RESPONSIVIDADE UNIFICADA — 1024px | 768px | 480px
   ============================================================= */

/* ---------- TABLET GRANDE (≤1024px) ---------- */
@media (max-width: 1024px) {
    .featured-box { grid-template-columns: 1fr; gap: 0; }
    .featured-img-container { height: 360px; }
    .featured-content { padding: 36px; }
    .houses-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
    .condo-box { grid-template-columns: 1fr; gap: 30px; }
    .detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .praia-features { grid-template-columns: repeat(2, 1fr); }
    .condo-grid-new { grid-template-columns: repeat(2, 1fr); }

    /* Ajustar abas/menu do topo para não quebrar ou sumir no tablet */
    .nav-links {
        gap: 16px;
    }
    .nav-link {
        font-size: 13px;
        letter-spacing: 0.2px;
    }
    .logo-lux {
        font-size: 17px;
    }
    .logo-sub {
        font-size: 9px;
        letter-spacing: 3px;
    }
    .btn-nav.btn-nav-whatsapp {
        padding: 8px 16px !important;
        font-size: 13px;
    }
}

/* ---------- TABLET / MOBILE (≤768px) ---------- */
@media (max-width: 768px) {

    /* Navbar: ocultar links desktop, exibir hambúrguer */
    .nav-links   { display: none; }
    .hamburger   { display: flex; }

    /* Navbar menor em mobile */
    .navbar-container { height: 64px; }

    /* Page Hero */
    .page-hero { padding: 80px 0 40px !important; }
    .page-hero h1 { font-size: clamp(22px, 6vw, 34px) !important; }
    .page-hero p { font-size: 15px !important; max-width: 90% !important; margin: 0 auto !important; }

    /* Seções */
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }

    /* Featured */
    .featured-img-container { height: 280px; }
    .featured-content { padding: 28px; }
    .featured-title { font-size: 22px; }

    /* --- Casas Grid --- */
    .houses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* --- Galeria Mosaico (detalhes) --- */
    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 160px;
        gap: 10px;
    }

    .gallery-item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .gallery-item-2 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        display: block;
    }

    .gallery-item-3 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        display: block;
    }

    .gallery-item-4,
    .gallery-item-5 {
        display: none;
    }

    /* Praia e Condomínio foram movidos para o final do arquivo para respeitar a cascata do CSS */

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* --- Condomínio Box antigo --- */
    .condo-box {
        grid-template-columns: 1fr;
    }

    .condo-features {
        grid-template-columns: 1fr;
    }

    .condo-img-grid {
        grid-template-columns: 1fr;
    }

    /* --- WhatsApp float --- */
    .whatsapp-float-btn {
        width: 54px;
        height: 54px;
        bottom: 25px;
        right: 25px;
    }
}

/* ---------- MOBILE (≤480px) ---------- */
@media (max-width: 480px) {

    /* --- Container padding reduzido --- */
    .container {
        padding: 0 16px;
    }

    /* --- Seções --- */
    .section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* --- Navbar --- */
    .navbar-container {
        height: 60px;
    }

    /* --- Page Hero (páginas dedicadas) --- */
    .page-hero {
        padding: 70px 0 30px !important;
    }

    .page-hero h1 {
        font-size: clamp(20px, 7vw, 28px) !important;
        margin-bottom: 10px !important;
    }

    .page-hero p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* --- Hero principal --- */
    .hero {
        padding-top: 70px;
        min-height: 85vh;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    /* --- Featured --- */
    .featured-img-container {
        height: 230px;
    }

    .featured-content {
        padding: 20px 16px 24px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-content > div[style] {
        flex-direction: column;
    }

    .featured-content .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* --- Casas --- */
    .houses-grid {
        grid-template-columns: 1fr;
    }

    .house-card-content {
        padding: 18px;
    }

    .house-card-actions {
        flex-direction: column;
        gap: 8px;
    }

    /* --- Galeria detalhes: só foto principal --- */
    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
        gap: 0;
    }

    .gallery-item-1 {
        grid-column: 1;
        grid-row: 1;
    }

    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4,
    .gallery-item-5 {
        display: none;
    }

    /* Praia e Condomínio foram movidos para o final do arquivo para respeitar a cascata do CSS */

    /* --- Lightbox detalhes --- */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links li {
        margin-bottom: 6px;
    }
}


/* =============================================================
   COMPONENTES: Condomínio (Cards + Lightbox)
   Usado em: home.php, condominio.php
   ============================================================= */

.condo-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.condo-card-new {
    background: #FFF;
    border: 1px solid #ECEEF4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.015);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.condo-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(25, 78, 113, 0.08) !important;
    border-color: #ced4da !important;
}

.condo-card-img-container {
    height: 190px;
    overflow: hidden;
    position: relative;
    background-color: #f1f3f5;
}

.condo-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.condo-card-new:hover .condo-card-img-container img {
    transform: scale(1.05);
}

.condo-card-info {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.condo-card-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #194e71;
    margin-bottom: 8px;
}

.condo-card-info p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4A5568;
    font-weight: 300;
    margin: 0;
}

/* Lightbox */
.condo-lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(25, 78, 113, 0.96);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.condo-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.condo-lightbox-close {
    position: absolute; top: 30px; right: 40px;
    font-size: 44px; color: #FFF;
    background: none; border: none; cursor: pointer;
    z-index: 10002; transition: color 0.2s ease;
}

.condo-lightbox-close:hover { color: var(--accent); }

.condo-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 36px; color: #FFF;
    background: rgba(255,255,255,0.05);
    border: none; cursor: pointer;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10002; transition: all 0.2s ease;
}

.condo-lightbox-nav:hover { background-color: var(--accent); color: #194e71; }

.condo-prev { left: 40px; }
.condo-next { right: 40px; }

.condo-lightbox-container {
    width: 90%; max-width: 900px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 10001;
}

.condo-lightbox-image-box {
    width: 100%; height: 65vh;
    display: flex; align-items: center; justify-content: center;
}

.condo-lightbox-image-box img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.condo-lightbox-meta {
    width: 100%; text-align: center;
    margin-top: 25px; color: #FFF;
    padding: 0 20px; box-sizing: border-box;
}

.condo-lightbox-meta h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; font-weight: 700; color: #FFF; margin-bottom: 10px;
}

.condo-lightbox-meta p {
    font-size: 15px; color: rgba(255,255,255,0.8);
    max-width: 700px; margin: 0 auto 12px auto;
    line-height: 1.5; font-weight: 300;
}

.condo-lightbox-counter {
    font-size: 12px; color: var(--accent);
    font-weight: 700; letter-spacing: 1px;
}



/* =============================================================
   COMPONENTES: Praia do Rosa (Galeria + Cards + Bloco Texto)
   Usado em: home.php, praia.php
   ============================================================= */

.praia-desc-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.praia-desc-img {
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 20px 50px rgba(25, 78, 113, 0.15);
}

.praia-desc-img img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease;
}

.praia-desc-img:hover img { transform: scale(1.04); }

.praia-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 60px;
}

.praia-gallery-item {
    border-radius: 10px; overflow: hidden;
    position: relative; background: #e2e8f0;
}

.praia-gallery-item:nth-child(1) { grid-column: span 2; height: 280px; }
.praia-gallery-item:nth-child(2) { height: 280px; }
.praia-gallery-item:nth-child(3) { height: 200px; }
.praia-gallery-item:nth-child(4) { height: 200px; }
.praia-gallery-item:nth-child(5) { height: 200px; }
.praia-gallery-item:nth-child(6) { grid-column: span 2; height: 200px; }
.praia-gallery-item:nth-child(7) { height: 200px; }
.praia-gallery-item:nth-child(8) { height: 200px; }
.praia-gallery-item:nth-child(9) { height: 200px; }

.praia-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s ease; display: block;
}

.praia-gallery-item:hover img { transform: scale(1.06); }

.praia-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-top: 20px;
}

.praia-feature-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 28px 22px; text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.praia-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(25, 78, 113, 0.1);
    border-color: var(--accent);
}

.praia-feature-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, rgba(25,78,113,0.08), rgba(197,168,128,0.12));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px auto; color: var(--primary);
    transition: all 0.3s ease;
}

.praia-feature-card:hover .praia-feature-icon {
    background: var(--primary); color: #fff;
}

.praia-feature-card h4 {
    font-family: var(--font-title); font-size: 15px;
    font-weight: 700; color: var(--primary); margin-bottom: 10px;
}

.praia-feature-card p {
    font-size: 13.5px; color: var(--text-muted);
    line-height: 1.6; font-weight: 300; margin: 0; text-align: center;
}

/* =============================================================
   RESPONSIVIDADE DOS COMPONENTES (MOVILIZADOS APÓS AS BASES)
   ============================================================= */

@media (max-width: 768px) {
    /* --- Praia --- */
    .praia-desc-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .praia-desc-img {
        height: 260px;
        order: -1;
    }

    .praia-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .praia-gallery-item:nth-child(1),
    .praia-gallery-item:nth-child(6) {
        grid-column: span 1;
        height: 200px;
    }

    .praia-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* --- Condomínio --- */
    .condo-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .condo-lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
    .condo-prev { left: 10px; }
    .condo-next { right: 10px; }
    .condo-lightbox-close { top: 20px; right: 20px; font-size: 36px; }
    .condo-lightbox-image-box { height: 50vh; }
    .condo-lightbox-meta h4 { font-size: 18px; }
    .condo-lightbox-meta p { font-size: 13.5px; }
}

@media (max-width: 480px) {
    /* --- Praia --- */
    .praia-desc-img {
        height: 220px;
    }

    .praia-gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .praia-gallery-item,
    .praia-gallery-item:nth-child(1),
    .praia-gallery-item:nth-child(6) {
        height: 180px;
        grid-column: span 1;
    }

    .praia-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .praia-feature-card {
        padding: 20px 16px;
    }

    /* --- Condomínio --- */
    .condo-grid-new {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .condo-lightbox-image-box {
        height: 40vh;
    }

    .condo-lightbox-container {
        width: 95%;
    }
}


