/* ============================================================================
   ARCHIVO: propiedad.css
   UBICACIÓN: CanariasApart.Web/wwwroot/css/front/
   DESCRIPCIÓN: Estilos para la página pública de propiedad
   MODIFICADO: Eliminada sección extras. Rediseñada sección lugares cercanos
               con tarjetas clicables y modal popup detallado.
   ============================================================================ */

/* ===== VARIABLES CSS ===== */
:root {
    --teal: #008572;
    --teal-dark: #006b5c;
    --teal-light: #e6f5f2;
    --teal-50: rgba(0,133,114,0.05);
    --gold: #dfbb3e;
    --gold-dark: #c9a535;
    --gold-light: #fdf6e3;
    --text-primary: #1a2a2a;
    --text-secondary: #5a6b6b;
    --text-muted: #8a9a9a;
    --bg-white: #ffffff;
    --bg-cream: #fafaf7;
    --bg-warm: #f5f3ee;
    --border: #e8e5de;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ===== RESET BASE ===== */
.prop-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Restaurar estilos de Bootstrap modal (el reset anterior los elimina) */
.prop-page .modal-dialog {
    margin: 1.75rem auto;
}

.prop-page .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
    margin: 1.75rem auto;
}

.prop-page {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
}

    .prop-page h1, .prop-page h2, .prop-page h3, .prop-page h4 {
        font-family: 'Cormorant Garamond', serif;
    }

/* ===== HEADER ===== */
.prop-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 clamp(16px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.prop-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.prop-logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
}

.prop-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .prop-nav-links a {
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.2s;
    }

        .prop-nav-links a:hover {
            color: var(--teal);
        }

    .prop-nav-links .btn-cuenta {
        background: var(--teal);
        color: white;
        padding: 8px 20px;
        border-radius: 50px;
        font-size: 0.85rem;
    }

        .prop-nav-links .btn-cuenta:hover {
            background: var(--teal-dark);
            color: white;
        }

.prop-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== BREADCRUMB (SEO) ===== */
.prop-breadcrumb {
    padding: 12px clamp(16px, 4vw, 60px);
    background: var(--bg-cream);
    font-size: 0.82rem;
    color: var(--text-muted);
}

    .prop-breadcrumb a {
        color: var(--teal);
        text-decoration: none;
    }

        .prop-breadcrumb a:hover {
            text-decoration: underline;
        }

/* ===== GALLERY HERO (grid de 5 fotos) ===== */
.gallery-section {
    padding: 0 clamp(16px, 4vw, 60px);
    margin-top: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 9px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

    .gallery-grid .gallery-item {
        overflow: hidden;
        position: relative;
    }

        .gallery-grid .gallery-item:first-child {
            grid-row: 1 / 3;
        }

        .gallery-grid .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-grid .gallery-item:hover img {
            transform: scale(1.03);
        }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
    pointer-events: none;
}

.btn-all-photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-all-photos:hover {
        background: var(--bg-cream);
    }

.zone-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ===== FIGURE + FIGCAPTION (SEO + IA) ===== */

/* Reset: figure no debe añadir márgenes al layout existente */
.prop-page figure {
    margin: 0;
    padding: 0;
}

/* -- Hero Gallery figcaption: overlay semitransparente en la parte inferior -- */
.gallery-figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    pointer-events: none;
    z-index: 1;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* La primera imagen (grande) tiene overlay propio, figcaption con más padding */
.gallery-grid .gallery-item:first-child .gallery-figcaption {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* -- Zone Gallery figcaption: banda inferior sobre la imagen -- */
.zone-figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
    pointer-events: none;
    font-family: 'DM Sans', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Featured (imagen grande de zona): caption más visible */
.zone-gallery .zone-img.featured .zone-figcaption {
    padding: 10px 14px;
    font-size: 0.82rem;
}

/* Mostrar figcaption al hacer hover */
.zone-gallery .zone-img:hover .zone-figcaption {
    opacity: 1;
}

/* -- Gallery Modal figure: contener imagen + caption centrados -- */
.gallery-modal-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    max-width: 90vw;
    max-height: 85vh;
}

