/* Lodgify CSS Variables */
:root {
    --ldg-bnb-background: #ffffff;
    --ldg-bnb-border-radius: 0;
    --ldg-bnb-box-shadow: none;
    --ldg-bnb-padding: 14px;
    --ldg-bnb-input-background: #ffffff;
    --ldg-bnb-button-border-radius: 0;
    --ldg-bnb-color-primary: #c4abb4;
    --ldg-bnb-color-primary-lighter: #e0e0e0;
    --ldg-bnb-color-primary-darker: #b28d63;
    --ldg-bnb-color-primary-contrast: #ffffff;
    --ldg-component-calendar-cell-selection-bg-color: #c4abb4;
    --ldg-component-calendar-cell-selection-color: #ffffff;
    --ldg-component-calendar-cell-selected-bg-color: #e0e0e0;
    --ldg-component-calendar-cell-selected-color: #000000;
    --ldg-bnb-font-family: 'Muli', sans-serif;
}

#lodgify-book-now-box {
    width: 100%;
}

/* Override Lodgify guest widget font sizes */
#lodgify-book-now-box .guest-name,
#lodgify-book-now-box .guest-desc,
#lodgify-book-now-box .guest-count,
#lodgify-book-now-box [class*="guest"] {
    font-size: 11px !important;
}

#lodgify-book-now-box button[class*="control"],
#lodgify-book-now-box [class*="counter"] button {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
}

/* Base Styles (Mobile First - Vertical Stack) */
.roomspic {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 104px;
    background: #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.room-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.room-header {
    width: 100%;
    padding: 30px 20px;
    background: #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.room-header h3,
.room-header h2 {
    margin-top: 40px;
    font-family: 'Butler', serif;
    color: #b28d63;
    letter-spacing: -0.5px;
}

.roomspic img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    padding: 0;
}

.rdesc {
    width: 100%;
    padding: 45px 25px 20px;
    text-align: center;
    background: #e0e0e0;
}

.rdesc p {
    font-family: 'Muli', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin: 0 auto 15px;
}

.widget-container {
    width: 100%;
    padding: 0 20px 40px;
    background: #e0e0e0;
}

/* Badges */
.room-price {
    display: inline-block;
    background: #b28d63;
    color: white;
    padding: 8px 18px;
    font-family: 'Muli', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-badge {
    display: inline-block;
    background: #c4abb4;
    color: white;
    padding: 4px 14px;
    font-family: 'Muli', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
}

.room-capacity {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
    font-family: 'Muli', sans-serif;
}

/* Desktop Styles (Side by Side) */
@media screen and (min-width: 851px) {
    .roomspic {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto 1fr;
        gap: 0;
        align-items: start;
        margin-bottom: 130px;
        max-width: 1300px;
        background: #e0e0e0;
        box-shadow: none;
    }

    .room-content {
        display: contents; /* Allows children to participate in .roomspic grid */
    }

    /* Gallery container placement in left column */
    .roomspic .room-gallery-container {
        grid-row: 1 / 4;
        grid-column: 1;
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1;
    }

    /* Image spans full height of left column and is square */
    .roomspic img {
        grid-row: 1 / 4;
        grid-column: 1;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: cover;
        align-self: center;
    }

    /* Content placement in right column */
    .room-header {
        grid-column: 2;
        grid-row: 1;
        padding: 50px 50px 10px;
        text-align: center;
    }

    .room-header h3 {
        font-size: 42px;
    }

    .rdesc {
        grid-column: 2;
        grid-row: 2;
        padding: 10px 50px;
        text-align: center;
    }

    .rdesc p {
        font-size: 20px;
    }

    .widget-container {
        grid-column: 2;
        grid-row: 3;
        padding: 10px 50px 50px;
        background: #e0e0e0;
    }

    /* Alternating Layout: Even items (2, 4, 6) */
    .roomspic:nth-of-type(even) .room-gallery-container,
    .roomspic:nth-of-type(even) img {
        grid-column: 2;
    }

    .roomspic:nth-of-type(even) .room-header,
    .roomspic:nth-of-type(even) .rdesc,
    .roomspic:nth-of-type(even) .widget-container {
        grid-column: 1;
    }
}


/* =============================================
   ROOM PAGE DETAIL STYLES
   ============================================= */

.room-page-section {
    padding: 60px 20px;
}

.room-page-container {
    max-width: 920px;
    margin: 0 auto;
}

.room-page-eyebrow {
    font-family: 'Muli', sans-serif;
    font-size: 10px !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c4abb4;
    font-weight: 700;
    display: block;
    margin-top: 80px;
    margin-bottom: 50px;
}


.room-page-subtitle {
    font-family: 'Butler', serif;
    font-style: italic;
    color: #b28d63;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ── Informational Stats Row (icon + label, corporate pink) ── */
.room-info-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.room-info-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--color-accent-pink);
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
}

