/* ── Base ─────────────────────────────────────────────────────────────────── */
.prb2b-portal {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1f36;
}

/* ── Portal nav ───────────────────────────────────────────────────────────── */
.prb2b-portal-nav {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.prb2b-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #57606a;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.prb2b-nav-item:hover {
    background: #f0f2f5;
    color: #1a1f36;
}
.prb2b-nav-item.prb2b-nav-active {
    background: #003580;
    color: #fff;
}
.prb2b-nav-icon { font-size: 15px; line-height: 1; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.prb2b-alert {
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.prb2b-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.prb2b-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Search panel ─────────────────────────────────────────────────────────── */
.prb2b-search-panel {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.prb2b-search-panel h2 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.prb2b-search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.prb2b-search-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #57606a;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.prb2b-search-fields input {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 8px 11px;
    font-size: 14px;
    min-height: 38px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.prb2b-search-fields input:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0,120,212,.12);
}
.prb2b-search-fields label:nth-child(1) input,
.prb2b-search-fields label:nth-child(2) input { min-width: 145px; }
.prb2b-search-fields label:nth-child(3) input,
.prb2b-search-fields label:nth-child(4) input,
.prb2b-search-fields label:nth-child(5) input { width: 68px; }
.prb2b-child-ages { display: contents; }
.prb2b-search-btn {
    height: 38px;
    padding: 0 22px;
    border: none;
    border-radius: 6px;
    background: #003580;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-end;
    transition: background .15s;
}
.prb2b-search-btn:hover { background: #00224f; }

/* ── Results header ───────────────────────────────────────────────────────── */
.prb2b-results { display: grid; gap: 14px; margin-bottom: 28px; }
.prb2b-results-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8edf2;
}
.prb2b-results-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.prb2b-results-head span { font-size: 13px; color: #57606a; }

/* ── Room card — booking.com style ───────────────────────────────────────── */
.prb2b-room-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
    transition: box-shadow .18s;
    min-height: 220px;
}
.prb2b-room-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.13); }

/* Left: image column */
.prb2b-room-image {
    position: relative;
    overflow: hidden;
    background: #e8ecf0;
}
.prb2b-room-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.prb2b-room-card:hover .prb2b-room-image img { transform: scale(1.05); }
.prb2b-room-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d96a0;
    font-size: 12px;
    font-weight: 600;
    min-height: 220px;
}

