/* Límbō — Global Styles */

/* Smooth scrolling & strict mobile viewport containment */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #C0A084;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #AF8C6F;
}

/* Luxury Glassmorphism Utilities */
.glass-limbo {
    background: rgba(247, 244, 238, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(223, 214, 196, 0.7);
    box-shadow: 0 10px 30px -5px rgba(47, 37, 25, 0.08);
}

.glass-limbo-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(223, 214, 196, 0.55);
    box-shadow: 0 6px 24px -2px rgba(47, 37, 25, 0.06);
}

.glass-limbo-dark {
    background: rgba(28, 22, 14, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(192, 160, 132, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Transitions */
.page-enter {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card hover effect */
.property-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -4px rgba(47, 37, 25, 0.12);
    border-color: rgba(192, 160, 132, 0.35);
}

/* Gold / Conexión Paz gradient for CTAs */
.btn-gold {
    background: linear-gradient(135deg, #C0A084, #AF8C6F);
    color: #FAF7F2;
    transition: all 0.2s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #AF8C6F, #9E7B5E);
    box-shadow: 0 4px 14px rgba(192, 160, 132, 0.35);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0ede6 25%, #e2ded5 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Toast animations */
.toast-enter {
    animation: slideIn 0.3s ease-out;
}
.toast-exit {
    animation: slideOut 0.3s ease-in forwards;
}

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

/* ── Pin de precio en el mapa (interacción tarjeta ↔ mapa) ────────────────── */
.price-pin {
    background: #FAF7F2 !important;
    border: 1.5px solid #DFD6C4 !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 8px rgba(47, 37, 25, 0.12) !important;
    color: #2F2519 !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.price-pin.is-highlighted,
.price-pin:hover {
    background: #C0A084 !important;
    border-color: #AF8C6F !important;
    color: #FAF7F2 !important;
    box-shadow: 0 6px 16px rgba(192, 160, 132, 0.4) !important;
    transform: scale(1.12);
    z-index: 1000 !important;
}

/* ── Tarjeta flotante del mapa (Ruta 2, estilo Airbnb) ────────────────────── */
.map-card {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: 310px;
    max-width: calc(100% - 32px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(223, 214, 196, 0.7);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(47, 37, 25, 0.2);
    overflow: hidden;
    z-index: 500;
    animation: mapCardIn 0.18s ease;
}
.map-card.hidden { display: none; }

@keyframes mapCardIn {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Anclada al pin (estilo Airbnb): el Facade fija left/top en pixeles y la tarjeta
   flota sobre el marcador. Anulamos el anclaje por defecto (left:50%/bottom/transform)
   para que el posicionamiento inline mande. */
.map-card.is-anchored {
    left: auto;             /* lo define el inline style */
    bottom: auto;
    transform: none;
    animation: mapCardAnchoredIn 0.16s ease;
}

@keyframes mapCardAnchoredIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.map-card-media {
    position: relative;
    width: 100%;
    height: 170px;
    background: #f3f3f3;
}
.map-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Botón cerrar (círculo blanco arriba-derecha) */
.map-card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    color: #1A1A1A;
    transition: background 0.15s ease;
}
.map-card-close:hover { background: #FFFFFF; }

/* Flechas del carrusel (solo si hay más de 1 foto) */
.map-card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    color: #1A1A1A;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.map-card-arrow:hover { background: #FFFFFF; }
.map-card-prev { left: 8px; }
.map-card-next { right: 8px; }

/* Puntos indicadores del carrusel */
.map-card-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}
.map-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.15s ease, transform 0.15s ease;
}
.map-card-dot.is-active {
    background: #FFFFFF;
    transform: scale(1.2);
}

/* Badges (distintivos) debajo del precio, en el cuerpo: listado variable por propiedad */
.map-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0 0;
}
.map-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f3f4f6;
    color: #374151;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Cuerpo textual (clic navega al detalle) */
.map-card-body {
    padding: 10px 12px 12px;
    cursor: pointer;
}
.map-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.map-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.map-card-rating {
    font-size: 12px;
    color: #C4A265;
    font-weight: 600;
    flex-shrink: 0;
}
.map-card-zone {
    font-size: 11px;
    color: #6b7280;
    margin: 2px 0 0;
}
.map-card-price { margin: 6px 0 0; }
.map-card-amount {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
}
.map-card-per {
    font-size: 11px;
    color: #9ca3af;
}

/* ─── Galería de propiedad (página property-gallery) ─────────────────────── */

/* Escenario de la foto principal del carrusel */
.gallery-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Flechas prev/next sobre la foto */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #1A1A1A;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, box-shadow 0.15s;
}
.gallery-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.gallery-arrow-left { left: 12px; }
.gallery-arrow-right { right: 12px; }

/* Tira de miniaturas */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 2px 4px;
    margin-top: 4px;
}
.gallery-thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity 0.15s, border-color 0.15s;
    padding: 0;
    cursor: pointer;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.is-active {
    opacity: 1;
    border-color: #C0A084;
}

/* ─── Micro-carrusel en tarjetas del catálogo (Airbnb style) ──────────────── */
.prop-card-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.prop-card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 247, 242, 0.94);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(47, 37, 25, 0.15);
    color: #2F2519;
    border: 1px solid rgba(223, 214, 196, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.15s ease, background 0.15s ease;
    z-index: 20;
    cursor: pointer;
}
.property-card:hover .prop-card-arrow,
.property-home-card:hover .prop-card-arrow,
.prop-card-carousel:hover .prop-card-arrow {
    opacity: 1;
}
@media (max-width: 768px) {
    .prop-card-arrow {
        opacity: 0.9;
    }
}
.prop-card-arrow:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
}
.prop-card-prev { left: 8px; }
.prop-card-next { right: 8px; }

.prop-card-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 20;
    pointer-events: none;
}
.prop-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(250, 247, 242, 0.6);
    transition: all 0.2s ease;
}
.prop-card-dot.is-active {
    width: 16px;
    background: #FAF7F2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.heart-btn {
    transition: transform 0.15s ease, color 0.15s ease;
}
.heart-btn:hover {
    transform: scale(1.15);
}
.heart-btn:active {
    transform: scale(0.92);
}