/* Responsive figcaption */
@media (max-width: 768px) {
    .gallery-figcaption {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    .zone-figcaption {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    /* En móvil, mostrar siempre el figcaption de zonas para que la IA lo lea */
    .zone-gallery .zone-img .zone-figcaption {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .gallery-grid .gallery-item:first-child .gallery-figcaption {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}

/* ===== LAYOUT PRINCIPAL (2 columnas) ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    padding: 40px clamp(16px, 4vw, 60px) 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== TÍTULO DE PROPIEDAD ===== */
.property-title-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.property-tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.property-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.property-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 16px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

    .meta-item i {
        color: var(--teal);
        font-size: 0.85rem;
    }

.meta-divider {
    width: 4px;
    height: 4px;
    background: var(--border);
    border-radius: 50%;
}

/* ===== HIGHLIGHTS ===== */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 2px;
    font-family: 'DM Sans', sans-serif;
}

.highlight-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== SECCIONES GENERALES ===== */
.section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

    .section:last-child {
        border-bottom: none;
    }

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .section-title i {
        color: var(--teal);
        font-size: 1.2rem;
    }

    .section-title .line {
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* ===== DESCRIPCIÓN ===== */
.description-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

    .description-text p {
        margin-bottom: 16px;
    }

.btn-read-more {
    background: none;
    border: none;
    color: var(--teal);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    text-decoration: underline;
}

/* ===== AMENITIES ===== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: background 0.2s;
}

    .amenity-item:hover {
        background: var(--teal-light);
    }

    .amenity-item i {
        color: var(--teal);
        width: 20px;
        text-align: center;
        font-size: 1rem;
    }

/* ===== GALERÍA POR ZONAS (tabs + grid con filas fijas) ===== */
.zone-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zone-tab {
    padding: 8px 18px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .zone-tab i {
        font-size: 0.78rem;
        width: 16px;
        text-align: center;
    }

    .zone-tab.active,
    .zone-tab:hover {
        border-color: var(--teal);
        background: var(--teal-light);
        color: var(--teal);
    }

/* Grid con FILAS DE ALTURA FIJA */
.zone-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px;
    grid-auto-rows: 200px;
    gap: 12px;
}

    .zone-gallery .zone-img {
        border-radius: var(--radius-sm);
        overflow: hidden;
        cursor: pointer;
        position: relative;
    }

        .zone-gallery .zone-img.featured {
            grid-column: 1 / 3;
            grid-row: 1 / 3;
        }

        .zone-gallery .zone-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s;
        }

        .zone-gallery .zone-img:hover img {
            transform: scale(1.05);
        }

.zone-gallery-hidden {
    display: none;
}

/* ===== NORMAS DE LA CASA — PREVIEW ===== */
.rules-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rule-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold);
    transition: box-shadow 0.2s ease;
}

    .rule-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

.rule-icon {
    width: 38px;
    height: 38px;
    background: var(--gold-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
}

.rule-content p {
    font-size: 0.84rem;
    color: #4a5a5a;
    line-height: 1.55;
    margin: 0;
}

/* Botón "Mostrar todas las normas" */
.prop-page .btn-show-rules {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s, color 0.2s;
}

    .prop-page .btn-show-rules:hover {
        background: var(--text-primary);
        color: white;
    }

/* =========================================================================
   LUGARES CERCANOS — TARJETAS CLICABLES V2
   ========================================================================= */
.nearby-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.nearby-card-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 0;
}

    .nearby-card-v2:last-child {
        border-bottom: none;
    }

    .nearby-card-v2:hover {
        background: var(--teal-50);
    }

    .nearby-card-v2:focus-visible {
        outline: 2px solid var(--teal);
        outline-offset: -2px;
        border-radius: var(--radius-sm);
    }

.nearby-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.nearby-card-body {
    flex: 1;
    min-width: 0;
}

.nearby-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
}

.nearby-card-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--teal);
    background: var(--teal-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    margin-right: 8px;
}

    .nearby-card-type i {
        font-size: 0.65rem;
    }

.nearby-card-dist {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

    .nearby-card-dist i {
        font-size: 0.7rem;
        color: var(--teal);
    }

.nearby-card-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.nearby-card-v2:hover .nearby-card-arrow {
    color: var(--teal);
    transform: translateX(3px);
}

/* ===== RULES MODAL (estilo Airbnb) ===== */
.rules-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.rules-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rules-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 92%;
    max-width: 580px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes rulesModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-primary);
    transition: background 0.2s;
    z-index: 2;
}

    .rules-modal-close:hover {
        background: #e0e0e0;
    }

.rules-modal-title {
    padding: 28px 28px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.rules-modal-body {
    padding: 0 28px 28px;
    overflow-y: auto;
    flex: 1;
}

    .rules-modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .rules-modal-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .rules-modal-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

.rules-modal-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

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

.rules-modal-icon {
    width: 42px;
    height: 42px;
    background: var(--gold-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .rules-modal-icon i {
        font-size: 1rem;
        color: var(--gold-dark);
    }

.rules-modal-text {
    flex: 1;
    min-width: 0;
}

.rules-modal-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    margin: 0 0 6px 0;
}

.rules-modal-desc {
    font-size: 0.85rem;
    color: #4a5a5a;
    line-height: 1.55;
    margin: 0;
}

/* Responsive rules modal */
@media (max-width: 600px) {
    .rules-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }

    .rules-modal-title {
        padding: 20px 20px 0;
        font-size: 1.3rem;
    }

    .rules-modal-body {
        padding: 0 20px 20px;
    }
}

/* =========================================================================
   NEARBY PLACE MODAL
   ========================================================================= */
.nearby-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.nearby-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.nearby-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 540px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
    animation: nearbyModalIn 0.3s ease;
    overflow: hidden;
}

@keyframes nearbyModalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nearby-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 3;
}

    .nearby-modal-close:hover {
        background: white;
        box-shadow: var(--shadow-sm);
    }

.nearby-modal-body {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

    .nearby-modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .nearby-modal-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .nearby-modal-body::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }

/* --- Imagen del lugar --- */
.nearby-modal-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.nearby-modal-image-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

/* --- Header del modal --- */
.nearby-modal-header {
    padding: 24px 24px 0;
}

.nearby-modal-header-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.nearby-modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nearby-modal-header-text {
    flex: 1;
    min-width: 0;
}

.nearby-modal-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.nearby-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nearby-modal-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--teal);
    background: var(--teal-light);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

    .nearby-modal-type-tag i {
        font-size: 0.65rem;
    }

.nearby-modal-dist-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

    .nearby-modal-dist-tag i {
        color: var(--gold-dark);
        font-size: 0.72rem;
    }