/* Category badge — top-left of image */
.prb2b-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.prb2b-cat-1 { background: rgba(255,255,255,.88); color: #333; border: 1px solid rgba(0,0,0,.1); }
.prb2b-cat-2 { background: rgba(0,60,160,.82); color: #fff; }
.prb2b-cat-3 { background: rgba(180,95,0,.86); color: #fff; }
.prb2b-cat-4 { background: rgba(80,0,120,.84); color: #fff; }

/* Right: info + footer */
.prb2b-room-content {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e8ecf0;
}

.prb2b-room-info {
    padding: 16px 18px 12px;
    flex: 1;
}
.prb2b-room-name {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 700;
    color: #003580;
}
.prb2b-room-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: #57606a;
    line-height: 1.5;
}
.prb2b-room-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.prb2b-room-tags span {
    background: #f0f4f8;
    border: 1px solid #d8e2ec;
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 11px;
    color: #444d58;
    font-weight: 500;
}
.prb2b-rate-line {
    margin: 0;
    font-size: 11px;
    color: #8d96a0;
    line-height: 1.7;
}
.prb2b-rate-line strong { color: #57606a; font-weight: 600; }

/* Footer: price table + Book Now */
.prb2b-room-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px 16px;
    border-top: 1px solid #e8ecf0;
    background: #f7f9fc;
}

.prb2b-price-block { min-width: 0; }

.prb2b-open-modal { align-self: flex-end; }

/* ── Price breakdown table (card) ─────────────────────────────────────────── */
.prb2b-breakdown {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}
.prb2b-breakdown th,
.prb2b-breakdown td {
    padding: 3px 6px 3px 0;
    vertical-align: top;
    color: #57606a;
    line-height: 1.4;
}
.prb2b-breakdown th {
    font-weight: 600;
    white-space: nowrap;
    padding-right: 10px;
    width: 1%;
}
.prb2b-breakdown td:nth-child(2) {
    color: #8d96a0;
    font-size: 11px;
    padding-right: 8px;
}
.prb2b-bk-val {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: #1a1f36;
    font-size: 12px;
}
.prb2b-bk-disc-val { color: #16a34a; }
.prb2b-bk-tax-val  { color: #d97706; }
.prb2b-bk-sep td { border-top: 1px solid #e8ecf0; padding: 2px 0; }
.prb2b-bk-subtotal th,
.prb2b-bk-subtotal .prb2b-bk-val { color: #1a1f36; font-size: 12px; }
.prb2b-bk-tax th { color: #d97706; }
.prb2b-bk-total th { font-weight: 700; color: #1a1f36; }
.prb2b-bk-total .prb2b-bk-val { font-size: 18px; font-weight: 800; color: #1a1f36; }

/* Book Now button */
.prb2b-open-modal {
    flex-shrink: 0;
    border: none;
    border-radius: 7px;
    padding: 11px 22px;
    background: #0071c2;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, box-shadow .15s;
    align-self: flex-end;
}
.prb2b-open-modal:hover { background: #005999; box-shadow: 0 3px 10px rgba(0,113,194,.35); }

/* No results */
.prb2b-no-results {
    background: #f7f9fc;
    border: 1px dashed #c8d6e5;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    color: #57606a;
    font-size: 14px;
}

/* ── My Reservations ──────────────────────────────────────────────────────── */
.prb2b-panel {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.prb2b-panel h2 { margin: 0 0 16px; font-size: 15px; font-weight: 700; }

.prb2b-table-wrap { overflow-x: auto; }
.prb2b-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prb2b-table thead th {
    background: #f0f4f8;
    color: #57606a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 9px 12px;
    text-align: left;
    border-bottom: 2px solid #d0d7de;
    white-space: nowrap;
}
.prb2b-table tbody tr { border-bottom: 1px solid #eef2f6; transition: background .1s; }
.prb2b-table tbody tr:last-child { border-bottom: none; }
.prb2b-table tbody tr:hover { background: #f7f9fc; }
.prb2b-table td { padding: 10px 12px; color: #333; vertical-align: middle; }
.prb2b-td-num   { font-size: 12px; color: #8d96a0; }
.prb2b-td-date  { white-space: nowrap; }
.prb2b-td-total { font-weight: 700; color: #1a1f36 !important; }
.prb2b-td-empty { text-align: center; color: #8d96a0; padding: 30px !important; }

.prb2b-status {
    display: inline-block;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.prb2b-status-pending   { background: #fef3c7; color: #92400e; }
.prb2b-status-confirmed { background: #d1fae5; color: #065f46; }
.prb2b-status-rejected  { background: #fee2e2; color: #991b1b; }

/* ── Confirmation modal ───────────────────────────────────────────────────── */
.prb2b-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.prb2b-modal-overlay.prb2b-modal-visible { display: flex; }

.prb2b-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 26px 26px 22px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.prb2b-modal h2 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1f36;
    padding-right: 32px;
}
.prb2b-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f0f4f8;
    border: none;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    color: #57606a;
    padding: 0;
    transition: background .15s;
}
.prb2b-modal-close:hover { background: #d8e2ec; color: #1a1f36; }

/* Summary table */
.prb2b-modal-summary { margin-bottom: 18px; }
.prb2b-sum-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}
.prb2b-sum-table th,
.prb2b-sum-table td {
    padding: 7px 12px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
    vertical-align: top;
}
.prb2b-sum-table tr:last-child th,
.prb2b-sum-table tr:last-child td { border-bottom: none; }
.prb2b-sum-table th { color: #57606a; font-weight: 600; white-space: nowrap; width: 1%; }
.prb2b-sum-table td { color: #1a1f36; }
.prb2b-sum-table tr:nth-child(even) { background: #f7f9fc; }

/* Header row */
.prb2b-sum-header th { background: #003580; color: #fff; font-size: 14px; font-weight: 700; }

/* Breakdown value column */
.prb2b-sum-val { text-align: right !important; white-space: nowrap; font-weight: 600; }

/* Separator */
.prb2b-sum-sep td { padding: 2px 0; border-top: 1px solid #d0d7de; background: none !important; }

/* Subtotal row */
.prb2b-sum-subtotal th { color: #1a1f36; }

/* Discount */
.prb2b-sum-disc .prb2b-sum-val { color: #16a34a; }

/* Tax row */
.prb2b-sum-tax th { color: #d97706; }
.prb2b-sum-tax .prb2b-sum-val { color: #d97706; font-weight: 700; }

/* Total row */
.prb2b-sum-total { background: #f0f4ff !important; }
.prb2b-sum-total th { color: #003580; font-weight: 800; font-size: 14px; }
.prb2b-sum-total .prb2b-sum-val { color: #003580; font-size: 16px; font-weight: 800; }

/* Modal form */
.prb2b-modal-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.prb2b-mf {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #57606a;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.prb2b-mf-full { grid-column: 1 / -1; }
.prb2b-mf-half { grid-column: span 1; }
.prb2b-mf:empty { display: none; }

.prb2b-mf input,
.prb2b-mf select,
.prb2b-mf textarea {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 9px 11px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.prb2b-mf input:focus,
.prb2b-mf select:focus,
.prb2b-mf textarea:focus {
    border-color: #0071c2;
    box-shadow: 0 0 0 3px rgba(0,113,194,.12);
}
.prb2b-mf textarea { resize: vertical; min-height: 58px; }

/* Modal actions */
.prb2b-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.prb2b-modal-cancel-btn {
    padding: 10px 18px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}
.prb2b-modal-cancel-btn:hover { background: #f0f4f8; }
.prb2b-modal-confirm-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    background: #0071c2;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.prb2b-modal-confirm-btn:hover { background: #005999; box-shadow: 0 3px 10px rgba(0,113,194,.3); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .prb2b-room-card { grid-template-columns: 1fr; min-height: unset; }

    .prb2b-room-image {
        position: relative;
        height: 190px;
    }
    .prb2b-room-image img { position: static; width: 100%; height: 190px; object-fit: cover; }
    .prb2b-room-content { border-left: none; border-top: 1px solid #e8ecf0; }

    .prb2b-room-footer { flex-direction: column; align-items: stretch; gap: 12px; }
    .prb2b-open-modal  { text-align: center; }

    .prb2b-search-fields { flex-direction: column; }
    .prb2b-search-fields label,
    .prb2b-search-fields input { width: 100% !important; min-width: unset !important; }
    .prb2b-search-btn { width: 100%; }

    .prb2b-modal { padding: 18px 14px 16px; }
    .prb2b-modal-form-fields { grid-template-columns: 1fr; }
    .prb2b-mf-half { grid-column: 1; }
    .prb2b-modal-actions { flex-direction: column-reverse; }
    .prb2b-modal-cancel-btn,
    .prb2b-modal-confirm-btn { width: 100%; text-align: center; }
}
