/* ═══════════════════════════════════════════════════════════════════════════
   Olo Space - Room Detail (v2.0 Professional Layout)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Layout wrapper ── */
.olo-single-room-pro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ── Badges row ── */
.olo-pro-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--olo-color-card-bg, #fff);
    border: 1px solid #e5e7eb;
    border-radius: var(--olo-border-radius, 8px);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Fallback badges */
.olo-badges-fb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.olo-badge-fb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: var(--olo-color-text, #333);
}

.olo-badge-fb strong {
    font-weight: 700;
}

/* ── Two-column grid ── */
.olo-pro-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-bottom: 48px;
}

.olo-pro-main {
    min-width: 0;
}

.olo-pro-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Section headings ── */
.olo-pro-section {
    margin-bottom: 32px;
}

.olo-pro-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--olo-color-primary, #1e87f0);
    display: inline-block;
}

.olo-room-description-content {
    line-height: 1.8;
    font-size: 15px;
    color: var(--olo-color-text, #333);
}

/* ── Sidebar cards ── */
.olo-sidebar-card {
    background: var(--olo-color-card-bg, #fff);
    border: 1px solid #e5e7eb;
    border-radius: var(--olo-border-radius, 8px);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.olo-sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    color: var(--olo-color-text, #333);
}

.olo-sidebar-card p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.olo-sidebar-card a {
    color: var(--olo-color-primary, #1e87f0);
    text-decoration: none;
}

.olo-sidebar-card a:hover {
    text-decoration: underline;
}

/* ── Price display ── */
.olo-price-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--olo-color-primary, #1e87f0);
    line-height: 1.2;
}

.olo-price-big small {
    font-size: 16px;
    font-weight: 400;
    color: var(--olo-color-text-muted, #999);
}

/* ── Equipment fallback grid ── */
.olo-equipment-grid-fb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.olo-equipment-grid-fb li {
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: calc(var(--olo-border-radius, 8px) / 2);
    font-size: 14px;
}

.olo-equipment-grid-fb li::before {
    content: "\2713 ";
    color: var(--olo-color-secondary, #32d296);
    font-weight: 700;
    margin-right: 6px;
}

/* ── Share fallback ── */
.olo-share-fb {
    display: flex;
    gap: 10px;
}

.olo-share-fb a {
    display: inline-block;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: var(--olo-border-radius, 8px);
    font-size: 13px;
    color: var(--olo-color-text, #333);
    text-decoration: none;
    transition: background .2s;
}

.olo-share-fb a:hover {
    background: #e5e7eb;
}

/* ── Booking section ── */
.olo-pro-booking-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
}

.olo-pro-booking-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* ── Login prompt ── */
.olo-login-prompt {
    text-align: center;
    padding: 48px 20px;
    background: #f9fafb;
    border-radius: var(--olo-border-radius, 8px);
    border: 1px dashed #d1d5db;
}

.olo-login-prompt p {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--olo-color-text-muted, #999);
}

/* ── Calendar container ── */
.olo-calendar-container {
    border: 1px solid #e5e7eb;
    border-radius: var(--olo-border-radius, 8px);
    padding: 20px;
    background: var(--olo-color-card-bg, #fff);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── Buttons ── */
.olo-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--olo-border-radius, 8px);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}

.olo-btn:hover {
    opacity: .88;
}

.olo-btn:active {
    transform: scale(.97);
}

.olo-btn-primary {
    background: var(--olo-color-primary, #1e87f0);
    color: #fff;
}

.olo-btn-secondary {
    background: #e5e7eb;
    color: var(--olo-color-text, #333);
}

/* ── Modal ── */
.olo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.olo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.olo-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--olo-border-radius, 8px);
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.olo-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.olo-modal-close:hover {
    color: #333;
}

/* ── Form ── */
.olo-form-group {
    margin-bottom: 16px;
}

.olo-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--olo-color-text, #333);
}

.olo-form-group input,
.olo-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: calc(var(--olo-border-radius, 8px) / 2);
    font-size: 14px;
    transition: border-color .2s;
}

.olo-form-group input:focus,
.olo-form-group textarea:focus {
    outline: none;
    border-color: var(--olo-color-primary, #1e87f0);
    box-shadow: 0 0 0 3px rgba(30,135,240,.15);
}

.olo-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ── Slots grid ── */
.olo-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

/* ── Success/Error ── */
.olo-booking-success {
    text-align: center;
    padding: 20px 0;
}

.olo-booking-error {
    background: #fef2f2;
    color: var(--olo-color-danger, #f0506e);
    padding: 12px 16px;
    border-radius: calc(var(--olo-border-radius, 8px) / 2);
    margin-top: 12px;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Legacy classes (backward compat)
   ═══════════════════════════════════════════════════════════════════════════ */
.olo-room-detail { max-width: 1200px; margin: 0 auto; padding: 20px; }
.olo-room-header { margin-bottom: 24px; }
.olo-room-title { font-size: 32px; margin: 0 0 8px; }
.olo-room-address { font-size: 15px; color: var(--olo-color-text-muted, #999); margin: 0; }
.olo-room-content-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; margin-bottom: 40px; }
.olo-room-gallery { margin-bottom: 24px; }
.olo-gallery-main { border-radius: var(--olo-border-radius, 8px); overflow: hidden; margin-bottom: 10px; }
.olo-gallery-main-img { width: 100%; height: auto; display: block; max-height: 450px; object-fit: cover; }
.olo-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.olo-gallery-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.olo-gallery-thumb:hover { border-color: var(--olo-color-primary, #1e87f0); }
.olo-room-description { line-height: 1.7; }
.olo-room-description h2 { font-size: 22px; margin-bottom: 12px; }
.olo-room-sidebar { display: flex; flex-direction: column; gap: 20px; }
.olo-info-box { background: #f9fafb; border-radius: var(--olo-border-radius, 8px); padding: 20px; }
.olo-info-box h3 { font-size: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.olo-info-list { margin: 0; }
.olo-info-list dt { font-weight: 600; font-size: 13px; color: var(--olo-color-text-muted, #999); margin-top: 10px; }
.olo-info-list dt:first-child { margin-top: 0; }
.olo-info-list dd { margin: 2px 0 0; font-size: 15px; }
.olo-room-tags { margin-top: 12px; font-size: 14px; }
.olo-equipment-list { margin: 4px 0 0; padding-left: 20px; }
.olo-equipment-list li { font-size: 13px; margin-bottom: 2px; }
.olo-room-booking-section { margin-top: 40px; }
.olo-room-booking-section h2 { font-size: 24px; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .olo-pro-grid {
        grid-template-columns: 1fr;
    }

    .olo-pro-sidebar {
        order: -1;
    }

    .olo-room-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .olo-single-room-pro {
        padding: 0 12px 24px;
    }

    .olo-pro-badges-row {
        padding: 12px;
    }

    .olo-pro-booking-section h2 {
        font-size: 20px;
    }

    .olo-modal-content {
        padding: 20px;
    }
}
