@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #006E6D;
    --primary-dark: #004A4A;
    --secondary: #C2A663;
    --white: #FFFFFF;
    --cream: #FAF5EF;
    --gray-light: #F5F5F5;
    --gray-dark: #333333;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}

/* Base del Modal */
.modal-property {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal-property.show {
    display: block;
    opacity: 1;
}

.modal-property .modal-dialog {
    position: relative;
    width: 95%;
    max-width: 1400px;
    margin: 1rem auto;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transform: translateY(-50px);
    opacity: 0;
    transition: all var(--transition-slow);
}

.modal-property.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-property .modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
}

/* Botón de Cerrar */
.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 10;
    transition: transform var(--transition-fast);
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Layout del Modal */
.modal-split {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    max-height: 85vh;
}

/* Galería */
.modal-gallery-side {
    padding: 2rem;
    background: var(--gray-light);
}

.main-image-viewer {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalMainImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.nav-circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.nav-circle:hover {
    opacity: 1;
    background: var(--primary-dark);
}

.nav-circle.prev { left: 1rem; }
.nav-circle.next { right: 1rem; }

/* Miniaturas */
.thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    height: 80px;
    overflow-y: auto;
}

.thumbnail {
    height: 60px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    border-color: var(--secondary);
}

/* Lado de Información */
.modal-info-side {
    padding: 2rem;
    overflow-y: auto;
    max-height: 85vh;
}

.property-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.property-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 1rem 0;
    font-family: 'Playfair Display', serif;
}

/* Grid de Vista Previa */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.preview-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.preview-grid img:hover {
    opacity: 0.8;
}

.view-all-photos {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 150px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.view-all-photos:hover {
    background: var(--secondary);
}

/* Estadísticas */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-box {
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 4px;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-bottom: 0.25rem;
    font-family: 'Poppins', sans-serif;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

/* Secciones de Información */
.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

/* Detalles de la Propiedad */
.details-grid {
    width: 100%;
    border-collapse: collapse;
}

.info-row {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-light);
    display: grid;
    grid-template-columns: 180px 1fr;
}

.info-label {
    color: var(--primary-dark);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.info-value {
    font-family: 'Poppins', sans-serif;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-category {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 4px;
}

.feature-category h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

/* Tour Virtual */
.virtual-tour-section {
    margin: 2rem 0;
    padding: 2.5rem;
    background: linear-gradient(to right, var(--cream), var(--white));
    border: 1px solid var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.virtual-tour-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 500;
}

.tour-view-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
}

.tour-view-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Mapa */
.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--secondary);
}

.view-map-btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-map-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1200px) {
    .modal-split {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery-side {
        height: auto;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .modal-property .modal-dialog {
        margin: 0;
        width: 100%;
        height: 100vh;
    }
    
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        grid-template-columns: 1fr;
    }
    
    .nav-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .modal-gallery-side {
        padding: 1rem;
    }
    
    .main-image-viewer {
        height: 300px;
    }
    
    .thumbnail-strip {
        height: 60px;
    }
}

/* Galería Modal a Pantalla Completa */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.show {
    display: block;
    opacity: 1;
}

.gallery-content {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-counter {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
}

.gallery-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.gallery-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.gallery-main img {
    max-height: 70vh;
    max-width: 90%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Navegación de la Galería */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: 2rem; }
.gallery-nav.next { right: 2rem; }

.gallery-thumbs {
    height: 120px;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem;
    margin: 0 auto;
    max-width: 90%;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) rgba(255,255,255,0.1);
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 3px;
}

.gallery-thumb {
    height: 100px;
    width: 150px;
    flex: 0 0 150px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--secondary);
}

/* Botón de Compartir */
.share-button {
    position: absolute;
    top: 1.5rem;
    right: 4.5rem;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.share-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 110, 109, 0.2);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive para Galería Modal */
@media (max-width: 992px) {
    .gallery-content {
        padding: 1rem;
    }

    .gallery-nav {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .gallery-nav.prev { left: 1rem; }
    .gallery-nav.next { right: 1rem; }

    .gallery-counter {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .gallery-close {
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }

    .gallery-thumbs {
        height: 100px;
        padding: 0.5rem;
    }

    .gallery-thumb {
        height: 80px;
        width: 120px;
        flex: 0 0 120px;
    }

    .gallery-main img {
        max-height: 60vh;
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery-main img {
        max-height: 50vh;
    }

    .gallery-thumbs {
        height: 80px;
    }

    .gallery-thumb {
        height: 60px;
        width: 90px;
        flex: 0 0 90px;
    }

    .gallery-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Mejoras de accesibilidad */
.gallery-nav:focus,
.gallery-close:focus,
.gallery-thumb:focus,
.tour-view-btn:focus,
.view-map-btn:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Mapa y Marcador */
.map-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--secondary);
    margin-bottom: 1rem;
    border-radius: 8px;
}

.location-content {
    background: var(--white);
    padding: 1rem 0;
}

.location-address {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.location-buttons {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
}

/* Marcador personalizado */
.custom-marker {
    background: transparent;
}

.marker-pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 6px 0;
    border-style: solid;
    border-color: var(--secondary) transparent transparent;
}

/* Botón de cerrar actualizado */
.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.close-modal:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--secondary);
}