/* ─── Menús Desplegables & Flyout Panels de Lujo ────────────────────── */
.glass-limbo-flyout,
.dropdown-panel-card {
    background: #FFFFFF !important;
    border: 1.5px solid #DFD6C4 !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 20px 45px -10px rgba(47, 37, 25, 0.22), 0 4px 16px rgba(47, 37, 25, 0.08) !important;
}

.dropdown-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    padding-top: 12px; /* Espacio puente para que el mouse no pierda hover */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
    z-index: 150;
}

/* Puente invisible para garantizar que el puntero nunca pierda el hover */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
}

/* Hover automático en CSS y clase activa por JS */
.dropdown-group:hover > .dropdown-menu,
.dropdown-group:focus-within > .dropdown-menu,
.dropdown-group.is-open > .dropdown-menu,
.dropdown-menu.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Rotación de flechita suave */
.dropdown-chevron {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-group:hover .dropdown-chevron,
.dropdown-group:focus-within .dropdown-chevron,
.dropdown-group.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.flyout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2F2519;
    transition: all 0.18s ease;
}
.flyout-link:hover {
    background: #FAF7F2;
    color: #C0A084;
    transform: translateX(4px);
}

.flyout-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 16px;
    background: #FAF7F2;
    border: 1px solid #DFD6C4;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.flyout-card-link:hover {
    background: #FFFFFF;
    border-color: #C0A084;
    box-shadow: 0 6px 18px rgba(47, 37, 25, 0.08);
    transform: translateY(-2px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    transition: all 0.18s ease;
}
.dropdown-item:hover {
    background: #FAF7F2;
    color: #C0A084;
}

/* ─── TIPOGRAFÍA OFICIAL MANUAL DE MARCA LĪMBŌ ───────────────────────── */
/* 1. Títulos: Helvetica Now (Pág. 32 - Interlineado 0.93 - Interletrado 0) */
h1, h2, h3, .font-title, .font-display, .brand-title {
    font-family: "Helvetica Now", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
    letter-spacing: -0.01em;
}

/* 2. Subtítulos: TT Interphases (Pág. 33 - Interlineado 0.98 - Interletrado 0) */
.font-subtitle, .brand-subtitle {
    font-family: "TT Interphases", "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: 0em;
}

/* 3. Texto corrido: Avenir Next (Pág. 34 - Interlineado 1.4 - Interletrado 1.24) */
body, p, span, a, input, select, button, .font-body {
    font-family: "Avenir Next", "Avenir Next Arabic", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: 0.025em;
    line-height: 1.42;
}

/* ─── EXPERIENCIA MÓVIL AIRBNB-GRADE (MOBILE UX) ─────────────────────── */

/* Barra de navegación inferior móvil tipo Apple HIG 2026 */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(250, 247, 242, 0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(223, 214, 196, 0.9);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 12px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    box-shadow: 0 -4px 25px rgba(47, 37, 25, 0.08);
}

.mobile-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    color: #6D5940;
    text-decoration: none;
    transition: transform 0.16s cubic-bezier(0.32, 0.72, 0, 1), color 0.16s ease;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-tab-btn:active {
    transform: scale(0.92);
}

.mobile-tab-btn.is-active,
.mobile-tab-btn:hover {
    color: #C0A084;
}

.mobile-tab-btn.is-active span {
    font-weight: 700;
}

