/* ============================================================
   Room Type Detail – Theme 3  (modern-room-type-detail.css)
   ============================================================ */

/* ── Room card wrapper (left column) ─────────────────────── */
.room-card {
    border-radius: var(--bs-border-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    background: #fff;
}

/* ── Carousel ─────────────────────────────────────────────── */
.room-media-carousel-wrap .carousel {
    aspect-ratio: 16 / 12;
}

.room-media-carousel-wrap .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail strip */
.room-media-thumbnails {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #f9fafb;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    border-bottom: 1px solid #e5e7eb;
}

.room-media-thumbnails::-webkit-scrollbar { height: 3px; }
.room-media-thumbnails::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.room-media-thumbnail {
    flex-shrink: 0;
    width: 66px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: .55;
    transition: opacity .2s, box-shadow .2s;
    border: 2px solid transparent;
}

.room-media-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.room-media-thumbnail:hover { opacity: .85; }

.room-media-thumbnail.active {
    opacity: 1;
    border-color: var(--theme-primary-color);
    box-shadow: 0 0 0 2px var(--theme-primary-color);
}

/* Name + occupancy on the same line */
.room-type-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.room-type-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 0;
    flex: 1;
}

.room-type-name .day-use-badge-inline {
    font-size: 0.65rem;
    vertical-align: middle;
}

.room-type-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* Occupancy – dark slate badge */
.room-occupancy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
}

/* Price + Book Now row */
.room-type-price-cta-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.room-type-price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--theme-primary-color);
    line-height: 1;
}

.room-type-price-currency {
    font-size: .95rem;
    font-weight: 700;
}

/* ── Right panel ──────────────────────────────────────────── */
/* Room Overview card */
.room-overview-card {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    padding: 28px 28px 24px;
}

.room-type-description-content {
    font-size: 1rem;
    color: #374151;
    line-height: 1.9;
}

/* Markdown editor output (rich text saved as HTML) loses its default
   list styling because of the site-wide `ol, ul { list-style: none; }`
   reset in modern-default.css. Restore it here for both the remark block
   and the description block rendered inside .room-overview-card. */
.room-overview-card ul,
.room-overview-card ol,
.room-overview-card li {
    list-style: revert;
    padding-left: 1em;
}

/* Section label */
.lbl-room-type-section {
    font-size: 1rem;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 700;
}

.lbl-room-type-section-sm {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 700;
}

/* ── Facilities grid (5 columns) ─────────────────────────── */
.room-facilities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Base chip – shared by all facility chips AND the +more chip */
.room-facilities-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s;
}

.room-facilities-chip:hover {
    border-color: var(--theme-primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary-color) 12%, transparent);
}

.room-facilities-chip img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.room-facilities-chip span {
    font-weight: 600;
    font-size: .7em;
}

/* Hidden extra chips */
.room-facilities-hidden { display: none !important; }

/* +X more / Collapse toggle chip – same chip look, cursor pointer */
.room-facilities-show-more {
    cursor: pointer;
    justify-content: center;
    border-style: dashed;
}

.room-facilities-show-more span {
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
}

.room-facilities-show-more i {
    font-size: .75rem;
    color: var(--theme-primary-color);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .room-media-carousel-wrap .carousel { aspect-ratio: 4 / 3; }
    .room-type-name { font-size: 1.3rem; }
    .room-type-price-amount { font-size: 1.5rem; }
    .room-facilities-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767.98px) {
    .room-facilities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
    .room-overview-card { padding: 18px 16px; }
    .room-facilities-grid { grid-template-columns: repeat(3, 1fr); }
    .room-media-thumbnail { width: 56px; height: 42px; }
    .room-type-price-cta-row { flex-direction: column; align-items: flex-start; }
}
