/* DESIGN SYSTEM AIRBNB - CASAPANORAMA */
:root {
    --primary-color: #FF385C; 
    --text-color: #222222;
    --light-text: #717171;
    --border-color: #DDDDDD;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-color);
    line-height: 1.5;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    padding: 20px 0;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
}

.lang-switcher select {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-family: var(--font-stack);
    cursor: pointer;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

/* MAIN CONTAINER */
.main-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 24px;
}

/* TITLE HEADER */
.title-section h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-color);
}

.meta-info {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.meta-link {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.meta-info .bullet {
    margin: 0 8px;
    color: var(--light-text);
}

/* GRID PRINCIPAL DE FOTOS CON BOTÓN LIGHTBOX */
.image-grid-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 48px;
}

.image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 440px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.main-grid-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.image-grid img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: filter 0.2s ease, transform 0.3s ease;
}

.image-grid .main-grid-item:hover img {
    filter: brightness(0.9);
    transform: scale(1.02);
}

.img-large {
    grid-row: span 2;
}

/* BOTÓN MOSTRAR TODAS LAS FOTOS */
.show-all-photos-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 1px solid var(--text-color);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-stack);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-all-photos-btn:hover {
    background: #f7f7f7;
    transform: scale(1.02);
}

.grid-icon {
    font-size: 18px;
    line-height: 1;
}

/* LIGHTBOX (GALERÍA DESLIZANTE) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
}

.lightbox-counter {
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
}

.lightbox-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 80px;
}

.lightboxImg {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav.prev {
    left: 24px;
}

.lightbox-nav.next {
    right: 24px;
}

/* LAYOUT DOS COLUMNAS */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
}

/* HIGHLIGHTS */
.highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-item {
    display: flex;
    gap: 20px;
}

.highlight-item .icon {
    font-size: 24px;
}

.highlight-item h4 {
    font-size: 16px;
    font-weight: 600;
}

.highlight-item p {
    font-size: 14px;
    color: var(--light-text);
}

/* ABOUT SECTION */
.about-section h3, .nearby-section h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
}

.about-section p {
    color: var(--text-color);
    margin-bottom: 16px;
    font-size: 16px;
}

.sub-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

/* AMENITIES & ACTIVITIES GRIDS */
.amenities-section h3 {
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 600;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 16px;
}

.amenities-grid div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.not-included {
    margin-top: 32px;
}

.not-included h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.not-included ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--light-text);
    text-decoration: line-through;
}

/* TRES COLUMNAS EN GRID ESTRICTO */
.nearby-columns-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    margin-top: 24px !important;
    width: 100% !important;
}

.nearby-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.nearby-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.nearby-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.nearby-item strong {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.nearby-dist {
    font-size: 13px !important;
    color: var(--light-text) !important;
}

/* ACCESS CARD & BIO */
.access-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.host-bio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.bio-text {
    margin-top: 16px;
    color: var(--light-text);
    font-style: italic;
    line-height: 1.6;
}

/* WIDGET FORMULARIO STICKY */
.sidebar-column {
    position: relative;
}

.booking-widget {
    position: sticky;
    top: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px;
    background: white;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.widget-header .price {
    font-size: 22px;
    font-weight: 700;
}

.widget-header .price .unit {
    font-size: 16px;
    font-weight: 400;
    color: var(--light-text);
}

.widget-header .rating {
    font-size: 14px;
    font-weight: 600;
}

.booking-form {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.form-input-field, .guests-field {
    padding: 10px;
    border-bottom: 1px solid #b0b0b0;
    background: #fff;
}

.form-input-field:last-of-type {
    border-bottom: none;
}

.form-input-field label, .guests-field label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-color);
}

.form-input-field input, .guests-field select {
    border: none;
    width: 100%;
    font-family: var(--font-stack);
    font-size: 14px;
    outline: none;
    color: var(--text-color);
    background: transparent;
}

.privacy-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 4px 4px 4px;
}

.privacy-container input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.privacy-container label {
    font-size: 12px;
    color: var(--light-text);
    line-height: 1.3;
}

.reserve-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

.reserve-btn:hover {
    background-color: #E61E4D;
}

.charge-notice {
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
    margin-top: 12px;
}

/* REVIEWS SLIDER SYSTEM */
.reviews-slider-container {
    margin: 16px 0;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s, background-color 0.2s;
    user-select: none;
    outline: none;
}

.slider-btn:hover {
    border-color: var(--text-color);
    background-color: #F7F7F7;
    transform: scale(1.04);
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 4px;
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card {
    min-width: calc(50% - 12px); 
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
}

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

.avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #EAEAEA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-date {
    font-size: 14px;
    color: var(--light-text);
}

/* GOOGLE MAPS BOX */
.map-box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 440px;
    width: 100%;
}

/* FOOTER */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-grid h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-grid p {
    font-size: 14px;
    margin-bottom: 8px;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .image-grid {
        display: block;
        height: 280px;
        border-radius: 0;
    }

    .image-grid-wrapper {
        margin-bottom: 24px;
    }

    .main-grid-item:not(.img-large) {
        display: none !important; 
    }

    .img-large {
        width: 100%;
        height: 100%;
    }

    .sidebar-column {
        order: -1; 
    }

    .booking-widget {
        position: relative;
        top: 0;
    }

    .review-card {
        min-width: 100%; 
    }

    .nearby-columns-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .amenities-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Ajustes Lightbox Móvil */
    .lightbox-content {
        padding: 0 16px;
    }
    .lightbox-nav.prev {
        left: 8px;
    }
    .lightbox-nav.next {
        right: 8px;
    }
}