/* Ajustes responsive para el mapa */
@media (max-width: 768px) {
    .map-container {
        height: 250px;
    }

    .location-buttons {
        flex-direction: column;
    }

    .close-modal {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
        top: 1rem;
        right: 1rem;
    }
}

/* Ajustes del Modal Backdrop y Scroll */
.modal-backdrop {
    display: none !important;
}

.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

.modal-property {
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.modal-property .modal-dialog {
    height: auto;
    min-height: calc(100vh - 2rem);
    margin: 1rem auto;
}

/* Aseguramos que el contenido del modal sea scrolleable */
.modal-property .modal-content {
    height: auto;
    min-height: 100%;
}

.modal-info-side {
    max-height: none;
    height: auto;
}

/* Evitar desbordamiento horizontal */
.modal-property .modal-body {
    overflow-x: hidden;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .modal-property .modal-dialog {
        margin: 0;
        min-height: 100vh;
    }
}

/* Estilos del Mapa Modal */
.modal-map-marker {
    width: 36px;
    height: 36px;
    position: relative;
}

.modal-marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: var(--secondary);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #FFFFFF;
    animation: bounce 0.5s ease-out;
}

.modal-marker-pin::after {
    content: '';
    width: 12px;
    height: 12px;
    margin: 4px 0 0 4px;
    background: #FFFFFF;
    position: absolute;
    border-radius: 50%;
}

/* Estilos del Mapa Principal */
.main-map-container {
    filter: saturate(0.9) brightness(1.1);
}

/* Marcadores por tipo de propiedad */
.marker-house {
    background: #D4AF37; /* Dorado elegante */
}

.marker-apartment {
    background: #936C47; /* Bronce suave */
}

.marker-land {
    background: #006E6D; /* Verde turquesa (primary) */
}

.marker-estate {
    background: #B76E79; /* Rosa antiguo */
}

.marker-commercial {
    background: #4A6670; /* Azul grisáceo */
}

/* Estilos base para marcadores */
.main-marker {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos por tipo de propiedad */
.marker-house {
    background: #D4AF37; /* Dorado elegante */
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.marker-apartment {
    background: #936C47; /* Bronce suave */
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.marker-condo {
    background: #B76E79; /* Rosa antiguo */
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.marker-land {
    background: #006E6D; /* Verde turquesa */
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.marker-estate {
    background: #4A6670; /* Azul grisáceo */
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

/* Efectos hover para los marcadores */
.marker-house:hover {
    background: #E5C14C;
    transform: scale(1.1) rotate(-45deg);
}

.marker-apartment:hover {
    background: #A47D58;
    transform: scale(1.1) rotate(-45deg);
}

.marker-condo:hover {
    background: #C87F8A;
    transform: scale(1.1) rotate(-45deg);
}

.marker-land:hover {
    background: #00807F;
    transform: scale(1.1) rotate(-45deg);
}

.marker-estate:hover {
    background: #5B7781;
    transform: scale(1.1) rotate(-45deg);
}

/* Estilos para los íconos dentro de los marcadores */
.main-marker i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    font-size: 14px;
    color: #FFFFFF;
}

/* Popup del marcador */
.property-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 1000;
    display: none;
    pointer-events: none;
    transition: all 0.3s ease;
}

.property-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.98);
}

.property-popup-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-popup-price {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
}

.property-popup-address {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estados activos de los marcadores */
.main-marker.active {
    transform: scale(1.2) rotate(-45deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.marker-house.active {
    background: #E5C14C;
    border-color: #FFFFFF;
}

.marker-apartment.active {
    background: #A47D58;
    border-color: #FFFFFF;
}

.marker-condo.active {
    background: #C87F8A;
    border-color: #FFFFFF;
}

.marker-land.active {
    background: #00807F;
    border-color: #FFFFFF;
}

.marker-estate.active {
    background: #5B7781;
    border-color: #FFFFFF;
}

/* Marcador del mapa modal */
.modal-map-marker {
    width: 40px;
    height: 40px;
    position: relative;
}

.modal-marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--secondary);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #FFFFFF;
    animation: bounce 0.5s ease-out;
}

.modal-marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 6px 0 0 6px;
    background: #FFFFFF;
    position: absolute;
    border-radius: 50%;
}

/* Animaciones para los marcadores */
@keyframes bounce {
    0% { transform: translateY(-20px) rotate(-45deg); }
    50% { transform: translateY(-10px) rotate(-45deg); }
    100% { transform: translateY(0) rotate(-45deg); }
}

@keyframes pulseMarker {
    0% { transform: scale(1) rotate(-45deg); }
    50% { transform: scale(1.1) rotate(-45deg); }
    100% { transform: scale(1) rotate(-45deg); }
}

/* Estilos responsive */
@media (max-width: 768px) {
    .property-popup {
        min-width: 220px;
        padding: 8px;
    }

    .property-popup-title {
        font-size: 1rem;
    }

    .property-popup-price {
        font-size: 1.1rem;
    }

    .property-popup-address {
        font-size: 0.8rem;
    }

    .main-marker i {
        font-size: 12px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .main-marker,
    .modal-marker-pin,
    .property-popup {
        transition: none;
        animation: none;
    }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    .property-popup {
        background: rgba(30, 30, 30, 0.98);
    }

    .property-popup::after {
        border-top-color: rgba(30, 30, 30, 0.98);
    }

    .property-popup-title {
        color: #FFFFFF;
    }

    .property-popup-address {
        color: #CCCCCC;
    }
}