/* ============================================================
   Chácara Galo Gordo — Estilos do Tour Virtual (tour.html)
   ============================================================ */

:root {
    --primary-green: #2C5530;
    --light-green:   #4A7C4F;
    --green-soft:    #7BAF7E;
    --bg-color:      #F4F0E6;
    --text-main:     #282216;
    --text-muted:    #6B6254;
    --card-bg:       #FFFFFF;
    --border-color:  #D9D0BF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);

    /* --- FUNDO DE FAZENDA SUPER SUAVE --- */
    background-color: var(--bg-color);
    background-image:
        url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d0c6b4' fill-opacity='0.12' fill-rule='evenodd'%3E%3Cpath d='M40 30L20 50v20h40V50L40 30zm-5 40v-15h10v15H35z'/%3E%3Cpath d='M120 100c-8 0-15 7-15 15s7 15 15 15s15-7 15-15s-7-15-15-15zm-2 30v15h4v-15h-4z'/%3E%3Cpath d='M20 110l5-10 5 10 5-10 5 10 5-10 5 10v10H20v-10z'/%3E%3Cpath d='M80 60v15h-5v-15h5zm15 0v15h-5v-15h5zm-25 5h30v3H70v-3zm0 5h30v3H70v-3z'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23d0c6b4' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* --- MENU SUPERIOR FIXO --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0.6rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-green);
}

.navbar .logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.navbar .logo img:hover { transform: scale(1.05); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    transition: color 0.3s;
}

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

.nav-btn {
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover { background-color: var(--light-green); transform: translateY(-2px); }

/* --- ESTILO DO HAMBÚRGUER --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.hamburger:hover {
    color: var(--light-green);
}

/* --- CABEÇALHO DO TOUR --- */
.tour-page-header {
    margin-top: 100px;
    padding: 3rem 5% 2rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(2px);
}

.tour-page-header h1 {
    font-family: 'Lora', serif;
    color: var(--primary-green);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tour-page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- CONTÊINER DO TOUR --- */
.tour-refined-container {
    max-width: 1000px;
    margin: 2rem auto 5rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.panorama-stage {
    position: relative;
    width: 100%;
    height: 500px;
    border-bottom: 1px solid var(--border-color);
}

#panorama {
    width: 100%;
    height: 100%;
}

/* --- AVISO "FOTO 360 EM BREVE" --- */
.coming-soon {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
    background-color: var(--primary-green);
    background-size: cover;
    background-position: center;
}

.coming-soon.active {
    display: flex;
}

.coming-soon .cs-icon {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.coming-soon h3 {
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
}

.coming-soon p {
    max-width: 440px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.92;
}

.coming-soon .cs-badge {
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.scene-menu-container {
    padding: 2.5rem;
}

.scene-menu-header {
    text-align: center;
    margin-bottom: 2rem;
}

.scene-menu-header h3 {
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.scene-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.scene-card {
    background-color: #faf9f5;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.scene-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--light-green);
}

.scene-card.active {
    border-color: var(--primary-green);
    background-color: rgba(44, 95, 45, 0.05);
    cursor: default;
}

.scene-card.active:hover {
    transform: none;
    box-shadow: none;
}

.scene-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.scene-card h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

/* --- RESPONSIVIDADE COM MENU HAMBÚRGUER --- */
@media (max-width: 768px) {
    .navbar .logo { font-size: 1.2rem; }
    .navbar .logo img { height: 40px; }
    .tour-page-header { padding: 2rem 1rem; margin-top: 90px; }
    .tour-page-header h1 { font-size: 2rem; }
    .panorama-stage { height: 350px; }
    .scene-menu-container { padding: 1.5rem; }
    .scene-cards-grid { grid-template-columns: 1fr 1fr; }

    /* Mostra o ícone hambúrguer */
    .hamburger { display: block; }

    /* Esconde e estiliza a lista suspensa */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);

        /* Efeito de deslizar de cima para baixo */
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
        z-index: 999;
    }

    /* Classe ativada pelo JavaScript para mostrar o menu */
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }

    .nav-btn {
        text-align: center;
        width: 100%;
        display: block;
    }
}

@media (max-width: 480px) {
    .scene-cards-grid { grid-template-columns: 1fr; }
}
