/**
 * SevillaX Content Manager - Styles (Light Mode)
 * Styles for all content grids (hotels, swingers, espacios, eventos)
 */

@font-face {
    font-family: 'AirbnbCereal';
    src: url('../fonts/AirbnbCereal_W_Blk.woff2') format('woff2'),
         url('../fonts/AirbnbCereal_W_Blk.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Main container - compatible with hotels-container for backward compatibility */
.content-container, .hotels-container {
    font-family: 'AirbnbCereal', 'Arial', sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    padding: 0; /* Sin padding para que portadas ocupen todo el ancho */
}

.content-container h1, 
.content-container h2, 
.content-container h3,
.hotels-container h1, 
.hotels-container h2, 
.hotels-container h3 {
    letter-spacing: -1px;
}

.content-container p,
.hotels-container p {
    letter-spacing: 0;
}

/* Hero section - compatible with hotels-hero */
.content-hero, .hotels-hero {
    text-align: center;
    margin-bottom: 60px;
}

.content-hero h1, .hotels-hero h1 {
    color: #333333;
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.content-hero p, .hotels-hero p {
    color: #666666;
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 600px;
    margin: 0 auto 30px;
}

.content-divider, .hotels-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #EFDCDE, #333333);
    margin: 0 auto;
}

/* Filters - compatible with hotels-filters */
.content-filters, .hotels-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: #EFDCDE;
    border: 1px solid #d4bfc1;
    color: #333333;
    padding: 12px 20px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'AirbnbCereal', 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.15);
}

/* Grid - compatible with hotels-grid */
.content-grid, .hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

/* Cards - compatible with hotel-card */
.content-card, .hotel-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #EFDCDE;
    box-shadow: 0 4px 15px rgba(239, 220, 222, 0.3);
}

.content-card:hover, .hotel-card:hover {
    transform: translateY(-10px);
    border-color: #d4bfc1;
    box-shadow: 0 20px 40px rgba(239, 220, 222, 0.4);
}

/* Images - compatible with hotel-image */
.content-image, .hotel-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .content-image,
.hotel-card:hover .hotel-image {
    transform: scale(1.05);
}

/* Card content - compatible with hotel-content */
.content-content, .hotel-content {
    padding: 25px;
}

/* Zone badges - compatible with hotel-zone */
.content-zone, .hotel-zone {
    background: #EFDCDE;
    color: #333333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    border: 1px solid #d4bfc1;
}

