/* =====================================================
   SISTEMA IMOBILIÁRIO PREMIUM - SAMUEL LIMA
   CSS Principal - Design Ultra Premium
   ===================================================== */

:root {
    --primary: #1a365d;
    --primary-light: #2d5a8e;
    --primary-dark: #0f2440;
    --secondary: #c9a84c;
    --secondary-light: #dfc06e;
    --secondary-dark: #a88a30;
    --accent: #2d5a8e;
    --dark: #1a1a2e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

/* ===== NAVBAR PREMIUM ===== */
.navbar-premium {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1050;
}

.navbar-premium.scrolled {
    background: rgba(26, 54, 93, 0.98);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-premium .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
    letter-spacing: -0.5px;
}

.navbar-premium .navbar-brand span {
    color: var(--secondary);
}

.navbar-premium .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
}

.navbar-premium .btn-whatsapp-nav {
    background: #25D366;
    color: white !important;
    border-radius: 50px;
    padding: 0.5rem 1.2rem !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.navbar-premium .btn-whatsapp-nav:hover {
    background: #20bd5a;
    transform: scale(1.05);
}

/* ===== HERO SLIDER PREMIUM ===== */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

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

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

.hero-slider .slide.active .slide-bg {
    transform: scale(1.08);
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.85) 0%,
        rgba(15, 36, 64, 0.7) 50%,
        rgba(26, 54, 93, 0.6) 100%
    );
    z-index: 1;
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-slider .slide-text {
    max-width: 700px;
    animation: slideUp 0.8s ease-out;
}

.hero-slider .slide-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-slider .slide-text h1 span {
    color: var(--secondary);
}

.hero-slider .slide-text p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-slider .slide-text .btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
}

.hero-slider .slide-text .btn-hero-primary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.hero-slider .slide-text .btn-hero-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.4);
}

.hero-slider .slide-text .btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    margin-left: 1rem;
}

.hero-slider .slide-text .btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* Slider Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--secondary);
    z-index: 10;
    transition: width linear;
}

/* ===== BUSCA AVANÇADA ===== */
.search-section {
    position: relative;
    margin-top: -80px;
    z-index: 20;
    padding: 0 15px;
}

.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.search-box .btn-search {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.search-box .btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 54, 93, 0.3);
}

/* ===== SEÇÕES ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-600);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.section-bg {
    background: var(--gray-100);
}

/* ===== CARD IMÓVEL PREMIUM ===== */
.imovel-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.imovel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.imovel-card .card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.imovel-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.imovel-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.imovel-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 3;
}

