/* =========================================
   1. RESET Y ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    background-color: #1e3a5f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
   2. BARRA DE NAVEGACIÓN Y LOGO
   ========================================= */
.navbar {
    background-color: #1e3a5f;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 300;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icono {
    height: 70px;
    width: 70px;
    object-fit: contain;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-texto span {
    display: block;
}

/* =========================================
   3. SELECTOR DE IDIOMAS
   ========================================= */
.lang-select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    outline: none;
    transition: all 0.3s;
}

.lang-select:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.lang-select option {
    background-color: #1e3a5f;
    color: white;
}

/* =========================================
   4. MENÚ DE NAVEGACIÓN (DESKTOP)
   ========================================= */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4CAF50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 250;
}

.menu-toggle i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.menu-toggle.active i {
    transform: rotate(360deg);
}

/* =========================================
   5. SECCIÓN HERO (PORTADA PRINCIPAL)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1200');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    color: white;
    width: 100%;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* =========================================
   6. BUSCADOR Y BOTONES DE FILTRO
   ========================================= */
.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #45a049;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-btn {
    background-color: rgba(255,255,255,0.9);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: #1e3a5f;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

.property-image-wrapper {
    position: relative;
}

.share-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    z-index: 10;
    color: #1e3a5f;
}

.share-btn:hover {
    background: white;
    transform: scale(1.08);
}

.share-btn i {
    font-size: 14px;
}

/* =========================================
   7. TARJETAS DE PROPIEDADES
   ========================================= */
.properties {
    padding: 60px 0;
    width: 100%;
}

