/* Room Booking Manager — Frontend Styles */

.rbm-booking-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
}

.rbm-step { margin-bottom: 32px; }
.rbm-hidden { display: none; }

.rbm-step h3 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

/* Search row */
.rbm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.rbm-row label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    gap: 4px;
    flex: 1;
    min-width: 160px;
}

.rbm-row input,
.rbm-row select {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

/* Buttons */
.rbm-btn {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
    white-space: nowrap;
}

.rbm-btn:hover { background: #16213e; }
.rbm-btn:disabled { opacity: .5; cursor: not-allowed; }

.rbm-btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.rbm-btn-outline:hover { background: #fff; color: #1a1a2e; }

/* Messages */
.rbm-msg {
    margin-top: 10px;
    font-size: 13px;
    min-height: 20px;
}

.rbm-msg.error { color: #c0392b; }
.rbm-msg.success { color: #27ae60; }

/* Room cards */
.rbm-rooms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.rbm-room-card {
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.rbm-room-card:hover { border-color: #1a1a2e; transform: translateY(-2px); }
.rbm-room-card.selected { border-color: #1a1a2e; background: #f0f4ff; }

.rbm-room-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.rbm-room-card-body { padding: 12px; }
.rbm-room-card-body h4 { margin: 0 0 4px; font-size: 15px; }
.rbm-room-card-body .price { font-size: 13px; color: #555; }

/* Info bar */
.rbm-info-bar {
    background: #f0f4ff;
    border: 1px solid #c5d3f0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #1a1a2e;
    margin-bottom: 20px;
}

/* Booking form fields */
.rbm-form {
    display: grid;
    gap: 14px;
}

.rbm-form label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    gap: 4px;
}

.rbm-form input,
.rbm-form textarea {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

/* Category grid */
.rbm-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rbm-cat-card {
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    min-height: 320px;
    position: relative;
}

.rbm-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}

.rbm-cat-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}

.rbm-cat-overlay h3 { margin: 0 0 6px; font-size: 22px; }
.rbm-cat-banner { margin: 0 0 6px; font-size: 14px; opacity: .85; }
.rbm-cat-desc { margin: 0 0 14px; font-size: 13px; opacity: .75; }

/* Success state */
.rbm-success {
    text-align: center;
    padding: 40px 20px;
    background: #f0faf4;
    border: 1px solid #b8e6c8;
    border-radius: 12px;
}

.rbm-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 16px;
}

.rbm-success h3 { margin: 0 0 8px; font-size: 22px; color: #1e7e45; }
.rbm-success p  { color: #555; }