/* --- Descripción --- */
.nearby-modal-desc {
    padding: 16px 24px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

    .nearby-modal-desc p {
        margin-bottom: 10px;
    }

        .nearby-modal-desc p:last-child {
            margin-bottom: 0;
        }

/* --- Distancia info box --- */
.nearby-modal-distance-box {
    margin: 0 24px 16px;
    padding: 14px 16px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

    .nearby-modal-distance-box i {
        color: var(--teal);
        font-size: 1rem;
    }

.nearby-modal-distance-info {
    flex: 1;
}

.nearby-modal-distance-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.nearby-modal-distance-value {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Botones de acción --- */
.nearby-modal-actions {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nearby-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.nearby-modal-btn-maps {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
}

    .nearby-modal-btn-maps:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 133, 114, 0.3);
        color: white;
    }

.nearby-modal-btn-web {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}

    .nearby-modal-btn-web:hover {
        border-color: var(--teal);
        color: var(--teal);
        background: var(--teal-50);
    }

/* ===== MAPA ===== */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 350px;
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.map-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .map-note i {
        color: var(--teal);
    }

/* ===== POLÍTICAS ===== */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.policy-card {
    padding: 20px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
}

    .policy-card h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'DM Sans', sans-serif;
        font-weight: 600;
    }

        .policy-card h4 i {
            color: var(--teal);
        }

    .policy-card p {
        font-size: 0.88rem;
        color: var(--text-secondary);
        line-height: 1.6;
    }

/* ===== SIDEBAR BOOKING ===== */
.sidebar {
    position: relative;
}

.booking-card {
    position: sticky;
    top: 92px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.booking-price {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-primary);
}

.booking-price-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.booking-rating {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .booking-rating i {
        color: var(--gold);
    }

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.booking-date-field {
    padding: 12px 14px;
}

    .booking-date-field:first-child {
        border-right: 2px solid var(--border);
    }

    .booking-date-field label {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .booking-date-field input,
    .booking-guests select {
        width: 100%;
        border: none;
        font-size: 0.88rem;
        color: var(--text-secondary);
        font-family: 'DM Sans', sans-serif;
        background: transparent;
        outline: none;
    }

.booking-guests {
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 16px;
}

    .booking-guests label {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .booking-guests select {
        padding: 0;
        cursor: pointer;
    }

.btn-reserve {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}

    .btn-reserve:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(223,187,62,0.4);
    }

.booking-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.booking-breakdown {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

    .breakdown-row.total {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 1rem;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        margin-top: 12px;
    }

.deposit-note {
    margin-top: 12px;
    padding: 12px;
    background: var(--gold-light);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.min-nights-note {
    margin-top: 10px;
    padding: 10px;
    background: var(--teal-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== GALLERY MODAL (lightbox) ===== */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
}

    .gallery-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.gallery-modal-zone {
    position: absolute;
    top: 24px;
    left: 28px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.gallery-modal img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.gallery-modal-caption {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 600px;
    text-align: center;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

    .gallery-modal-nav:hover {
        background: rgba(255,255,255,0.3);
    }

    .gallery-modal-nav.prev {
        left: 20px;
    }

    .gallery-modal-nav.next {
        right: 20px;
    }

.gallery-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.prop-footer {
    background: var(--teal);
    color: rgba(255,255,255,0.75);
    padding: 48px clamp(16px, 4vw, 60px) 24px;
}

.prop-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.prop-footer-brand {
    margin-bottom: 12px;
}

.prop-footer-logo-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    display: block;
}

.logo-canarias {
    color: #dfbb3e;
}

.logo-apart {
    color: #ffffff;
}

.prop-footer-logo-sub {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: #ffffff;
    margin-top: 4px;
    font-weight: 500;
}

.prop-footer p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.prop-footer-col h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
}

.prop-footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

    .prop-footer-col a:hover {
        color: var(--gold);
    }

.prop-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

/* =========================================================================
   AMENITIES PREVIEW — Estilo Airbnb exacto
   ========================================================================= */
.prop-page .amenities-preview {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.prop-page .amenity-preview-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #ebebeb;
    font-size: 1rem;
    color: #222;
}

    .prop-page .amenity-preview-item:nth-child(odd) {
        padding-right: 32px;
    }

    .prop-page .amenity-preview-item:nth-child(even) {
        padding-left: 32px;
        border-left: 1px solid #ebebeb;
    }

    .prop-page .amenity-preview-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .prop-page .amenity-preview-item > i {
        font-size: 1.4rem;
        width: 32px;
        min-width: 32px;
        text-align: center;
        color: #2d2d2d;
        flex-shrink: 0;
        line-height: 1;
    }

    .prop-page .amenity-preview-item > span {
        line-height: 1.4;
        flex: 1;
        font-size: 0.95rem;
    }

    .prop-page .amenity-preview-item.amenity-unavailable {
        opacity: 0.5;
    }

        .prop-page .amenity-preview-item.amenity-unavailable > span {
            text-decoration: line-through;
            color: #717171;
        }

.prop-page .amenity-icon-crossed {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    flex-shrink: 0;
}

    .prop-page .amenity-icon-crossed i {
        color: #2d2d2d;
        font-size: 1.4rem;
    }

    .prop-page .amenity-icon-crossed::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: #999;
        transform: rotate(-45deg);
        transform-origin: center;
    }

/* Botón "Mostrar los X servicios" — Airbnb */
.prop-page .btn-show-amenities {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 24px;
    background: transparent;
    border: 1px solid #222;
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.15s ease, transform 0.1s ease;
}

    .prop-page .btn-show-amenities:hover {
        background: #f7f7f7;
    }

    .prop-page .btn-show-amenities:active {
        transform: scale(0.98);
    }

/* =========================================================================
   AMENITIES MODAL — Estilo Airbnb exacto
   Forzamos flex-direction:row con !important para evitar conflictos
   ========================================================================= */
.amenities-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.amenities-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.amenities-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
    animation: amenitiesModalIn 0.3s ease;
}

@keyframes amenitiesModalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botón cerrar — esquina superior izquierda como Airbnb */
.amenities-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #222;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s;
    z-index: 2;
}

    .amenities-modal-close:hover {
        background: #f0f0f0;
    }

/* Título — alineado a la IZQUIERDA como Airbnb */
.amenities-modal-title {
    padding: 24px 28px 8px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    text-align: left !important;
    margin-bottom: 0;
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Body con scroll */
.amenities-modal-body {
    padding: 0 28px 32px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

    .amenities-modal-body::-webkit-scrollbar {
        width: 4px;
    }

    .amenities-modal-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .amenities-modal-body::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 2px;
    }

/* ---- Categoría ---- */
.amenities-modal-category {
    margin-bottom: 0;
}

    .amenities-modal-category:not(:first-child) {
        border-top: 1px solid #ebebeb;
        margin-top: 12px;
        padding-top: 8px;
    }

/* Título de categoría — solo texto bold, SIN icono (como Airbnb) */
.amenities-category-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    padding: 20px 0 4px;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    display: block !important;
    letter-spacing: -0.005em;
    line-height: 1.4;
}

    /* OCULTAR el icono de categoría — Airbnb no lo usa */
    .amenities-category-title i {
        display: none !important;
    }

/* ---- Items de amenity — HORIZONTAL forzado ---- */
.amenities-modal-content .amenity-modal-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #ebebeb;
}

    .amenities-modal-content .amenity-modal-item:last-child {
        border-bottom: none;
    }

/* Contenedor del icono */
.amenities-modal-content .amenity-modal-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

    .amenities-modal-content .amenity-modal-icon i {
        font-size: 1.4rem;
        color: #2d2d2d;
        display: block;
        line-height: 1;
    }

/* Contenedor del texto */
.amenities-modal-content .amenity-modal-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

/* Nombre del amenity */
.amenities-modal-content .amenity-modal-name {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.4;
    display: block;
    font-weight: 400;
}

/* Nota / subtexto */
.amenities-modal-content .amenity-modal-note {
    font-size: 0.82rem;
    color: #717171;
    line-height: 1.4;
    display: block;
}

/* ---- Amenity NO disponible (tachado) ---- */
.amenities-modal-content .amenity-modal-unavailable {
    opacity: 0.5;
}

    .amenities-modal-content .amenity-modal-unavailable .amenity-modal-name {
        text-decoration: line-through;
        color: #717171;
    }

    .amenities-modal-content .amenity-modal-unavailable .amenity-modal-icon {
        position: relative;
    }

        .amenities-modal-content .amenity-modal-unavailable .amenity-modal-icon::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: #999;
            transform: rotate(-45deg);
            transform-origin: center;
        }

/* ===== RESPONSIVE AMENITIES — Airbnb ===== */
@media (max-width: 768px) {
    .prop-page .amenities-preview {
        grid-template-columns: 1fr;
    }

    .prop-page .amenity-preview-item:nth-child(odd),
    .prop-page .amenity-preview-item:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-left: none;
    }

    .prop-page .amenity-preview-item:last-child {
        border-bottom: none;
    }

    .amenities-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .amenities-modal-title {
        font-size: 1.3rem;
        padding: 20px 20px 8px;
    }

    .amenities-modal-body {
        padding: 0 20px 28px;
    }
}

