:root {
    --primary-green: #5b7046;
    --primary-dark: #1f281b;
    --bg-sand: #f7f5f0;
    --bg-white: #ffffff;
    --accent-gold: #c0a062;
    --text-main: #222920;
    --text-muted: #6b7569;
    --border-subtle: rgba(91, 112, 70, 0.15);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 12px;
}

html, body { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-sand);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 105px; /* Altura combinada da barra superior + navbar no desktop */
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 1. BARRA VERDE SUPERIOR (Desktop) */
.agency-top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 8px 40px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    z-index: 10001;
}

/* Link do e-mail na barra verde */
.agency-top-bar a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: var(--transition);
}
.agency-top-bar a:hover {
    color: var(--accent-gold) !important;
}

.agency-top-bar select {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

/* 2. BARRA DE MENU (Desktop - Colada abaixo da barra verde) */
.navbar {
    position: fixed !important;
    top: 35px !important;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo svg { width: 38px; height: 38px; }
.brand-logo-text { display: flex; flex-direction: column; }
.brand-logo-text .title { font-family: 'Playfair Display', serif; font-size: 1.2rem; letter-spacing: 2px; color: var(--primary-dark); line-height: 1; font-weight: 600; }
.brand-logo-text .subtitle { font-size: 0.58rem; letter-spacing: 3px; text-transform: uppercase; color: var(--primary-green); margin-top: 3px; font-weight: 500; }

.brand-logo img {
    width: 44px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 400; font-size: 0.88rem; letter-spacing: 1px; text-transform: uppercase; transition: var(--transition); opacity: 0.85; position: relative; padding-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--primary-green); }

.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #ffffff; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 8px; border: 1px solid var(--border-subtle); padding: 8px 0; list-style: none; z-index: 1050; }
.dropdown-menu a { padding: 10px 18px; font-size: 0.8rem; color: var(--text-main); text-transform: none; font-weight: 500; display: block; transition: var(--transition); }
.dropdown-menu a:hover { background: var(--bg-sand); color: var(--primary-green); }
.nav-links li.has-dropdown:hover .dropdown-menu { display: block; }

.mobile-toggle { display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--primary-dark); cursor: pointer; }

/* Editorial Grid */
.editorial-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 40px; }
.editorial-left-col .tagline { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 3px; color: var(--primary-green); font-weight: 600; margin-bottom: 15px; display: block; }
.editorial-left-col h2 { font-size: 2.8rem; line-height: 1.15; color: var(--primary-dark); margin: 0; }
.editorial-right-col p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.7; }

.studio-spec-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.spec-badge { background: var(--bg-sand); border: 1px solid var(--border-subtle); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: var(--primary-dark); }

/* Floating Lang Switcher */
.floating-lang-btn { position: fixed !important; bottom: 20px !important; right: 20px !important; z-index: 99999 !important; background: #ffffff; border: 1px solid var(--border-subtle); padding: 10px 18px; border-radius: 30px; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); transition: var(--transition); }
.floating-lang-btn:hover { transform: translateY(-3px); border-color: var(--primary-green); }

.lang-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 20, 13, 0.4); backdrop-filter: blur(4px); z-index: 100000; justify-content: center; align-items: center; }
.lang-modal-overlay.active { display: flex; }
.lang-modal-card { background: #ffffff; border-radius: 12px; padding: 30px; width: 90%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); position: relative; }
.lang-modal-close { position: absolute; top: 15px; right: 18px; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; background: none; border: none; }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 15px; }
.lang-option { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border-subtle); cursor: pointer; transition: var(--transition); background: #faf9f6; font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); }
.lang-option:hover, .lang-option.active { border-color: var(--primary-green); background: #ffffff; box-shadow: 0 4px 12px rgba(91, 112, 70, 0.12); }

/* Hero Slider */
.hero-slider-wrap { 
    position: relative; 
    height: 80vh; 
    min-height: 550px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff;
    scroll-margin-top: 105px;
}
.hero-slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 1; }
.hero-slide-bg.active { opacity: 1; }
/* .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(31, 40, 27, 0.45) 0%, rgba(31, 40, 27, 0.8) 100%); z-index: 2; } */
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(31, 40, 27, 0.25) 0%, rgba(31, 40, 27, 0.6) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 850px; padding: 0 20px 60px 20px; }
.hero-tagline { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 5px; color: var(--bg-sand); margin-bottom: 20px; display: block; }
.hero-content h1 { font-size: 3.8rem; line-height: 1.15; margin-bottom: 18px; transition: opacity 0.5s ease; }
.hero-content p { font-size: 1.1rem; font-weight: 300; opacity: 0.9; transition: opacity 0.5s ease; }

