/* ============================================================
   Real Estate Portal — CSS
   Fiel al diseño original con Tailwind/Material Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:        #091426;
    --primary-cont:   #1e293b;
    --secondary:      #0058be;
    --secondary-cont: #2170e4;
    --surface:        #f7f9fb;
    --surface-low:    #f2f4f6;
    --surface-cont:   #eceef0;
    --surface-high:   #e6e8ea;
    --surface-highest:#e0e3e5;
    --surface-lowest: #ffffff;
    --on-surface:     #191c1e;
    --on-surface-var: #45474c;
    --outline:        #75777d;
    --outline-var:    #c5c6cd;
    --corp:           #6BC4E8;
    --font:           'Inter', sans-serif;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

body { font-family: var(--font); background: var(--surface); color: var(--on-surface); }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

#wrapwrap {
    padding: 0 !important;
    margin: 0 !important;
}

#wrapwrap > main,
#wrapwrap > .o_portal_wrap,
.o_portal_wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.container,
.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* ── Navbar ──────────────────────────────────────────────── */
.re-navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    overflow: visible;
}
.re-navbar-inner {
    /* max-width: 1920px; margin: 0 auto; */
    padding: 2px 24px;
    display: flex; align-items: center; justify-content: space-between;
    overflow: visible;
}


