/* =========================
   Room Detail Page
   ========================= */

.room-detail-page {
    padding: 32px 0 80px;
}

/* =========================
   Back Link
   ========================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--brand-primary);
}

/* =========================
   Gallery + Booking Layout
   ========================= */

.room-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 24px;
    align-items: start;
}

/* =========================
   Gallery
   ========================= */

.room-gallery {
    min-width: 0;
}

.gallery-main {
    width: 100%;
    height: 430px;
    overflow: hidden;
    background-color: #EEF1EF;
    border-radius: 12px;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 8px;
    color: var(--text-secondary);
}

.gallery-placeholder i {
    font-size: 2rem;
}

.gallery-placeholder span {
    font-size: 0.9rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.gallery-thumbnail {
    flex: 0 0 72px;
    width: 72px;
    height: 60px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--brand-primary);
}

/* =========================
   Booking Card
   ========================= */

.booking-card {
    padding: 24px;
    background-color: var(--surface-default);
    border: 1px solid var(--border-default);
    border-radius: 12px;
}

.booking-price {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.booking-price span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* =========================
   Verification
   ========================= */

.verification-box {
    padding: 16px;
    background-color: #F3F8F5;
    border: 1px solid #D9EAE2;
    border-radius: 8px;
}

.verification-box strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--status-success);
    font-size: 0.9rem;
}

.verification-box p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* =========================
   Room Status
   ========================= */

.room-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.available-status,
.unavailable-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 600;
}

.available-status {
    color: var(--status-success);
}

.unavailable-status {
    color: var(--status-error);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

/* =========================
   Inspection Actions
   ========================= */

.inspection-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inspection-actions form {
    margin: 0;
}

/* =========================
   Buttons
   ========================= */

.booking-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: var(--brand-primary);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.booking-button:hover {
    background-color: var(--brand-dark);
    color: #FFFFFF;
}

.secondary-button {
    background-color: #F3F8F5;
    color: var(--status-success);
    border-color: #D9EAE2;
    cursor: default;
}

.secondary-button:hover {
    background-color: #F3F8F5;
    color: var(--status-success);
}

.outline-button {
    background-color: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.outline-button:hover {
    background-color: var(--brand-primary);
    color: #FFFFFF;
}

.booking-button:disabled {
    opacity: 1;
}

/* =========================
   Room Information
   ========================= */

.room-information {
    width: 100%;
    margin-top: 36px;
}

.detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: calc(66.6667% - 16px);
}

.detail-heading h1 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.verified-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--status-success);
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================
   Detail Sections
   ========================= */

.detail-section {
    max-width: 850px;
    margin-top: 32px;
    padding: 28px;
    background-color: var(--surface-default);
    border: 1px solid var(--border-default);
    border-radius: 12px;
}

.detail-section h2 {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-section p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 991px) {
    .room-detail-top {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .gallery-main {
        height: 380px;
    }
}

@media (max-width: 767px) {
    .room-detail-page {
        padding: 24px 0 60px;
    }

    .room-detail-top {
        grid-template-columns: 1fr;
    }

    .booking-card {
        order: -1;
    }

    .gallery-main {
        height: 280px;
    }

    .detail-heading {
        flex-direction: column;
        gap: 16px;
    }

    .detail-heading h1 {
        font-size: 1.5rem;
    }
}




/* Keep images and videos the same size in the main gallery */
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-main > img,
.gallery-main > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main > video {
    background: #000;
}/* Keep images and videos the same size in the main gallery */
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-main > img,
.gallery-main > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main > video {
    background: #000;
}


/* Service Fee Disclosure */

.service-fee-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 14px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--background-default);
}

.service-fee-notice > i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.service-fee-notice strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.service-fee-notice p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}