@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Source+Serif+4:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif 4', serif;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 26, 92, 0.95) 0%, rgba(0, 53, 151, 0.90) 50%, rgba(0, 137, 255, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
}

.hero-text-animate {
    animation: fadeInUp 1.2s ease-out;
}

.hero-text-content {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.hero-text-content.active {
    opacity: 1;
    pointer-events: auto;
    animation: fadeInFromDark 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInFromDark {
    0% {
        opacity: 0;
        filter: brightness(0.3);
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        filter: brightness(1);
        transform: translateY(0) scale(1);
    }
}

/* Hero Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.hero-nav:hover {
    background: rgba(0, 137, 255, 0.9);
    border-color: rgba(0, 137, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev {
    left: 40px;
}

.hero-nav-next {
    right: 40px;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.hero-indicator {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: #0089ff;
    width: 70px;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white, transparent);
}

/* ===== CARDS ===== */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 159, 216, 0.1), rgba(46, 92, 138, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.card-hover:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(27, 58, 87, 0.25);
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover > * {
    position: relative;
    z-index: 2;
}

.filter-button {
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: #1e3a5f;
    color: white;
}

/* ===== PROPERTY PAGE HERO SLIDER ===== */
.property-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.property-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.property-hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Property Thumbnails */
.property-thumb {
    transition: all 0.3s ease;
}

.thumb-border {
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.filter-button.active {
    background-color: #1e3a5f;
    color: white;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-nav {
        display: none; /* Ocultar setas no mobile */
    }
    
    .hero-indicators {
        bottom: 20px;
    }
    
    .hero-indicator {
        width: 30px;
        height: 2px;
    }
    
    .hero-indicator.active {
        width: 50px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== UTILITIES ===== */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Image Gallery */
.gallery-main {
    position: relative;
    overflow: hidden;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-thumb {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-thumb:hover {
    opacity: 0.8;
    border-color: #1e3a5f;
}

.gallery-thumb.active {
    border-color: #1e3a5f;
}

/* WhatsApp Button with Dropdown */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float-main {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.whatsapp-float-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.whatsapp-float-main.active {
    transform: rotate(45deg);
    background-color: #128C7E;
}

.whatsapp-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.whatsapp-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    justify-content: flex-start;
}

.whatsapp-option i {
    font-size: 20px;
    flex-shrink: 0;
}

.whatsapp-option span {
    font-family: 'Poppins', sans-serif;
}

.whatsapp-vendas {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-vendas:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-alugueis {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-alugueis:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-geral {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-geral:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Animação de entrada para as opções */
.whatsapp-option {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.whatsapp-options.show .whatsapp-option:nth-child(1) {
    animation-delay: 0.1s;
}

.whatsapp-options.show .whatsapp-option:nth-child(2) {
    animation-delay: 0.2s;
}

.whatsapp-options.show .whatsapp-option {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
}
