/* ============================================================
   Room upgrade scene — demo styles (reflect of remote dev_v2)
   The online demo's webpack has no css/scss loader, so the
   dev_v2 scoped <style> block is ported here as plain CSS.
   ============================================================ */

:root {
    --primary: #006687;
}

/* Bootstrap 4 utility not present in the theme's Bootstrap 3 — defined manually */
.d-block {
    display: block !important;
}

/* Single / featured offer panel */
.single-offer-panel {
    overflow: hidden;
}
.single-offer-panel .single-offer-image {
    display: block;
    width: 100%;
}
.single-offer-panel .single-offer-image img {
    width: 100%;
}

.featured-wrapper {
    position: relative;
}
.featured-wrapper .panel-featured {
    border: 2px solid var(--primary, #006687);
}
.featured-wrapper .featured-badge {
    position: absolute;
    top: -16px;
    left: 20px;
    background-color: var(--primary, #006687);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    z-index: 2;
}
.featured-wrapper .featured-badge .fa-star {
    color: #ffd84d;
}

.primary-color {
    color: var(--primary, #006687);
}

.offer-total-price {
    font-size: 20px;
    font-weight: 700;
}

.card-padding-10 {
    padding: 10px;
}
.card-padding-y-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .tight-image-col {
        padding-right: 5px;
    }
    .tight-content-col {
        padding-left: 5px;
    }
}

@media (max-width: 767.98px) {
    .other-offer-card .tight-image-col {
        margin-bottom: 20px;
    }
}

/* Image zoom / lightbox trigger */
.lightbox-trigger {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
}
.lightbox-trigger img,
.single-offer-panel .single-offer-image img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.lightbox-trigger img {
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}
.lightbox-trigger::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.lightbox-trigger .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 18px;
    color: #fff;
    background: var(--primary, #006687);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.lightbox-trigger:hover img {
    transform: scale(1.04);
    filter: saturate(1.08);
}
.lightbox-trigger:hover::before {
    opacity: 0.35;
}
.lightbox-trigger:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.lightbox-trigger:active .zoom-icon {
    transform: translate(-50%, -50%) scale(0.92);
    transition-duration: 0.1s;
}

/* Fullscreen lightbox overlay (self-contained, replaces vue-final-modal) */
.ru-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.ru-lightbox-image {
    max-width: 92%;
    max-height: 85vh;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.ru-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

/* "Click to deselect" reveal */
.deselect-hint {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, opacity 0.28s ease, margin-top 0.28s ease, transform 0.28s ease;
}
.deselect-hint.is-visible {
    max-height: 2rem;
    margin-top: 8px;
    opacity: 0.85;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.is-selected {
    outline: 3px solid var(--primary, #006687);
    outline-offset: -1px;
}

.confirm-upgrade-btn {
    padding: 16px 32px;
    min-width: 280px;
    line-height: 1.4;
}
.confirm-upgrade-btn .confirm-room-name {
    font-size: 20px;
    font-weight: 600;
}

/* Shine/halo sweep + check-mark pop, shared by select and confirm buttons */
.shine-btn {
    position: relative;
    overflow: hidden;
}
.shine-btn .button-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.shine-btn .check-slot {
    display: inline-flex;
    align-items: center;
    width: 0;
    margin-right: 0;
    overflow: hidden;
    flex: 0 0 auto;
}
.shine-btn .check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    font-size: 13px;
    flex: 0 0 auto;
    opacity: 0;
    transform: scale(0.35);
}
.shine-btn .button-shine {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateX(-130%);
    background: linear-gradient(110deg, transparent 0%, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%, transparent 100%);
}
.shine-btn.run-shine .button-shine {
    animation: shineSweep 720ms ease;
}
.shine-btn.run-shine .check-slot {
    width: 22px;
    margin-right: 9px;
    transition: width 0.32s ease 0.9s, margin-right 0.32s ease 0.9s;
}
.shine-btn.run-shine .check-icon {
    animation: checkPop 360ms cubic-bezier(0.2, 0.9, 0.2, 1.35) 0.9s both;
}
.shine-btn.btn-block.run-shine .button-shine {
    animation-delay: 1.25s;
}

@keyframes shineSweep {
    from { transform: translateX(-130%); }
    to   { transform: translateX(130%); }
}
@keyframes checkPop {
    from { opacity: 0; transform: scale(0.35); }
    to   { opacity: 1; transform: scale(1); }
}

/* Smooth fade/slide when the button label switches (Vue 2 transition classes) */
.label-fade-enter-active,
.label-fade-leave-active {
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.label-fade-enter,
.label-fade-leave-to {
    opacity: 0;
    transform: translateY(4px);
}

.skip-upgrade-link {
    color: var(--primary, #006687);
    text-decoration: underline;
    cursor: pointer;
    font-size: 1.5rem;
    margin-top: 10px;
    display: inline-block;
}
.skip-upgrade-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}