.slider-controls { position: absolute; bottom: 80px; z-index: 4; display: flex; gap: 10px; align-items: center; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: #ffffff; width: 28px; border-radius: 10px; }

/* Floating Search Bar */
.floating-search-wrap { max-width: 1150px; margin: -45px auto 0 auto; padding: 0 20px; position: relative; z-index: 100; }
.floating-search-bar { background: #ffffff; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid var(--border-subtle); border-radius: 12px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr) minmax(160px, 0.8fr) minmax(180px, auto); align-items: center; overflow: hidden; }
.search-col { padding: 14px 20px; border-right: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; justify-content: center; height: 100%; }
.search-col-btn { padding: 0; border-right: none; height: 100%; display: flex; }
.search-col label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary-green); font-weight: 600; margin-bottom: 4px; }
.search-col select, .search-col input { border: none; outline: none; background: transparent; font-size: 0.88rem; font-weight: 500; color: var(--text-main); font-family: inherit; width: 100%; cursor: pointer; }
.btn-search-trigger { background: var(--primary-green); color: #ffffff; border: none; height: 100%; width: 100%; min-height: 64px; padding: 0 28px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
.btn-search-trigger:hover { background: var(--primary-dark); }

/* COMPENSAÇÃO DE SCROLL EM DESKTOP (105px exatamente) */
section.page-section { 
    padding: 80px 20px; 
    scroll-margin-top: 105px; 
}

section.page-section.alt-bg { background-color: #ffffff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; color: var(--primary-green); font-weight: 600; display: block; margin-bottom: 10px; }
.section-header h2 { font-size: 2.8rem; color: var(--primary-dark); margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card-studio-preview { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-subtle); transition: var(--transition); }
.card-studio-preview:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.studio-preview-img { height: 280px; background-size: cover; background-position: center; }
.studio-preview-body { padding: 30px; }
.studio-preview-body h3 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 8px; }

.btn-editorial { display: inline-block; border: 1px solid var(--primary-dark); color: var(--primary-dark); padding: 14px 32px; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; text-decoration: none; transition: var(--transition); background: transparent; cursor: pointer; }
.btn-editorial:hover { background: var(--primary-dark); color: #fff; }

.amenities-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 30px 0; }
.amenity-item { background: var(--bg-sand); padding: 18px; border-radius: 8px; border: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.amenity-item i { color: var(--primary-green); font-size: 1.1rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 25px; }
.gallery-card { height: 220px; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-card:hover img { transform: scale(1.06); }

.gallery-view-more-card { background: var(--primary-dark); color: #ffffff; border-radius: var(--radius); height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); text-align: center; padding: 20px; }
.gallery-view-more-card:hover { background: var(--primary-green); transform: translateY(-4px); }


/* Container do Google Maps */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid var(--border-subtle);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
}

/* =========================================================
   LIGHTBOX MODAL / GALERIA DE FOTOS (CORRIGIDO PARA DESKTOP E MOBILE)
   ========================================================= */
.lightbox-modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 20, 13, 0.96); 
    backdrop-filter: blur(10px); 
    z-index: 200000 !important; /* Coloca a galeria acima de TODAS as barras de menu */
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
}

.lightbox-modal.active { display: flex; }

.lightbox-content { 
    position: relative; 
    max-width: 92%; 
    max-height: 82vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.lightbox-content img { 
    max-width: 100%; 
    max-height: 78vh; 
    border-radius: 8px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.lightbox-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    border: none; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    font-size: 1.3rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 200010; 
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-arrow.prev { left: -65px; }
.lightbox-arrow.next { right: -65px; }

/* Botão de Fechar da Lightbox — Sempre no topo visível */
.lightbox-close {
    position: fixed !important;
    top: 20px !important; 
    right: 25px !important;
    color: #ffffff !important;
    font-size: 2.2rem !important;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 200020 !important; /* Sempre acima do fundo da lightbox */
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(192, 160, 98, 0.9) !important; /* Destaque Gold ao passar o rato */
    border-color: #fff !important;
}

.lightbox-caption { 
    color: rgba(255,255,255,0.9); 
    margin-top: 15px; 
    font-size: 0.95rem; 
    text-align: center; 
}

.booking-card { background: var(--bg-white); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border-subtle); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; color: var(--primary-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; border: 1px solid var(--border-subtle); border-radius: 6px; outline: none; font-family: inherit; font-size: 0.92rem; background: #fcfbf8; }

/* FOOTER - 3 Colunas Perfeitamente Divisíveis */
footer { 
    background: var(--primary-dark); 
    color: #fff; 
    padding: 80px 20px 40px 20px; 
}

.footer-grid { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; 
    align-items: start; 
    padding-bottom: 40px; 
    border-bottom: 1px solid rgba(255,255,255,0.08); 
}

.footer-grid img {
    max-width: 100%;
    height: auto;
}

/* Remove sublinhado e força a cor original do texto em todos os links do rodapé */
footer a {
    color: inherit !important;
    text-decoration: none !important;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-gold) !important; /* Fica num tom dourado subtil ao passar o rato */
    text-decoration: none !important;
}

/* =========================================================
   REGRAS DE RESPONSIVIDADE PARA TELEMÓVEL E TABLET
   ========================================================= */
@media (max-width: 992px) {
    body {
        padding-top: 65px; /* Altura exata da navbar mobile */
    }

    /* Ocultar barra verde superior em telemóvel */
    .agency-top-bar {
        display: none !important;
    }

    /* Fixar a navbar no topo absoluto (top: 0) */
    .navbar { 
        top: 0 !important;
        padding: 12px 20px; 
    }

    /* COMPENSAÇÃO DE SCROLL EM MOBILE (65px para alinhar o topo das secções) */
    section.page-section {
        padding: 60px 20px;
        scroll-margin-top: 65px;
    }

    .hero-slider-wrap {
        scroll-margin-top: 65px;
    }

    /* ESCONDE A DESCRIÇÃO NO SLIDER EM MOBILE */
    .hero-content p {
        display: none !important;
    }

    .mobile-toggle { display: block; }

    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--bg-sand); 
        flex-direction: column; 
        padding: 20px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
        z-index: 10050;
    }

    .nav-links.show { display: flex; }

    .hero-content h1 { font-size: 2.2rem; }
    .floating-search-wrap { margin-top: -30px; }
    .floating-search-bar { grid-template-columns: 1fr; }
    .search-col { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); }
    .grid-2, .grid-3, .form-grid-2, .form-grid-3, .editorial-split-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* Setas da lightbox em mobile sobrepostas à imagem */
    .lightbox-arrow.prev { left: 10px; }
    .lightbox-arrow.next { right: 10px; }

    .lightbox-close {
        top: 15px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.8rem !important;
    }

    .footer-grid { 
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .brand-logo img {
        width: 36px;
        height: 35px;
    }

    .map-container {
        min-height: 280px;
    }
    .map-container iframe {
        min-height: 280px;
    }
}