@media (max-width: 480px) {
    .prop-page .amenity-preview-item {
        font-size: 0.9rem;
        gap: 16px;
        padding: 15px 0;
    }

        .prop-page .amenity-preview-item > i {
            font-size: 1.25rem;
            width: 28px;
            min-width: 28px;
        }

    .prop-page .btn-show-amenities {
        width: 100%;
        text-align: center;
    }

    .amenities-modal-content .amenity-modal-item {
        gap: 16px;
        padding: 16px 0;
    }

    .amenities-modal-content .amenity-modal-icon i {
        font-size: 1.2rem;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .booking-card {
        position: static;
    }

    .highlights {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-preview {
        grid-template-columns: 1fr;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }

    .prop-footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px;
    }

        .gallery-grid .gallery-item:not(:first-child) {
            display: none;
        }

        .gallery-grid .gallery-item:first-child {
            grid-row: auto;
        }

    .prop-nav-links {
        display: none;
    }

    .prop-menu-toggle {
        display: block;
    }

    .prop-logo-img {
        height: 42px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .zone-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 220px 220px;
        grid-auto-rows: 220px;
    }

        .zone-gallery .zone-img.featured {
            grid-column: 1 / -1;
            grid-row: auto;
        }

    .prop-footer-content {
        grid-template-columns: 1fr;
    }

    .prop-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .gallery-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

        .gallery-modal-nav.prev {
            left: 10px;
        }

        .gallery-modal-nav.next {
            right: 10px;
        }



    /* Nearby modal responsive */
    .nearby-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .nearby-modal-image {
        height: 180px;
    }

    .nearby-modal-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .zone-tabs {
        gap: 6px;
    }

    .zone-tab {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .zone-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px;
        grid-auto-rows: 160px;
        gap: 4px;
    }

        .zone-gallery .zone-img.featured {
            grid-column: 1 / -1;
            grid-row: auto;
        }

    .property-title {
        font-size: 1.6rem;
    }

    .booking-card {
        padding: 20px;
    }

    /* Nearby cards responsive */
    .nearby-card-v2 {
        padding: 14px 8px;
        gap: 12px;
    }

    .nearby-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .nearby-card-name {
        font-size: 0.92rem;
    }

    /* Nearby modal responsive small */
    .nearby-modal-image {
        height: 150px;
    }

    .nearby-modal-header {
        padding: 20px 16px 0;
    }

    .nearby-modal-desc {
        padding: 12px 16px;
    }

    .nearby-modal-distance-box {
        margin: 0 16px 12px;
    }

    .nearby-modal-actions {
        padding: 0 16px 20px;
    }
}

/* ===== FLATPICKR CUSTOM THEME - CanariasApart ===== */

/* Contenedor general del calendario */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--border, #e5e7eb) !important;
    font-family: 'DM Sans', sans-serif !important;
    overflow: hidden;
}

