#property_map {
    z-index: 1;
    font-family: "Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif !important;
    min-height: 90vh;
}

.property-map-container {
    margin: 0px 0px;
}

.map-layout {
    display: flex;
    gap: 0px;
    align-items: flex-start;
}

/* Contenedor de filtros - NUEVA ESTRUCTURA LATERAL */
.property-filters {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 20px 50px 20px;
    background: #fff;
    border-radius: 0px;
    border: 0px;
    max-height: 90vh;
    overflow-y: auto;
    min-height: 90vh;
}

.map-container {
    flex: 1;
    min-height: 90vh;
}

/* Toggle Switch de Moneda */
.currency-toggle-container {
    margin-bottom: 10px;
}

.currency-toggle-container label {
    font-weight: bold;
    margin-bottom: 0px;
    display: block;
    color: #495057;
    font-size: 14px;
}

.currency-toggle {
    display: flex;
    background: #e9ecef;
    border-radius: 6px;
    padding: 4px;
    border: 0;
}

.currency-toggle input[type="radio"] {
    display: none;
}

.toggle-option {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 13px;
}

.currency-toggle input[type="radio"]:checked + .toggle-option {
    background: white;
    color: black;
}

/* Filas de filtros */
.filter-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
    font-size: 13px;
}

.filter-group select,
.filter-group input {
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
}

/* Botones de filtros */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.filter-button {
    flex: 1;
    padding: 15px 15px;
    background: #006aff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.filter-button:hover {
    background: #005a87;
}

.filter-button.reset {
    background: #6c757d;
}

.filter-button.reset:hover {
    background: #545b62;
}

/* Encabezado desplegable para móviles */
.filters-toggle {
    display: none;
    background: black;
    color: white;
    padding: 15px 20px;
    border-radius: 0px;
    cursor: pointer;
    margin-bottom: 0px;
    text-align: center;
    font-weight: bold;
    transition: background 0.1s;
}

.filters-toggle:hover {
    background: black;
}

.filters-toggle .toggle-icon {
    margin-left: 10px;
    transition: transform 0.3s;
}

.filters-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Estilos para móviles - CORREGIDO */
@media (max-width: 1024px) {
    .map-layout {
        flex-direction: row;
    }
    
    .property-filters {
        flex: none;
        width: 100%;
        max-height: none;
        margin-bottom: 0; /* Eliminar margen inferior */
    }
    
    .filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px; /* Espacio entre toggle y mapa */
    }
    
    
    .property-filters {
        display: none; /* Ocultos por defecto en móviles */
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .property-filters.active {
        display: flex; /* Mostrar cuando está activo */
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .filter-button {
        flex: 1;
        max-width: 150px;
    }
    
    /* Asegurar que el mapa sea visible */
    .map-container {
        min-height: 90vh; /* Altura mínima para móviles */
        width: 100%;
    }
    
    #property_map {
        height: 90vh !important; /* Forzar altura en móviles */
        width: 100% !important;
    }
}

/* Ajustes específicos para tablets */
@media (max-width: 768px) {
    .property-filters {
        padding: 15px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-button {
        max-width: 100%;
        max-height: 40px;
        min-height: 40px;
    }
    
    .map-container {
        min-height: 90vh;
    }
    
    
    .filter-row {
    display: flex;
    gap: 10px;
    width: 50%;
    padding-right: 5px;
    }
    
    
    #property_map {
        height: 450px !important;
    }
}

/* Ajustes para móviles pequeños */
@media (max-width: 480px) {
    .property-filters {
        padding: 10px;
    }
    
    .filter-group label {
        font-size: 12px;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .filter-button {
        padding: 8px 12px;
        font-size: 12px;
        max-height: 40px;
        min-height: 40px;
    }
    
    .toggle-option {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .map-container {
        min-height: 90vh;
    }
    
    #property_map {
        height: 90vh !important;
    }
    
    .property-short-description,
    .property-full-description {
        padding: 10px;
    }
    
    .property-full-content {
        padding: 0;
    }
    
    .video-unavailable {
        padding: 30px 10px;
        font-size: 14px;
    }
}

/* Popup Styles */
.property-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    border-radius: 0px;
    width: 30%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

/* Toggle Switch para Info/Video */
.popup-tabs {
    display: flex;
    background: #eaeaea;
    border-radius: 8px;
    padding: 4px;
    margin: 15px 0;
}

.popup-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    transition: all 0.3s;
    color: black;
}


