/* ============================================
   STK Imobiliária - Custom Styles
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #1a365d;
    --primary-dark: #0f2744;
    --secondary-color: #2d3748;
    --gold-color: #c9a227;
    --gold-dark: #a88620;
    --gold-light: #d4b84a;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-color: #dd6b20;
    --info-color: #3182ce;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--gold-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--gold-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
    }
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-info a,
.top-bar-social a {
    color: var(--gray-300);
    transition: var(--transition);
}

.top-bar-info a:hover,
.top-bar-social a:hover {
    color: var(--gold-color);
}

.top-bar-info i {
    color: var(--gold-color);
    margin-right: 5px;
}

.top-bar-info .list-inline-item:not(:last-child) {
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-social a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 5px;
}

.top-bar-social a:hover {
    background: var(--gold-color);
    color: var(--white);
}

/* ============================================
   Navbar
   ============================================ */
#mainNav {
    background: var(--primary-color);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#mainNav.scrolled {
    background: var(--primary-dark);
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-color);
    letter-spacing: 2px;
}

.brand-sub {
    font-size: 12px;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 22px;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-color);
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 22px;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar-nav .nav-link:not(.dropdown-toggle).active::after {
    width: calc(100% - 44px);
}

.dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 10px;
    display: none;
}

/* Dropdown Toggle Arrow Styling */
.navbar-nav .dropdown-toggle::after {
    position: static;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    content: '+';
    font-family: inherit;
    font-weight: 300;
    font-size: 16px;
    border: none;
    width: auto;
    height: auto;
    background: none;
    opacity: 0.7;
    transition: var(--transition);
}

.navbar-nav .dropdown.show .dropdown-toggle::after,
.navbar-nav .dropdown:hover .dropdown-toggle::after {
    content: '−';
    opacity: 1;
    color: var(--gold-color);
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--gold-color);
    padding-left: 25px;
}

.btn-gold {
    background: var(--gold-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920') center/cover no-repeat;
    padding: 120px 0 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(15, 39, 68, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 40px;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
}

.search-tabs .nav-link {
    background: var(--light-bg);
    color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    margin-right: 10px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.search-tabs .nav-link.active {
    background: var(--gold-color);
    color: var(--white);
}

.search-form .form-select,
.search-form .form-control {
    height: 50px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 15px;
}

.search-form .form-select:focus,
.search-form .form-control:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-down a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   Section Headers
   ============================================ */
.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Categories Section
   ============================================ */
.category-card {
    display: block;
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.category-icon i {
    font-size: 32px;
    color: var(--white);
}

.category-card:hover .category-icon {
    transform: rotateY(180deg);
}

.category-card h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.category-count {
    font-size: 14px;
    color: var(--gray-500);
}

/* ============================================
   Featured Properties Section
   ============================================ */
.filter-buttons .btn-filter {
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--gray-200);
    padding: 10px 25px;
    margin: 5px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-buttons .btn-filter:hover,
.filter-buttons .btn-filter.active {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: var(--white);
}

/* Property Card */
.property-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
}

.badge-sale {
    background: var(--success-color);
}

.badge-rent {
    background: var(--info-color);
}

.badge-featured {
    background: var(--gold-color);
    left: auto;
    right: 15px;
}

.badge-new {
    background: var(--danger-color);
    left: auto;
    right: 15px;
    top: 55px;
}

.property-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.property-card:hover .property-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-action:hover {
    background: var(--gold-color);
    color: var(--white);
}

.btn-action.active {
    background: var(--danger-color);
    color: var(--white);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.property-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}

.property-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.property-title a {
    color: var(--primary-color);
}

.property-title a:hover {
    color: var(--gold-color);
}

.property-location {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 15px;
}

.property-location i {
    color: var(--gold-color);
    margin-right: 5px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 15px;
}

.property-features span {
    font-size: 13px;
    color: var(--gray-600);
}

.property-features i {
    color: var(--gold-color);
    margin-right: 5px;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stat-item {
    padding: 30px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 28px;
    color: var(--gold-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Popular Areas Section
   ============================================ */
.area-card {
    display: block;
    position: relative;
    height: 250px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.area-card-lg {
    height: 300px;
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.area-card:hover img {
    transform: scale(1.1);
}

.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.area-overlay h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.area-overlay span {
    font-size: 14px;
    color: var(--gold-color);
}

/* ============================================
   Services Section
   ============================================ */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--gold-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 32px;
    color: var(--gold-color);
}

.service-card:hover .service-icon {
    background: var(--gold-color);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    color: var(--gold-color);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    margin-left: 10px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cta-section .btn-light {
    background: var(--white);
    color: var(--gold-dark);
    font-weight: 600;
    padding: 15px 35px;
    border-radius: var(--border-radius);
}

.cta-section .btn-light:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonial-card {
    padding: 40px;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--gold-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--gold-color);
    font-size: 18px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--gray-500);
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--gold-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
    left: -25px;
}

#testimonialCarousel .carousel-control-next {
    right: -25px;
}

#testimonialCarousel .carousel-indicators {
    bottom: -50px;
}

#testimonialCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
}

#testimonialCarousel .carousel-indicators button.active {
    background: var(--gold-color);
}

/* ============================================
   Blog Section
   ============================================ */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--gold-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--gray-500);
}