.re-navbar-left { display: flex; align-items: center; gap: 32px; }
.re-brand { font-size: 18px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -.02em; }
.re-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface-highest); padding: 8px 16px; border-radius: 10px;
    width: 360px;
}
.re-search-wrap input { background: transparent; border: none; outline: none; font-size: 13px; width: 100%; font-family: var(--font); }
.re-navbar-right { display: flex; align-items: center; gap: 24px; }
.re-nav-link { color: var(--on-surface-var); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.re-nav-link:hover, .re-nav-active { color: var(--secondary); font-weight: 600; border-bottom: 2px solid var(--secondary); padding-bottom: 2px; }
.re-nav-divider { width: 1px; height: 24px; background: var(--outline-var); opacity: .4; }

/* ── Footer ──────────────────────────────────────────────── */
.re-footer { border-top: 1px solid #e2e8f0; background: #f8fafc; margin-top: 48px; }
.re-footer-inner {
    /* max-width: 1280px;  */margin: 0 auto; padding: 48px 24px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.re-footer-name { font-weight: 700; font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.re-footer-brand p { font-size: 13px; color: #64748b; max-width: 280px; }
.re-footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.re-footer-links a { color: #64748b; text-decoration: none; font-size: 13px; transition: color .15s; }
.re-footer-links a:hover { color: var(--secondary); }
.re-footer-copy { font-size: 12px; color: #94a3b8; }

/* ── Main layout ─────────────────────────────────────────── */
/* .re-main { max-width: 1920px; margin: 0 auto; } */


.re-hero-section {
    background-image: url('/real_estate/static/src/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Hero about us — igual, reemplaza con tu foto */
.re-about-hero-bg {
    background-image: url('/real_estate/static/src/img/about-hero.jpg');
    background-size: cover;
    background-position: center;
}

/* Tailwind no viene cargado por defecto en Odoo —
   estas clases cubren lo que Tailwind no incluye en el CDN */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 2;  
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[4\/5\] { aspect-ratio: 4/5; }

/* Sticky funciona solo si el padre no tiene overflow:hidden */
.lg\:sticky { position: sticky; }


/* ============================================================
   CATÁLOGO
   ============================================================ */
.re-catalog-main { display: flex; min-height: calc(100vh - 64px); }


.re-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 198, 205, 0.3);
    border-radius: 8px;
    padding: 4px 12px;
    margin-left: 20px;
}

.re-search-input {
    background: transparent;
    border: none;
    color: inherit;
    outline: none;
    margin-left: 8px;
    width: 250px;
}

.re-search-input::placeholder {
    color: rgba(197, 198, 205, 0.7);
}

/* Sidebar filtros */
.re-filter-panel {
    width: 350px; flex-shrink: 0;
    padding: 32px 30px;
    background: var(--surface-low);
    border-right: 1px solid rgba(197,198,205,.2);
    position: sticky; top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}
.re-filter-section { margin-bottom: 32px; }
.re-filter-title {
    font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--on-surface-var);
    margin-bottom: 16px;
}
.re-filter-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.re-price-range-label { font-size: 11px; font-weight: 600; color: var(--secondary); }

.re-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.re-cat-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; border-radius: 12px;
    background: var(--surface-lowest); border: 1px solid rgba(197,198,205,.2);
    font-size: 12px; font-weight: 500; color: var(--on-surface);
    text-decoration: none; transition: all .15s; cursor: pointer;
}
.re-cat-btn:hover { border-color: var(--secondary); }
.re-cat-active { background: #fff; color: var(--secondary); border-color: var(--secondary); box-shadow: 0 1px 4px rgba(0,88,190,.12); font-weight: 600; }

.re-select {
    width: 100%; background: var(--surface-highest); border: none; border-radius: 12px;
    padding: 10px 14px; font-size: 13px; font-family: var(--font);
    outline: none; cursor: pointer;
}
.re-range { width: 100%; accent-color: var(--secondary); }

.re-op-btns { display: flex; gap: 6px; }
.re-op-btn {
    flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px;
    background: var(--surface-highest); font-size: 12px; font-weight: 500;
    color: var(--on-surface); text-decoration: none; transition: all .15s;
}
.re-op-btn:hover { background: var(--surface-cont); }
.re-op-active { background: var(--secondary); color: #fff; }

.re-amenities-list { display: flex; flex-direction: column; gap: 12px; }
.re-amenity-item { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }

/* Catálogo contenido */
.re-catalog-content { flex: 1; padding: 32px; }
.re-catalog-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.re-catalog-title { font-size: 22px; font-weight: 700; color: var(--primary); }
.re-catalog-count { font-size: 13px; color: var(--on-surface-var); margin-top: 2px; }
.re-sort-wrap { display: flex; align-items: center; gap: 6px; }
.re-sort-select { background: var(--surface-highest); border: none; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-family: var(--font); outline: none; }

.re-property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.re-prop-card-link { text-decoration: none; }
.re-prop-card {
    background: var(--surface-lowest); border-radius: 20px;
    overflow: hidden; border: 1px solid rgba(197,198,205,.15);
    transition: all .2s; cursor: pointer;
}
.re-prop-card:hover { box-shadow: 0 12px 32px rgba(9,20,38,.1); transform: translateY(-2px); }

.re-prop-img { height: 200px; position: relative; overflow: hidden; }
.re-prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.re-prop-card:hover .re-prop-img img { transform: scale(1.05); }
.re-prop-img-placeholder { width: 100%; height: 100%; background: var(--surface-cont); display: flex; align-items: center; justify-content: center; color: var(--outline-var); }
.re-prop-img-placeholder .material-symbols-outlined { font-size: 48px; }

.re-prop-price-badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
    padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: var(--primary);
}
.re-prop-exclusive {
    position: absolute; top: 14px; right: 14px;
    background: #2C2C2A; color: #FAC775;
    padding: 3px 10px; border-radius: 999px;
    font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 3px;
}

.re-prop-info { padding: 18px; }
.re-prop-name { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-prop-location { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--on-surface-var); margin-bottom: 12px; }
.re-prop-location .material-symbols-outlined { font-size: 14px; color: var(--secondary); }

.re-prop-specs { display: flex; gap: 14px; margin-bottom: 12px; }
.re-spec { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--on-surface-var); }
.re-spec .material-symbols-outlined { font-size: 15px; }

.re-prop-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.re-tag { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.re-tag-sale { background: #E6F1FB; color: #0C447C; }
.re-tag-rent { background: #E1F5EE; color: #085041; }
.re-tag-neg  { background: #EAF3DE; color: #27500A; border: 1px solid #97C459; }

.re-empty { grid-column: 1/-1; text-align: center; padding: 64px 24px; color: var(--on-surface-var); }
.re-empty .material-symbols-outlined { font-size: 48px; margin-bottom: 12px; }
.re-pagination { display: flex; justify-content: center; margin-top: 32px; }

.re-input-sm {
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px !important;
    font-size: 0.85rem;
    padding: 5px 10px;
}

.re-input-sm:focus {
    border-color: #3f51b5;
    box-shadow: none;
}


.re-range-double {
    -webkit-appearance: none;
    appearance: none;
    background: none;
}

.re-range-double::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3f51b5; /* Tu color principal */
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* El carril del slider (puedes estilizarlo para que parezca una sola barra) */
#minRange::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

.re-amenities-container::-webkit-scrollbar {
    width: 4px;
}
.re-amenities-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.re-amenities-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.re-amenities-container::-webkit-scrollbar-thumb:hover {
    background: #3f51b5; /* Color de tu marca */
}


/* ============================================================
   FICHA TÉCNICA
   ============================================================ */



.re-gallery-img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* Esto evita el click derecho directo */
}

.re-gallery-main {
    position: relative;
    overflow: hidden;
}

/* Marca de agua visual por CSS (adicional a la de Python) */
.re-gallery-overlay::after {
    content: "Feeninmuebles CF 2002";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 2rem;
    color: rgba(255,255,255,0.2);
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}

.re-detail-main {
    padding: 0 90px;
}

.re-gallery { display: grid; grid-template-columns: 1fr 320px; gap: 16px; height: 480px; padding: 24px 24px 0; }
.re-gallery-main { position: relative; border-radius: 20px; overflow: hidden; }
.re-gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.re-gallery-main:hover .re-gallery-img { transform: scale(1.03); }
.re-gallery-placeholder { width: 100%; height: 100%; background: var(--surface-cont); display: flex; align-items: center; justify-content: center; color: var(--outline-var); }
.re-gallery-placeholder .material-symbols-outlined { font-size: 64px; }
.re-gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent); }
.re-gallery-btn {
    position: absolute; bottom: 20px; right: 20px;
    background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
    padding: 10px 20px; border-radius: 12px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    display: flex; align-items: center; gap: 6px;
    border: none; cursor: pointer; transition: all .15s;
}
.re-gallery-btn:hover { background: #fff; }
.re-gallery-side { display: flex; flex-direction: column; gap: 12px; }
.re-gallery-thumb { flex: 1; border-radius: 16px; overflow: hidden; }
.re-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.re-gallery-thumb:hover img { transform: scale(1.08); }

.re-detail-body {
    display: flex; gap: 48px;
    /* max-width: 1440px; */ margin: 0 auto;
    padding: 32px 24px 48px;
}
.re-detail-left { flex: 1; display: flex; flex-direction: column; gap: 40px; }

.re-detail-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.re-badge-exclusive-lg { background: #d8e3fb; color: #3c475a; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.re-badge-status-active { color: var(--secondary); font-weight: 600; font-size: 13px; }

.re-detail-title { font-size: 40px; font-weight: 900; letter-spacing: -.03em; color: var(--primary); line-height: 1.1; margin-bottom: 12px; }
.re-detail-location { display: flex; align-items: center; gap: 6px; color: var(--on-surface-var); font-size: 16px; }
.re-detail-location .material-symbols-outlined { color: var(--secondary); }

.re-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: var(--surface-low); border-radius: 24px; padding: 28px; }
.re-spec-box-icon { display: flex; align-items: center; gap: 6px; color: var(--secondary); margin-bottom: 6px; }
.re-spec-box-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-var); }
.re-spec-box-val { font-size: 24px; font-weight: 700; color: var(--primary); }
.re-spec-box-val span { font-size: 13px; font-weight: 400; color: var(--on-surface-var); margin-left: 2px; }

.re-section-title { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.re-description { color: var(--on-surface-var); line-height: 1.8; font-size: 15px; }

.re-description-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.re-description-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.re-description-content p {
    margin-bottom: 10px;
}

.re-amenities-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.re-amenity-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: var(--surface-highest); border-radius: 12px;
    color: var(--primary); font-size: 13px; font-weight: 500;
}
.re-amenity-chip .material-symbols-outlined { color: var(--secondary); font-size: 18px; }

.re-map-placeholder {
    height: 300px; background: var(--surface-high); border-radius: 24px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; color: var(--on-surface-var);


    min-height: 400px !important;
    width: 100%;
}
.re-map-pin { font-size: 48px !important; color: var(--secondary); }

/* Oculta el logo de Mapbox (esquina inferior izquierda) */
.re-map-placeholder .mapboxgl-ctrl-logo {
    display: none !important;
}

/* Oculta los créditos/atribución (esquina inferior derecha) */
.re-map-placeholder .mapboxgl-ctrl-attrib {
    display: none !important;
}

/* Mejora opcional: asegurar que el mapa ocupe todo el radio de 24px */
.re-map-placeholder .mapboxgl-canvas {
    border-radius: 24px;
}


/* Específico para el mapa de la oficina */
#office_map .mapboxgl-ctrl-bottom-left,
#office_map .mapboxgl-ctrl-bottom-right {
    display: none !important;
}

/* Para que el mapa respete el redondeado de las esquinas de tu diseño */
#office_map canvas {
    border-radius: 1rem; /* Equivalente a rounded-2xl de Tailwind */
}

/* Sidebar */
.re-detail-sidebar { width: 380px; flex-shrink: 0; }
.re-sidebar-card {
    position: sticky; top: 80px;
    background: var(--surface-lowest); border-radius: 24px;
    box-shadow: 0 24px 48px rgba(9,20,38,.07); border: 1px solid rgba(197,198,205,.15);
    padding: 28px; margin-bottom: 16px;
}
.re-sidebar-price-label { color: var(--on-surface-var); font-size: 13px; margin-bottom: 4px; }
.re-sidebar-price { font-size: 36px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.re-sidebar-price span { font-size: 16px; font-weight: 500; color: var(--on-surface-var); margin-left: 4px; }
.re-sidebar-negotiable { background: #EAF3DE; color: #27500A; border: 1px solid #97C459; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

.re-sidebar-form { margin-top: 24px; }
.re-sidebar-form-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.re-form-group { margin-bottom: 14px; }
.re-form-group label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-var); margin-bottom: 6px; }
.re-form-group input, .re-form-group textarea, .re-form-group select {
    width: 100%; background: var(--surface-highest); border: none; border-radius: 12px;
    padding: 12px 14px; font-size: 13px; font-family: var(--font);
    outline: none; transition: box-shadow .15s;
}
.re-form-group input:focus, .re-form-group textarea:focus { box-shadow: 0 0 0 2px rgba(0,88,190,.25); }
.re-input-icon { position: relative; }
.re-input-icon input { padding-right: 40px; }
.re-input-icon .material-symbols-outlined { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--on-surface-var); font-size: 18px; }
.re-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.re-btn-primary {
    display: block; width: 100%; text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-cont));
    color: #fff; font-weight: 700; padding: 14px; border-radius: 12px;
    border: none; cursor: pointer; font-size: 14px; font-family: var(--font);
    text-decoration: none; transition: all .15s; margin-bottom: 10px;
}
.re-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.re-btn-outline {
    display: block; width: 100%; text-align: center;
    background: transparent; border: 1px solid rgba(197,198,205,.4);
    color: var(--primary); font-weight: 700; padding: 14px; border-radius: 12px;
    cursor: pointer; font-size: 14px; font-family: var(--font);
    text-decoration: none; transition: all .15s;
}
.re-btn-outline:hover { background: var(--surface-low); }
.re-btn-full { width: 100%; }