.mobile-tab-btn.is-active i,
.mobile-tab-btn.is-active svg {
    stroke: #C0A084;
    stroke-width: 2.4;
}

/* Píldora animada indicadora de swipe horizontal */
.swipe-indicator-badge {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(47, 37, 25, 0.88);
    color: #FAF7F2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.swipe-indicator-badge.is-hidden {
    opacity: 0 !important;
    transform: translateY(-50%) translateX(10px) !important;
    pointer-events: none !important;
}

/* Animación sutil de flecha direccional */
@keyframes subtleSwipeRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

.animate-swipe-right {
    display: inline-block;
    animation: subtleSwipeRight 1.1s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    will-change: transform, opacity;
}

@keyframes subtlePulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192, 160, 132, 0.35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(192, 160, 132, 0);
    }
}

.pulse-gold-subtle {
    animation: subtlePulseGlow 2s infinite;
}

/* Desplazamiento táctil elástico e invisible en móviles */
.touch-carousel-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.touch-carousel-scroll::-webkit-scrollbar {
    display: none;
}

.touch-carousel-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ─── Pista animada de swipe en tarjetas de propiedades (Airbnb Mobile UX) ── */
.card-swipe-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 9999px;
    background: rgba(47, 37, 25, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FAF7F2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-swipe-hint.is-hidden {
    opacity: 0 !important;
    transform: translateY(-50%) translateX(10px) !important;
    pointer-events: none !important;
}

/* ─── Cajón / Hoja de Búsqueda Móvil Fullscreen (Estilo Airbnb Mobile) ──────── */
.mobile-search-sheet {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-search-sheet.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 37, 25, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-search-panel {
    position: relative;
    background: #FAF7F2;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 45px rgba(47, 37, 25, 0.28);
    border-top: 1px solid rgba(223, 214, 196, 0.9);
    z-index: 10;
}

.mobile-search-sheet.is-open .mobile-search-panel {
    transform: translateY(0) !important;
}

.mobile-zone-chip {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mobile-zone-chip:active {
    transform: scale(0.96);
}

/* Subtle Quiet Luxury Slide & Scroll Cues */
@keyframes gentleSlide {
    0%, 100% { transform: translateX(0); opacity: 0.75; }
    50% { transform: translateX(5px); opacity: 1; }
}

.animate-gentle-slide {
    animation: gentleSlide 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.animate-gentle-bounce {
    animation: gentleBounce 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50% { transform: translateY(3px); opacity: 1; }
}

.animate-bounce-slow {
    animation: bounceSlow 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes separatorShimmer {
    0%, 100% { opacity: 0.55; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.18); }
}

.animate-separator-shimmer {
    animation: separatorShimmer 3s ease-in-out infinite;
}

/* Card Sizing & Responsive Grid Defense */
.property-card,
.property-home-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.prop-card-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── GESTOS COOPERATIVOS TÁCTILES EN MAPAS (CLICK-TO-INTERACT) ────────── */
/* Evita el atrapamiento de scroll (scroll-trapping) en dispositivos móviles */
.map-touch-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 37, 25, 0.04);
    touch-action: pan-y !important;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.map-touch-overlay.is-active {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.map-touch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9999px;
    background: rgba(47, 37, 25, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FAF7F2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid rgba(223, 214, 196, 0.3);
    box-shadow: 0 8px 24px rgba(47, 37, 25, 0.25);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.map-touch-overlay:active .map-touch-badge {
    transform: scale(0.96);
}

.map-lock-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #DFD6C4;
    box-shadow: 0 4px 16px rgba(47, 37, 25, 0.12);
    color: #2F2519;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.map-lock-btn:active {
    transform: scale(0.94);
}

/* En pantallas de escritorio con ratón fino, ocultar overlays y botones táctiles */
@media (hover: hover) and (pointer: fine) {
    .map-touch-overlay,
    .map-lock-btn {
        display: none !important;
    }
}

/* ─── Controles y acabado de mapas de lujo (CartoDB Positron / Leaflet) ─── */
.leaflet-container {
    background-color: #FAF7F2 !important;
    font-family: inherit !important;
}

.leaflet-control-zoom {
    border: 1px solid #DFD6C4 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(47, 37, 25, 0.08) !important;
}

.leaflet-control-zoom a {
    background-color: #FAF7F2 !important;
    color: #2F2519 !important;
    border-bottom: 1px solid #DFD6C4 !important;
    font-weight: 700 !important;
    line-height: 26px !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background-color: #FFFFFF !important;
    color: #C0A084 !important;
}

.leaflet-control-attribution {
    background: rgba(250, 247, 242, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    color: #6D5940 !important;
    font-size: 9.5px !important;
    border-top-left-radius: 8px !important;
    padding: 2px 8px !important;
}

.leaflet-control-attribution a {
    color: #6D5940 !important;
}