.blog-meta i {
    color: var(--gold-color);
    margin-right: 5px;
}

.blog-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--primary-color);
}

.blog-title a:hover {
    color: var(--gold-color);
}

.blog-excerpt {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-link {
    font-weight: 600;
    color: var(--gold-color);
    font-size: 14px;
}

.blog-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.blog-link:hover i {
    margin-left: 10px;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: var(--primary-color);
}

.newsletter-section h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.newsletter-section p {
    color: var(--gray-300);
    margin-bottom: 0;
}

.newsletter-form .form-control {
    height: 55px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding-left: 20px;
}

.newsletter-form .btn-gold {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 15px 30px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .brand-text {
    font-size: 32px;
}

.footer-widget p {
    color: var(--gray-400);
    margin-bottom: 0;
}

.footer-widget h5 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold-color);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    margin-bottom: 20px;
    color: var(--gray-400);
}

.footer-contact i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 14px;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: var(--gold-color);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-dark);
    transform: translateY(-5px);
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: var(--white);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
}

.modal-header {
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    color: var(--white);
}

.modal-body .form-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.modal-body .form-control,
.modal-body .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 12px 15px;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920') center/cover no-repeat;
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--gray-300);
}

.breadcrumb-item.active {
    color: var(--gold-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-400);
}

/* ============================================
   Forms
   ============================================ */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    gap: 5px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    color: var(--secondary-color);
    font-weight: 500;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: var(--white);
}

/* ============================================
   Cards General
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold-color);
}

/* ============================================
   Lazy Load Placeholder
   ============================================ */
/* Imagens com src válido são sempre visíveis */
img.lazy {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Apenas esconde imagens que ainda não têm src ou usam data-src */
img.lazy[data-src]:not(.loaded) {
    opacity: 0;
}

img.lazy.loaded {
    opacity: 1;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: none;
    }
    
    .navbar-collapse {
        background: var(--primary-dark);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .btn-gold.ms-lg-3 {
        margin-top: 15px;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .search-tabs .nav-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .property-features {
        gap: 10px;
    }
    
    .property-features span {
        font-size: 12px;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-section h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn-gold {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px;
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-card {
        padding: 30px 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 24px;
    }
    
    .property-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-footer .btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
}

.text-gold {
    color: var(--gold-color) !important;
}

.border-gold {
    border-color: var(--gold-color) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Property Item Animation for Filtering */
.property-item {
    transition: all 0.4s ease;
}

.property-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .top-bar,
    #mainNav,
    .hero-section,
    .back-to-top,
    .whatsapp-float,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
