:root {
    --imovel-primary: #1455d9;
    --imovel-primary-dark: #0f3f9f;
    --imovel-accent: #00b894;
    --imovel-danger: #ef4444;
    --imovel-text: #162033;
    --imovel-muted: #667085;
    --imovel-border: rgba(20, 85, 217, 0.12);
    --imovel-bg: #f5f8ff;
    --imovel-card: #ffffff;
    --imovel-shadow: 0 18px 50px rgba(20, 32, 51, 0.12);
}

/* Reset e Base */
.imovel-wrapper,
.imovel-single-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 40px auto;
    color: var(--imovel-text);
    font-family: inherit;
}

/* Hero Section */
.imovel-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 50px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f3f9f 0%, #1455d9 55%, #4c7dff 100%);
    color: #ffffff;
    box-shadow: var(--imovel-shadow);
}

.imovel-hero h1,
.imovel-hero h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
}

.imovel-hero p {
    max-width: 600px;
    margin: 0 0 28px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Search Box */
.imovel-search-box {
    position: relative;
    max-width: 700px;
    margin-top: 20px;
}

.imovel-search-input {
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 18px;
    outline: none;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
    color: var(--imovel-text);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.imovel-search-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.25), 0 15px 35px rgba(0, 0, 0, 0.16);
}

/* Grid de Imóveis */
.imovel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .imovel-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .imovel-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .imovel-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Card de Imóvel */
.imovel-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--imovel-border);
    border-radius: 20px;
    background: var(--imovel-card);
    box-shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.imovel-card:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 85, 217, 0.28);
    box-shadow: var(--imovel-shadow);
}

.imovel-card-image {
    display: block;
    aspect-ratio: 1.4 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3fb 0%, #f5f8ff 100%);
    position: relative;
}

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

.imovel-card:hover .imovel-card-image img {
    transform: scale(1.08);
}

/* Badge de Status */
.imovel-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 184, 148, 0.95);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.imovel-status-badge.vendido {
    background: rgba(239, 68, 68, 0.95);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.imovel-status-badge.alugado {
    background: rgba(59, 130, 246, 0.95);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Card Body */
.imovel-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.imovel-card-body h3 {
    margin: 0 0 8px;
    color: var(--imovel-text);
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 800;
}

.imovel-card-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--imovel-primary);
    margin: 8px 0 12px;
}

.imovel-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--imovel-muted);
    font-size: 0.9rem;
}

.imovel-card-location::before {
    content: '📍';
}

.imovel-card-features {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.imovel-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--imovel-bg);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--imovel-muted);
}

.imovel-feature-icon {
    font-size: 1.1rem;
}

.imovel-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 18px;
    border: 2px solid var(--imovel-primary);
    border-radius: 12px;
    background: var(--imovel-primary);
    color: white !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.imovel-card-btn:hover {
    background: var(--imovel-primary-dark);
    border-color: var(--imovel-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 85, 217, 0.25);
}

/* Single Page */
.imovel-single-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 40px;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f3f9f 0%, #1455d9 55%, #00b894 100%);
    color: white;
    box-shadow: var(--imovel-shadow);
}

@media (max-width: 1024px) {
    .imovel-single-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.imovel-single-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.imovel-single-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 900;
}

.imovel-single-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.imovel-single-price {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.imovel-single-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.imovel-feature-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.imovel-feature-item-value {
    font-size: 1.6rem;
    font-weight: 900;
    display: block;
}

.imovel-feature-item-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.imovel-single-hero-image {
    min-height: 360px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.imovel-single-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Galeria */
.imovel-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .imovel-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .imovel-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.imovel-gallery-item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: #eef3fb;
    cursor: pointer;
}

.imovel-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imovel-gallery-item:hover img {
    transform: scale(1.1);
}

/* Seções de Conteúdo */
.imovel-section {
    margin-bottom: 40px;
    padding: 28px;
    border: 1px solid var(--imovel-border);
    border-radius: 20px;
    background: var(--imovel-card);
    box-shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
}

.imovel-section h2 {
    margin: 0 0 20px;
    color: var(--imovel-text);
    font-size: 1.5rem;
    font-weight: 800;
}

.imovel-section p {
    color: var(--imovel-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Contato */
.imovel-contact-card {
    background: linear-gradient(135deg, rgba(20, 85, 217, 0.05) 0%, rgba(0, 184, 148, 0.05) 100%);
    border: 2px solid var(--imovel-border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.imovel-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imovel-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imovel-contact-label {
    font-weight: 600;
    color: var(--imovel-text);
    min-width: 100px;
}

.imovel-contact-value {
    color: var(--imovel-muted);
}

.imovel-contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.imovel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--imovel-primary);
    border-radius: 12px;
    background: var(--imovel-primary);
    color: white !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.imovel-btn:hover {
    background: var(--imovel-primary-dark);
    border-color: var(--imovel-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 85, 217, 0.25);
}

.imovel-btn-secondary {
    background: transparent;
    color: var(--imovel-primary) !important;
    border-color: var(--imovel-primary);
}

.imovel-btn-secondary:hover {
    background: var(--imovel-primary);
    color: white !important;
}

/* Mapa */
.imovel-map {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
}

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

/* Empty State */
.imovel-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    border-radius: 18px;
    background: var(--imovel-card);
    color: var(--imovel-muted);
    text-align: center;
}

.imovel-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    .imovel-wrapper,
    .imovel-single-wrap {
        margin: 20px auto;
    }

    .imovel-hero {
        padding: 30px 20px;
    }

    .imovel-single-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .imovel-hero {
        padding: 20px 16px;
    }

    .imovel-hero h1,
    .imovel-hero h2 {
        font-size: 1.5rem;
    }

    .imovel-section {
        padding: 16px;
    }

    .imovel-contact-buttons {
        flex-direction: column;
    }

    .imovel-btn {
        width: 100%;
    }
}