/* Stars/type badges - compatible with hotel-stars */
.content-stars, .hotel-stars {
    background: #333333;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

/* Titles - compatible with hotel-name */
.content-name, .hotel-name {
    color: #333333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Descriptions - compatible with hotel-description */
.content-description, .hotel-description {
    color: #666666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Services - compatible with hotel-services */
.content-services, .hotel-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-tag {
    background: #EFDCDE;
    color: #333333;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #d4bfc1;
}

/* Proximity - compatible with hotel-proximity */
.content-proximity, .hotel-proximity {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* Actions - compatible with hotel-actions */
.content-actions, .hotel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Buttons - compatible with hotel-check-btn */
.content-check-btn, .hotel-check-btn {
    background: #333333;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.content-check-btn:hover, .hotel-check-btn:hover {
    background: #555555;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Adults only badge - compatible with hotel-adults-only */
.content-adults-only, .hotel-adults-only {
    background: rgba(255, 100, 100, 0.9);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: 60px;
    left: 20px;
    z-index: 2;
}

/* Call to action - compatible with hotels-cta */
.content-cta, .hotels-cta {
    background: #ffffff;
    border: 2px solid #EFDCDE;
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    margin: 60px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(239, 220, 222, 0.3);
}

.content-cta h3, .hotels-cta h3 {
    color: #333333;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-cta p, .hotels-cta p {
    color: #666666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background: #333333;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.cta-button:hover {
    background: #555555;
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(51, 51, 51, 0.2);
}

/* JavaScript filter styles */
.content-card.hidden, .hotel-card.hidden {
    display: none;
}

.filter-btn[data-filter] {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .content-container, .hotels-container {
        padding: 20px 15px;
    }

    .content-hero h1, .hotels-hero h1 {
        font-size: 3rem;
    }

    .content-filters, .hotels-filters {
    
        align-items: center;
    }

    .content-grid, .hotels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-cta, .hotels-cta {
        padding: 30px 20px;
    }

    .content-cta h3, .hotels-cta h3 {
        font-size: 2rem;
    }

    .cta-button {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .content-content, .hotel-content {
        padding: 20px;
    }

    .content-name, .hotel-name {
        font-size: 1.3rem;
    }

    .content-actions, .hotel-actions {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== CALENDARIO DE EVENTOS ===== */

.eventos-calendario-wrapper {
    font-family: 'AirbnbCereal', 'Arial', sans-serif;
    width: 80%;
    max-width: 1400px;
    margin: 50px auto !important;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(239, 220, 222, 0.3);
    overflow: hidden;
}

.calendario-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #EFDCDE, #d4bfc1);
    border-bottom: 2px solid #d4bfc1;
}

.nav-btn {
    background: #333333;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-btn:hover {
    background: #555555;
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.2);
}

.mes-año-titulo {
    color: #333333;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.eventos-calendario {
    padding: 0;
}

.calendario-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #333333;
    color: #ffffff;
}

.dia-header {
    padding: 15px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.5px;
}

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

.calendario-dia {
    background: #ffffff;
    min-height: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.calendario-dia:hover {
    background: #fafafa;
    border-color: #d4bfc1;
}

.calendario-dia.hoy {
    background: #fff8f9;
    border-color: #333333;
    box-shadow: inset 0 0 10px rgba(51, 51, 51, 0.1);
}

.calendario-dia.tiene-eventos {
    background: linear-gradient(135deg, #ffffff, #fef7f8);
}

.dia-vacio {
    background: #f5f5f5;
    min-height: 120px;
}

.numero-dia {
    position: absolute;
    top: 8px;
    right: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: #333333;
}

.calendario-dia.hoy .numero-dia {
    background: #333333;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.eventos-del-dia {
    position: absolute;
    top: 32px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    align-content: flex-start;
}

.evento-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #d4bfc1;
    overflow: hidden;
    flex-shrink: 0;
    background: #EFDCDE;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-preview:hover {
    border-color: #333333;
    transform: scale(1.12);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

.evento-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Icono de calendario si no hay imagen */
.evento-preview-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* Botón "+X más" */
.eventos-mas-btn {
    width: 32px;
    height: 32px;
    background: #333333;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    flex-shrink: 0;
    line-height: 1.1;
    text-align: center;
}

.eventos-mas-btn:hover {
    background: #555555;
    transform: scale(1.1);
}

/* ===== MODAL POPUP DE EVENTOS DEL DÍA ===== */

.sevillax-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
}

.sevillax-modal-overlay.active {
    display: flex;
}

.sevillax-modal {
    background: #ffffff;
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalEntrada 0.3s ease;
    position: relative;
}

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

.sevillax-modal-header {
    background: linear-gradient(135deg, #EFDCDE, #d4bfc1);
    padding: 22px 30px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.sevillax-modal-titulo-dia {
    font-family: 'AirbnbCereal', 'Arial', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: -0.5px;
    margin: 0;
}

.sevillax-modal-close {
    background: #333333;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sevillax-modal-close:hover {
    background: #555555;
    transform: rotate(90deg);
}

.sevillax-modal-body {
    padding: 20px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Card de cada evento dentro del modal */
.modal-evento-card {
    display: flex;
    gap: 16px;
    background: #fafafa;
    border: 1px solid #EFDCDE;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.modal-evento-card:hover {
    background: #fff4f5;
    border-color: #d4bfc1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 220, 222, 0.4);
}

.modal-evento-img {
    width: 90px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #EFDCDE;
}

.modal-evento-img-placeholder {
    width: 90px;
    height: 80px;
    background: linear-gradient(135deg, #EFDCDE, #d4bfc1);
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.modal-evento-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-evento-nombre {
    font-family: 'AirbnbCereal', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #333333;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin: 0;
}

.modal-evento-hora {
    font-size: 0.82rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-evento-descripcion {
    font-size: 0.82rem;
    color: #777777;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-evento-btn {
    display: inline-block;
    margin-top: 6px;
    background: #333333;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.modal-evento-btn:hover {
    background: #555555;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Responsive modal */
@media (max-width: 600px) {
    .sevillax-modal {
        max-height: 90vh;
        border-radius: 18px;
    }

    .modal-evento-card {
        flex-direction: column;
        gap: 12px;
    }

    .modal-evento-img,
    .modal-evento-img-placeholder {
        width: 100%;
        height: 140px;
    }
}

.evento-thumbnail {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.evento-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.evento-titulo {
    font-size: 0.7rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evento-hora {
    font-size: 0.6rem;
    color: #666666;
    font-weight: 400;
}

.eventos-leyenda {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #EFDCDE;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666666;
}

.leyenda-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.leyenda-color.hoy-color {
    background: #333333;
}

.leyenda-color.evento-color {
    background: linear-gradient(135deg, #EFDCDE, #d4bfc1);
}

/* Responsive para calendario */
@media (max-width: 768px) {
    .eventos-calendario-wrapper {
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .calendario-navegacion {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .mes-año-titulo {
        font-size: 1.5rem;
        order: -1;
    }
    
    .calendario-dia {
        min-height: 80px;
    }
    
    .dia-header {
        padding: 10px 4px;
        font-size: 0.8rem;
    }
    
    .numero-dia {
        font-size: 0.9rem;
        top: 6px;
        right: 8px;
    }
    
    .eventos-del-dia {
        top: 25px;
        left: 3px;
        right: 3px;
        bottom: 3px;
    }
    
    .evento-preview {
        padding: 4px;
        gap: 4px;
    }
    
    .evento-titulo {
        font-size: 0.6rem;
    }
    
    .evento-hora {
        font-size: 0.55rem;
    }
    
    .eventos-leyenda {
        padding: 15px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .eventos-calendario-wrapper {
        margin: 0 5px;
    }
    
    .calendario-navegacion {
        padding: 10px 15px;
    }
    
    .mes-año-titulo {
        font-size: 1.3rem;
    }
    
    .calendario-dia {
        min-height: 60px;
    }
    
    .dia-header {
        padding: 8px 2px;
        font-size: 0.7rem;
    }
    
    .numero-dia {
        font-size: 0.8rem;
        top: 4px;
        right: 6px;
    }
    
    .eventos-del-dia {
        top: 20px;
        left: 2px;
        right: 2px;
        bottom: 2px;
    }
    
    .evento-preview {
        padding: 3px;
        gap: 3px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .evento-thumbnail {
        width: 16px;
        height: 16px;
    }
    
    .evento-titulo {
        font-size: 0.55rem;
        line-height: 1;
    }
    
    .evento-hora {
        font-size: 0.5rem;
    }
}

/* ===== SWINGER HERO CON PORTADA ===== */
.swinger-hero-with-bg {
    background-image: url('https://sevillaxxx.com/wp-content/uploads/2026/02/swinger-portada.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 100px 20px !important;
    position: relative;
    margin-bottom: 60px;
}

.swinger-hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.swinger-hero-with-bg > * {
    position: relative;
    z-index: 2;
}

.swinger-hero-with-bg h1 {
    color: #ffffff !important;
}

.swinger-hero-with-bg p {
    color: #ffffff !important;
}

.swinger-hero-with-bg .content-divider {
    background: linear-gradient(90deg, #ffffff, #EFDCDE) !important;
}

/* ===== HOTEL HERO CON PORTADA ===== */
.hotel-hero-with-bg {
    background-image: url('https://sevillaxxx.com/wp-content/uploads/2026/02/shot-of-a-stylish-bedroom-interior-with-a-modern-t-2025-12-31-02-21-39-utc.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 100px 20px !important;
    position: relative;
    margin-bottom: 60px;
}

.hotel-hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hotel-hero-with-bg > * {
    position: relative;
    z-index: 2;
}

.hotel-hero-with-bg h1 {
    color: #ffffff !important;
}

.hotel-hero-with-bg p {
    color: #ffffff !important;
}

.hotel-hero-with-bg .content-divider {
    background: linear-gradient(90deg, #ffffff, #EFDCDE) !important;
}

/* ===== ESPACIO HERO CON PORTADA ===== */
.espacio-hero-with-bg {
    background-image: url('https://sevillaxxx.com/wp-content/uploads/2026/02/Espacios-sevillaxxx.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 100px 20px !important;
    position: relative;
    margin-bottom: 60px;
}

.espacio-hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.espacio-hero-with-bg > * {
    position: relative;
    z-index: 2;
}

.espacio-hero-with-bg h1 {
    color: #ffffff !important;
}

.espacio-hero-with-bg p {
    color: #ffffff !important;
}

.espacio-hero-with-bg .content-divider {
    background: linear-gradient(90deg, #ffffff, #EFDCDE) !important;
}

/* ===== RESTO DEL CONTENIDO CON PADDING ===== */
.content-filters, .content-grid, .content-cta {
    padding: 0 20px;
}

/* Responsive para heroes con portada */
@media (max-width: 768px) {
    .swinger-hero-with-bg,
    .hotel-hero-with-bg,
    .espacio-hero-with-bg {
        padding: 80px 15px !important;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .swinger-hero-with-bg,
    .hotel-hero-with-bg,
    .espacio-hero-with-bg {
        padding: 60px 15px !important;
        min-height: 250px;
    }
    
    .content-filters, .content-grid, .content-cta {
        padding: 0 15px;
    }
}

