/**
 * ROOM CARD COMPONENT - PRODUCTION READY
 * Namespaced under .hyperguest-room-cards to prevent WordPress theme conflicts
 */

.hyperguest-room-cards {
    --primary-green: #3c7427;
    --secondary-yellow: #F9AE3C;
    --text-dark: #1a1a1a;
    --text-gray: #4b5563;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

.hyperguest-room-cards .room-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 24px;
    margin-bottom: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
}

.hyperguest-room-cards .room-card:hover {
    box-shadow: var(--shadow-hover);
}

.hyperguest-room-cards .room-card__left-column {
    flex: 0 0 40%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.hyperguest-room-cards .room-card__gallery {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hyperguest-room-cards .room-card__slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.room-card__slider {
    overflow: hidden;
}

.room-card__slides {
    display: flex;
    touch-action: pan-y;
}

.room-card__slide {
    min-width: 100%;
    user-select: none;
}

.room-card__slide img {
    pointer-events: none;
}

.hyperguest-room-cards .room-card__slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
    width: 100%;
    touch-action: pan-y;
}

.hyperguest-room-cards .room-card__slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    cursor: pointer;
}

.hyperguest-room-cards .room-card__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hyperguest-room-cards .room-card__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 2;
}

.hyperguest-room-cards .room-card__nav:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hyperguest-room-cards .room-card__nav--prev {
    left: 10px;
}

.hyperguest-room-cards .room-card__nav--next {
    right: 10px;
}

.hyperguest-room-cards .room-card__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hyperguest-room-cards .room-card__content {
    flex: 0 0 65%;
    padding: 0 0 0 1.5rem;
    display: flex;
    flex-direction: column;
}

.hyperguest-room-cards .room-card__header {
    margin-bottom: 0.5rem;
}

.room-card__header-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}


.hyperguest-room-cards .room-card__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2b3a4a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hyperguest-room-cards .room-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.hyperguest-room-cards .room-card__detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.hyperguest-room-cards .room-card__detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hyperguest-room-cards .room-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e8f5e9;
    color: var(--primary-green);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hyperguest-room-cards .room-card__badge svg {
    width: 16px;
    height: 16px;
}

.hyperguest-room-cards .room-card__amenities {
    padding: 0;
    background: white;
}

.hyperguest-room-cards .room-card__amenities-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2b3a4a;
}

.hyperguest-room-cards .room-card__amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.1rem;
    margin-bottom: 0.8rem;
}

.hyperguest-room-cards .room-card__amenity {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.hyperguest-room-cards .room-card__amenity--room {
    font-weight: 500;
    color: var(--text-gray);
}

.hyperguest-room-cards .room-card__amenity svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hyperguest-room-cards .room-card__amenity--room svg {
    color: var(--primary-green);
}

.hyperguest-room-cards .room-card__amenity--hotel {
    font-weight: 500;
    color: var(--text-gray);
}

.hyperguest-room-cards .room-card__amenity--hotel svg {
    color: var(--primary-green);
}

.hyperguest-room-cards .room-card__show-more {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    text-decoration: underline;
    transition: var(--transition);
}

.hyperguest-room-cards .room-card__show-more:hover {
    color: #2d5a1e;
}

.hyperguest-room-cards .room-card__rate-plans {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hyperguest-room-cards .room-card__rate-plan {
    background-color: #fff;
    border: 1px solid #dde1e8;
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition);
    display: flex;
    gap: 1rem;
}

.hyperguest-room-cards .room-card__rate-plan:hover {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(60, 116, 39, 0.1);
}

.hyperguest-room-cards .room-card__rate-plan-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 30%;
}

.hyperguest-room-cards .room-card__rate-plan-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ✅ */
    align-items: flex-end;
    gap: 10px;                  /* ✅ separa bloques */
    min-width: 150px;
    flex: 1;
}


.hyperguest-room-cards .room-card__rate-plan-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2b3a4a;
    line-height: 1;
}