.properties h2 {
    text-align: center;
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 40px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    isolation: isolate;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.property-card.hide {
    display: none !important;
}

.property-price {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.property-info p {
    color: #666;
    margin-bottom: 15px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* =========================================
   8. BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    z-index: 90;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   9. DISEÑO RESPONSIVE (CELULARES Y TABLETS)
   ========================================= */
@media (max-width: 768px) {
    .lang-mobile-only {
        display: block;
        font-size: 12px;
        padding: 5px 8px;
        margin-right: 10px;
    }
    
    .lang-desktop-only {
        display: none;
    }

    .navbar {
        padding: 8px 0;
    }
    
    .navbar .container {
        flex-wrap: nowrap;
    }

    .logo-icono {
        height: 45px;
        width: 45px;
    }
    
    .logo-texto {
        font-size: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: #1e3a5f;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        gap: 25px;
        transition: right 0.3s ease;
        z-index: 200;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: center;
        color: white;
    }

    .nav-links .feedback-link {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 2px solid #4CAF50;
        font-size: 15px !important;
        color: #4CAF50 !important;
        font-style: italic;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.5);
        z-index: 150;
        display: none;
    }

    .overlay.active {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 40px 15px 40px;
    }

    .hero-content h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .search-box {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }

    .properties {
        padding: 40px 15px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 375px) {
    .logo-texto {
        font-size: 10px;
    }
    
    .lang-mobile-only {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
}

@media (min-width: 769px) {
    .lang-mobile-only {
        display: none !important;
    }
    
    .lang-desktop-only {
        display: list-item !important;
    }
}

@media (max-width: 768px) {
    .lang-mobile-only {
        display: block !important;
        margin-right: 10px;
    }
    
    .lang-desktop-only {
        display: none !important;
    }
}

/* =========================================
   10. PIE DE PÁGINA (FOOTER)
   ========================================= */
.footer {
    background-color: #1e3a5f;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col p, .footer-col ul {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li i {
    color: #4CAF50;
    width: 20px;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #4CAF50;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    .footer-grid {
        gap: 30px;
    }
}

/* =========================================
   11. SECCIÓN SOBRE NOSOTROS
   ========================================= */
.about-us {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-subtitle {
    color: #4CAF50;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.about-title {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.about-features li i {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.about-features li span {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    padding-top: 8px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-us {
        padding: 50px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1; 
    }
    
    .about-title {
        font-size: 26px;
    }
}

/* =========================================
   12. MODAL DE PROPIEDAD
   ========================================= */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.property-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #1e3a5f;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.modal-close:hover {
    background: #4CAF50;
    color: white;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.modal-info {
    padding: 30px;
}

.modal-info img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-price {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-info h2 {
    font-family: 'Cinzel', serif;
    color: #1e3a5f;
    font-size: 26px;
    margin-bottom: 15px;
}

.modal-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.modal-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.modal-features .feature i {
    color: #4CAF50;
    font-size: 18px;
}

.modal-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-whatsapp:hover {
    background-color: #128C7E;
}

.modal-map {
    background: #f5f5f5;
    padding: 30px;
    border-left: 1px solid #e0e0e0;
}

.modal-map h3 {
    font-family: 'Cinzel', serif;
    color: #1e3a5f;
    margin-bottom: 15px;
    font-size: 20px;
}

.modal-map iframe {
    border-radius: 10px;
    height: 400px;
}

/* =========================================
   BOTÓN DE INICIAR OFERTA
   ========================================= */
.modal-offer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1e3a5f;
    color: white;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.modal-offer-btn:hover {
    background-color: #162d4a;
    transform: translateY(-2px);
}

/* CARRUSEL DE IMÁGENES DEL MODAL */
.modal-image-slider {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 10px;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #4CAF50;
    transform: scale(1.3);
}

/* =========================================
   BADGES TIPO REDFIN
   ========================================= */
.property-badge {
    position: absolute;
    top: 10px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
}

.badge-oferta { background: #e53935; color: white; }
.badge-nuevo { background: #43a047; color: white; }
.badge-exclusivo { background: #1e88e5; color: white; }
.badge-urgente { background: #fb8c00; color: white; }
.badge-acceso { background: #212121; color: white; }
.badge-popular { background: #8e24aa; color: white; }
.badge-reservado { background: #f9a825; color: white; }

.property-card {
    position: relative;
    overflow: visible;
}

.modal-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 25px;
    z-index: 100;
}

/* =========================================
   BOTONES DE ACCIÓN (VIDEO, TOUR, ETC)
   ========================================= */
.action-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.action-btn:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.action-btn i {
    font-size: 24px;
    color: #4CAF50;
}

.action-btn.youtube:hover i {
    color: #ff0000;
}

.action-btn.matterport:hover i {
    color: #1e88e5;
}

.action-btn.whatsapp:hover i {
    color: #25d366;
}

.property-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.property-icons i {
    margin-right: 4px;
}

/* =========================================
   MODALES DE VIDEO Y TOUR
   ========================================= */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.media-modal.active {
    display: flex;
}

.media-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.media-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.media-modal-close:hover {
    background: white;
}

.media-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* =========================================
   RESPONSIVE - MODAL EN MÓVIL
   ========================================= */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-map {
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-info img {
        height: auto;
        max-height: 200px;
    }
    
    .modal-info h2 {
        font-size: 22px;
    }
    
    .modal-features {
        grid-template-columns: 1fr;
    }
    
    /* Carrusel en móvil - CORREGIDO */
    .modal-image-slider {
        width: 100%;
        height: 200px;
        margin: 0;
        border-radius: 0;
    }
    
    .slider-image {
        object-position: center top;
    }
    
    .media-iframe {
        height: 400px;
    }
    
    .action-buttons {
        flex-direction: row;
    }
    
    .action-btn {
        flex: 1 1 45%;
    }
}

/* BOTONES FLOTANTES SOBRE LA IMAGEN (Estilo Redfin) */
.property-media-buttons {
    position: absolute;
    bottom: 16px;
    left: 16px;
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
}

.media-button {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    color: #ffffff;
}

.media-button:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.media-button i {
    font-size: 13px;
}

.media-button.youtube:hover i {
    color: #ff4444;
}

.media-button.matterport:hover i {
    color: #4fa8ff;
}


/* Modal de video integrado (estilo Redfin) */
.integrated-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.integrated-media-modal.active {
    display: flex;
}

.integrated-media-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.integrated-media-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.integrated-media-close:hover {
    background: white;
    transform: rotate(90deg);
}

.integrated-media-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .property-media-buttons {
        bottom: 12px;
        left: 12px;
        gap: 6px;
    }
    
    .media-button {
        padding: 7px 12px;
        font-size: 11.5px;
        border-radius: 18px;
    }
    
    .integrated-media-content {
        width: 100%;
        height: 60vh;
        aspect-ratio: auto;
    }
}