/* LendPlace - Estilo Clássico */

/* Variáveis e Estilos Globais */
:root {
    --bg-color: #F0EDE3;
    --title-color: #2A323E;
    --brand-grad-1: #B07F52;
    --brand-grad-2: #CB9869;
    --brand-grad-3: #9E6A41;
    --text-color: #4A4A4A;
    --brand-gradient: linear-gradient(135deg, #B07F52 0%, #CB9869 50%, #9E6A41 100%);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    line-height: 1.6;
    visibility: visible; 
    opacity: 1;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--title-color);
    font-weight: 700;
}

/* Tipografia Responsiva Mobile */
@media (max-width: 768px) {
    h1.display-4, .hero-title { font-size: 2.5rem !important; }
    h2.display-5 { font-size: 2rem !important; }
    h3.display-6 { font-size: 1.75rem !important; }
    p.lead { font-size: 1rem !important; }
}

.text-brand-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    background-color: rgba(240, 237, 227, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(42, 50, 62, 0.05);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

.nav-link {
    color: var(--title-color) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 10px;
    cursor: pointer;
}

.brand-logo {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.brand-logo:hover { transform: scale(1.05); }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CAMINHO DA IMAGEM: Ajuste conforme sua pasta no FTP */
    background: linear-gradient(rgba(42, 50, 62, 0.4), rgba(42, 50, 62, 0.6)), 
                url('../images/hero-01.jpg') no-repeat center center; 
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    text-align: center;
    padding: 100px 0 60px;
}
@media (min-width: 992px) { .hero-section { background-attachment: fixed; } }

.hero-title {
    font-size: 3.5rem;
    color: white !important;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Booking Bar */
.booking-container {
    margin: 40px auto 0;
    width: 95%;
    max-width: 1050px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 10;
    position: relative;
    padding: 0;
}
.booking-bar { display: flex; align-items: stretch; justify-content: space-between; }
.booking-item {
    flex: 1; padding: 15px 25px; border-right: 1px solid rgba(0,0,0,0.06);
    text-align: left; display: flex; flex-direction: column; justify-content: center;
}
.booking-item:first-child { border-radius: 12px 0 0 12px; }
.booking-item:hover { background-color: #fcfcfc; }
.booking-label {
    display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    color: var(--title-color); margin-bottom: 4px; letter-spacing: 1.2px; opacity: 0.8;
}
.booking-input {
    width: 100%; border: none; background: transparent; font-family: 'Inter', sans-serif;
    font-size: 0.95rem; color: #444; font-weight: 500; outline: none; cursor: pointer; padding: 0;
}
.booking-btn {
    background-color: var(--title-color); color: white; border: none; padding: 0 45px;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; transition: all 0.4s ease;
    text-transform: uppercase; border-radius: 0 12px 12px 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 991px) {
    .booking-bar { flex-direction: column; }
    .booking-item { border-right: none; border-bottom: 1px solid #eee; padding: 15px 20px; }
    .booking-item:first-child { border-radius: 12px 12px 0 0; }
    .booking-btn { width: 100%; height: 60px; border-radius: 0 0 12px 12px !important; }
}

/* Layout */
.section-padding { padding: 80px 0; }
@media (max-width: 768px) { .section-padding { padding: 50px 0; } }

/* Buttons */
.btn-premium {
    padding: 12px 30px; border-radius: 50px; border: none; font-weight: 600; font-size: 0.9rem;
    letter-spacing: 1px; transition: all 0.3s ease; text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.btn-premium-dark { background-color: var(--title-color); color: white; }
.btn-premium-brand { background: var(--brand-gradient); color: white; }

/* Video Facade */
.video-facade {
    aspect-ratio: 16/9; cursor: pointer; position: relative; background-color: black; border-radius: 12px; overflow: hidden;
}
.video-facade video { width: 100%; height: 100%; object-fit: cover; }
.play-mask {
    position: absolute; inset: 0; background: rgba(42, 50, 62, 0.2);
    display: flex; align-items: center; justify-content: center; transition: 0.4s ease;
}
.video-facade:hover .play-mask { background: rgba(42, 50, 62, 0.1); }
.play-btn-circle {
    width: 70px; height: 70px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-grad-1); animation: pulse-white 2s infinite; transition: 0.4s;
}
@media (max-width: 768px) {
    .play-btn-circle { width: 50px; height: 50px; }
    .play-btn-circle svg { width: 20px; height: 20px; }
}
@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Flats Carousel & Cards */
.flats-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 20px 20px 60px;
    
    /* Esconde a barra de rolagem */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
    
    /* Cursor inicial */
    cursor: grab;
    
    /* Comportamento nativo (bom para Mobile) */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
    
    /* Impede quebras e seleções */
    flex-wrap: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.flats-scroll-container::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* CLASSE MÁGICA: Ativada pelo JS quando clica e segura */
.flats-scroll-container.active {
    cursor: grabbing; /* Mão fechada */
    scroll-snap-type: none; /* DESATIVA o snap para o mouse não travar */
    scroll-behavior: auto; /* DESATIVA a suavidade para o movimento seguir o rato instantaneamente */
}

.flat-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.4s;
    height: 100%;
    text-align: left;
    scroll-snap-align: center; /* Centraliza o card */
    flex-shrink: 0; /* Garante que não encolhe */
}

/* Configuração de Largura dos Cards */
.home-carousel-card {
    flex: 0 0 auto;
    width: 85vw; /* Mobile: Ocupa quase toda a tela */
    max-width: 400px;
}

@media (min-width: 992px) {
    .home-carousel-card {
        width: calc(33.333% - 1rem); /* Desktop: 3 por vez */
        max-width: none;
    }
}

/* Imagens não arrastáveis (Crucial para o drag funcionar sem erros) */
.flat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
    pointer-events: none; /* IMPEDE que o navegador tente arrastar a imagem em si */
}



/* Cores forçadas para dentro do card */
.bg-dark-blue .flat-card h4, .flat-card h4 { color: var(--title-color) !important; }
.flat-card .amenity-item { color: var(--text-color) !important; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.flat-card .amenity-item svg { stroke: var(--brand-grad-1) !important; width: 16px; }
.flat-card .text-muted { color: #6c757d !important; }
.flat-card .price-value { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--title-color) !important; }

.home-carousel-card { flex: 0 0 100%; width: 100%; max-width: 400px; }
@media (min-width: 992px) {
    .home-carousel-card { flex: 0 0 calc(33.333% - 1rem); width: calc(33.333% - 1rem); max-width: none; }
    .flats-scroll-container { scroll-snap-type: none; padding-bottom: 40px; }
}

.flat-img-wrapper { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.flat-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.price-badge { position: absolute; bottom: 15px; right: 15px; background: white; padding: 8px 15px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 2; }

/* Icons Box */
.icon-box {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    background: white; border-radius: 16px; margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.4s;
}
.icon-box svg { stroke: var(--brand-grad-1); width: 28px; height: 28px; }

/* Cores fundo escuro */
.bg-dark-blue { background-color: var(--title-color); color: white; }
.bg-dark-blue h1, .bg-dark-blue h2, .bg-dark-blue h3, .bg-dark-blue h4 { color: white !important; }
.bg-dark-blue .text-muted { color: rgba(255,255,255,0.6) !important; }
.bg-dark-blue .icon-box { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); box-shadow: none; }
.bg-dark-blue .icon-box svg { stroke: white; }

/* Filters */
.filters-horizontal-bar {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
    padding: 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 40px;
}
.filter-row { display: flex; gap: 15px; flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 100%; }
@media (min-width: 768px) { .filter-group { min-width: 150px; flex: 1; } }
.filter-select {
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem; color: white; background-color: rgba(0,0,0,0.2); outline: none;
}
.filter-select option { background-color: var(--title-color); color: white; }

/* Step Process */
.step-process { padding: 10px; position: relative; text-align: center; }
.step-icon-circle {
    width: 70px; height: 70px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid rgba(176, 127, 82, 0.2);
}
@media (min-width: 768px) {
    .step-process::after {
        content: ''; position: absolute; top: 35px; left: 50%; width: 100%; height: 1px;
        background: linear-gradient(90deg, var(--brand-grad-1), var(--brand-grad-2)); z-index: -1; opacity: 0.3;
    }
    .col-md-4:last-child .step-process::after { display: none; }
}
.step-icon-circle svg { color: var(--brand-grad-1); width: 32px; height: 32px; }
.step-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--title-color); margin-bottom: 5px; }

/* Details & Reviews */
.detail-gallery-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }
@media (min-width: 768px) {
    .detail-gallery-grid { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 250px); }
    .main-img { grid-row: span 2; }
}
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; height: 250px; }
@media (min-width: 768px) { .gallery-item { height: 100%; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.review-card { background: white; padding: 25px; border-radius: 15px; border: 1px solid rgba(0,0,0,0.03); height: 100%; transition: 0.3s; text-align: left; }
.reviewer-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 15px; }

.sticky-booking-card{
    color: #2A323E;
    background: #f0ede3fa;
    border-radius: 18px;
    padding: 12px;
}

/* Map */
.map-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.2); height: 500px; background-color: #1a2029; }
.map-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.5s; }
.map-wrapper:hover .map-bg { opacity: 0.4; transform: scale(1.02); }
.map-pin {
    position: absolute; width: 40px; height: 40px; background: var(--brand-gradient);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; cursor: pointer; border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 0 0 rgba(203, 152, 105, 0.7); animation: pulse-gold 2s infinite; transition: 0.3s;
}
.map-pin:hover { transform: scale(1.2); z-index: 10; animation: none; }
.map-tooltip {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    background: white; padding: 10px 15px; border-radius: 8px; white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); opacity: 0; pointer-events: none; transition: 0.3s;
    font-weight: 600; color: var(--title-color);
}
.map-pin:hover .map-tooltip { opacity: 1; bottom: 55px; }
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(203, 152, 105, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(203, 152, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(203, 152, 105, 0); }
}

/* Animations & Floaters */
.reveal { opacity: 1; transform: none; transition: all 1s ease; }
.reveal.animate-init { opacity: 0; transform: translateY(40px); }
.reveal.active { opacity: 1; transform: translateY(0); }

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 2000; }
.tour-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3000; display: none; align-items: center; justify-content: center; }
.tour-close-btn { position: absolute; top: 20px; right: 20px; color: white; background: transparent; border: none; cursor: pointer; }
.panorama-container { width: 100%; height: 70vh; }
.panorama-image { height: 100%; width: auto; max-width: none; animation: pan-360 60s linear infinite alternate; }
@keyframes pan-360 { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.contact-card { background-color: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: 20px; padding: 40px; border: 1px solid rgba(255, 255, 255, 0.1); }
.form-control-custom { background-color: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0; color: white !important; padding: 15px 0; }
.form-control-custom:focus { background-color: transparent; box-shadow: none; border-bottom-color: var(--brand-grad-2); }