/* Header del mes */
.flatpickr-months {
    background: #008572 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 4px 0 !important;
}

    .flatpickr-months .flatpickr-month {
        color: #fff !important;
        fill: #fff !important;
        height: 40px !important;
    }

.flatpickr-current-month {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    padding: 0 !important;
}

    .flatpickr-current-month .flatpickr-monthDropdown-months {
        background: transparent !important;
        color: #fff !important;
        font-weight: 600 !important;
        -webkit-appearance: none !important;
    }

    .flatpickr-current-month input.cur-year {
        color: #fff !important;
        font-weight: 600 !important;
    }

/* Flechas de navegación */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #fff !important;
    color: #fff !important;
    padding: 8px !important;
}

    .flatpickr-months .flatpickr-prev-month:hover,
    .flatpickr-months .flatpickr-next-month:hover {
        fill: #dfbb3e !important;
        color: #dfbb3e !important;
    }

    .flatpickr-months .flatpickr-prev-month svg,
    .flatpickr-months .flatpickr-next-month svg {
        fill: inherit !important;
    }

/* Días de la semana */
.flatpickr-weekdays {
    background: #f0fdfb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

span.flatpickr-weekday {
    color: #008572 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Días del calendario */
.flatpickr-day {
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    line-height: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
}

    .flatpickr-day:hover {
        background: rgba(0, 133, 114, 0.1) !important;
        border-color: #008572 !important;
    }

    /* Día seleccionado */
    .flatpickr-day.selected,
    .flatpickr-day.startRange,
    .flatpickr-day.endRange {
        background: #008572 !important;
        border-color: #008572 !important;
        color: #fff !important;
        font-weight: 700 !important;
    }

        .flatpickr-day.selected:hover,
        .flatpickr-day.startRange:hover,
        .flatpickr-day.endRange:hover {
            background: #006b5c !important;
            border-color: #006b5c !important;
        }

    /* Rango entre fechas */
    .flatpickr-day.inRange {
        background: rgba(0, 133, 114, 0.1) !important;
        border-color: transparent !important;
        box-shadow: -5px 0 0 rgba(0, 133, 114, 0.1), 5px 0 0 rgba(0, 133, 114, 0.1) !important;
    }

    /* Hoy */
    .flatpickr-day.today {
        border-color: #dfbb3e !important;
        font-weight: 700 !important;
    }

        .flatpickr-day.today:hover {
            background: rgba(223, 187, 62, 0.1) !important;
            border-color: #dfbb3e !important;
        }

        .flatpickr-day.today.selected {
            background: #008572 !important;
            border-color: #008572 !important;
            color: #fff !important;
        }

    /* ===== DÍAS NO DISPONIBLES - RESERVADOS (rojo) ===== */
    .flatpickr-day.flatpickr-disabled-reserved,
    .flatpickr-day.flatpickr-disabled.flatpickr-disabled-reserved {
        background: rgba(239, 68, 68, 0.12) !important;
        color: #dc2626 !important;
        text-decoration: line-through !important;
        cursor: not-allowed !important;
        opacity: 1 !important;
        border-color: rgba(239, 68, 68, 0.25) !important;
    }

        .flatpickr-day.flatpickr-disabled-reserved::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient( -45deg, transparent, transparent 3px, rgba(239, 68, 68, 0.08) 3px, rgba(239, 68, 68, 0.08) 6px );
            border-radius: 8px;
            pointer-events: none;
        }

    /* ===== DÍAS NO DISPONIBLES - BLOQUEADOS (gris) ===== */
    .flatpickr-day.flatpickr-disabled-blocked,
    .flatpickr-day.flatpickr-disabled.flatpickr-disabled-blocked {
        background: rgba(107, 114, 128, 0.1) !important;
        color: #9ca3af !important;
        text-decoration: line-through !important;
        cursor: not-allowed !important;
        opacity: 1 !important;
        border-color: rgba(107, 114, 128, 0.2) !important;
    }

    /* Días deshabilitados genéricos (pasados) */
    .flatpickr-day.flatpickr-disabled,
    .flatpickr-day.flatpickr-disabled:hover {
        color: #d1d5db !important;
        background: transparent !important;
        cursor: not-allowed !important;
    }

    /* Rango in-range custom */
    .flatpickr-day.flatpickr-in-range {
        background: rgba(0, 133, 114, 0.08) !important;
    }

/* ===== BOOKING BREAKDOWN (resumen de precio) ===== */
.booking-breakdown {
    padding: 16px 0;
    border-top: 1px solid var(--border, #e5e7eb);
    margin-top: 4px;
    display: none;
}

.breakdown-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}

    .breakdown-line span:first-child {
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 3px;
        cursor: help;
    }

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 4px;
    border-top: 1px solid var(--border, #e5e7eb);
    margin-top: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary, #1e293b);
}

/* ===== MEJORAS INPUTS DE FECHA ===== */
.booking-date-field input[readonly] {
    cursor: pointer !important;
    background: #fff !important;
}

.booking-date-field input[disabled] {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    background: #f9fafb !important;
}

.booking-date-field label i {
    margin-right: 4px;
    color: #008572;
    font-size: 0.8rem;
}

/* Flatpickr alt input styling */
.booking-date-field .flatpickr-input,
.booking-date-field input.flatpickr-input {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-primary, #1e293b) !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    width: 100% !important;
    background: transparent !important;
}

/* ===== RESPONSIVE PARA FLATPICKR ===== */
@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 100% !important;
        max-width: 320px !important;
    }

    .flatpickr-day {
        height: 34px !important;
        line-height: 34px !important;
        max-width: 34px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .flatpickr-calendar {
        max-width: 290px !important;
    }

    .flatpickr-day {
        height: 30px !important;
        line-height: 30px !important;
        max-width: 30px !important;
    }
}