.hyperguest-room-cards .room-card__rate-plan-code {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.hyperguest-room-cards .room-card__footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hyperguest-room-cards .room-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hyperguest-room-cards .room-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.hyperguest-room-cards .room-card__total {
    font-size: 0.9rem;
    color: #6b7280;
}

.hyperguest-room-cards .room-card__taxes {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.hyperguest-room-cards .room-card__hotel-taxes {
    font-size: 0.85rem;
    color: #e67e22;
    margin-top: 0.25rem;
    font-weight: 500;
}

.hyperguest-room-cards .room-card__rate-plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
    align-items: flex-end;
}

.hyperguest-room-cards .room-card__remarks-wrap {
    width: 100%;
}

.room-card__remarks-toggle{
    background: #2d5a1e!important;
    border: 0!important;
    padding: 0;
    cursor: pointer!important;
    text-decoration: underline;
    font-size: 13px!important;
    float: right;
}

.room-card__remarks-content {
    margin-top: 8px;
    width: 100%;
    float: left;
}

.room-card__remarks{
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
}

.hyperguest-room-cards .room-card__cancellation {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 500;
}

.hyperguest-room-cards .room-card__cancellation svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hyperguest-room-cards .room-card__cancellation--non-refundable {
    color: #e74c3c;
}

.room-card__remarks{
    margin: 8px 0 0;
    padding-left: 18px;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}
.room-card__remarks li{
    margin: 4px 0;
}


.hyperguest-room-cards .room-card__breakfast-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e8f5e9;
    color: var(--primary-green);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hyperguest-room-cards .room-card__breakfast-badge svg {
    width: 14px;
    height: 14px;
}

.hyperguest-room-cards .room-card__button,
.bbs__inner .bbs__cta,
.bbs__inner .bbs__remove {
    background: var(--primary-btn-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(60, 116, 39, 0.2);
    width: auto;
    min-width: 120px;
    max-width: 150px;
}

.hyperguest-room-cards .room-card__button:hover,
.bbs__inner .bbs__cta:hover,
.bbs__inner .bbs__remove:hover {
    background: #2d5a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(60, 116, 39, 0.3);
}

.hyperguest-room-cards .room-card__button:active,
.bbs__inner.bbs__cta:active,
.bbs__inner .bbs__remove:active {
    transform: translateY(0);
}

.hyperguest-room-cards .room-card__button:disabled,
.bbs__inner .bbs__cta:disabled,
.bbs__inner .bbs__remove:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.bbs__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bbs__chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

/* Cuando está colapsado → flecha hacia arriba */
.bbs__content.is-collapsed + .bbs__footer,
.bbs__content.is-collapsed ~ .bbs__footer {}

.bbs__content.is-collapsed ~ .bbs__toggle .bbs__chevron {
    transform: rotate(180deg);
}


.hyperguest-room-cards .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.hyperguest-room-cards .lightbox.active {
    display: flex;
}

.hyperguest-room-cards .lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hyperguest-room-cards .lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.hyperguest-room-cards .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10001;
}

.hyperguest-room-cards .lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}

.hyperguest-room-cards .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10001;
}

.hyperguest-room-cards .lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.hyperguest-room-cards .lightbox-prev {
    left: 30px;
}

.hyperguest-room-cards .lightbox-next {
    right: 30px;
}

.room-card__select-row{
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
}