.room-info-stat:not(:first-child) {
    border-left: 1px solid rgba(176, 160, 167, 0.35);
}

.room-info-stat svg {
    flex-shrink: 0;
}

.room-page-intro {
    font-family: 'Muli', sans-serif;
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    max-width: 750px;
    margin: 0 auto;
}

/* Distribution Grid */
.room-dist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 24px;
}

.room-dist-card {
    background: transparent;
    padding: 28px 8px;
    text-align: center;
    border-top: 1px solid rgba(178, 141, 99, 0.25);
}

.room-dist-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-dist-label {
    font-family: 'Muli', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2c2c2c;
    margin: 0 0 8px;
    display: block;
}

.room-dist-desc {
    font-family: 'Muli', sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

/* Amenities */
.amenity-section-title {
    font-family: 'Muli', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c4abb4;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    display: block;
    text-align: center;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 16px;
    margin-bottom: 50px;
    justify-items: center;
}

.amenity-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    text-align: center;
}

.amenity-check {
    color: #c4abb4;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1.4;
    font-weight: 700;
}

/* Info Cards (Dark Section) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 60px;
    text-align: left;
}

.info-card {
    border-left: 3px solid #c4abb4;
    padding-left: 15px;
}

.info-card p {
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.7;
}

.info-card strong {
    color: #2c2c2c;
    display: block;
    margin-bottom: 4px;
}

/* Section Headings */
.section-heading {
    font-family: 'Butler', serif;
    font-size: 1.6rem;
    color: #2c2c2c;
    text-align: center;
    margin: 0 0 40px;
}

.section-heading.light { color: #d7bb9d; }

/* Suite title headings (gold color, inherits all other h2 styles from global.css) */
.suite-title {
    color: var(--color-accent-gold);
}

/* Suite Cards */
.suite-card {
    background: #fff;
    padding: 40px;
    margin-bottom: 3px;
}

.suite-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.suite-card-title {
    font-family: 'Butler', serif;
    font-size: 1.8rem;
    color: #2c2c2c;
    margin: 10px 0 5px;
}

.suite-card-concept {
    font-family: 'Butler', serif;
    font-style: italic;
    color: #b28d63;
    font-size: 1rem;
    margin-bottom: 15px;
    display: block;
}

.suite-card-desc {
    font-family: 'Muli', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Important note block */
.nota-importante {
    background: #f9f4f0;
    border-left: 4px solid #b28d63;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.nota-importante strong {
    color: #b28d63;
}

/* Gallery Slider */
.room-gallery-container {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 50px auto 60px;
    overflow: hidden;
    background-color: #e0e0e0;
    aspect-ratio: 16 / 9;
}

/* Gallery full width on mobile */
@media (max-width: 768px) {
    .room-gallery-container {
        max-width: 100vw !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
    }

    .section-heading {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .amenity-item {
        font-size: 13px !important;
    }

    .room-dist-label {
        font-size: 13px !important;
    }

    .room-dist-desc {
        font-size: 13px !important;
    }

    .amenity-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 6px 10px;
    }

    .amenity-section-title {
        font-size: 12px !important;
        margin-top: 30px;
    }

    .info-card p {
        font-size: 13px !important;
    }

    .info-grid {
        gap: 30px;
    }
}

/* Gallery Slider dentro de roomspic (front-page) - aspecto cuadrado */
.roomspic .room-gallery-container {
    max-width: 100%;
    margin: 0 auto 20px;
    aspect-ratio: 1 / 1;
}

.room-gallery-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.room-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.room-gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Nav Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(196, 171, 180, 0.85); /* #c4abb4 */
    color: white;
    border: none;
    padding: 10px 15px;
    width: auto;
    height: auto;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-radius: 0; /* Directriz de la marca: angular */
}

.gallery-nav:hover {
    background-color: rgba(196, 171, 180, 1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

/* Dots */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0; /* Directriz de la marca */
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.gallery-dots .dot.active {
    background-color: white;
}