/* Línea de descuento en verde */
.breakdown-discount span {
    color: #10b981;
    font-weight: 600;
}

/* Prefijo "Desde" en el precio */
.booking-price-from {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 400;
    margin-right: 4px;
}

/* ===== SELECTOR DE IDIOMA ===== */
.lang-selector {
    position: relative;
    margin-left: 12px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

    .lang-btn:hover {
        background: var(--teal-light);
        border-color: var(--teal);
    }

.lang-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.lang-dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

    .lang-option:hover {
        background: var(--teal-50);
    }

    .lang-option .lang-flag {
        width: 22px;
        height: 16px;
        border-radius: 3px;
        box-shadow: 0 0 2px rgba(0,0,0,0.15);
    }

    .lang-option .lang-name {
        flex: 1;
        font-weight: 400;
    }

.lang-active {
    background: var(--teal-light);
    font-weight: 600;
    color: var(--teal);
}

    .lang-active:hover {
        background: var(--teal-light);
    }

.lang-check {
    font-size: 0.75rem;
    color: var(--teal);
}

/* ===== HEADER MOBILE LAYOUT ===== */
.prop-header-right-mobile {
    display: none;
    align-items: center;
    gap: 8px;
}

.lang-selector-mobile {
    margin-left: 0;
}

.lang-btn-mobile {
    padding: 6px 8px;
    border: none;
    background: transparent;
}

    .lang-btn-mobile:hover {
        background: var(--teal-light);
    }

.lang-dropdown-mobile {
    right: -40px;
}

/* Menú móvil desplegable */
.prop-mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
}

.prop-mobile-menu-open {
    display: flex !important;
}

.prop-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

    .prop-mobile-menu a:hover {
        background: var(--teal-50);
        color: var(--teal);
    }

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
    .prop-nav-links {
        display: none !important;
    }

    .prop-header-right-mobile {
        display: flex;
    }

    .prop-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.3rem;
        color: var(--text-primary);
        cursor: pointer;
        padding: 6px;
    }
}

/* ===== RESPONSIVE: TABLET ===== */
@media (min-width: 769px) {
    .prop-menu-toggle {
        display: none;
    }

    .prop-mobile-menu {
        display: none !important;
    }

    .prop-header-right-mobile {
        display: none !important;
    }

    .lang-selector-mobile {
        display: none !important;
    }
}

/* ===== SECCIÓN VALORACIONES / REVIEWS ===== */

.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gold);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 12px;
    vertical-align: middle;
}

.review-star-mini {
    font-size: 0.7rem;
}

.reviews-badge .review-star-mini {
    color: #fff;
}

/* --- Resumen general --- */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 32px;
    padding: 28px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.reviews-score-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
}

.score-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.score-stars {
    display: flex;
    gap: 3px;
    color: var(--gold);
    font-size: 1.1rem;
}

.score-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Barras por categoría --- */
.reviews-categories {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.review-cat-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-cat-label {
    width: 130px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.review-cat-bar {
    flex: 1;
    height: 8px;
    background: #e8e5de;
    border-radius: 4px;
    overflow: hidden;
}

.review-cat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.review-cat-value {
    width: 32px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-align: right;
    flex-shrink: 0;
}

/* --- Lista de valoraciones --- */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Tarjeta de valoración individual --- */
.review-card-front {
    padding: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .review-card-front:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--gold);
    }

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}

.review-guest-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.review-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gold-light);
}

.review-guest-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .review-guest-details strong {
        font-size: 0.95rem;
        color: var(--text-primary);
    }

    .review-guest-details small {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

/* Estrellas */
.review-stars-front {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

    .review-stars-front .far {
        color: #d4d0c8;
    }

.review-score-num {
    margin-left: 6px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-dark);
}

/* Comentario */
.review-comment {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* Botón traducir */
.review-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--teal);
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid var(--teal);
    border-radius: 20px;
    transition: all 0.2s;
    margin-bottom: 14px;
}

    .review-translate-btn:hover {
        background: var(--teal);
        color: #fff;
    }