.re-sidebar-agent { display: flex; align-items: center; gap: 12px; padding-top: 20px; margin-top: 20px; border-top: 1px solid rgba(197,198,205,.15); }
.re-agent-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-high); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--primary); flex-shrink: 0; }
.re-agent-name { font-weight: 700; color: var(--primary); font-size: 14px; }
.re-agent-role { font-size: 12px; color: var(--on-surface-var); }
.re-agent-contact { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #d8e2ff; display: flex; align-items: center; justify-content: center; color: var(--primary); text-decoration: none; }

.re-sidebar-banner { background: var(--secondary); color: #fff; border-radius: 24px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.re-sidebar-banner p:first-child { font-size: 12px; opacity: .8; }
.re-sidebar-banner-title { font-size: 16px; font-weight: 700; }
.re-sidebar-banner .material-symbols-outlined { font-size: 32px; }


.re-detail-sidebar {
    position: sticky;
    top: 20px; /* Ajusta según el alto de tu menú de navegación */
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.re-sidebar-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Efecto hover para los banners */
.re-sidebar-banner {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.re-sidebar-banner:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.banner-asesoria { background: linear-gradient(135deg, #2B3E50, #1A2937); } /* Gris oscuro */
.banner-vender { background: linear-gradient(135deg, #007BFF, #0056b3); } /* Azul */
.banner-whatsapp { background: #25D366; }



/* Similar */
.re-similar {
    /* max-width: 1440px; */ margin: 0 auto; padding: 0 24px 48px; 
}
.re-similar-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.re-similar-title { font-size: 28px; font-weight: 900; color: var(--primary); letter-spacing: -.02em; }
.re-similar-sub { font-size: 13px; color: var(--on-surface-var); margin-top: 4px; }
.re-similar-grid { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px; }
.re-sim-card { min-width: 320px; background: var(--surface-lowest); border-radius: 24px; overflow: hidden; border: 1px solid rgba(197,198,205,.12); text-decoration: none; transition: all .2s; cursor: pointer; }
.re-sim-card:hover { box-shadow: 0 16px 40px rgba(9,20,38,.1); }
.re-sim-img { height: 200px; position: relative; overflow: hidden; }
.re-sim-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.re-sim-card:hover .re-sim-img img { transform: scale(1.08); }
.re-sim-img-placeholder { width: 100%; height: 100%; background: var(--surface-cont); display: flex; align-items: center; justify-content: center; color: var(--outline-var); }
.re-sim-price { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--primary); }
.re-sim-info { padding: 20px; }
.re-sim-info h4 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.re-sim-specs { display: flex; align-items: center; gap: 16px; color: var(--on-surface-var); font-size: 12px; }
.re-sim-specs .material-symbols-outlined { font-size: 14px; }

/* ============================================================
   CITAS / AGENDAMIENTO
   ============================================================ */
.re-schedule-main { display: flex; gap: 32px; min-height: calc(100vh - 64px); padding: 24px; align-items: flex-start; }

.re-schedule-bg { flex: 1; opacity: .35; pointer-events: none; user-select: none; }
.re-schedule-bg-img { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.re-schedule-bg-img img { width: 100%; height: 100%; object-fit: cover; }
.re-schedule-bg-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--surface-cont); display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.re-schedule-bg-placeholder .material-symbols-outlined { font-size: 64px; color: var(--outline-var); }
.re-schedule-bg-info h1 { font-size: 40px; font-weight: 900; letter-spacing: -.03em; color: var(--primary); }
.re-schedule-bg-info p { font-size: 16px; color: var(--on-surface-var); margin-top: 8px; }

.re-schedule-modal-wrap { width: 620px; flex-shrink: 0; }
.re-schedule-modal { background: var(--surface-lowest); border-radius: 20px; box-shadow: 0 32px 64px rgba(9,20,38,.18); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }

.re-modal-header { padding: 24px 28px; background: #fff; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid rgba(197,198,205,.15); }
.re-modal-header h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.re-modal-header p { font-size: 12px; color: var(--on-surface-var); }
.re-modal-close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--on-surface-var); text-decoration: none; transition: background .15s; }
.re-modal-close:hover { background: var(--surface-low); }

.re-modal-body { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 32px; }

.re-step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.re-step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.re-step-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-var); }

.re-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.re-calendar-wrap { background: var(--surface-low); padding: 20px; border-radius: 14px; }
.re-calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.re-cal-month { font-weight: 600; font-size: 13px; }
.re-cal-nav { display: flex; gap: 6px; }
.re-cal-nav-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; padding: 2px; border-radius: 4px; transition: background .12s; }
.re-cal-nav-btn:hover { background: var(--surface-cont); }
.re-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 10px; font-weight: 700; color: var(--outline); margin-bottom: 6px; }
.re-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.re-cal-day { padding: 7px; text-align: center; font-size: 11px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.re-cal-day:hover { background: #fff; }
.re-cal-day.re-cal-selected { background: var(--secondary); color: #fff; font-weight: 700; }
.re-cal-day.re-cal-other { color: rgba(117,119,125,.3); cursor: default; }
.re-cal-day.re-cal-disabled { color: rgba(117,119,125,.3); cursor: not-allowed; }

.re-slots-wrap { display: flex; flex-direction: column; gap: 10px; }
.re-slots-label { font-size: 11px; font-weight: 700; color: var(--on-surface-var); }
.re-slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.re-slot { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid transparent; font-size: 12px; font-weight: 500; font-family: var(--font); cursor: pointer; transition: all .15s; }
.re-slot:hover { border-color: var(--secondary); }
.re-slot-active { background: var(--secondary); color: #fff; box-shadow: 0 4px 12px rgba(0,88,190,.25); font-weight: 700; }
.re-slots-tz { font-size: 10px; color: var(--outline); font-style: italic; }

.re-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.re-form-full { grid-column: 1 / -1; }
.re-form-group textarea { resize: none; }

.re-sync-banner { background: #d8e2ff4d; border-radius: 14px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; }
.re-sync-banner .material-symbols-outlined { color: var(--secondary); font-size: 22px; flex-shrink: 0; }
.re-sync-banner h4 { font-size: 11px; font-weight: 700; color: var(--on-surface); margin-bottom: 4px; }
.re-sync-banner p { font-size: 11px; color: var(--on-surface-var); line-height: 1.5; }

.re-modal-footer { padding: 20px 28px; background: var(--surface-low); border-top: 1px solid rgba(197,198,205,.12); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.re-modal-terms { font-size: 10px; color: var(--on-surface-var); max-width: 240px; }
.re-modal-terms a { text-decoration: underline; }
.re-btn-confirm { width: auto; padding: 14px 36px; margin: 0; }

/* Confirmación */
.re-confirm-main { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 140px); padding: 48px 24px; }
.re-confirm-card { max-width: 480px; text-align: center; }
.re-confirm-icon { width: 88px; height: 88px; background: rgba(0,88,190,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--secondary); }
.re-confirm-icon .material-symbols-outlined { font-size: 48px !important; }
.re-confirm-card h2 { font-size: 36px; font-weight: 900; letter-spacing: -.03em; color: var(--primary); margin-bottom: 16px; }
.re-confirm-card p { color: var(--on-surface-var); line-height: 1.7; margin-bottom: 32px; }

/* ── Responsive ──────────────────────────────────────────── */


@media (min-width: 992px) {
    .re-filter-toggle-btn {
        display: none !important;
    }

    .re-filter-panel {
        display: block !important;
        height: calc(100vh - 64px) !important;
        overflow-y: auto !important;
        width: 350px !important;
        position: sticky !important;
        top: 64px !important;
    }
}

/* ── Móvil < 992px ──────────────────────────────────────────── */
@media (max-width: 991.98px) {

    /* Layout principal */
    .re-catalog-main {
        flex-direction: column;
    }

    /* Botón toggle */
    .re-filter-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: calc(100% - 32px);
        margin: 12px 16px 0;
        padding: 13px 16px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        font-family: var(--font);
        cursor: pointer;
        letter-spacing: .01em;
    }

    .re-filter-toggle-btn .icon-arrow {
        margin-left: auto;
        font-size: 20px;
        transition: transform .25s ease;
    }

    .re-filter-toggle-btn.open .icon-arrow {
        transform: rotate(180deg);
    }

    /* Panel oculto por defecto */
    .re-filter-panel {
        width: 100% !important;
        position: relative !important;
        top: auto !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 16px !important;
        border-right: none !important;
        background: var(--surface-low);
        border-bottom: none;
        /* Sin transición de height — JS la maneja directamente */
    }

    /* Panel abierto — JS añade inline style height */
    .re-filter-panel.re-open {
        height: auto !important;
        padding: 20px 16px 28px !important;
        border-bottom: 1px solid rgba(197,198,205,.25) !important;
        overflow: visible !important;
    }

    /* Contenido catálogo */
    .re-catalog-content {
        padding: 16px !important;
        width: 100%;
    }

    /* Header */
    .re-catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }

    .re-sort-wrap { width: 100%; }
    .re-sort-select { width: 100%; }

    /* Grid 2 columnas */
    .re-property-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    /* Cards compactas */
    .re-prop-img { height: 130px; }
    .re-prop-info { padding: 10px 11px 12px; }
    .re-prop-name { font-size: 12px; margin-bottom: 3px; }
    .re-prop-location { font-size: 10px; margin-bottom: 6px; }
    .re-prop-specs { gap: 5px; margin-bottom: 7px; flex-wrap: wrap; }
    .re-spec { font-size: 10px; }
    .re-spec .material-symbols-outlined { font-size: 13px; }
    .re-prop-price-badge { font-size: 10px; padding: 3px 8px; top: 7px; left: 7px; }
    .re-prop-exclusive { font-size: 8px; padding: 2px 6px; top: 7px; right: 7px; }
    .re-tag { font-size: 9px; padding: 2px 7px; }

    /* Filtros internos */
    .re-category-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

    /* Detalle */
    .re-gallery { grid-template-columns: 1fr; height: 260px; padding: 12px 12px 0; }
    .re-gallery-side { display: none; }
    .re-detail-body { flex-direction: column; gap: 24px; padding: 20px 16px 40px; }
    .re-detail-sidebar { width: 100%; }
    .re-detail-title { font-size: 26px; }
    .re-specs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; }

    /* Agendamiento */
    .re-schedule-main { flex-direction: column; padding: 16px; }
    .re-schedule-bg { display: none; }
    .re-schedule-modal-wrap { width: 100%; }
    .re-schedule-grid { grid-template-columns: 1fr; }
    .re-modal-footer { flex-direction: column; }
    .re-btn-confirm { width: 100%; }
}

/* ── Móvil muy pequeño < 480px: 1 columna ─────────────────── */
@media (max-width: 480px) {
    .re-navbar-inner { padding: 10px 12px; width: 100%; }
    .re-search-wrap { display: none; }
    .re-catalog-content { padding: 12px !important; }
    .re-detail-body { padding: 16px 12px 40px; }
    .re-similar { padding: 0 12px 40px; }

    .re-property-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .re-prop-img { height: 190px; }
    .re-prop-info { padding: 14px; }
    .re-prop-name { font-size: 15px; }
    .re-prop-specs { flex-wrap: nowrap; }
    .re-spec { font-size: 12px; }

    .re-detail-title { font-size: 22px; }
    .re-sidebar-price { font-size: 28px; }
    .re-form-grid { grid-template-columns: 1fr; }
    .re-detail-main { padding: 0; }
}


/* ── Hamburguesa ─────────────────────────────────────────── */
.re-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--on-surface);
    border-radius: 8px;
    transition: background .15s;
}
.re-hamburger:hover { background: var(--surface-cont); }

/* ── Navbar responsive ───────────────────────────────────── */
@media (max-width: 768px) {

    /* Mostrar hamburguesa */
    .re-hamburger { display: flex; align-items: center; }

    /* Ocultar search en navbar (ya existe en la barra de filtros) */
    .re-navbar-left .re-search-wrap { display: none; }

    /* Menú colapsado por defecto */
    .re-navbar-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        border-top: 1px solid var(--outline-var);
        z-index: 100;
    }

    /* Menú abierto */
    .re-navbar-right.re-nav-open { display: flex; }

    .re-nav-link {
        width: 100%;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--surface-cont);
    }
    .re-nav-link:last-child { border-bottom: none; }
    .re-nav-link:hover, .re-nav-active {
        border-bottom: 1px solid var(--surface-cont);
        padding-bottom: 12px;
    }
    .re-nav-divider { display: none; }

    /* Hero index */
    .re-hero-section { min-height: 100svh; }
    .re-hero-section h1 { font-size: 2.5rem !important; }
    .re-hero-section p { font-size: 1rem !important; }

    /* Stats hero */
    .re-hero-section .flex.gap-8 {
        gap: 16px !important;
        flex-wrap: wrap;
    }

    /* Barra búsqueda hero */
    .re-hero-section .bg-white\/90 {
        flex-direction: column;
    }

    /* Sección "perspectiva" — la imagen flotante */
    .re-hero-section .absolute.bottom-8 { display: none; }

    /* About us hero */
    .re-about-hero-bg h1 { font-size: 2.5rem !important; }

    /* Contact — formulario full width */
    .lg\:col-span-7, .lg\:col-span-5 { grid-column: span 1 / span 1; }

    /* Footer */
    .re-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .re-footer-links { flex-direction: column; gap: 12px; }

    .re-detail-main { padding: 0; }
}

/* ── Tablet (768px – 991px) ──────────────────────────────── */
@media (min-width: 769px) and (max-width: 991px) {
    .re-hamburger { display: none; }
    .re-navbar-right { display: flex; }

    /* Catálogo: 2 columnas */
    .re-property-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .re-detail-main { padding: 0; }
}