/* ==========================================================================
   HOJA DE ESTILOS PREMIUM: CATÁLOGO GENERAL (VIOLETA GIL BIENES RAÍCES)
   ========================================================================== */

body.vg-catalog-page {
    background-color: #f8fafc !important;
}

body.vg-catalog-page #secondary {
    display: none !important;
}

/* DISEÑO MITAD MAPA DE ALTA GAMA (DESBLOQUEO DE CONTENEDOR) */
body.vg-catalog-page .site-content {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body.vg-catalog-page #primary,
body.vg-catalog-page .content-area,
body.vg-catalog-page .site-main {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    float: none !important;
}

body.vg-catalog-page .page-title,
body.vg-catalog-page .ast-archive-title,
body.vg-catalog-page .entry-title {
    font-size: 36px !important;
    font-weight: 900 !important;
    color: #0b2240 !important;
    text-align: center !important;
    margin: 0 0 35px 0 !important;
    border: none !important;
    letter-spacing: -0.5px !important;
}

.es-layout-builder {
    background: #ffffff !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(11, 34, 64, 0.03) !important;
    margin-bottom: 35px !important;
    display: flex !important;
    align-items: center !important;
}

.es-listing .es-property-inner {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 18px rgba(11, 34, 64, 0.04) !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.es-listing .es-property-inner:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 30px rgba(11, 34, 64, 0.1) !important;
    border-color: #cbd5e1 !important;
}

.es-listing .es-price {
    color: #0088cc !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    margin-top: 10px !important;
}

.es-listing .es-property-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0b2240 !important;
    margin-bottom: 8px !important;
}

/* ============================================
   ESTILOS PARA EL MAPA GLOBAL DEL CATÁLOGO
   ============================================ */
.es-map-wrap, .es-half-map__map, .js-es-properties__map {
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(11, 34, 64, 0.06) !important;
    width: 100% !important;
    height: 500px !important; /* CORRECCIÓN: Le damos una altura controlada en lugar de 600px fijos */
    position: relative !important;
}

.vg-archive-marker-container {
    background: none !important;
    border: none !important;
    width: 30px !important;
    height: 42px !important;
}

.leaflet-marker-icon.vg-archive-marker-container {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    /* CORRECCIÓN: Se eliminó el "margin: 0" para que Leaflet pueda clavar el pin en su coordenada */
}

.vg-archive-marker-container .vg-marker-pin {
    width: 30px !important;
    height: 42px !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 34'%3E%3Cpath fill='%230b2240' stroke='%23ffffff' stroke-width='2' d='M12 2C6.48 2 2 6.48 2 12c0 7.5 10 20 10 20s10-12.5 10-20c0-5.52-4.48-10-10-10z'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%230088cc'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    position: relative !important; 
    z-index: 1000 !important;
    filter: drop-shadow(0px 4px 4px rgba(0,0,0,0.3)) !important;
}

.vg-archive-marker-container .vg-marker-pulse {
    background: rgba(0, 136, 204, 0.4) !important;
    border-radius: 50% !important;
    height: 10px !important;
    width: 30px !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    animation: vg-pulsate 1.8s ease-out infinite !important;
    z-index: -1 !important;
}

/* *** *** *** */

.vg-map-popup-premium {
    width: 220px !important; 
    display: flex !important;
    flex-direction: column !important;
}
.vg-map-popup__img-wrap {
    width: 100% !important;
    height: 120px !important; 
    overflow: hidden !important;
    border-radius: 8px 8px 0 0 !important;
}
.vg-map-popup__cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.vg-map-popup__body {
    padding: 15px 12px !important; 
    background: #ffffff !important;
    border-radius: 0 0 8px 8px !important;
    text-align: center !important;
}
.vg-map-popup__price-badge {
    font-size: 18px !important; 
    font-weight: 900 !important;
    color: #0b2240 !important;
}
.vg-map-popup__title-main {
    font-size: 13px !important; 
    font-weight: 500 !important;
    color: #64748b !important;
    margin: 5px 0 0 0 !important;
}
.vg-map-popup__btn {
    display: block !important;
    margin-top: 12px !important;
    padding: 8px 12px !important;
    background: #0088cc !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
.vg-map-popup__btn:hover {
    background: #0b2240 !important;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(11,34,64,0.2) !important;
    background: #ffffff !important;
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-container a.leaflet-popup-close-button {
    color: #ffffff !important;
    background: rgba(11, 34, 64, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 50% !important;
    width: 24px !important; 
    height: 24px !important; 
    line-height: 24px !important; 
    text-align: center !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 14px !important;
}
.leaflet-popup-tip { background: #ffffff !important; box-shadow: none !important; }

/* ==========================================================================
   ETIQUETAS DECORATIVAS (DESACTIVAR CLICS EN ES-BADGE)
   ========================================================================== */
.es-badge,
a.es-badge,
.es-badge-wrap a,
.es-listing .es-badge {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
}