/* Respuesta del admin */
.review-response-front {
    padding: 16px;
    background: var(--teal-light);
    border-left: 3px solid var(--teal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 14px;
}

.review-response-header {
    font-size: 0.82rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-response-front p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer de tarjeta */
.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-date-front {
    font-size: 0.8rem;
    color: var(--text-muted);
}

    .review-date-front i {
        margin-right: 4px;
    }

.review-featured-badge {
    color: var(--gold);
    font-size: 1rem;
}

/* Botón "Mostrar más" */
.btn-show-more-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-show-more-reviews:hover {
        background: var(--text-primary);
        color: var(--bg-white);
    }

    .btn-show-more-reviews:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn-show-more-reviews i {
        transition: transform 0.3s ease;
    }

    .btn-show-more-reviews.loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Sin valoraciones */
.reviews-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

    .reviews-empty i {
        font-size: 2.5rem;
        margin-bottom: 16px;
        color: var(--gold);
        opacity: 0.5;
    }

    .reviews-empty p {
        font-size: 0.95rem;
        max-width: 400px;
        margin: 0 auto;
    }

/* ===== RESPONSIVE: REVIEWS ===== */
@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    .reviews-score-big {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .score-number {
        font-size: 2.2rem;
    }

    .review-cat-label {
        width: 100px;
        font-size: 0.82rem;
    }

    .review-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .review-stars-front {
        align-self: flex-start;
    }

    .review-card-front {
        padding: 18px;
    }

    .reviews-badge {
        font-size: 0.78rem;
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .review-cat-label {
        width: 80px;
        font-size: 0.78rem;
    }

    .score-number {
        font-size: 1.8rem;
    }

    .review-comment {
        font-size: 0.88rem;
    }
}

/* ===== CHECKOUT OVERLAY ===== */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    animation: coFadeIn .2s ease;
}

@keyframes coFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.checkout-panel {
    width: 480px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    animation: coSlideIn .3s ease;
    box-shadow: -4px 0 30px rgba(0, 0, 0, .15);
}

@keyframes coSlideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.checkout-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

    .checkout-panel-header h3 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 700;
        color: #1a1a1a;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .checkout-panel-header h3 i {
            color: #008572;
        }

.checkout-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all .2s;
}

    .checkout-close:hover {
        background: #f0f0f0;
        color: #333;
    }

/* ===== PANEL BODY (scrollable) ===== */
.checkout-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ===== DATES SUMMARY ===== */
.checkout-dates-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

.checkout-date-box {
    flex: 1;
    text-align: center;
}

.checkout-date-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #008572, #006B5A);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.checkout-date-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.checkout-date-box {
    text-align: center;
    padding: 12px 16px;
    background: #f8faf9;
    border-radius: 10px;
    border: 1px solid #e8eeec;
    flex: 1;
    transition: border-color .2s;
}

    .checkout-date-box:hover {
        border-color: #008572;
    }

.checkout-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008572;
    font-size: 1rem;
    padding: 0 8px;
}

.checkout-date-divider {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 1rem;
}

.checkout-nights-badge {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: .82rem;
    color: #666;
}

    .checkout-nights-badge strong {
        color: #008572;
    }

/* ===== PRICE BREAKDOWN ===== */
.checkout-price-breakdown {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.checkout-price-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .9rem;
    color: #555;
}

    .checkout-price-line.discount {
        color: #008572;
    }

.checkout-price-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: .95rem;
    font-weight: 600;
    color: #333;
    border-top: 1px dashed #ddd;
    margin-top: 6px;
}