.room-card__pax-select{
    min-width: 200px;
    padding: 10px 12px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    background:#fff;
}
.room-card__button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.room-card__availability { color:#64748b; font-size:13px; }
.room-card__availability-value { font-weight:600; color:#0f172a; }
.room-card__availability--soldout .room-card__availability-value { color:#b91c1c; }


#booking-bottom-sheet{
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:9999;
    background:#e8f5e9;
    border-top:1px solid #e5e7eb;
    box-shadow:0 -8px 24px rgba(0,0,0,.08);
    color: #2d5a1e;
}
#booking-bottom-sheet .bbs__toggle {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    padding: 5px;
    background: var(--primary-btn-color) !important;
    border: 0!important;
}
#booking-bottom-sheet.is-hidden { display: none; }
.bbs__inner {
    max-width:1100px;
    margin:0 auto;
    padding:14px 16px;
}
.bbs__header{ display:flex; justify-content:space-between; align-items:center; gap:16px; }

.bbs__content {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.bbs__content.is-collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.bbs__content.is-expanded {
    max-height: 1000px; /* suficientemente grande */
    opacity: 1;
}


.bbs__items{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.bbs__item{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; border:1px solid #3C7427; border-radius:10px; padding:10px 12px; }
.bbs__item-left{ display:flex; flex-direction:column; gap:4px; }
.bbs__item-title{ font-weight:600; }
.bbs__item-meta{ color:#64748b; font-size:13px; }
.bbs__item-right{ display:flex; gap:10px; align-items:center; }
.bbs__remove{ border:1px solid #e5e7eb; background: #F9AE3C!important;color: #2b3a4a!important;font-weight: 600!important; padding:8px 10px; border-radius:8px; cursor:pointer; }
.bbs__footer{ display:flex; justify-content:flex-end; margin-top:12px; }
.bbs__cta{ padding:10px 14px; border-radius:10px;background: #F9AE3C!important;color: #2b3a4a!important;font-weight: 600!important; }
.bbs__cta:disabled{ opacity:.5; cursor:not-allowed; }

@media (max-width: 992px) {
    .hyperguest-room-cards .room-card {
        padding: 20px;
    }

    .hyperguest-room-cards .room-card__left-column {
        flex: 0 0 45%;
        max-width: 380px;
    }

    .hyperguest-room-cards .room-card__gallery {
        max-width: 350px;
        margin-bottom: 1.25rem;
    }

    .hyperguest-room-cards .room-card__content {
        flex: 0 0 55%;
        padding: 0 0 0 1.25rem;
    }

    .hyperguest-room-cards .room-card__amenities {
        padding: 0;
    }

    .hyperguest-room-cards .room-card__rate-plan {
        padding: 0.875rem;
    }

    .hyperguest-room-cards .room-card__button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hyperguest-room-cards .room-card {
        flex-direction: column;
        padding: 16px;
        display: flex;
    }

    .hyperguest-room-cards .room-card__left-column {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        display: contents;
    }

    .hyperguest-room-cards .room-card__gallery {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        margin-bottom: 1.5rem;
        order: 1;
    }

    .hyperguest-room-cards .room-card__content {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        display: contents;
    }

    .hyperguest-room-cards .room-card__header {
        order: 2;
        margin-bottom: 1rem;
    }

    .hyperguest-room-cards .room-card__title {
        font-size: 1.4rem;
    }

    .hyperguest-room-cards .room-card__details {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hyperguest-room-cards .room-card__amenities {
        padding: 0;
        order: 3;
        margin-bottom: 1.5rem;
    }

    .hyperguest-room-cards .room-card__rate-plans {
        order: 4;
    }

    .hyperguest-room-cards .room-card__amenities-list {
        grid-template-columns: 1fr;
    }

    .hyperguest-room-cards .room-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hyperguest-room-cards .room-card__price {
        font-size: 1.5rem;
    }

    .hyperguest-room-cards .room-card__rate-plan {
        flex-direction: column;
    }

    .hyperguest-room-cards .room-card__rate-plan-right {
        align-items: stretch;
        min-width: auto;
    }

    .hyperguest-room-cards .room-card__button {
        width: 100%;
        max-width: none;
        padding: 1rem;
    }

    .hyperguest-room-cards .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hyperguest-room-cards .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .hyperguest-room-cards .lightbox-prev {
        left: 10px;
    }

    .hyperguest-room-cards .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hyperguest-room-cards .room-card__details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}