.imovel-card .badge-tipo {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-venda { background: var(--primary); color: white; }
.badge-aluguel { background: var(--success); color: white; }
.badge-exclusivo { background: var(--secondary); color: var(--primary-dark); }
.badge-destaque { background: var(--danger); color: white; }
.badge-alta-procura { background: #ff6b35; color: white; }
.badge-lancamento { background: #6f42c1; color: white; }

.imovel-card .card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    z-index: 3;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.imovel-card .card-favorite:hover,
.imovel-card .card-favorite.active {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.imovel-card .card-views {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 3;
}

.imovel-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.imovel-card .card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.imovel-card .card-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-600);
}

.imovel-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.imovel-card .card-location {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.imovel-card .card-location i {
    color: var(--secondary);
    margin-right: 4px;
}

.imovel-card .card-features {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.imovel-card .card-features .feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.imovel-card .card-features .feature i {
    color: var(--primary);
    font-size: 1rem;
}

/* ===== BLOCO AUTORIDADE ===== */
.authority-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.authority-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
}

.authority-section .stat-box {
    text-align: center;
    padding: 2rem;
}

.authority-section .stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.authority-section .stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== DEPOIMENTOS ===== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: 15px;
    right: 20px;
}

.testimonial-card .stars {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-card .author-name {
    font-weight: 700;
    color: var(--gray-900);
}

.testimonial-card .author-info {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ===== SEGURANÇA ===== */
.security-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.security-box {
    text-align: center;
    padding: 2rem;
}

.security-box .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.security-box h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, var(--secondary-light) 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.cta-section .btn-cta {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    border: none;
    transition: var(--transition);
}

.cta-section .btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.4);
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
}

.footer h5 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== GALERIA PREMIUM ===== */
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbs .thumb {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    border: 3px solid transparent;
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
    opacity: 1;
    border-color: var(--secondary);
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CATEGORIAS ===== */
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.3rem;
}

.category-card .count {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===== PÁGINA DETALHE IMÓVEL ===== */
.detail-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.detail-feature {
    text-align: center;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 10px;
}

.detail-feature i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.detail-feature .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
}

.detail-feature .label {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-transform: uppercase;
}

/* ===== URGÊNCIA ===== */
.urgency-bar {
    background: linear-gradient(90deg, #ff6b35, #dc3545);
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    animation: pulse-urgency 2s infinite;
}

@keyframes pulse-urgency {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ===== LEAD FORM ===== */
.lead-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
}

.lead-form h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.lead-form .btn-lead {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1.05rem;
    width: 100%;
    transition: var(--transition);
}

.lead-form .btn-lead:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

/* ===== BUSCA RÁPIDA AUTOCOMPLETE ===== */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-autocomplete .item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.search-autocomplete .item:hover {
    background: var(--gray-100);
}

.search-autocomplete .item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border: none;
    color: var(--primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 991px) {
    .hero-slider { height: 70vh; min-height: 500px; }
    .hero-slider .slide-text h1 { font-size: 2.5rem; }
    .search-section { margin-top: -60px; }
    .section { padding: 3.5rem 0; }
    .section-title h2 { font-size: 2rem; }
}

@media (max-width: 767px) {
    .hero-slider { height: 60vh; min-height: 450px; }
    .hero-slider .slide-text h1 { font-size: 2rem; }
    .hero-slider .slide-text p { font-size: 1rem; }
    .hero-slider .slide-text .btn-hero { padding: 0.8rem 1.5rem; font-size: 0.95rem; }
    .hero-slider .slide-text .btn-hero-outline { margin-left: 0; margin-top: 0.8rem; }
    .slider-arrow { display: none; }
    .search-section { margin-top: -50px; }
    .search-box { padding: 1.5rem; }
    .authority-section .stat-number { font-size: 2.5rem; }
    .gallery-main { height: 300px; }
    .detail-price { font-size: 1.8rem; }
}

@media (max-width: 575px) {
    .hero-slider { height: 55vh; min-height: 400px; }
    .hero-slider .slide-text h1 { font-size: 1.7rem; }
    .imovel-card .card-img-wrapper { height: 200px; }
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    border: none;
    font-size: 1.2rem;
}

.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-3px); }


/* ===== BOTÕES DE COMPARTILHAR ===== */
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-share {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: var(--transition);
    color: white;
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

.btn-share-whatsapp { background: #25D366; }
.btn-share-whatsapp:hover { background: #1da851; }
.btn-share-facebook { background: #1877F2; }
.btn-share-facebook:hover { background: #0d65d9; }
.btn-share-twitter { background: #000000; }
.btn-share-twitter:hover { background: #333; }
.btn-share-telegram { background: #0088cc; }
.btn-share-telegram:hover { background: #006da3; }
.btn-share-email { background: var(--primary); }
.btn-share-email:hover { background: var(--primary-dark); }
.btn-share-copy { background: var(--gray-600); }
.btn-share-copy:hover { background: var(--gray-700); }

/* ===== IMOVEL CARD SHARE MINI ===== */
.card-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    color: var(--gray-700);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.card-share-btn:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.card-share-dropdown {
    position: absolute;
    top: 45px;
    right: 10px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    z-index: 10;
    min-width: 180px;
}

.card-share-dropdown.show { display: block; }

.card-share-dropdown a,
.card-share-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.85rem;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.card-share-dropdown a:hover,
.card-share-dropdown button:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* ===== GOOGLE MAPS MELHORADO ===== */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.map-container iframe {
    border: none;
}

.route-btn {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.route-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    color: white;
}

/* ===== TOAST NOTIFICATION MELHORADO ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--success);
}

.toast-custom.toast-error { border-left-color: var(--danger); }
.toast-custom.toast-info { border-left-color: var(--info); }

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

/* ===== ADMIN - MAPA PREVIEW ===== */
.map-preview {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

.map-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.geocode-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.geocode-status.success { background: #d4edda; color: #155724; }
.geocode-status.error { background: #f8d7da; color: #721c24; }
.geocode-status.loading { background: #fff3cd; color: #856404; }
