/* ==========================================
   RESET & FONTES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
}

/* ==========================================
   CONTAINER PRINCIPAL
   ========================================== */
.card-container {
    width: 100%;
    max-width: 420px;
    background-color: #f6f3eb;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    height: 520px;
    background-color: #3d1418;
    background-image: 
        linear-gradient(to bottom, rgba(61, 20, 24, 0.4) 0%, transparent 40%),
        var(--bg-url);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-bottom-left-radius: 45px;
    border-bottom-right-radius: 45px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

/* Topo do Header e Logo Nova */
.top-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
}

.logo-remax {
    display: flex;
    align-items: center;
}

.logo-topo {
    max-width: 120px;
    height: auto;
    display: block;
}

/* Textos da Corretora */
.profile-info {
    margin-bottom: 10px;
    z-index: 2;
}

.profile-info h1 {
    font-family: 'Georgia', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 15px;
    color: #ffffff;
}

.blue-line {
    width: 35px;
    height: 1.5px;
    background-color: #1c66c0;
    margin-bottom: 20px;
}

.profile-info p {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 300;
    max-width: 85%;
    color: #f1f1f1;
}

/* ==========================================
   SEÇÃO DE IMÓVEIS & CARROSSEL (4 POR PÁGINA)
   ========================================== */
.content-section {
    padding: 30px 24px 10px 24px;
    width: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #2c1a1a;
}

.section-title i {
    font-size: 24px;
}

.section-title h2 {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 400;
}

/* Container do carrossel horizontal */
.property-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory; 
}

.property-scroll::-webkit-scrollbar {
    display: none;
}

.property-grid {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* Cada página agrupa exatamente 4 cards (Grid 2x2) */
.property-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    width: calc(100vw - 48px);
    max-width: 372px;
    box-sizing: border-box;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Card individual */
.property-card {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(20, 10, 10, 0.95) 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.card-overlay h3 {
    font-family: 'Georgia', serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 4px;
}

.card-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
}

.card-overlay .price {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 1px;
}

.card-overlay .location {
    font-size: 10px;
    font-weight: 300;
    opacity: 0.9;
}

.arrow-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    background-color: #5c181b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
}

/* ==========================================
   GRID ESTÁTICO (4 ou menos imóveis)
   ========================================== */
.property-grid-estatico {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.property-grid-estatico .property-card {
    height: 180px;
}

/* ==========================================
   INDICADORES DE PONTINHOS DO CARROSSEL
   ========================================== */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #d1cbd4;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #5c181b;
    transform: scale(1.2);
}

/* ==========================================
   BARRA INFERIOR (RODAPÉ)
   ========================================== */
.action-bar {
    background-color: #f6f3eb;
    padding: 24px 20px 30px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333333;
    font-size: 11px;
    flex: 1;
}

.action-item .icon {
    font-size: 24px;
    color: #4a1519;
}

.vertical-divider {
    width: 1px;
    height: 30px;
    background-color: #e0dcd2;
}