button.popup-tab {
    background-color: #eaeaea;
    color: gray;
    box-shadow: none;
}

.popup-tab.active {
    background: white;
    box-shadow: none;
    color: black;
}


.popup-tab.active:hover{
    color: black;
}



.popup-tab-content {
    display: none;
}

.popup-tab-content.active {
    display: block;
}

/* Video Container */
.video-container {
    width: 100%;
    height: 720px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-unavailable {
    color: #666;
    text-align: center;
    padding: 60px 20px;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Botón de WhatsApp */
.whatsapp-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #006bff;
    color: white;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    margin: 0 0;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    line-height: 1.2;
}

.whatsapp-btn:hover {
    background: #005bff;
    color: white;
}

.whatsapp-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.whatsapp-btn.disabled:hover {
    background: #6c757d;
}

/* Botón Ver Propiedad */
.view-property-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #0080ff;
    color: white;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.view-property-btn:hover {
    background: #0066cc;
}

/* Swiper Styles */
.property-slider {
    width: 100%;
    height: 250px;
    border-radius: 0px 0px 0 0;
}

.property-slider .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.property-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination {
    bottom: 10px !important;
}

.swiper-button-next, .swiper-button-prev {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.property-info {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 0px;
    color: #333;
}

.property-price {
    font-size: 20px;
    color: black;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    margin-top: 10px;
    letter-spacing: -0.3px;
}

.property-price small {
    color: #2f2f2f;
    font-weight: 500;
}

.property-meta-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Badges del popup - COLORES PERSONALIZADOS */
.property-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

/* Colores específicos para cada estado */
.property-status-badge[style*="red"],
.property-status-badge.red-badge {
    background: #eaeaea !important;
}

.property-status-badge[style*="yellow"],
.property-status-badge.yellow-badge {
    background: #eaeaea !important;
}

.property-status-badge[style*="green"],
.property-status-badge.green-badge {
    background: #eaeaea !important;
}

.property-status-badge[style*="blue"],
.property-status-badge.blue-badge {
    background: #eaeaea !important;
}

.property-type-badge {
    background: #eaeaea !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.property-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 15px 0;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

/* Estilos para la nueva estructura de información SIN SCROLL INDEPENDIENTE */
.property-short-description {
    margin: 20px 0;
    padding: 15px;
    background: #eaf4fc;
    border-radius: 4px;
    border: 1px solid #006bff;
}

.property-full-description {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.property-full-description h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

/* Ajustes para el contenido de descripción SIN SCROLL EN ABSOLUTO */
.property-description {
    line-height: 1.2;
    color: black;
    margin: 0;
}

.property-full-content {
    line-height: 1.6;
    color: #333;
    padding: 0;
}

.property-full-content p {
    margin-bottom: 12px;
}

.property-full-content ul, 
.property-full-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.property-full-content li {
    margin-bottom: 6px;
}

.property-full-content h1,
.property-full-content h2,
.property-full-content h3,
.property-full-content h4 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.property-full-content h1 {
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 6px;
}

.property-full-content h2 {
    font-size: 18px;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 4px;
}

.property-full-content h3 {
    font-size: 16px;
}

.property-full-content blockquote {
    border-left: 3px solid #3498db;
    padding-left: 12px;
    margin: 15px 0;
    font-style: italic;
    color: #7f8c8d;
}

.property-full-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.property-full-content table th,
.property-full-content table td {
    border: 1px solid #bdc3c7;
    padding: 8px;
    text-align: left;
}

.property-full-content table th {
    background: #ecf0f1;
    font-weight: bold;
}

.property-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

.property-full-content a {
    color: #3498db;
    text-decoration: none;
}

.property-full-content a:hover {
    text-decoration: underline;
}

.property-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    line-height: 1.2;
}

.property-agent {
    font-weight: bold;
    color: #333;
}

.property-real-estate {
    color: #666;
    font-size: 14px;
}

/* Custom Map Pins con Precio */
.custom-map-pin {
    background: transparent !important;
    border: none !important;
}

.custom-pin {
    width: 50px;
    height: 55px;
    position: relative;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pin-body {
    width: 50px;
    height: 50px;
    background: currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.pin-price {
    transform: rotate(45deg);
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    width: 100%;
    padding: 0 2px;
}

.pin-shadow {
    display: none !important;
    width: 30px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 10px;
    filter: blur(2px);
}

/* Tooltip personalizado - SIEMPRE VISIBLE */
.property-tooltip-permanent {
    background: white !important;
    border: 2px solid #007cba !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.property-tooltip-permanent:before {
    border-top-color: #007cba !important;
}

.property-tooltip-permanent strong {
    color: #333;
    display: block;
    margin-bottom: 2px;
}

/* Colores específicos para los pines */
.custom-pin[style*="red"] .pin-body {
    background: #ed0017 !important;
}

.custom-pin[style*="yellow"] .pin-body {
    background: #ffc107 !important;
}

.custom-pin[style*="green"] .pin-body {
    background: #008f21 !important;
}

.custom-pin[style*="blue"] .pin-body {
    background: #006aff !important;
}

/* Estilos para las taxonomías en el admin */
#property_statusdiv .categorychecklist,
#property_typediv .categorychecklist {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
}

#property_statusdiv .categorychecklist li,
#property_typediv .categorychecklist li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .property-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .property-details {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        width: 100%;
        margin: 20px;
        height: 100%;
    }
    
    .custom-pin {
        width: 40px;
        height: 45px;
    }
    
    .pin-body {
        width: 40px;
        height: 40px;
    }
    
    .pin-price {
        font-size: 9px;
    }
    
    .property-tooltip-permanent {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
    
    .property-short-description,
    .property-full-description {
        padding: 12px;
        margin: 15px 0;
    }
    
    .property-full-content {
        font-size: 14px;
    }
    
    .property-full-content h1 {
        font-size: 18px;
    }
    
    .property-full-content h2 {
        font-size: 16px;
    }
    
    .property-full-content h3 {
        font-size: 15px;
    }
    
    .video-unavailable {
        padding: 40px 15px;
    }
    
    .property-full-description,
    .property-short-description {
        overflow: visible !important;
        max-height: none !important;
    }
}



























































/* Asegurar que los tooltips de Leaflet se muestren correctamente */
.leaflet-tooltip {
    background: white;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-weight: bold;
}

.leaflet-tooltip:before {
    border-top-color: #007cba;
}









/* Estilos para el sistema de favoritos */
.property-favorites-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-favorites-page h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.favorite-property-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.favorite-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.favorite-property-image {
    height: 200px;
    overflow: hidden;
}

.favorite-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.favorite-property-card:hover .favorite-property-image img {
    transform: scale(1.05);
}

.favorite-property-info {
    padding: 15px;
}

.favorite-property-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.favorite-property-price {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.favorite-property-sale-price {
    font-size: 18px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 5px;
}

.favorite-property-original-price {
    font-size: 16px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.favorite-property-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.favorite-property-department {
    background: #e7f3ff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #007cba;
    display: inline-block;
    margin-bottom: 10px;
}

.favorite-property-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.favorite-remove-btn {
    background: #fd0056 !important;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.favorite-remove-btn:hover {
    background: #c0392b;
}

.favorite-view-btn {
    background: #007cba;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.favorite-view-btn:hover {
    background: #005a87;
    color: white;
}

.no-favorites {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-favorites h3 {
    color: #666;
    margin-bottom: 15px;
}

.no-favorites .button {
    background: #007cba;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
}

.no-favorites .button:hover {
    background: #005a87;
}

/* Botón de favoritos en el popup */
.favorite-btn {
    flex: 1.5; /* Cada uno ocupa 1.5 partes de 10 (15% cada uno) */
    min-width: 50px; /* Ancho mínimo para mantener forma cuadrada */
    aspect-ratio: 1/1; /* Mantener relación cuadrada */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: white;
    border: 2px solid #006bff;
    color: #006bff;
}

.favorite-btn:hover {
    background: white;
    color: blue;

}

.favorite-btn.active {
    background: #e91e63;
    color: #ffffff;
    border: 2px solid #e91e63;
}

.favorite-btn.active:hover {
    background: #e91e63;
    color: white;
}

/* Botón de compartir en el popup */
.share-btn {
    flex: 1.5; /* Cada uno ocupa 1.5 partes de 10 (15% cada uno) */
    min-width: 50px; /* Ancho mínimo para mantener forma cuadrada */
    aspect-ratio: 1/1; /* Mantener relación cuadrada */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: white;
    border: 2px solid #006bff;
    color: #006bff;
}

.share-btn:hover {
    background: #005bff;
    color: white;
}

/* Botón de contactar modificado */
.whatsapp-btn.modified {
    flex: 7; /* Ocupa 7 partes de 10 (70%) */
    min-width: 0; /* Permite que se reduzca */
}

/* Contenedor de botones fijos en el popup */
.popup-action-buttons {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    border-top: 0;
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: stretch;
    height: 80px;
    z-index: 999999;
}


a.whatsapp-btn.modified .feather {
    display: none;
}


.whatsapp-btn.disabled .feather {
    display: none;
}


.contact-subtext {
    font-size: 12px;
    color: white;
    text-align: center;
    margin-top: 5px;
    font-style: normal;
    font-weight: 100;
}

/* Modal de compartir */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.share-modal h3 {
    margin-bottom: 20px;
    color: #333;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-option {
    background: #eff7ff;
    border: 1px solid #006aff;
    border-radius: 4px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #006aff;
}

.share-option:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.share-option.whatsapp i { color: #25D366; }
.share-option.facebook i { color: #1877F2; }
.share-option.twitter i { color: #1DA1F2; }
.share-option.link i { color: #6c757d; }

.share-url {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-url input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.share-url-copy {
    background: #006aff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.share-url-copy:hover {
    background: #005a87;
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feather Icons */
.feather {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Responsive para favoritos */
@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
}





/* Estilos específicos para móviles */
@media (max-width: 768px) {
    .popup-action-buttons {
        flex-wrap: nowrap; /* Mantener en una línea */
        gap: 8px;
        padding: 10px 0px;
    }
    
    .whatsapp-btn.modified {
        flex: 7; /* 70% del ancho */
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .favorite-btn, .share-btn {
        flex: 1.5; /* 15% cada uno */
        min-width: 44px; /* Tamaño mínimo táctil recomendado */
        height: auto; /* Altura automática para mantener cuadrado */
        aspect-ratio: 1/1;
    }
    
    /* Asegurar que los íconos se centren bien */
    .favorite-btn i, 
    .share-btn i {
        margin: 0 !important; /* Remover márgenes en móviles */
    }
    
    .whatsapp-btn.modified i {
        margin-right: 5px !important; /* Margen reducido en móviles */
    }
}

@media (max-width: 480px) {
    .popup-action-buttons {
        gap: 6px;
        padding: 10px 0px;
    }
    
    .whatsapp-btn.modified {
        font-size: 14px; /* Texto más pequeño en móviles muy pequeños */
        padding: 10px 8px;
    }
    
    .favorite-btn, .share-btn {
        min-width: 40px;
        padding: 8px;
    }
    
    .contact-subtext {
        font-size: 10px; /* Texto más pequeño */
        margin-top: 2px;
    }
}











/* Estilos mejorados para el popup */
.property-department {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Precios con oferta */
.sale-price-container {
    position: relative;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.original-price small {
    color: #999;
    padding-left: 10px;
}

.sale-price {
    color: #e67e22;
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
}

.sale-price small {
    color: #e67e22;
    padding-left: 10px;
}

/* Badges con puntos de color */
.property-meta-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.property-status-badge,
.property-type-badge,
.property-availability-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    color: black;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.property-type-badge {
    background: #eaeaea !important;
}

.property-availability-badge {
    background: #eaeaea !important;
}

/* Servicios y Amenities */
.property-services,
.property-amenities,
.property-transport {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #006aff;
}

.property-services h4,
.property-amenities h4,
.property-transport h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.services-list,
.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.service-item,
.amenity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.service-name,
.amenity-name {
    font-weight: 500;
    color: #555;
}

.service-value,
.amenity-value {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.service-value.yes,
.amenity-value.yes {
    background: #d4edda;
    color: #155724;
}

.service-value.no,
.amenity-value.no {
    background: #f8d7da;
    color: #721c24;
}

/* Transporte */
.transport-info {
    color: #555;
    line-height: 1.5;
}

/* Mapa individual */
.property-individual-map {
    margin: 20px 0;
    padding: 0px;
    background: #fff;
    border-radius: 0px;
    border-left: 0;
}

.property-individual-map h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.how-to-get-btn {
    display: inline-flex;
    align-items: center;
    background: #323232;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    transition: background 0.3s;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.how-to-get-btn:hover {
    background: #219653;
    color: white;
}

/* Meta información mejorada */
.property-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.property-agent,
.property-real-estate,
.property-custom-id {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
}

.property-agent:last-child,
.property-real-estate:last-child,
.property-custom-id:last-child {
    margin-bottom: 0;
}

.agent-link {
    color: #0073ff;
    text-decoration: none !important;
    font-weight: 500;
    margin-left: 5px;
}

.agent-link:hover {
    text-decoration: underline;
}

/* Tabs con íconos */
.popup-tab {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feather Icons en el popup */
.property-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.property-full-description h4 {
    display: flex;
    align-items: center;
}

/* Responsive para el popup mejorado */
@media (max-width: 768px) {
    .services-list,
    .amenities-list {
        grid-template-columns: 1fr;
    }
    
    .property-meta-badges {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .property-status-badge,
    .property-type-badge,
    .property-availability-badge {
        width: fit-content;
    }
    
    .sale-price-container {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}










/* Toggle de Vistas */
.view-toggle-container {
    margin-bottom: 20px;
    text-align: center;
}

.view-toggle {
    display: inline-flex;
    background: #e9ecef;
    border-radius: 8px;
    padding: 4px;
    border: 0px;
}

.view-toggle input[type="radio"] {
    display: none;
}

.view-option {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.view-toggle input[type="radio"]:checked + .view-option {
    background: white;
    color: black;
}

/* Contenedor principal de vistas */
.main-view-container {
    flex: 1;
    position: relative;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* Estilos para la Galería */

.gallery-container {
    margin: 10px;
}

.gallery-view,
.list-view {
    min-height: 600px;
}

.gallery-header,
.list-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.gallery-header h3,
.list-header h3 {
    margin: 0;
    color: #333;
    flex: 1;
}

.gallery-count,
.list-count {
    background: #007cba;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.property-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.property-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.property-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property-card-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}



.property-card-badge[style*="yellow"] {
    background: #f3b700 !important;
}





.property-card-content {
    padding: 15px;
}

.property-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.property-card-department {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.property-card-price {
    font-size: 18px;
    font-weight: bold;
    color: #007eff;
    margin-bottom: 10px;
}

.property-card-sale-price {
    font-size: 16px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 5px;
}

.property-card-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.property-card-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.property-card-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}
    


















/* Estilos para la Lista */


.list-container {
    margin:10px;
}


.properties-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.property-list-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.property-list-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.property-list-image {
    width: 20%;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.property-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-list-content {
    flex: 1;
}

.property-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-direction: column;
    gap: 5px;
}

.property-list-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex: 1;
}

.property-list-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.property-list-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}



.property-list-badge[style*="yellow"] {
    background: #f3b700 !important;
}









.property-list-department {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.property-list-price {
    font-size: 18px;
    font-weight: bold;
    color: #007eff;
    margin-bottom: 5px;
}

.property-list-sale-price {
    font-size: 16px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 5px;
}

.property-list-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 8px;
}

.property-list-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.property-list-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}



















/* NUEVO: Estilos responsive para vista lista en móvil */
@media (max-width: 768px) {
    .property-list-item {
        flex-direction: row !important; /* Mantener horizontal en móvil */
        align-items: flex-start;
        padding: 12px;
        gap: 12px;
        margin: 0px 0px;
    }
    
    .property-list-image {
        width: 40% !important;
        height: 15vh !important;
        flex-shrink: 0;
    }
    
    .property-list-content {
        flex: 1;
        overflow: hidden; /* Prevenir desbordamiento */
    }
    
    .property-list-header {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 8px;
    }
    
    .property-list-title {
        font-size: 14px;
        line-height: 1.3;
        margin: 0;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .property-list-badges {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .property-list-badge {
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 9px;
    }
    
    .property-list-department {
        font-size: 11px;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .property-list-price {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .property-list-sale-price {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .property-list-original-price {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .property-list-details {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px;
        font-size: 10px;
    }
    
    .property-list-detail {
        display: flex;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
    }
    
    .property-list-detail i {
        width: 10px !important;
        height: 10px !important;
    }
    
    /* Ajustar botón de favoritos en lista móvil */
    .property-list-favorite {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }
    
    /* Ajustar badge destacado en lista móvil */
    .property-list-item .featured-badge {
        top: 7%;
        left: 4%;
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* NUEVO: Estilos para móviles muy pequeños */
@media (max-width: 480px) {
    .property-list-item {
        padding: 10px;
        gap: 10px;
    }
    
    .property-list-image {
        width: 80px;
        height: 70px;
    }
    
    .property-list-title {
        font-size: 13px;
    }
    
    .property-list-price {
        font-size: 14px;
    }
    
    .property-list-sale-price {
        font-size: 13px;
    }
    
    .property-list-details {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .property-list-detail {
        font-size: 9px;
    }
}

/* NUEVO: Asegurar que el contenido no se desborde en móvil */
.property-list-content > * {
    max-width: 100%;
}

/* NUEVO: Mejorar la visualización de precios en lista móvil */
.property-list-price,
.property-list-sale-price,
.property-list-original-price {
    line-height: 1.2;
}

.property-list-price small,
.property-list-sale-price small,
.property-list-original-price small {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
}

/* NUEVO: Ajustar el grid de detalles para mejor uso del espacio */
@media (max-width: 768px) and (min-width: 481px) {
    .property-list-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

























/* Filtros con Checklists */
.filter-checklist-group {
    margin-bottom: 15px;
}

.filter-checklist-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    color: #495057;
    font-size: 13px;
}


label.checklist-item {
    font-weight: normal;
}




.checklist-container {
    max-height: 150px;
    overflow-y: auto;
    border: none;
    border-radius: 4px;
    padding: 0px;
    background: white;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #ced4da;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
    
}

.checklist-item input[type="checkbox"]:checked + .checkmark {
    background: #007cba;
    border-color: #007cba;
}

.checklist-item input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-label {
    color: #495057;
}

/* Búsqueda por IDs */
#property_ids_search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

/* Estados de carga */
.gallery-loading,
.list-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.gallery-empty,
.list-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #666;
}

/* Responsive para vistas */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .property-list-item {
        flex-direction: column;
    }
    
    .property-list-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        margin: 0px 0px;
    }
    
    .view-option {
        padding: 8px 12px;
        font-size: 12px;
        display: flex;
        justify-content: center;
    }
    
    .view-option i {
        display: none;
    }
    
    .gallery-header,
    .list-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        display: none;
    }
    
    .property-list-details {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .view-toggle {
        flex-direction: row;
        width: 100%;
    }
    
    .view-option {
        padding: 10px;
    }
}






/* Mapa individual en página de propiedad */
.individual-property-map-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007cba;
}

.individual-property-map-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.how-to-get-btn-single {
    display: inline-flex;
    align-items: center;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    margin-top: 15px;
}

.how-to-get-btn-single:hover {
    background: #219653;
    color: white;
}

/* Mejoras para checklists en filtros */
.checklist-container {
    max-height: 150px;
    overflow-y: hidden;
    border: none;
    border-radius: 4px;
    padding: 0px;
    background: white;
    position: relative;
}



.checklist-container.expanded {
    max-height: none;
    overflow-y: visible;
}

.checklist-show-more {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, white 0%);
    padding: 10px 0 10px 0;
    text-align: center;
    cursor: pointer;
    color: #006aff;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.checklist-show-more:hover {
    color: #005a87;
}

.checklist-container.expanded .checklist-show-more {
    position: relative;
    background: transparent;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

.checklist-show-more i {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.checklist-container.expanded .checklist-show-more i {
    transform: rotate(180deg);
}

/* Ajustar para móviles */
@media (max-width: 1024px) {
    .checklist-container {
        max-height: 120px;
    }
}






.checklist-container::-webkit-scrollbar {
    width: 6px;
}

.checklist-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.checklist-container::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 3px;
}

.checklist-container::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}

/* Mejoras para tarjetas en galería */
.property-card {
    position: relative;
}

.property-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #777777;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    padding: 10px;
}

.property-card-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.property-card-favorite.active {
    background: #f30049;
    color: white;
}

/* Mejoras para lista */
.property-list-item {
    position: relative;
}

.property-list-favorite {
    position: absolute;
    top: 8%;
    left: 18%;
    background: #777777;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    padding: 10px;
}

.property-list-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.property-list-favorite.active {
    background: #f30049;
    color: white;
}

/* Indicador de carga mejorado */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras responsive finales */
@media (max-width: 768px) {
    .individual-property-map-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .individual-property-map-section h3 {
        font-size: 20px;
    }
    
    .how-to-get-btn-single {
        width: 100%;
        justify-content: center;
    }
    
    .property-card-favorite,
    .property-list-favorite {
        width: 32px;
        height: 32px;
    }
    
    
    .property-list-favorite {
        left: 30%;
        top: 10%;
    }
    
}

/* Estados para propiedades no disponibles */
.property-unavailable {
    opacity: 0.7;
    position: relative;
}

.property-unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.property-unavailable-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

/* Mejoras para el sistema de favoritos en páginas individuales */
.favorite-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.favorite-toggle:hover {
    background: #f8f9fa;
}

.favorite-toggle.active {
    color: #e74c3c;
}



/* Estilos para precios con oferta en tarjetas */
.property-card-original-price,
.property-list-original-price {
    text-decoration: line-through !important;
    color: #ff0000 !important;
    font-size: 14px !important;
    opacity: 0.7;
}

.property-card-sale-price,
.property-list-sale-price {
    color: #1a9500 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

/* Toggle de Modo dentro de la barra de filtros */
.property-filters .view-toggle-container {
    margin-bottom: 20px;
}


.view-toggle-container label {
    text-align: start;
}


.property-filters .view-toggle-container label {
    font-weight: bold;
    margin-bottom: 0px;
    display: block;
    color: #495057;
    font-size: 13px;
}

.property-filters .view-toggle {
    display: flex;
    background: #e9ecef;
    border-radius: 6px;
    padding: 4px;
    border: 0;
}

.property-filters .view-option {
    flex: 1;
    padding: 8px 5px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
}

.property-filters .view-toggle input[type="radio"]:checked + .view-option {
    background: white;
    color: black;
}

.property-filters .view-option i {
    width: 14px;
    height: 14px;
}

/* Responsive para toggle en filtros */
@media (max-width: 1024px) {
    .property-filters .view-option span {
        display: auto;
    }
    
    .property-filters .view-option {
        padding: 8px;
    }
}



label.view-option .feather {
    display: none;
}

/* Modal de error de validación */
.validation-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.validation-error-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.validation-error-content h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 20px;
}

.error-list {
    text-align: left;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.error-list p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #333;
}

.error-list ul {
    margin: 0;
    padding-left: 20px;
    color: #e74c3c;
}

.error-list li {
    margin-bottom: 5px;
}

.validation-error-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-error-ok {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}

.validation-error-ok:hover {
    background: #c0392b;
}

/* Estilos para la sección Otros */
.property-others {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #006aff;
}

.property-others h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.others-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.other-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.other-name {
    font-weight: 500;
    color: #555;
    flex: 1;
}

.other-value {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    min-width: 35px;
    text-align: center;
}

.other-value.yes {
    background: #d4edda;
    color: #155724;
}

.other-value.no {
    background: #f8d7da;
    color: #721c24;
}

/* NUEVO: Barra de controles móviles */
.mobile-controls-bar {
    display: none;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: #d1d1d1;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #d1d1d1;
}

.mobile-control-btn {
    position: relative;
    background: white;
    border: none;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    border-radius: 0px;
}

.mobile-control-btn:hover {
    background: #f8f9fa;
}

.mobile-control-btn i {
    width: 18px;
    height: 18px;
}

.mobile-control-btn.active {
    background: #007cba;
    color: white;
}

.mobile-modal-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 500;
}


.mobile-modal-content .filter-button {
    margin-top: 0px !important;
}


.mobile-modal-content .view-toggle-container {
    margin-top: 20px;
}



/* Modales móviles específicos */
#mobile_filters_content {
    flex: 1;
    overflow-y: auto;
}

#mobile_filters_content .property-filters {
    background: transparent;
    border: none;
    padding: 0;
    max-height: none;
}

#mobile_filters_content .view-toggle-container,
#mobile_filters_content .currency-toggle-container {
    display: none !important;
}

/* Responsive: Mostrar solo en móviles */
@media (max-width: 1024px) {
    .mobile-controls-bar {
        display: grid;
    }
    
    .property-filters {
        display: none !important;
    }
    
    .map-layout {
        gap: 0;
    }
}

/* Ocultar en desktop */
@media (min-width: 1025px) {
    .mobile-controls-bar {
        display: none !important;
    }
    
    #mobile_currency_modal,
    #mobile_mode_modal,
    #mobile_filters_modal {
        display: none !important;
    }
}

/* Asegurar que los modales móviles ocupen toda la pantalla */
@media (max-width: 1024px) {
    #mobile_currency_modal .popup-content,
    #mobile_mode_modal .popup-content,
    #mobile_filters_modal .popup-content {
        margin: 0;
        border-radius: 0;
    }
}

.filters-badge {
    position: absolute;
    top: 5px;
    right: 30%;
    background: black;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.filters-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}













/* ... [todo el código anterior se mantiene igual] */

/* NUEVO: Header del popup */
.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10002;
    border-radius: 0px 0px 0 0;
}

.popup-header-left,
.popup-header-center,
.popup-header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.popup-header-left {
    justify-content: flex-start;
}

.popup-header-center {
    justify-content: center;
}

.popup-header-right {
    justify-content: flex-end;
}

.popup-home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.popup-home-btn:hover {
    background: #f8f9fa;
    color: #005a87;
}

.popup-logo {
    max-width: 130px;
    height: auto;
}





/* BOTÓN CERRAR SOLO EN EL HEADER */
.popup-close-header {
    font-size: 30px;
    color: #666;
    cursor: pointer;
    background: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    border: none;
    box-shadow: none;
}

.popup-close-header:hover {
    background: #f8f9fa;
    color: #333;
}













/* NUEVO: Controles de ordenamiento */
.sorting-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: none;
}

.sorting-controls label {
    font-weight: bold;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.sorting-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

/* NUEVO: Badge de propiedad destacada */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #006aff, #00aed4);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-badge-favorites {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.property-card .featured-badge {
    top: 18%;
    left: 10px;
}



.property-list-item .featured-badge {
    top: 10%;
    left: 2%;
}



/* Ajustes para propiedades destacadas en mapa */
.custom-pin.featured-pin .pin-body {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* NUEVO: Estilos para la página de favoritos corregida */
.featured-badge-favorites {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.favorite-property-card {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.favorite-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.favorite-property-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.favorite-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.favorite-property-card:hover .favorite-property-image img {
    transform: scale(1.05);
}

.favorite-property-info {
    padding: 15px;
}

.favorite-property-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.favorite-property-department {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.favorite-property-price {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.favorite-property-sale-price {
    font-size: 18px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 5px;
}

.favorite-property-original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.favorite-property-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.favorite-property-details div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-property-actions {
    display: flex;
    gap: 10px;
}

.favorite-remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.favorite-remove-btn:hover {
    background: #c0392b;
}

.favorite-view-btn {
    background: #006aff;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.favorite-view-btn:hover {
    background: #005a87;
    color: white;
}

/* Responsive para nuevos elementos */
@media (max-width: 768px) {
    .popup-header {
        padding: 12px 15px;
    }
    
    .popup-home-btn span {
        display: none;
    }
    
    .popup-home-btn {
        padding: 8px;
    }
    
    .popup-logo {
        max-width: 130px;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 35px;
    }
    
    .sorting-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sorting-select {
        width: 100%;
    }
    
    .featured-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .popup-header {
        padding: 10px 12px;
    }
    
    .popup-logo {
        max-width: 120px;
    }
    
    .favorite-property-actions {
        flex-direction: column;
    }
    
    .favorite-remove-btn,
    .favorite-view-btn {
        justify-content: center;
    }
}

/* Asegurar que el slider comience después del header */
.property-slider {
    margin-top: 0;
}

/* Ajuste para el contenido del popup con nuevo header */
.property-info {
    padding-top: 0;
}




button.popup-back-btn {
    background: none;
    color: black;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: none;
}

@media (max-width: 768px) { 
    button.popup-back-btn span {
    display: none;
}
}























/* Estilos para el indicador de filtro por agente */
.agent-filter-indicator {
    background: #ebf5ff;
    border: 1px solid #006aff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.agent-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.agent-filter-label {
    font-size: 12px;
    color: #006aff;
    font-weight: 600;
}

.agent-filter-remove {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-filter-remove:hover {
    color: #e74c3c;
}

.agent-filter-info {
    margin-bottom: 10px;
}

.agent-filter-info strong {
    color: #333;
    font-size: 14px;
}

.agent-filter-count {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

.agent-filter-clear {
    background: #006aff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
}

.agent-filter-clear:hover {
    background: #005a87;
}

/* AGREGAR: Estilos específicos para móvil */
@media (max-width: 1024px) {
    .agent-filter-indicator {
        margin: 10px;
        background: #e7f3ff;
        border: 1px solid #007cba;
        border-radius: 8px;
        padding: 12px;
    }
    
    #mobile_filters_content .agent-filter-indicator {
        display: block !important; /* Forzar display */
    }
}


