/* ===== EXTRAS SECTIONS ===== */
.checkout-extras-section {
    margin-bottom: 20px;
}

    .checkout-extras-section h4 {
        font-size: .88rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .checkout-extras-section h4 i {
            color: #008572;
            font-size: .82rem;
        }

.checkout-extras-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-extra-item {
    border-radius: 8px;
    padding: 12px 14px;
    transition: all .2s;
}

    .checkout-extra-item.obligatorio {
        background: rgba(0, 133, 114, .04);
        border: 1px solid rgba(0, 133, 114, .12);
    }

    .checkout-extra-item.opcional {
        background: #fafafa;
        border: 1px solid #eee;
    }

        .checkout-extra-item.opcional:hover {
            border-color: #dfbb3e;
        }

.checkout-extra-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

    .checkout-extra-toggle input[type="checkbox"] {
        accent-color: #008572;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.checkout-extra-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

    .checkout-extra-info i {
        color: #008572;
        font-size: .85rem;
        width: 20px;
        text-align: center;
    }

.checkout-extra-name {
    font-size: .88rem;
    color: #333;
    font-weight: 500;
}

.checkout-extra-price {
    text-align: right;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .checkout-extra-price span {
        font-weight: 600;
        color: #333;
        font-size: .88rem;
    }

    .checkout-extra-price small {
        color: #999;
        font-size: .72rem;
    }

.checkout-included-badge {
    background: rgba(0, 133, 114, .1);
    color: #008572;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ===== TOTAL SECTION ===== */
.checkout-total-section {
    background: linear-gradient(135deg, #008572, #006B5A);
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 16px;
}

.checkout-total-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
}

.checkout-total-final {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

/* ===== PANEL FOOTER ===== */
.checkout-panel-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}

.checkout-btn-back {
    flex: 0 0 auto;
    padding: 12px 20px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .checkout-btn-back:hover {
        border-color: #999;
        color: #333;
    }

.checkout-btn-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #dfbb3e, #C9A227);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .checkout-btn-confirm:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(223, 187, 62, .35);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    .checkout-panel {
        width: 100%;
    }

    .checkout-panel-body {
        padding: 16px;
    }

    .checkout-panel-footer {
        flex-direction: column;
    }

    .checkout-btn-back {
        justify-content: center;
    }
}

/* ★ Fianza en checkout - VISIBLE */
.checkout-line-fianza {
    background: #fff8e6;
    border-radius: 8px;
    padding: 10px 14px !important;
    margin-top: 8px;
    border-left: 3px solid #dfbb3e;
}

    .checkout-line-fianza span:first-child {
        color: #1a1a1a;
        font-weight: 600;
    }

        .checkout-line-fianza span:first-child i {
            color: #dfbb3e;
            margin-right: 6px;
        }

    .checkout-line-fianza span:last-child {
        color: #1a1a1a;
        font-weight: 700;
    }

/* ★ Sección depósito en checkout */
.checkout-deposit-section {
    background: linear-gradient(135deg, #e8f5f2, #d4f0ea);
    border: 2px solid #008572;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.checkout-deposit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #008572;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.checkout-deposit-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #006B5A;
    margin-bottom: 4px;
}

.checkout-deposit-rest {
    font-size: .82rem;
    color: #64748b;
}

    .checkout-deposit-rest strong {
        color: #1a1a1a;
    }

.checkout-full-payment {
    background: #fff8e6;
    border: 2px solid #dfbb3e;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    text-align: center;
}

.checkout-full-payment-title {
    font-size: .85rem;
    font-weight: 700;
    color: #b8860b;
    margin-bottom: 4px;
}

.checkout-full-payment-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
}

/* ★ Fianza en checkout - colores VISIBLES (fondo dorado claro) */
.checkout-line-fianza {
    background: #fff8e6;
    border-radius: 8px;
    padding: 10px 14px !important;
    margin-top: 8px;
    border-left: 3px solid #dfbb3e;
}

    .checkout-line-fianza span:first-child {
        color: #1a1a1a;
        font-weight: 600;
    }

        .checkout-line-fianza span:first-child i {
            color: #dfbb3e;
            margin-right: 6px;
        }

    .checkout-line-fianza span:last-child {
        color: #1a1a1a;
        font-weight: 700;
    }

/* ★ Sección depósito: "A pagar ahora" (verde) */
.checkout-deposit-section {
    background: linear-gradient(135deg, #e8f5f2, #d4f0ea);
    border: 2px solid #008572;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    text-align: center;
}

.checkout-deposit-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #008572;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.checkout-deposit-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #006B5A;
    margin-bottom: 4px;
}

.checkout-deposit-rest {
    font-size: .82rem;
    color: #64748b;
}

    .checkout-deposit-rest strong {
        color: #1a1a1a;
    }

/* ★ Pago completo: cuando quedan ≤X días (dorado) */
.checkout-full-payment {
    background: #fff8e6;
    border: 2px solid #dfbb3e;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    text-align: center;
}

.checkout-full-payment-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #b8860b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.checkout-full-payment-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
}

/* ===== USER MENU SLOTS EN HEADER ===== */
.prop-user-menu-slot {
    display: flex;
    align-items: center;
}

    /* El botón de login del template hereda estilo del nav */
    .prop-user-menu-slot .user-menu-btn {
        background: var(--teal);
        color: white !important;
        padding: 8px 20px;
        border-radius: 50px;
        font-size: 0.85rem;
        border: none;
        width: auto;
        height: auto;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: background 0.2s;
    }

        .prop-user-menu-slot .user-menu-btn::after {
            content: attr(data-label);
        }

        .prop-user-menu-slot .user-menu-btn:hover {
            background: var(--teal-dark);
            color: white !important;
            border-color: transparent;
        }

    /* Avatar mini en desktop nav */
    .prop-user-menu-slot .user-avatar-mini {
        border-color: var(--teal);
        background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    }

        .prop-user-menu-slot .user-avatar-mini:hover {
            border-color: var(--gold);
        }

    /* Dropdown se posiciona respecto al nav */
    .prop-user-menu-slot .user-dropdown {
        top: calc(100% + 8px);
        right: 0;
    }

/* ===== MOBILE HEADER USER BUTTON ===== */
.prop-user-menu-slot-mobile {
    display: none;
    align-items: center;
    margin-right: 8px;
}

.user-menu-mobile-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--teal);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

    .user-menu-mobile-btn:hover {
        color: var(--gold);
    }

.user-menu-mobile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--teal);
    transition: transform 0.2s;
}

    .user-menu-mobile-avatar:hover {
        transform: scale(1.08);
    }

/* ===== MOBILE MENU USER ITEMS ===== */
.prop-user-menu-slot-mobilemenu {
    width: 100%;
}

.mobile-menu-user {
    width: 100%;
}

    .mobile-menu-user .mobile-menu-login {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        color: var(--teal);
        font-weight: 600;
        text-decoration: none;
        font-size: 0.92rem;
    }

        .mobile-menu-user .mobile-menu-login:hover {
            background: var(--teal-50);
        }

.mobile-menu-logged {
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

    .mobile-menu-logged a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 24px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.15s;
    }

        .mobile-menu-logged a:hover {
            background: var(--teal-50);
            color: var(--teal);
        }

        .mobile-menu-logged a i {
            width: 18px;
            text-align: center;
            font-size: 0.85rem;
        }

.mobile-menu-logout {
    color: #dc3545 !important;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px !important;
}

    .mobile-menu-logout:hover {
        background: #fff5f5 !important;
        color: #dc3545 !important;
    }

/* ===== RESPONSIVE: Mostrar mobile slots ===== */
@media (max-width: 768px) {
    .prop-user-menu-slot {
        display: none; /* Ocultar desktop slot en mobile */
    }

    .prop-user-menu-slot-mobile {
        display: flex; /* Mostrar mobile slot */
    }
}