/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-top {
    background: rgba(30, 58, 138, 0.9);
    padding: 8px 0;
    font-size: 13px;
    transition: all 0.3s ease;
}

.header.scrolled .header-top {
    padding: 4px 0;
    font-size: 12px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb;
}

.header-left span {
    margin-right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    color: #FFF;
}

.header-left span:hover {
    color: #fbbf24;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px;
    min-width: 250px;
    max-width: 300px;
    width: 100%;
}

.search-input {
    border: none;
    outline: none;
    padding: 8px 15px;
    flex: 1;
    border-radius: 20px;
    font-size: 14px;
}

.search-btn {
    background: #fbbf24;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #f59e0b;
}

.navbar {
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.logo-img {
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    z-index: 1002;
    transition: left 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu .nav-link {
    display: block;
    padding: 20px 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Main Content */
.main {
    padding: 40px 0;
    margin-top: 0px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-btn {
    background: #e5e7eb;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}

.filter-favorites {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.filter-favorites:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Properties Grid */
.properties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}


.property-card {
    flex: 0 0 350px;
    width: 350px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-blue {
    background: #3b82f6;
    color: white;
}

.status-green {
    background: #10b981;
    color: white;
}

.status-yellow {
    background: #f59e0b;
    color: white;
}

.property-content {
    padding: 25px;
}

.property-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.property-location {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.property-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fbbf24;
}

.footer-section p {
    margin-bottom: 8px;
    color: #d1d5db;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #374151;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    color: #000;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fbbf24;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 12px;
}

.footer-bottom a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fbbf24;
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.badge {
    background: #374151;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    .header-top {
        display: none;
    }

    .main {
        margin-top: 0px;
    }

    .banner-carousel
    {
       margin-top: 0px;
    }

    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .search-container {
        min-width: 200px;
        max-width: 280px;
    }

    .nav-content {
        justify-content: space-between;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 28px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0;
        width: 100%;
    }

    .property-card {
        width: 100%;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .property-content {
        padding: 20px;
    }

    .property-title {
        font-size: 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading States */
.property-card.loading {
    opacity: 0;
    transform: translateY(20px);
}

.property-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.property-card:hover::before {
    opacity: 1;
}

/* Garantir que elementos não causem overflow */
img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    display: block;
}

/* Banner Carousel Styles */
.banner-carousel {
    width: 100%;
    height: 400px;
    position: relative;
    margin-top: 150px;
}

.banner-carousel .slick-list,
.banner-carousel .slick-track {
    height: 100%;
}

.banner-slide {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Fallback visual */
.banner-slide {
    background-color: #1e3a8a; /* Cor do tema */
}

/* Máscara escura semi-transparente */
.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Ajuste a opacidade (0.4) conforme necessário */
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    max-width: 800px;
    width: 90%; /* Para responsividade */
    text-align: center; /* Centraliza o texto */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 5px;
    z-index: 2;
}

/* Slick overrides */
.slick-prev {
    left: 25px;
}

.slick-next {
    right: 25px;
}

.slick-prev,
.slick-next {
    z-index: 2;
    width: 40px;
    height: 40px;
}

.slick-prev:before,
.slick-next:before {
    font-size: 40px;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    opacity: 1;
}

.slick-dots {
    bottom: 20px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: white;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: white;
    opacity: 1;
}

.botao-banner {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-title {
    font-size: 40px;
    font-weight: 700;
    color: #FFF;
    line-height: 1;
    margin-bottom: 10px;
}

.banner-text {
    font-size: 20px;
    color: #FFF;
    line-height: 1;
    margin-bottom: 10px;
    color: #fbbf24;
}

@media (max-width: 768px) {
    .banner-carousel {
       margin-top: 90px;
    }
}