/* Extraído de detalle-propiedad-alquiler-vaca.php (ficha vacacional). */
        * {
            box-sizing: border-box;
        }
        
        body { 
            margin: 0; 
            padding: 0 4px; 
            font-family: 'Inter', sans-serif; 
            background-color: #ffffff;
            overflow-x: hidden;
        }

        /* Detalle alquiler vacacional: acento distinto de venta / alquiler tradicional */
        body.kasalia-detalle-vacacional {
            --primary: #0f766e;
        }
        body.kasalia-detalle-vacacional .property-type-label {
            background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #134e4a 100%);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.25);
        }
        .vaca-detail-badge {
            display: inline-block;
            margin: 8px 0 0;
            padding: 5px 12px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            background: #ecfdf5;
            color: #0f766e;
            border: 1px solid #99f6e4;
        }
        .property-price-suffix {
            font-size: 0.5em;
            font-weight: 700;
            opacity: 0.92;
            margin-left: 4px;
            vertical-align: middle;
        }
        
        h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, span, div, label { 
            font-family: 'Inter', sans-serif; 
        }

        img {
            box-shadow: none;
            border-radius: 8px;
        }

        /* Banner-top: mantener el mismo CSS/estructura que index.php
           En detalle-propiedad evitamos que el banner sea fixed para no tapar la galería. */
        .banner { 
            position: relative !important;
            z-index: 1000 !important;
        }

        /* Asegurar que el dropdown menu funcione y esté posicionado correctamente */
        .banner .menu-container {
            position: relative !important;
            z-index: 20000 !important;
            isolation: isolate !important; /* Crea stacking context aislado */
        }
        
        .banner .dropdown-menu {
            display: none;
            position: fixed !important; /* Solución robusta: position fixed */
            z-index: 2147483647 !important; /* Máximo z-index posible */
            background: #fff !important;
            border: 1px solid #e5e7eb !important;
            border-radius: 14px !important;
            box-shadow: 0 14px 40px rgba(0,0,0,.12) !important;
            min-width: 240px !important;
            list-style: none !important;
            padding: 10px !important;
            margin: 0 !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        .banner .dropdown-menu.show {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
        }
        
        /* Asegurar que el contenido principal no tape el dropdown */
        .property-detail,
        .container {
            position: relative;
            z-index: 1;
        }

        /* Botones flotantes en galería */
        .gallery-floating-buttons {
            position: absolute;
            bottom: 20px;
            left: 20px;
            z-index: 100;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .btn-listado-floating,
        .btn-tour-floating,
        .btn-video-floating,
        .btn-plano-floating,
        .btn-photos-floating {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            color: #111827;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            border: 1px solid rgba(0,0,0,.1);
            white-space: nowrap;
            transition: all 0.2s ease-in-out;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: pointer;
        }
        .btn-listado-floating:hover,
        .btn-tour-floating:hover,
        .btn-video-floating:hover,
        .btn-plano-floating:hover,
        .btn-photos-floating:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        .btn-listado-floating svg,
        .btn-tour-floating svg,
        .btn-video-floating svg,
        .btn-plano-floating svg,
        .btn-photos-floating svg {
            width: 16px;
            height: 16px;
        }

        .gallery-container {
            position: relative;
            margin-top: 12px;
        }

        /* TÍTULO DINÁMICO */
        .property-title-section {
            background: white;
            border-bottom: 1px solid rgba(0,0,0,.06);
            padding: 20px 0;
            margin-top: 0;
        }

        .title-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .title-left {
            flex: 1;
            border-radius: 0px;
            width: 100%;
        }
        
        /* Estilos para title-left dentro de characteristics-left */
        .characteristics-left .title-left {
            margin-bottom: 0;
            width: 100%;
        }
        
        .characteristics-left .title-header {
            margin-bottom: 15px;
        }
        
        .characteristics-left .property-title-section {
            display: none; /* Ocultar la sección original si aún existe */
        }

        .title-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 15px;
        }

        .title-price-group {
            flex: 1;
        }

        .property-title {
            font-size: 1.4em;
            font-weight: bold;
            color: #333;
            margin: 0;
            line-height: 1.15;
        }

        .property-price {
            font-size: 2.5em;
            font-weight: 900;
            font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
            color: rgba(9, 119, 16, 1);
            margin: 0;
            line-height: 1.1;
        }

        /* Nueva cabecera estilo Zillow */
        .property-header-zillow {
            background: white;
            padding: 30px 0;
            border-bottom: 1px solid rgba(0,0,0,.08);
        }

        /* Grid principal: header+contenido | agent-contact (alineado con property-type-label) */
        .property-content-grid {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 2.5fr 1fr;
            gap: 50px;
            align-items: start;
            position: relative;
            z-index: 1;
        }

        .kasalia-plano-distribucion-wrap {
            max-width: 1400px;
            margin: 0 auto;
            padding: 12px 20px 0;
            box-sizing: border-box;
        }

        .kasalia-plano-distribucion {
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 14px;
            background: #f8fafc;
            padding: 16px 18px 18px;
            box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
        }

        .kasalia-plano-distribucion h2 {
            margin: 0 0 4px;
            font-size: 1.05rem;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: 0.02em;
        }

        .kasalia-plano-distribucion .kasalia-plano-hint {
            margin: 0 0 12px;
            font-size: 0.85rem;
            color: #64748b;
            line-height: 1.4;
        }

        .kasalia-plano-frame {
            border-radius: 10px;
            overflow: hidden;
            background: #fff;
            border: 1px solid rgba(15, 23, 42, 0.08);
        }

        .kasalia-plano-img {
            display: block;
            width: 100%;
            height: auto;
            max-height: min(70vh, 820px);
            object-fit: contain;
            box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
        }

        .kasalia-plano-pdf {
            display: block;
            width: 100%;
            min-height: 480px;
            border: 0;
            background: #e2e8f0;
        }

        .kasalia-plano-pdf-fallback {
            display: inline-block;
            margin-top: 10px;
            font-weight: 600;
            color: #003f7f;
        }

        .property-content-main {
            min-width: 0;
        }

        .property-content-sidebar {
            min-width: 0;
            padding-top: 30px;
            align-self: start;
            position: sticky;
            top: var(--kasalia-sticky-top, 24px);
            z-index: 2;
            max-height: calc(100vh - var(--kasalia-sticky-top, 24px) - 16px);
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }

        .property-content-sidebar::-webkit-scrollbar {
            width: 8px;
        }

        .property-content-sidebar::-webkit-scrollbar-thumb {
            background: rgba(15, 23, 42, 0.22);
            border-radius: 8px;
        }

        .property-content-sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(15, 23, 42, 0.35);
        }

        .property-header-content {
            padding: 0;
        }

        .property-header-main {
            min-width: 0;
        }

        .property-type-label {
            font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
            font-weight: 800;
            font-size: 1.5rem;
            color: #000;
            letter-spacing: 0.02em;
            text-transform: capitalize;
            margin-bottom: 8px;
        }

        .property-header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            margin-bottom: 15px;
        }

        .property-price-status {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            flex: 1;
            justify-content: flex-start;
        }

        .property-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            border: 1px solid;
        }

        .property-status-badge.orange {
            background: #fff3e0;
            color: #e65100;
            border-color: #ffb74d;
        }

        .property-status-badge.green {
            background: #e8f5e9;
            color: #2e7d32;
            border-color: #81c784;
        }

        .property-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }

        .property-status-badge.orange .property-status-dot {
            background: #ff9800;
        }

        .property-status-badge.green .property-status-dot {
            background: #4caf50;
        }

        .property-address {
            font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
            font-weight: 900;
            font-size: 16px;
            color: #666;
            margin-top: 8px;
        }

        .property-header-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            position: relative;
        }

        /* Botones de acción compactos a la derecha */
        .action-buttons-compact {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .btn-icon-compact {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
            border: 1px solid rgba(0,0,0,.08);
        }

        .btn-icon-compact:hover {
            background: #e9ecef;
            transform: translateY(-1px);
        }

        .btn-icon-compact svg {
            width: 16px;
            height: 16px;
        }


        .title-right{
            display:flex;
            align-items:center;
            justify-content:flex-end;
            gap:10px;
            flex: 0 0 auto;
        }
        .btn-listado{
            display:inline-flex;
            align-items:center;
            gap:8px;
            padding: 10px 16px;
            background: #ffffff;
            color: #111827;
            text-decoration: none;
            border-radius: 10px;
            font-weight: 900;
            border: 2px solid rgba(0,0,0,.08);
            white-space: nowrap;
            transition: all 0.2s ease-in-out;
        }
        .btn-listado:hover{
            background:#f9fafb;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.10);
        }

        /* Contacto simplificado */
        .contact-portal-simple {
            margin-top: 12px;
        }

        .who-simple {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border: 1px solid rgba(0,0,0,.08);
            background: #f9fafb;
            border-radius: 12px;
        }

        .who-simple .logo {
            width: 24px;
            height: 24px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 11px;
            color: #fff;
            background: linear-gradient(135deg, #111827, #374151);
            flex: 0 0 auto;
        }

        .who-simple .tag {
            font-weight: 600;
            font-size: 13px;
            color: #111827;
            white-space: nowrap;
        }


        /* CAMPOS B?SICOS VISIBLES */
        .property-info {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 15px;
            padding: 15px 0;
            border-top: 1px solid rgba(0,0,0,0.1);
        }

        .property-info .info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
            font-weight: 500;
            color: #555;
            background: rgba(76, 175, 80, 0.1);
            padding: 8px 15px;
            border-radius: 20px;
            border: 1px solid rgba(76, 175, 80, 0.2);
        }

        /* BOTONES DE ACCIÓN - SOLO ICONOS */
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            position: relative;
            justify-content: flex-start;
        }

        .btn-icon {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
            border: 2px solid #dee2e6;
        }

        .btn-icon:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .btn-icon#favorite-btn.active {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }

        /* .share-menu → Styles/components/kasalia-share-menu.css */

        /* CONTACTO DINÁMICO DEL PUBLICADOR */
        .agent-contact {
            background: rgb(237, 237, 237);
            color: rgba(255, 255, 255, 1);
            border-radius: 16px;
            padding: 22px;
            margin-top: 0;
            margin-bottom: 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            position: relative;
            z-index: 0;
        }

        .agent-contact h3 {
            margin: 0 0 14px;
            color: #0f172a;
            font-size: 20px;
            font-weight: 800;
        }

        .agent-info {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 10px;
        }

        .agent-avatar {
            width: 60px;
            height: 60px;
            flex: 0 0 60px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .agent-avatar img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 6px;
        }

        .agent-details h4 {
            margin: 0;
            color: #0f172a;
            font-size: 18px;
            font-weight: 800;
            line-height: 1.2;
        }

        .agent-details p {
            margin: 4px 0 0;
            color: #475569;
            font-size: 13px;
            line-height: 1.35;
        }

        .contact-meta-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 10px 0 14px;
        }

        .contact-meta-badges .badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            font-weight: 700;
            padding: 5px 9px;
            border-radius: 999px;
            border: 1px solid #dbe7ff;
            background: #eff6ff;
            color: #1e3a8a;
        }

        .contact-meta-badges .badge.badge-verified {
            border-color: #bbf7d0;
            background: #dcfce7;
            color: #166534;
        }

        .contact-chat-row {
            display: flex;
            gap: 8px;
            margin: 12px 0 16px;
        }

        .btn-chat-interno {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 1px solid #d1d5db;
            background: #f8fafc;
            color: #0f172a;
            border-radius: 10px;
            padding: 8px;
            text-decoration: none;
            font-weight: 700;
            font-size: 13px;
            font-family: inherit;
            cursor: pointer;
            transition: background .2s ease;
            flex: 1;
            width: 100%;
        }

        .btn-chat-interno:hover {
            background: #eef2ff;
        }

        .vaca-chat-presets-wrap {
            margin-top: 12px;
        }

        .vaca-chat-presets-intro {
            margin: 0 0 8px 0;
            font-size: 12px;
            font-weight: 800;
            color: #475569;
            line-height: 1.35;
        }

        .vaca-chat-presets {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .vaca-chat-preset-btn {
            margin: 0;
            padding: 8px 11px;
            border-radius: 999px;
            border: 1px solid #c7d2fe;
            background: #f8fafc;
            color: #312e81;
            font-size: 12px;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            line-height: 1.25;
            text-align: left;
            transition: background .15s ease, border-color .15s ease, transform .1s ease;
        }

        .vaca-chat-preset-btn:hover {
            background: #eef2ff;
            border-color: #818cf8;
        }

        .vaca-chat-preset-btn:active {
            transform: scale(0.98);
        }

        /* BOTÓN FIJO DE CONTACTO */
        .fixed-contact-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1500;
        }

        .btn-contact-fixed {
            background: #28a745;
            color: white;
            border: 1px solid rgba(0, 0, 0, 1);
            padding: 15px 25px;
            border-radius: 16px;
            font-weight: bold;
            font-size: 16px;
            cursor: pointer;
            box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        .btn-contact-fixed:hover {
            background: #218838;
            transform: translateY(-2px);
            box-shadow: none;
        }

        /* MODAL SOLICITAR VISITA */
        .visit-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .visit-modal.show {
            display: block;
        }

        .visit-modal-content {
            background: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            position: relative;
            max-height: 80vh;
            overflow-y: auto;
        }

        .close-visit-modal {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            color: #aaa;
        }

        .close-visit-modal:hover {
            color: #333;
        }

        .visit-form .form-group {
            margin-bottom: 20px;
        }

        .visit-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #333;
        }

        .visit-form input, .visit-form select, .visit-form textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
        }

        .visit-form input:focus, .visit-form select:focus, .visit-form textarea:focus {
            outline: none;
            border-color: #28a745;
            box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
        }

        .btn-submit-visit {
            width: 100%;
            background: #28a745;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s ease;
        }

        .btn-submit-visit:hover {
            background: #218838;
        }

        /* DESCRIPCIÓN DETALLES */
        .details-content h4 {
            color: #333;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .details-content p {
            margin: 0;
            color: #1f2937;
            line-height: 1.7;
            white-space: normal;
            word-break: break-word;
        }

        /* SIMULADOR DE HIPOTECA */
        .mortgage-calculator {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin: 30px 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

        .mortgage-calculator h3 {
            color: #333;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .mortgage-estimated-payment {
            background: #e3f2fd;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .mortgage-estimated-payment-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }

        .mortgage-estimated-payment-value {
            font-size: 24px;
            font-weight: 700;
            color: #1976d2;
        }

        .mortgage-breakdown-bar {
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            margin: 15px 0;
            overflow: hidden;
            display: flex;
        }

        .mortgage-breakdown-segment {
            height: 100%;
        }

        .mortgage-breakdown-segment.principal {
            background: #1976d2;
        }

        .mortgage-breakdown-segment.taxes {
            background: #7b1fa2;
        }

        .mortgage-breakdown-segment.other {
            background: #d32f2f;
        }

        .mortgage-breakdown-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mortgage-breakdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }

        .mortgage-breakdown-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .mortgage-breakdown-label {
            flex: 1;
            color: #666;
        }

        .mortgage-breakdown-value {
            font-weight: 600;
            color: #333;
        }

        .mortgage-calculator-sidebar {
            background: #f5f5f5;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
        }

        .mortgage-calculator-sidebar h4 {
            font-size: 16px;
            margin-bottom: 10px;
            color: #333;
        }

        .mortgage-calculator-sidebar p {
            font-size: 13px;
            color: #666;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .calc-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .calc-field {
            position: relative;
            margin-bottom: 15px;
        }
        
        .calculator-form .calc-field {
            margin-bottom: 15px;
        }

        .calc-field label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        .calc-field input {
            width: 100%;
            padding: 12px 50px 12px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
        }

        .calc-field span {
            position: absolute;
            right: 15px;
            bottom: 12px;
            color: #666;
            font-weight: 600;
            line-height: 1;
            pointer-events: none;
            display: flex;
            align-items: center;
            height: 20px;
        }

        .btn-calculate {
            width: 100%;
            background: #28a745;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            margin-bottom: 20px;
            transition: background 0.3s ease;
        }

        .btn-calculate:hover {
            background: #218838;
        }

        .calc-results {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            display: none;
        }

        .calc-results.show {
            display: block;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #dee2e6;
        }

        .result-item:last-child {
            border-bottom: none;
        }

        .result-label {
            font-weight: 600;
            color: #333;
        }

        .result-value {
            font-weight: bold;
            color: #28a745;
            font-size: 18px;
        }

        /* ZONAS CERCANAS */
        .nearby-areas {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin: 30px 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

        .nearby-areas h3 {
            color: #333;
            margin-bottom: 25px;
            font-size: 22px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .service-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .service-item:hover {
            background: rgba(76, 175, 80, 0.1);
            transform: translateX(5px);
        }

        .service-icon {
            font-size: 24px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .service-info h4 {
            margin: 0 0 5px 0;
            color: #333;
            font-size: 16px;
        }

        .service-info p {
            margin: 0;
            color: #666;
            font-size: 14px;
        }

        /* PROPIEDADES SUGERIDAS (full width + carrusel premium) */
        .similar-properties-shell {
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            margin-top: 28px;
            padding: 0 0 8px;
        }

        .similar-properties-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 28px 20px;
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
            border: 1px solid rgba(15, 23, 42, 0.06);
        }

        .similar-properties-head {
            margin-bottom: 18px;
        }

        .similar-properties-head h3 {
            margin: 0 0 6px;
            font-size: 24px;
            line-height: 1.2;
            color: #111827;
        }

        .similar-properties-head p {
            margin: 0;
            color: #6b7280;
            font-size: 14px;
        }

        .similar-carousel {
            position: relative;
        }

        .similar-track {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            padding: 4px 52px 8px;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .similar-track::-webkit-scrollbar {
            display: none;
        }

        .similar-card {
            flex: 0 0 320px;
            scroll-snap-align: start;
            border-radius: 16px;
            background: #fff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .similar-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
        }

        .similar-card-link {
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .similar-card-media {
            width: 100%;
            aspect-ratio: 16 / 10;
            background: #f3f4f6;
        }

        .similar-card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0;
        }

        .similar-card-body {
            padding: 14px 14px 16px;
        }

        .similar-card-type-outside {
            display: block;
            margin: 0 0 8px;
            font-size: 12px;
            font-weight: 800;
            color: #4b5563;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .similar-card-price {
            font-size: 34px;
            line-height: 1.02;
            font-weight: 900;
            color: #111827;
            margin: 0 0 8px;
            letter-spacing: -0.02em;
        }

        .similar-card-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin: 0 0 10px;
        }

        .similar-badge {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            color: #374151;
            text-transform: capitalize;
        }

        .similar-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            color: #4b5563;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .similar-meta-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 999px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            white-space: nowrap;
        }

        .similar-meta-pill svg {
            width: 14px;
            height: 14px;
            color: #374151;
            flex: 0 0 auto;
        }

        .similar-card-location {
            margin: 0;
            font-size: 13px;
            line-height: 1.45;
            color: #4b5563;
        }

        .similar-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: #fff;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #111827;
            cursor: pointer;
            z-index: 2;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
            transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        }

        .similar-nav:hover:not(:disabled) {
            transform: translateY(-50%) scale(1.04);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        }

        .similar-nav:disabled {
            opacity: 0.35;
            cursor: default;
        }

        .similar-nav.prev {
            left: 0;
        }

        .similar-nav.next {
            right: 0;
        }

        .similar-empty {
            font-size: 14px;
            color: #6b7280;
            margin: 4px 0 0;
        }

        /* STREET VIEW */
        .streetview-container {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            margin-top: 30px;
        }

        .streetview-container h4 {
            padding: 20px 25px 0;
            margin: 0 0 15px 0;
            color: #333;
            font-size: 18px;
        }

        .streetview-frame {
            width: 100%;
            height: 250px;
            border: none;
        }

        /* SECCIÓN MULTIMEDIA */
        .multimedia-section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-top: 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

        .multimedia-section h4 {
            margin: 0 0 20px 0;
            color: #333;
            font-size: 18px;
        }

        .video-placeholder {
            background: #f8f9fa;
            border: 2px dashed #ddd;
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            color: #666;
        }

        .video-icon {
            margin-bottom: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .video-placeholder p {
            margin: 0 0 20px 0;
            font-size: 16px;
        }

        .btn-video {
            background: #007bff;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .btn-video:hover {
            background: #0056b3;
        }

        /* GALERÍA (Hero + Thumbnails) */
        .gallery-container {
            width: 100%;
            margin: 0;
            margin-top: 4px;
            padding: 0;
            background: #ffffff;
            position: relative;
            z-index: 5;
            isolation: isolate;
        }

        .gallery-layout {
            display: grid;
            /* Hero a la izquierda + mosaico de miniaturas a la derecha */
            grid-template-columns: 1fr 360px;
            gap: 2px; /* separadores finos como el mosaico de referencia */
            align-items: stretch;
            background: #ffffff;
            border-radius: 0;
            overflow: hidden;
        }

        .gallery-main {
            position: relative;
            overflow: hidden;
            background: #f3f4f6;
            cursor: pointer;
            outline: none;
            /* Mantener sensación "hero" consistente (evita saltos con fotos verticales) */
            height: clamp(320px, 55vh, 560px);
        }

        .gallery-main:focus-visible {
            box-shadow: 0 0 0 3px rgba(0, 116, 255, 0.35);
        }

        .gallery-main-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            background-color: rgba(255, 255, 255, 1);
            box-shadow: none;
            border-radius: 0; /* el redondeo lo hace el contenedor */
            transition: opacity 0.2s ease;
        }

        .gallery-main-video {
            position: absolute;
            inset: 0;
            z-index: 3;
            display: none;
            background: #000;
        }

        .gallery-main--video-mode .gallery-main-video {
            display: block;
        }

        .gallery-main--video-mode .gallery-main-image {
            opacity: 0;
            pointer-events: none;
        }

        .gallery-main-video iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .gallery-main-plano {
            position: absolute;
            inset: 0;
            z-index: 3;
            display: none;
            background: #fff;
        }

        .gallery-main--plano-mode .gallery-main-plano {
            display: block;
        }

        .gallery-main--plano-mode .gallery-main-image {
            opacity: 0;
            pointer-events: none;
        }

        .gallery-main--plano-mode .gallery-main-video {
            display: none;
        }

        .gallery-main-plano-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #f4f6f9;
        }

        .gallery-main-plano-pdf {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            background: #fff;
        }

        .gallery-main-plano-pdf-fallback {
            position: absolute;
            left: 14px;
            bottom: 14px;
            z-index: 5;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(0,0,0,0.08);
            color: #003f7f;
            font-weight: 700;
            text-decoration: none;
        }

        .gallery-thumbs {
            position: relative;
            height: clamp(320px, 55vh, 560px);
            overflow: hidden;
            padding: 0;
            margin: 0;
            font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
            background: #ffffff;
        }

        /* Miniaturas a ancho/alto completo; flechas superpuestas (sin reservar franjas) */
        .gallery-thumbs-wrapper {
            position: relative;
            height: 100%;
            width: 100%;
            min-height: 0;
            overflow: hidden;
            background: #ffffff;
        }

        .gallery-thumbs-viewport {
            position: absolute;
            inset: 0;
            overflow: hidden;
            background: #ffffff;
        }

        .gallery-thumbs-scrollable {
            display: grid;
            grid-template-rows: repeat(2, var(--thumb-row-size, calc((100% - 2px) / 2)));
            gap: 2px;
            width: max-content;
            height: auto;
            min-height: 100%;
            box-sizing: border-box;
            transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
            will-change: transform;
            background: #ffffff;
        }

        .gallery-thumbs-nav {
            position: absolute;
            top: 50%;
            z-index: 12;
            width: auto;
            min-width: 36px;
            min-height: 44px;
            margin: 0;
            padding: 6px 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
            border-radius: 0;
            transform: translateY(-50%);
            background: transparent;
            color: #fff;
            box-shadow: none;
            filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
            transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
        }

        .gallery-thumbs-nav:focus-visible {
            outline: 2px solid rgba(255, 255, 255, 0.95);
            outline-offset: 3px;
        }

        .gallery-thumbs-nav--prev {
            left: 6px;
        }

        .gallery-thumbs-nav--next {
            right: 6px;
        }

        .gallery-thumbs-nav:hover:not(:disabled) {
            background: transparent;
            color: #fff;
            opacity: 0.95;
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
        }

        .gallery-thumbs-nav--prev:hover:not(:disabled),
        .gallery-thumbs-nav--next:hover:not(:disabled) {
            transform: translateY(-50%);
        }

        .gallery-thumbs-nav--prev:active:not(:disabled),
        .gallery-thumbs-nav--next:active:not(:disabled) {
            transform: translateY(-50%);
        }

        .gallery-thumbs-nav svg {
            width: 26px;
            height: 26px;
            overflow: visible;
            transform: scale(1);
            transform-origin: center center;
            transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .gallery-thumbs-nav:hover:not(:disabled) svg {
            transform: scale(1.22);
        }

        .gallery-thumbs-nav:active:not(:disabled) svg {
            transform: scale(1.05);
            transition-duration: 0.1s;
        }

        .gallery-thumbs-nav__glyph {
            fill: none;
            stroke: currentColor;
            stroke-width: 2.35;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .gallery-thumbs-nav:disabled {
            opacity: 0.32;
            cursor: not-allowed;
            pointer-events: none;
        }

        .gallery-thumbs-nav--prev:disabled {
            transform: translateY(-50%);
        }

        .gallery-thumbs-nav--next:disabled {
            transform: translateY(-50%);
        }

        .gallery-thumb-btn {
            width: 100%;
            height: 100%;
            overflow: hidden;
            cursor: pointer;
            flex: 0 0 auto;
            border: none;
            padding: 0;
            margin: 0;
            background: transparent;
        }

        .gallery-thumb-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 0; /* el redondeo lo hace el contenedor */
        }

        .gallery-thumb-btn[aria-current="true"] {
            outline: 2px solid #0074ff;
            outline-offset: -2px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.12);
        }

        /* Ocultar la miniatura 1 (la misma que el hero) para mostrar "el resto" a la derecha */
        .gallery-thumbs .gallery-thumb-btn:first-child {
            display: none;
        }

        .gallery-thumbs .gallery-thumb-btn {
            width: 100%;
            height: 100%;
            min-width: 0;
            min-height: 0;
        }

        /* Botón flotante de contador de fotos - mismo estilo que los otros botones */
        .btn-photos-floating,
        .btn-video-floating {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            color: #111827;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            border: 1px solid rgba(0,0,0,.1);
            white-space: nowrap;
            transition: all 0.2s ease-in-out;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: pointer;
            pointer-events: auto;
        }

        .btn-photos-floating:hover,
        .btn-video-floating:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .btn-photos-floating svg,
        .btn-video-floating svg {
            width: 16px;
            height: 16px;
        }

        /* Responsive */
        @media (max-width: 800px) {
            .gallery-layout {
                grid-template-columns: 1fr;
                grid-auto-rows: auto;
                gap: 2px;
                border-radius: 0;
            }

            .gallery-thumbs {
                height: auto;
            }

            .gallery-thumbs-wrapper {
                position: relative;
                display: block;
                height: auto;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
            }

            .gallery-thumbs-viewport {
                position: static;
                inset: auto;
                height: auto;
                width: 100%;
                min-height: 0;
                overflow-x: auto;
                overflow-y: hidden;
            }

            .gallery-thumbs-scrollable {
                display: flex;
                flex-direction: row;
                grid-template-columns: none;
                grid-auto-rows: none;
                height: auto;
                min-height: auto;
                transform: none !important;
                --thumb-row-size: auto;
            }

            .gallery-thumb-btn {
                width: 72px;
                min-width: 72px;
                height: 56px;
                border-radius: 10px;
                margin: 0;
            }

            .gallery-thumbs .gallery-thumb-btn:first-child {
                display: block; /* en móvil sí mostramos la 1ª */
            }

            .gallery-thumbs-nav {
                display: none; /* Ocultar navegación en móvil */
            }

            .gallery-main-image {
                border-radius: 0;
            }
        }


        /* SECCIÓN DE CARACTERÍSTICAS - dentro de la columna izquierda del grid */
        .characteristics-section {
            padding: 40px 0;
            background: #fff;
            margin: 0;
        }

        .characteristics-container {
            max-width: 100%;
            margin: 0;
            padding: 0;
            display: block;
        }

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

        .characteristics-left {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .characteristics-right {
            display: flex;
            flex-direction: column;
        }

        /* TÍTULO DE LA SECCIÓN */
        .section-title {
            font-size: 28px;
            font-weight: bold;
            color: #333;
            margin-bottom: 25px;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #4CAF50, #66BB6A);
            border-radius: 2px;
        }

        /* INFORMACIÓN BÁSICA - SIN LATERAL VERDE */
        .info-basic {
            display: flex;
            gap: 20px;
            align-items: center;
            flex-wrap: wrap;
            padding: 0;
            background: transparent;
            border-radius: 0;
            box-shadow: none;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 400;
            color: #333;
        }

        .info-item strong {
            font-weight: 700;
            font-size: 16px;
        }

        .info-item img {
            width: 28px;
            height: 28px;
        }

        /* EXTRAS — carrusel tipo resumen formulario (paso 6) */
        .extras-section {
            margin: 0;
        }

        .extras-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 12px;
            margin-top: 0;
            color: #333;
        }

        .detail-extras-wrap {
            margin-top: 0;
        }

        .detail-extras-carousel {
            position: relative;
            margin-top: 4px;
        }

        .detail-extras-track {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            padding: 4px 48px 12px;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .detail-extras-track::-webkit-scrollbar {
            display: none;
        }

        .detail-extras-group-card {
            flex: 0 0 208px;
            width: 208px;
            max-width: min(208px, 88vw);
            min-width: 0;
            scroll-snap-align: start;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 10px 10px 8px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }

        .detail-extras-card-title {
            font-weight: 700;
            color: #003f7f;
            font-size: 13px;
            margin-bottom: 6px;
            letter-spacing: 0.2px;
            line-height: 1.25;
        }

        .detail-extras-card-sub {
            font-weight: 600;
            color: #64748b;
            font-size: 12px;
            margin-top: -2px;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .detail-extras-chips {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-top: 2px;
            width: 100%;
            align-items: stretch;
        }

        .detail-extras-chips a.detail-extra-chip.extra-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            box-sizing: border-box;
            text-align: left;
            justify-content: flex-start;
            background: #e3f2fd;
            color: #1976d2;
            border: 1px solid rgba(25, 118, 210, 0.18);
            border-radius: 8px;
            padding: 6px 8px;
            font-size: 13px;
            line-height: 1.35;
            text-decoration: none;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .detail-extras-chips a.detail-extra-chip.extra-btn:hover {
            background: #bbdefb;
            color: #0d47a1;
            border-color: rgba(13, 71, 161, 0.25);
        }

        .detail-extras-chips a.detail-extra-chip.extra-btn .extra-btn__ic {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            margin-top: 0;
            color: #5c6570;
        }

        .detail-extras-chips a.detail-extra-chip.extra-btn .extra-btn__ic svg {
            display: block;
            width: 22px;
            height: 22px;
        }

        .detail-extras-chips a.detail-extra-chip.extra-btn .extra-btn__txt {
            flex: 1;
            min-width: 0;
            word-break: break-word;
        }

        .detail-extras-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: #fff;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            color: #111827;
            cursor: pointer;
            z-index: 2;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
            transition: box-shadow 0.2s ease, opacity 0.2s ease;
        }

        .detail-extras-nav svg {
            width: 22px;
            height: 22px;
            overflow: visible;
            transform: scale(1);
            transform-origin: center center;
            transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .detail-extras-nav:hover:not(:disabled) svg {
            transform: scale(1.18);
        }

        .detail-extras-nav:active:not(:disabled) svg {
            transform: scale(1.05);
            transition-duration: 0.1s;
        }

        .detail-extras-nav:hover:not(:disabled) {
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        }

        .detail-extras-nav__glyph {
            fill: none;
            stroke: currentColor;
            stroke-width: 2.35;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .detail-extras-nav:disabled {
            opacity: 0.35;
            cursor: default;
        }

        .detail-extras-nav.prev {
            left: 0;
        }

        .detail-extras-nav.next {
            right: 0;
        }

        .extra-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        
        .extra-item span {
            font-size: 14px;
            font-weight: 400;
            color: #333;
        }

        .extra-item:hover {
            background: #f8f9fa;
            transform: translateX(5px);
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
        }

        .extra-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #4CAF50, #66BB6A);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .extra-icon svg {
            width: 18px;
            height: 18px;
            fill: white;
        }

        /* SECCIÓN DESCRIPCIÓN - DESPUÉS DE GALERÍA */
        .description-section {
            width: 100%;
            background: #ffffff;
            padding: 40px 0;
            margin-top: 0;
        }

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

        .description-title {
            font-size: 28px;
            font-weight: bold;
            color: #333;
            margin: 0 0 25px 0;
            font-family: 'Inter', sans-serif;
        }

        .description-content {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            line-height: 1.8;
            color: #555;
            font-size: 16px;
        }

        .description-content p {
            margin: 0;
            color: #555;
            line-height: 1.8;
        }

        /* DESCRIPCIÓN */
        .property-description {
            margin: 0;
            line-height: 1.7;
            color: #555;
            font-size: 16px;
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

        .property-description h3 {
            color: #333;
            margin-bottom: 15px;
            font-size: 22px;
        }

        /* MAPA CON BALIZA - CUADRADO PERFECTO */
        .map-container {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            border: 1px solid #e9ecef;
            margin-bottom: 30px;
        }

        .map-frame {
            width: 100%;
            height: 400px;
            border: none;
        }

        /* MODAL CON ZOOM PROFESIONAL Y FONDO BLURRY */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 3000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.58);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            -moz-backdrop-filter: blur(10px);
            opacity: 0;
            transition: opacity 0.3s ease;
            will-change: opacity;
        }

        /* Fallback para navegadores que no soporten backdrop-filter */
        @supports not (backdrop-filter: blur(30px)) {
            .image-modal {
                background-color: rgba(0,0,0,0.6);
            }
        }

        .image-modal.show {
            opacity: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            margin: auto;
            display: block;
            width: 90%;
            max-width: 1200px;
            max-height: 90vh;
            object-fit: contain;
            transform: scale(0.8);
            transition: transform 0.3s ease;
            border-radius: 8px;
            will-change: transform;
            box-shadow: none;
            background: transparent;
        }

        .modal-content-pdf {
            border: 0;
            background: #fff;
        }

        .modal-pdf-fallback {
            position: absolute;
            left: 18px;
            bottom: 18px;
            z-index: 3002;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(0,0,0,0.08);
            color: #003f7f;
            font-weight: 700;
            text-decoration: none;
        }

        .image-modal.show .modal-content {
            transform: scale(1);
        }

        /* CONTROLES DEL MODAL */
        .modal-controls {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 3001;
            display: flex;
            justify-content: space-between;
            width: 100%;
            pointer-events: none;
            padding: 0 18px;
        }

        .modal-controls button {
            pointer-events: auto;
            background: rgba(255,255,255,0.16);
            border: 1px solid rgba(255,255,255,0.32);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 999px;
            width: 52px;
            height: 52px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
            padding: 0;
            color: #ffffff;
        }

        .modal-controls button:hover {
            transform: scale(1.06);
            background: rgba(255,255,255,0.24);
            border-color: rgba(255,255,255,0.5);
        }

        .modal-controls button svg {
            width: 26px;
            height: 26px;
            stroke: currentColor;
            stroke-width: 2.4;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 3001;
            margin: 0;
            padding: 0;
            width: 52px;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #ffffff;
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.35);
            border-radius: 50%;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            -webkit-appearance: none;
            appearance: none;
            font: inherit;
            line-height: 0;
        }

        .close-modal:hover {
            background: rgba(255,255,255,0.26);
            border-color: rgba(255,255,255,0.55);
            transform: scale(1.05);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
        }

        .close-modal:focus-visible {
            outline: 2px solid rgba(255, 255, 255, 0.95);
            outline-offset: 3px;
        }

        .close-modal__icon {
            width: 22px;
            height: 22px;
            display: block;
            flex-shrink: 0;
            pointer-events: none;
        }

        .close-modal__icon path {
            fill: none;
            stroke: currentColor;
            stroke-width: 2.35;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .property-content-grid {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .property-content-sidebar {
                order: -1;
                position: static;
                top: auto;
                max-height: none;
                overflow: visible;
            }

            .similar-properties-section {
                padding: 20px;
                border-radius: 14px;
            }

            .similar-properties-shell {
                margin-top: 20px;
            }

            .similar-track {
                padding: 4px 0 8px;
                gap: 12px;
            }

            .similar-card {
                flex: 0 0 min(86vw, 320px);
            }

            .similar-nav {
                display: none;
            }

            .btn-listado-floating {
                top: 15px;
                left: 15px;
                padding: 6px 12px;
                font-size: 13px;
            }

            .btn-listado-floating svg {
                width: 14px;
                height: 14px;
            }

            .title-header {
                flex-direction: column;
                gap: 15px;
            }

            .action-buttons-compact {
                align-self: flex-start;
            }

            .title-content {
                padding: 0 15px;
            }
            
            .property-title {
                font-size: 1.2em;
                line-height: 1.15;
            }

            .property-price {
                font-size: 1.4em;
            }

            .contact-chat-row {
                flex-direction: column;
            }
            .btn-chat-interno {
                width: 100%;
            }

            .agent-contact {
                position: static;
            }

            .property-header-top {
                flex-direction: column;
                align-items: flex-start;
            }

            .property-price-status {
                width: 100%;
            }

            .property-price {
                font-size: 2em;
            }

            .gallery-floating-buttons {
                flex-direction: column;
                gap: 8px;
            }
            
            .info-basic {
                justify-content: center;
            }
            
            .detail-extras-group-card {
                flex: 0 0 188px;
                width: 188px;
                max-width: min(188px, 90vw);
            }
            
            .property-header-top {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .property-price-status {
                width: 100%;
                margin-bottom: 10px;
                flex-direction: column;
                align-items: flex-start;
            }
            
            .info-basic {
                width: 100%;
                flex-wrap: wrap;
            }
            
            .property-price {
                font-size: 2em;
            }
            
            .image-controls button img {
                width: 36px;
                height: 36px;
            }
            
            .image-controls {
                padding: 0 20px;
            }
        }

        /* ========================================
           WIDGET RESERVA ALQUILER
           ======================================== */

        .reserva-alquiler-widget {
            background: #fff;
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            margin-top: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .reserva-alquiler-panel-main {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            margin-top: 28px;
            padding: 24px;
            background: #fff;
            border: 2px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .reserva-panel-main-title {
            margin: 0 0 10px 0;
            font-size: 20px;
            font-weight: 900;
            color: #111;
        }

        .reserva-panel-main-hint {
            margin: 0 0 20px 0;
            font-size: 14px;
            line-height: 1.5;
            color: var(--muted, #666);
        }

        .precio-alquiler-box {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
            color: #fff;
        }

        .precio-alquiler-box > div {
            flex: 1;
            text-align: center;
        }

        .precio-alquiler-box strong {
            font-size: 20px;
            font-weight: 900;
            display: block;
            color: rgba(255, 255, 255, 1);
        }

        .calendario-reserva-layout {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 20px;
            margin-top: 12px;
        }

        .calendario-reserva-layout #calendario-reserva-container {
            flex: 1 1 420px;
            min-width: 0;
        }

        .calendario-reserva-leyenda {
            flex: 0 0 auto;
            width: max-content;
            max-width: 100%;
            margin: 0;
            padding: 10px 12px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 13px;
            line-height: 1.45;
            color: #334155;
            box-sizing: border-box;
        }

        .calendario-reserva-leyenda-title {
            margin: 0 0 10px 0;
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #64748b;
        }

        .calendario-reserva-leyenda ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .calendario-reserva-leyenda li {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            white-space: nowrap;
        }

        .calendario-reserva-leyenda li:last-child {
            margin-bottom: 0;
        }

        .leyenda-swatch {
            width: 22px;
            height: 22px;
            border-radius: 6px;
            border: 2px solid #e2e8f0;
            flex-shrink: 0;
            box-sizing: border-box;
        }

        .leyenda-swatch--baja {
            background: #e8f8ef;
            border-color: #b8e0c8;
        }

        .leyenda-swatch--media {
            background: #fff4e8;
            border-color: #f5d4b0;
        }

        .leyenda-swatch--alta {
            background: #fdecef;
            border-color: #f0c4d0;
        }

        .leyenda-swatch--especial {
            background: #f3e8ff;
            border-color: #e9d5ff;
        }

        .leyenda-swatch--base {
            background: #f1f5f9;
            border-color: #e2e8f0;
        }

        .leyenda-swatch--nodisp {
            background: #f8d7da;
            border-color: #dc3545;
        }

        .calendario-reserva-doble {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        .mes-calendario {
            border: 2px solid var(--border);
            border-radius: 8px;
            padding: 15px;
            background: #fff;
        }

        .mes-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .mes-header h4 {
            margin: 0;
            font-size: 16px;
            font-weight: 900;
        }

        .mes-header button {
            background: transparent;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .mes-header button:hover:not(:disabled) {
            background: #f0f0f0;
        }

        .mes-header button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .calendario-grid-reserva {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }

        .dia-header-reserva {
            text-align: center;
            font-size: 11px;
            font-weight: 900;
            color: var(--muted);
            padding: 8px 4px;
        }

        .dia-reserva {
            min-height: 56px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s;
            background: #fff;
            padding: 4px 2px;
            box-sizing: border-box;
        }

        .dia-reserva-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            width: 100%;
            text-align: center;
            line-height: 1.1;
        }

        .dia-reserva .dia-num {
            font-size: 13px;
            font-weight: 800;
        }

        .dia-reserva .dia-precio {
            font-size: 10px;
            font-weight: 700;
            color: #475569;
        }

        .dia-reserva.dia-reserva--baja:not(.past):not(.no-disponible):not(.seleccionado):not(.en-rango) {
            background: #e8f8ef;
            border-color: #b8e0c8;
        }

        .dia-reserva.dia-reserva--media:not(.past):not(.no-disponible):not(.seleccionado):not(.en-rango) {
            background: #fff4e8;
            border-color: #f5d4b0;
        }

        .dia-reserva.dia-reserva--alta:not(.past):not(.no-disponible):not(.seleccionado):not(.en-rango) {
            background: #fdecef;
            border-color: #f0c4d0;
        }

        .dia-reserva.dia-reserva--especial:not(.past):not(.no-disponible):not(.seleccionado):not(.en-rango) {
            background: #f3e8ff;
            border-color: #e9d5ff;
        }

        .dia-reserva.dia-reserva--base:not(.past):not(.no-disponible):not(.seleccionado):not(.en-rango) {
            background: #f1f5f9;
            border-color: #e2e8f0;
        }

        .dia-reserva.empty {
            border: none;
            background: transparent;
            cursor: default;
        }

        .dia-reserva.past {
            opacity: 0.3;
            cursor: not-allowed;
            background: #f5f5f5;
        }

        .dia-reserva.no-disponible {
            background: #f8d7da;
            border-color: #dc3545;
            cursor: not-allowed;
            color: #721c24;
        }

        .dia-reserva.seleccionado {
            background: #667eea;
            color: #fff;
            border-color: #667eea;
        }

        .dia-reserva.seleccionado .dia-precio {
            color: rgba(255, 255, 255, 0.92);
        }

        .dia-reserva.en-rango {
            background: rgba(102, 126, 234, 0.2);
            border-color: #667eea;
        }

        .dia-reserva.en-rango .dia-precio {
            color: #4338ca;
        }

        .dia-reserva:not(.past):not(.no-disponible):hover {
            transform: scale(1.05);
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        @media (max-width: 768px) {
            .calendario-reserva-doble {
                grid-template-columns: 1fr;
            }

            .calendario-reserva-layout {
                flex-direction: column;
            }

            .calendario-reserva-leyenda {
                width: 100%;
                max-width: none;
            }

            .calendario-reserva-leyenda li {
                white-space: normal;
            }

            .precio-alquiler-box {
                flex-direction: column;
            }
        }
