/* ==========================================================================
   NidhiBon Resort — Theme (Phase 1B)
   Colours are taken from the logo: emerald green + antique gold.
   Bootstrap 5.3 is loaded first; this file only overrides and adds.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google Fonts call) ---------- */
@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root,
[data-bs-theme="light"] {
    /* Brand */
    --nb-emerald: #0b6b4f;
    --nb-emerald-hover: #09583f;
    --nb-emerald-active: #074533;
    --nb-emerald-soft: #e6f0eb;
    --nb-forest: #0b3d2f;
    --nb-forest-2: #12503d;
    --nb-forest-3: #1b5f49;
    --nb-gold: #e2ac5e;
    --nb-gold-hover: #d59a45;
    --nb-gold-deep: #8a5e1e;   /* gold for text on light backgrounds (AA contrast) */
    --nb-gold-soft: #fbf2e2;
    --nb-ivory: #f6f0e1;

    /* Neutrals */
    --nb-bg: #f4f7f2;
    --nb-surface: #ffffff;
    --nb-ink: #1b2a24;
    --nb-muted: #5a6b63;
    --nb-line: #dce5dd;
    --nb-line-strong: #c6d3c8;

    /* Logo banner: gold on top melting into green */
    --nb-banner: linear-gradient(180deg, #ebb866 0%, #d2a85f 34%, #6f9563 66%, #0b6b4f 100%);
    /* Thin brand rule used on top of navbar / emails */
    --nb-rule: linear-gradient(90deg, #0b6b4f 0%, #e2ac5e 50%, #0b6b4f 100%);

    --nb-font-display: "Cinzel", "Trajan Pro", Georgia, serif;
    --nb-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --nb-radius-sm: 6px;
    --nb-radius: 10px;
    --nb-radius-lg: 16px;

    --nb-sidebar-w: 264px;
    --nb-topbar-h: 64px;

    /* Bootstrap variable overrides */
    --bs-body-font-family: var(--nb-font-body);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
    --bs-body-color: var(--nb-ink);
    --bs-body-color-rgb: 27, 42, 36;
    --bs-body-bg: var(--nb-bg);
    --bs-emphasis-color: var(--nb-forest);
    --bs-secondary-color: var(--nb-muted);
    --bs-primary: var(--nb-emerald);
    --bs-primary-rgb: 11, 107, 79;
    --bs-primary-text-emphasis: #064030;
    --bs-primary-bg-subtle: var(--nb-emerald-soft);
    --bs-primary-border-subtle: #b7d3c6;
    --bs-link-color: var(--nb-emerald);
    --bs-link-color-rgb: 11, 107, 79;
    --bs-link-hover-color: var(--nb-emerald-active);
    --bs-link-hover-color-rgb: 7, 69, 51;
    --bs-border-color: var(--nb-line);
    --bs-border-radius: var(--nb-radius-sm);
    --bs-border-radius-lg: var(--nb-radius);
    --bs-focus-ring-color: rgba(11, 107, 79, 0.25);
    --bs-heading-color: var(--nb-forest);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--nb-font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3,
.nb-display {
    font-family: var(--nb-font-display);
    font-weight: 700;
    color: var(--nb-forest);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

h4, h5, h6 {
    font-family: var(--nb-font-body);
    font-weight: 600;
    color: var(--nb-forest);
}

/* Type scale (classic 16 / 18 / 21 / 24 / 30 / 36 / 48) */
h1, .h1 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.25rem); }
h2, .h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
h3, .h3 { font-size: 1.3125rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }

p { max-width: 72ch; }

.text-muted,
.nb-muted { color: var(--nb-muted) !important; }

.text-gold { color: var(--nb-gold-deep) !important; }
.text-emerald { color: var(--nb-emerald) !important; }

a { text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid rgba(226, 172, 94, 0.85);
    outline-offset: 2px;
}

::selection {
    background: var(--nb-gold-soft);
    color: var(--nb-forest);
}

.nb-main {
    flex: 1 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    border-radius: var(--nb-radius-sm);
    padding: 0.625rem 1.25rem;
    letter-spacing: 0.01em;
}

.btn-sm { padding: 0.375rem 0.875rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1.0625rem; }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--nb-emerald);
    --bs-btn-border-color: var(--nb-emerald);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--nb-emerald-hover);
    --bs-btn-hover-border-color: var(--nb-emerald-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--nb-emerald-active);
    --bs-btn-active-border-color: var(--nb-emerald-active);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--nb-emerald);
    --bs-btn-disabled-border-color: var(--nb-emerald);
    --bs-btn-focus-shadow-rgb: 11, 107, 79;
}

.btn-outline-primary {
    --bs-btn-color: var(--nb-emerald);
    --bs-btn-border-color: var(--nb-emerald);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--nb-emerald);
    --bs-btn-hover-border-color: var(--nb-emerald);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--nb-emerald-active);
    --bs-btn-active-border-color: var(--nb-emerald-active);
    --bs-btn-focus-shadow-rgb: 11, 107, 79;
}

.btn-gold {
    --bs-btn-color: #2b1f0b;
    --bs-btn-bg: var(--nb-gold);
    --bs-btn-border-color: var(--nb-gold);
    --bs-btn-hover-color: #2b1f0b;
    --bs-btn-hover-bg: var(--nb-gold-hover);
    --bs-btn-hover-border-color: var(--nb-gold-hover);
    --bs-btn-active-color: #2b1f0b;
    --bs-btn-active-bg: #c98c37;
    --bs-btn-active-border-color: #c98c37;
    --bs-btn-disabled-color: #2b1f0b;
    --bs-btn-disabled-bg: var(--nb-gold);
    --bs-btn-disabled-border-color: var(--nb-gold);
    --bs-btn-focus-shadow-rgb: 226, 172, 94;
}

.btn-outline-light {
    --bs-btn-hover-color: var(--nb-forest);
}

.btn-link {
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Forms ---------- */
.form-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--nb-forest);
    margin-bottom: 0.375rem;
}

.form-control,
.form-select {
    padding: 0.7rem 0.9rem;
    border-color: var(--nb-line-strong);
    background-color: #fff;
}

.form-control::placeholder {
    color: #93a199;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: #4f9a7c;
    box-shadow: 0 0 0 0.25rem rgba(11, 107, 79, 0.16);
}

.form-check-input {
    border-color: #9fb0a6;
}

.form-check-input:checked {
    background-color: var(--nb-emerald);
    border-color: var(--nb-emerald);
}

.form-check-input:focus {
    border-color: #4f9a7c;
    box-shadow: 0 0 0 0.25rem rgba(11, 107, 79, 0.16);
}

.input-group-text {
    background: var(--nb-emerald-soft);
    border-color: var(--nb-line-strong);
    color: var(--nb-forest);
    font-weight: 600;
}

.input-group .btn-toggle-pass {
    border: 1px solid var(--nb-line-strong);
    border-left: 0;
    background: #fff;
    color: var(--nb-muted);
    padding: 0 0.9rem;
}

.input-group .btn-toggle-pass:hover {
    color: var(--nb-emerald);
}

.input-group .form-control.is-invalid + .btn-toggle-pass {
    border-color: var(--bs-form-invalid-border-color);
}

.form-text {
    color: var(--nb-muted);
}

/* ---------- Alerts / flash ---------- */
.alert {
    border-radius: var(--nb-radius-sm);
    border-width: 0 0 0 4px;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.alert > .bi {
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.alert .alert-body { flex: 1; }
.alert ul { padding-left: 1.1rem; margin: 0.25rem 0 0; }

.alert-success { background: #e8f3ed; border-color: var(--nb-emerald); color: #0a4a37; }
.alert-danger  { background: #fbeceb; border-color: #b4372f; color: #7a201a; }
.alert-warning { background: var(--nb-gold-soft); border-color: var(--nb-gold); color: #6b4612; }
.alert-info    { background: #eaf2f6; border-color: #3d7c99; color: #1d4b60; }

.alert-dismissible .btn-close {
    position: static;
    padding: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* ---------- Surfaces ---------- */
.nb-surface {
    background: var(--nb-surface);
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
}

.nb-surface-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--nb-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nb-surface-head h2,
.nb-surface-head h3 {
    font-family: var(--nb-font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
}

.nb-surface-body {
    padding: 1.25rem;
}

.nb-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.nb-empty .nb-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.nb-empty p {
    margin: 0.25rem auto 1.25rem;
    color: var(--nb-muted);
}

.nb-empty h3 {
    font-family: var(--nb-font-body);
    font-weight: 600;
    letter-spacing: 0;
    font-size: 1.0625rem;
}

/* ==========================================================================
   FRONT (customer / public) layout
   ========================================================================== */

.nb-rule {
    height: 4px;
    background: var(--nb-rule);
}

.nb-navbar {
    background: #fff;
    border-bottom: 1px solid var(--nb-line);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.nb-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.nb-brand img {
    height: 48px;
    width: auto;
}

.nb-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.nb-brand-name {
    font-family: var(--nb-font-display);
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--nb-emerald);
    letter-spacing: 0.02em;
}

.nb-brand-tag {
    font-family: var(--nb-font-display);
    font-weight: 600;
    font-size: 0.6875rem;
    color: var(--nb-gold-deep);
    letter-spacing: 0.06em;
    margin-top: 3px;
}

.nb-navbar .nav-link {
    font-weight: 500;
    color: var(--nb-ink);
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--nb-radius-sm);
}

.nb-navbar .nav-link:hover,
.nb-navbar .nav-link.active {
    color: var(--nb-emerald);
}

.nb-navbar .nav-link.active {
    background: var(--nb-emerald-soft);
}

.nb-navbar .navbar-toggler {
    border-color: var(--nb-line-strong);
    padding: 0.4rem 0.6rem;
}

.nb-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 107, 79, 0.2);
}

.nb-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--nb-forest);
}

.nb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--nb-emerald);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.dropdown-menu {
    border-color: var(--nb-line);
    border-radius: var(--nb-radius);
    box-shadow: 0 12px 32px rgba(11, 61, 47, 0.12);
    padding: 0.4rem;
}

.dropdown-item {
    border-radius: var(--nb-radius-sm);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.dropdown-item:active,
.dropdown-item.active {
    background: var(--nb-emerald);
}

.dropdown-item i {
    width: 1.25rem;
    color: var(--nb-emerald);
}

.dropdown-item:active i {
    color: #fff;
}

/* ---------- Hero ---------- */
.nb-hero {
    position: relative;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(226, 172, 94, 0.16), transparent 70%),
        linear-gradient(180deg, #f8faf6 0%, #eaf1ea 100%);
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
    overflow: hidden;
    text-align: center;
}

.nb-hero-crest {
    width: 92px;
    height: auto;
    margin-bottom: 1.25rem;
}

/* The one bold move: banded metallic headline, like the "NidhiBon" lettering in the logo */
.nb-hero-title {
    font-family: var(--nb-font-display);
    font-weight: 700;
    font-size: clamp(2.125rem, 1.3rem + 3.6vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: 0.01em;
    max-width: 18ch;
    margin: 0 auto 1.25rem;
    color: var(--nb-emerald);
    background: linear-gradient(172deg,
        #0b6b4f 0%, #0b6b4f 36%,
        #a8742a 45%, #c99447 50%, #3a7d5c 56%,
        #0b6b4f 64%, #0b6b4f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nb-hero-lead {
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    color: var(--nb-muted);
    max-width: 52ch;
    margin: 0 auto 2rem;
}

.nb-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nb-feather {
    position: absolute;
    width: clamp(110px, 14vw, 190px);
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
}

.nb-feather--left {
    left: -18px;
    top: 18%;
    transform: rotate(-14deg);
}

.nb-feather--right {
    right: -18px;
    top: 18%;
    transform: scaleX(-1) rotate(-14deg);
}

.nb-forest-band {
    height: clamp(110px, 14vw, 190px);
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    background: url("../images/forest-band.svg") center bottom / cover no-repeat;
}

/* Facts strip directly under the forest (same colour as the front trees) */
.nb-facts {
    background: var(--nb-forest);
    color: var(--nb-ivory);
    padding: 1.1rem 0 1.4rem;
}

.nb-facts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nb-facts-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.975rem;
}

.nb-facts-list .bi {
    color: var(--nb-gold);
    font-size: 1.15rem;
}

.nb-facts-list strong {
    color: #fff;
    font-weight: 600;
}

/* ---------- Sections ---------- */
.nb-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.nb-section-head {
    margin-bottom: 2rem;
}

.nb-section-head h2 {
    margin-bottom: 0.5rem;
}

.nb-section-head p {
    color: var(--nb-muted);
    margin: 0;
}

/* ---------- Room plates ---------- */
.nb-room {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nb-room-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--nb-forest);
    overflow: hidden;
}

.nb-room-media img.nb-room-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder until staff upload real photos (Phase 2) */
.nb-room-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(226, 172, 94, 0.18), transparent 60%),
        linear-gradient(180deg, var(--nb-forest-3) 0%, var(--nb-forest) 100%);
}

.nb-room-placeholder img {
    width: 38%;
    max-width: 120px;
    opacity: 0.55;
}

.nb-room-price {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--nb-radius-sm);
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    color: var(--nb-forest);
    font-size: 1.0625rem;
    line-height: 1.2;
}

.nb-room-price small {
    font-weight: 500;
    color: var(--nb-muted);
    font-size: 0.8125rem;
}

.nb-room-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nb-room-body h3 {
    font-size: 1.3125rem;
    margin-bottom: 0.35rem;
}

.nb-room-body p {
    color: var(--nb-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.nb-room-specs {
    list-style: none;
    padding: 0.85rem 0 0;
    margin: auto 0 0;
    border-top: 1px dashed var(--nb-line-strong);
    display: grid;
    gap: 0.4rem;
    font-size: 0.9375rem;
}

.nb-room-specs li {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.nb-room-specs .bi {
    color: var(--nb-emerald);
}

/* ---------- Page header (inner pages) ---------- */
.nb-page-head {
    background: linear-gradient(180deg, #f8faf6 0%, #eaf1ea 100%);
    border-bottom: 1px solid var(--nb-line);
    padding: 2rem 0 1.75rem;
}

.nb-page-head h1 {
    margin: 0;
}

.nb-page-head p {
    margin: 0.35rem 0 0;
    color: var(--nb-muted);
}

/* ---------- Customer account nav ---------- */
.nb-account-nav {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    padding: 0.5rem;
}

.nb-account-nav a,
.nb-account-nav button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--nb-radius-sm);
    color: var(--nb-ink);
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: 0;
    text-align: left;
}

.nb-account-nav a:hover,
.nb-account-nav button:hover {
    background: var(--nb-bg);
    color: var(--nb-emerald);
}

.nb-account-nav a.active {
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    font-weight: 600;
}

.nb-account-nav .bi {
    font-size: 1.05rem;
    width: 1.25rem;
}

.nb-detail-list {
    margin: 0;
}

.nb-detail-list dt {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--nb-muted);
}

.nb-detail-list dd {
    margin: 0 0 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.nb-detail-list dd:last-child {
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.nb-footer {
    background: var(--nb-forest);
    color: rgba(246, 240, 225, 0.82);
    padding: 3rem 0 0;
    font-size: 0.9375rem;
}

.nb-footer a {
    color: rgba(246, 240, 225, 0.82);
    text-decoration: none;
}

.nb-footer a:hover {
    color: var(--nb-gold);
}

.nb-footer h2 {
    font-family: var(--nb-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.9rem;
}

.nb-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.nb-footer-brand img {
    height: 64px;
    width: auto;
}

.nb-footer-brand .nb-brand-name {
    color: var(--nb-ivory);
}

.nb-footer-brand .nb-brand-tag {
    color: var(--nb-gold);
}

.nb-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.nb-footer-contact li {
    display: flex;
    gap: 0.6rem;
}

.nb-footer-contact .bi {
    color: var(--nb-gold);
}

.nb-footer-bottom {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(246, 240, 225, 0.14);
    padding: 1.1rem 0;
    font-size: 0.875rem;
    color: rgba(246, 240, 225, 0.65);
}

/* ==========================================================================
   AUTH layout (login / register / reset / verify)
   ========================================================================== */
.nb-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.nb-auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 55% at 50% 30%, rgba(226, 172, 94, 0.14), transparent 70%),
        linear-gradient(180deg, #f8faf6 0%, #e6efe7 100%);
    border-right: 1px solid var(--nb-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 0;
    text-align: center;
}

.nb-auth-brand .nb-auth-logo {
    width: min(340px, 72%);
    height: auto;
}

.nb-auth-brand p {
    color: var(--nb-muted);
    max-width: 34ch;
    margin: 1.5rem auto 0;
}

.nb-auth-brand .nb-forest-band {
    width: calc(100% + 4rem);
    margin: auto -2rem 0;
    flex-shrink: 0;
}

.nb-auth-brand-inner {
    margin: auto 0 0;
}

.nb-auth-main {
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
}

.nb-auth-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nb-auth-top .nb-brand {
    visibility: hidden; /* shown only on mobile */
}

.nb-auth-back {
    font-weight: 500;
    color: var(--nb-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nb-auth-back:hover {
    color: var(--nb-emerald);
}

.nb-auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 2rem 0;
}

.nb-auth-card h1 {
    font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
    margin-bottom: 0.4rem;
}

.nb-auth-card .nb-auth-sub {
    color: var(--nb-muted);
    margin-bottom: 1.75rem;
}

.nb-auth-foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--nb-line);
    text-align: center;
    color: var(--nb-muted);
}

.nb-auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--nb-gold-soft);
    color: var(--nb-gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   PANEL layout (staff + admin)
   ========================================================================== */
.nb-panel {
    display: flex;
    min-height: 100vh;
}

.nb-sidebar {
    --bs-offcanvas-width: var(--nb-sidebar-w);
    --bs-offcanvas-bg: var(--nb-forest);
    --bs-offcanvas-color: var(--nb-ivory);
    background: var(--nb-forest);
    color: var(--nb-ivory);
}

.nb-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(246, 240, 225, 0.12);
}

.nb-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(246, 240, 225, 0.12);
}

.nb-sidebar-brand img {
    height: 44px;
    width: auto;
}

.nb-sidebar-brand .nb-brand-name {
    color: var(--nb-ivory);
    font-size: 1.25rem;
}

.nb-sidebar-brand .nb-brand-tag {
    color: var(--nb-gold);
}

.nb-sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.nb-sidebar-group {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(246, 240, 225, 0.5);
    padding: 0.75rem 0.75rem 0.4rem;
}

.nb-sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 2px;
    border-radius: var(--nb-radius-sm);
    color: rgba(246, 240, 225, 0.86);
    text-decoration: none;
    font-weight: 500;
}

.nb-sidebar-nav a .bi {
    font-size: 1.1rem;
    width: 1.25rem;
    color: rgba(246, 240, 225, 0.6);
}

.nb-sidebar-nav a:hover {
    background: var(--nb-forest-2);
    color: #fff;
}

.nb-sidebar-nav a.active {
    background: var(--nb-forest-2);
    color: #fff;
    font-weight: 600;
}

.nb-sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--nb-gold);
}

.nb-sidebar-nav a.active .bi {
    color: var(--nb-gold);
}

.nb-sidebar-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(246, 240, 225, 0.12);
    font-size: 0.8125rem;
    color: rgba(246, 240, 225, 0.55);
}

.nb-panel-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nb-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--nb-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--nb-line);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 clamp(1rem, 2.5vw, 2rem);
}

.nb-topbar-toggle {
    border: 1px solid var(--nb-line-strong);
    background: #fff;
    border-radius: var(--nb-radius-sm);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--nb-forest);
}

.nb-topbar-title {
    font-weight: 600;
    color: var(--nb-forest);
    font-size: 1.0625rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nb-topbar-date {
    color: var(--nb-muted);
    font-size: 0.9375rem;
    white-space: nowrap;
}

.nb-topbar .dropdown-toggle::after {
    margin-left: 0.4rem;
}

.nb-role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--nb-gold-soft);
    color: var(--nb-gold-deep);
    border: 1px solid #efd4a6;
}

.nb-panel-content {
    padding: clamp(1rem, 2.5vw, 2rem);
    flex: 1;
}

.nb-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nb-panel-head h1 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
    margin: 0;
}

.nb-panel-head p {
    margin: 0.3rem 0 0;
    color: var(--nb-muted);
}

/* Stat tiles */
.nb-stat {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.nb-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--nb-radius);
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.nb-stat-icon--gold {
    background: var(--nb-gold-soft);
    color: var(--nb-gold-deep);
}

.nb-stat-value {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--nb-forest);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.nb-stat-label {
    color: var(--nb-muted);
    font-size: 0.9375rem;
}

/* Tables */
.nb-table {
    --bs-table-bg: transparent;
    margin: 0;
    font-size: 0.9375rem;
}

.nb-table thead th {
    background: var(--nb-bg);
    color: var(--nb-muted);
    font-weight: 600;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--nb-line);
    white-space: nowrap;
    padding: 0.7rem 1rem;
}

.nb-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--nb-line);
}

.nb-table tbody tr:last-child td,
.nb-table tbody tr:last-child th {
    border-bottom: 0;
}

.nb-action-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    text-transform: capitalize;
}

.nb-action-badge--updated { background: #eaf2f6; color: #2a6680; }
.nb-action-badge--deleted { background: #fbeceb; color: #9b2c25; }
.nb-action-badge--login,
.nb-action-badge--logout { background: var(--nb-gold-soft); color: var(--nb-gold-deep); }

/* ==========================================================================
   ERROR pages
   ========================================================================== */
.nb-error {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.25rem 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 20%, rgba(226, 172, 94, 0.14), transparent 70%),
        linear-gradient(180deg, #f8faf6 0%, #e6efe7 100%);
}

.nb-error-inner {
    margin: auto 0 0;
    padding-bottom: 1rem;
}

.nb-error img {
    width: 84px;
    height: auto;
    margin-bottom: 1rem;
}

.nb-error-code {
    font-family: var(--nb-font-display);
    font-weight: 700;
    font-size: clamp(3.5rem, 2rem + 6vw, 6rem);
    line-height: 1;
    color: var(--nb-gold-deep);
    margin-bottom: 0.5rem;
}

.nb-error h1 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
}

.nb-error p {
    color: var(--nb-muted);
    margin: 0.5rem auto 1.75rem;
    max-width: 46ch;
}

.nb-error .nb-forest-band {
    width: calc(100% + 2.5rem);
    margin: auto -1.25rem 0;
}

/* ==========================================================================
   PHASE 2 — staff/admin "Manage" screens + guest room cards
   ========================================================================== */

/* ---------- Page head extras ---------- */
.nb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--nb-muted);
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.nb-back:hover { color: var(--nb-emerald); }

.nb-optional {
    font-weight: 400;
    color: var(--nb-muted);
    font-size: 0.8125rem;
}

.nb-rule-soft {
    border: 0;
    border-top: 1px dashed var(--nb-line-strong);
    margin: 0.5rem 0 1.25rem;
    opacity: 1;
}

.nb-num { font-variant-numeric: tabular-nums; }

/* ---------- Filters / toolbars ---------- */
.nb-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
}

.nb-filter .form-control,
.nb-filter .form-select {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nb-filter .btn { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.nb-filter-field { min-width: 170px; }
.nb-filter-field--grow { flex: 1 1 240px; }

.nb-filter--inline { margin: 0; flex-wrap: nowrap; }
.nb-filter--inline .form-select-sm,
.nb-filter--inline .form-control-sm { min-width: 150px; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.nb-filter--inline .btn { padding-top: 0.35rem; padding-bottom: 0.35rem; }

.nb-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--nb-line);
}

.nb-toolbar .nb-filter--inline { padding-bottom: 0.6rem; }

.nb-tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.nb-tabs a {
    padding: 0.6rem 0.9rem;
    color: var(--nb-muted);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}

.nb-tabs a:hover { color: var(--nb-emerald); }

.nb-tabs a.active {
    color: var(--nb-forest);
    border-bottom-color: var(--nb-gold);
}

.nb-tab-count {
    display: inline-block;
    min-width: 1.5rem;
    padding: 0 0.4rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background: var(--nb-bg);
    font-size: 0.75rem;
    text-align: center;
    color: var(--nb-muted);
}

.nb-tabs a.active .nb-tab-count {
    background: var(--nb-gold-soft);
    color: var(--nb-gold-deep);
}

/* ---------- Table cells ---------- */
.nb-table tr.is-muted td,
.nb-table tr.is-muted th { color: var(--nb-muted); }
.nb-table tr.is-muted .nb-cell-title { color: var(--nb-muted); }

.nb-cell-title {
    font-weight: 600;
    color: var(--nb-forest);
    text-decoration: none;
}

a.nb-cell-title:hover { color: var(--nb-emerald); text-decoration: underline; }

.nb-cell-wrap { min-width: 180px; max-width: 320px; }

.nb-cell-media {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 220px;
}

.nb-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nb-thumb img { width: 100%; height: 100%; object-fit: cover; }

.nb-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.nb-more {
    border: 1px solid var(--nb-line-strong);
    background: #fff;
    line-height: 1;
    padding: 0.35rem 0.55rem;
}

.nb-row-actions .dropdown-item.text-danger i { color: #b4372f; }

.nb-code {
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--nb-forest);
    text-decoration: none;
    background: var(--nb-gold-soft);
    border: 1px dashed #e0b977;
    border-radius: var(--nb-radius-sm);
    padding: 0.15rem 0.5rem;
}

a.nb-code:hover { color: var(--nb-emerald); }

.nb-code-input { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.nb-code-input::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }

.nb-input-btn {
    border: 1px solid var(--nb-line-strong);
    background: var(--nb-bg);
    color: var(--nb-forest);
    font-weight: 600;
    white-space: nowrap;
}

.nb-input-btn:hover { background: var(--nb-emerald-soft); color: var(--nb-emerald); }

/* ---------- Status badges ---------- */
.nb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.nb-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.nb-badge--ok    { background: #e3f1ea; color: #0a5c43; }
.nb-badge--warn  { background: var(--nb-gold-soft); color: #7a5114; }
.nb-badge--block { background: #ece9f4; color: #4e4380; }
.nb-badge--off   { background: #eef0ef; color: #5e6863; }

/* ---------- Inventory matrix ---------- */
.nb-matrix th[scope="row"] {
    font-weight: 600;
    background: transparent;
    white-space: nowrap;
}

.nb-matrix th[scope="row"] a { color: var(--nb-forest); text-decoration: none; }
.nb-matrix th[scope="row"] a:hover { color: var(--nb-emerald); text-decoration: underline; }
.nb-matrix td a { font-weight: 600; text-decoration: none; }

.nb-matrix tfoot th,
.nb-matrix tfoot th[scope="row"],
.nb-matrix tfoot td {
    background: var(--nb-bg);
    font-weight: 700;
    color: var(--nb-forest);
    border-top: 1px solid var(--nb-line-strong);
    border-bottom: 0;
}

/* ---------- Forms ---------- */
.nb-form-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--nb-line);
    background: #fbfcfa;
    border-radius: 0 0 var(--nb-radius) var(--nb-radius);
}

.nb-sticky { position: sticky; top: calc(var(--nb-topbar-h) + 1rem); }

.nb-switch { padding-left: 3rem; min-height: 1.75rem; }
.nb-switch .form-check-input { width: 2.5rem; height: 1.35rem; margin-left: -3rem; margin-top: 0.15rem; cursor: pointer; }
.nb-switch .form-check-label { font-weight: 600; color: var(--nb-forest); cursor: pointer; }

.nb-readout {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--nb-forest);
    padding: 0.55rem 0;
    font-variant-numeric: tabular-nums;
}

.nb-callout {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    background: var(--nb-emerald-soft);
    border-radius: var(--nb-radius-sm);
    color: #0a4a37;
    font-size: 0.9375rem;
}

.nb-callout > .bi { font-size: 1.1rem; line-height: 1.4; color: var(--nb-emerald); }

.nb-callout--gold { background: var(--nb-gold-soft); color: #6b4612; }
.nb-callout--gold > .bi { color: var(--nb-gold-deep); }

.nb-quick-picks { display: flex; gap: 0.35rem; margin-top: -0.6rem; margin-bottom: 1rem; }
.nb-quick-picks .btn { padding: 0.15rem 0.6rem; font-size: 0.8125rem; border: 1px solid var(--nb-line-strong); }

/* Checkbox tiles (amenities on a category) */
.nb-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.5rem;
}

.nb-check-tile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--nb-line-strong);
    border-radius: var(--nb-radius-sm);
    cursor: pointer;
    background: #fff;
    font-weight: 500;
}

.nb-check-tile .form-check-input { margin: 0; flex-shrink: 0; }
.nb-check-tile .bi { color: var(--nb-emerald); font-size: 1.05rem; }
.nb-check-tile:hover { border-color: #4f9a7c; }
.nb-check-tile:has(input:checked) { border-color: var(--nb-emerald); background: var(--nb-emerald-soft); }
.nb-check-tile.is-muted { color: var(--nb-muted); }
.nb-check-tile small { color: var(--nb-muted); font-weight: 400; }

/* Two big radio choices (block type, coupon type) */
.nb-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.nb-choice {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--nb-line-strong);
    border-radius: var(--nb-radius-sm);
    cursor: pointer;
    background: #fff;
}

.nb-choice .form-check-input { margin-top: 0.2rem; flex-shrink: 0; }
.nb-choice strong { display: block; color: var(--nb-forest); font-weight: 600; }
.nb-choice small { display: block; color: var(--nb-muted); font-size: 0.8125rem; line-height: 1.4; }
.nb-choice:has(input:checked) { border-color: var(--nb-emerald); background: var(--nb-emerald-soft); }

/* Icon picker (amenities) */
.nb-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 0.4rem;
    padding: 0.6rem;
    border: 1px solid var(--nb-line-strong);
    border-radius: var(--nb-radius-sm);
    max-height: 220px;
    overflow-y: auto;
}

.nb-icon-grid.is-invalid { border-color: var(--bs-form-invalid-border-color); }

.nb-icon-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: var(--nb-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--nb-forest);
}

.nb-icon-option input { position: absolute; opacity: 0; pointer-events: none; }
.nb-icon-option:hover { background: var(--nb-bg); }
.nb-icon-option:has(input:checked) { background: var(--nb-emerald); color: #fff; }
.nb-icon-option:has(input:focus-visible) { outline: 3px solid rgba(226, 172, 94, 0.85); outline-offset: 1px; }

.nb-amenity { display: inline-flex; align-items: center; gap: 0.7rem; }

.nb-amenity-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--nb-radius-sm);
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.nb-error-list {
    margin: -0.5rem 0 1rem;
    padding-left: 1.1rem;
    color: var(--bs-form-invalid-color);
    font-size: 0.875em;
}

/* Bulk rooms help */
.nb-examples { width: 100%; font-size: 0.9375rem; }
.nb-examples th { padding: 0.35rem 1rem 0.35rem 0; font-weight: 400; white-space: nowrap; }
.nb-examples td { padding: 0.35rem 0; color: var(--nb-muted); }
.nb-examples code { color: var(--nb-forest); background: var(--nb-bg); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.875rem; }

/* Simple list inside a surface */
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--nb-line);
}
.nb-list li:last-child { border-bottom: 0; }

/* ---------- Photo gallery ---------- */
.nb-gallery {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.nb-gallery-item {
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    overflow: hidden;
    background: #fff;
}

.nb-gallery-item figure { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--nb-bg); }
.nb-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nb-gallery-cover {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--nb-gold);
    color: #2b1f0b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.nb-gallery-actions {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem;
    border-top: 1px solid var(--nb-line);
    align-items: center;
}

.nb-gallery-actions form { margin: 0; }
.nb-gallery-actions .btn { padding: 0.25rem 0.55rem; font-size: 0.8125rem; border: 1px solid var(--nb-line-strong); background: #fff; }

.nb-upload {
    padding: 1rem;
    border: 1px dashed var(--nb-line-strong);
    border-radius: var(--nb-radius);
    background: #fbfcfa;
}

/* ---------- Stat tiles as links ---------- */
.nb-stat--link { text-decoration: none; color: inherit; }
.nb-stat--link:hover { border-color: #b7d3c6; }
.nb-stat--link:hover .nb-stat-label { color: var(--nb-emerald); }

/* ---------- Confirm dialog ---------- */
.nb-modal { border: 0; border-radius: var(--nb-radius-lg); }
.nb-modal .modal-body { padding: 1.5rem 1.5rem 0.75rem; }
.nb-modal .modal-footer { border-top: 0; padding: 0.75rem 1.5rem 1.25rem; }

.nb-modal-title {
    font-family: var(--nb-font-body);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--nb-forest);
    margin-bottom: 0.4rem;
}

.nb-modal-note { color: var(--nb-muted); }

/* ---------- Pagination in brand colours ---------- */
.pagination {
    --bs-pagination-color: var(--nb-emerald);
    --bs-pagination-hover-color: var(--nb-emerald-active);
    --bs-pagination-focus-color: var(--nb-emerald-active);
    --bs-pagination-active-bg: var(--nb-emerald);
    --bs-pagination-active-border-color: var(--nb-emerald);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(11, 107, 79, 0.2);
    margin-bottom: 0;
}

nav[role="navigation"] p.small { color: var(--nb-muted); }

/* ---------- Guest room cards: amenity chips + holiday notice ---------- */
.nb-chips {
    list-style: none;
    margin: -0.25rem 0 0.9rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.nb-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--nb-emerald-soft);
    color: #0a4a37;
    font-size: 0.8125rem;
    font-weight: 500;
}

.nb-chips li .bi { color: var(--nb-emerald); }
.nb-chips .nb-chips-more { background: transparent; color: var(--nb-muted); padding-left: 0.2rem; }

.nb-holiday {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    border-radius: var(--nb-radius);
    background: var(--nb-gold-soft);
    border: 1px solid #efd4a6;
    color: #5f3f10;
}

.nb-holiday > .bi { font-size: 1.35rem; color: var(--nb-gold-deep); line-height: 1.2; }
.nb-holiday strong { display: block; color: #4d3209; }

/* ==========================================================================
   PHASE 3 — room status colours, availability grid, guest search + room page
   ========================================================================== */

/* The four room-status colours (dashboard tiles, badges, calendar later) */
:root {
    --nb-st-free: #0a5c43;        --nb-st-free-bg: #e3f1ea;        --nb-st-free-dot: #2f8a63;
    --nb-st-reserved: #24607d;    --nb-st-reserved-bg: #e4eff5;    --nb-st-reserved-dot: #3d82a6;
    --nb-st-occupied: #9c3b26;    --nb-st-occupied-bg: #fbe8e2;    --nb-st-occupied-dot: #c2553d;
    --nb-st-maint: #7a5114;       --nb-st-maint-bg: var(--nb-gold-soft); --nb-st-maint-dot: #d59a45;
}

.nb-badge--reserved { background: var(--nb-st-reserved-bg); color: var(--nb-st-reserved); }
.nb-badge--occupied { background: var(--nb-st-occupied-bg); color: var(--nb-st-occupied); }

/* Tonight tiles on the dashboards */
.nb-stat--free        { box-shadow: inset 4px 0 0 var(--nb-st-free-dot); }
.nb-stat--reserved    { box-shadow: inset 4px 0 0 var(--nb-st-reserved-dot); }
.nb-stat--occupied    { box-shadow: inset 4px 0 0 var(--nb-st-occupied-dot); }
.nb-stat--maintenance { box-shadow: inset 4px 0 0 var(--nb-st-maint-dot); }

.nb-stat--free .nb-stat-icon        { background: var(--nb-st-free-bg);     color: var(--nb-st-free); }
.nb-stat--reserved .nb-stat-icon    { background: var(--nb-st-reserved-bg); color: var(--nb-st-reserved); }
.nb-stat--occupied .nb-stat-icon    { background: var(--nb-st-occupied-bg); color: var(--nb-st-occupied); }
.nb-stat--maintenance .nb-stat-icon { background: var(--nb-st-maint-bg);    color: var(--nb-st-maint); }

/* ---------- Availability grid (staff) ---------- */
.nb-avail-form .nb-filter-field { min-width: 160px; }

.nb-avail-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nb-avail { font-size: 0.875rem; }

.nb-avail thead th {
    text-align: center;
    line-height: 1.15;
    padding: 0.55rem 0.35rem;
    min-width: 54px;
}

.nb-avail td { padding: 0.5rem 0.35rem; }

.nb-avail-dow,
.nb-avail-mon {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nb-avail-day {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--nb-forest);
}

.nb-avail thead th.is-weekend { background: #e9f0e8; }
.nb-avail thead th.is-holiday {
    background: var(--nb-gold-soft);
    box-shadow: inset 0 -3px 0 var(--nb-gold);
}

.nb-avail .nb-avail-cat {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    min-width: 150px;
    max-width: 220px;
    text-align: left !important;
    font-weight: 600;
    color: var(--nb-forest);
    white-space: normal;
    padding-left: 1rem;
    box-shadow: inset -1px 0 0 var(--nb-line);
}

.nb-avail thead .nb-avail-cat { background: var(--nb-bg); z-index: 2; }
.nb-avail tfoot .nb-avail-cat { background: var(--nb-bg); }

.nb-avail-cell {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 44px;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    cursor: default;
}

.nb-avail-cell strong { font-size: 0.9375rem; }
.nb-avail-cell small { font-size: 0.6875rem; opacity: 0.75; }

.nb-avail-cell--ok   { background: var(--nb-st-free-bg);     color: var(--nb-st-free); }
.nb-avail-cell--low  { background: var(--nb-st-maint-bg);    color: var(--nb-st-maint); }
.nb-avail-cell--full { background: var(--nb-st-occupied-bg); color: var(--nb-st-occupied); }

.nb-avail .nb-avail-sum {
    min-width: 112px;
    white-space: normal;
    background: #fafcf9;
    box-shadow: inset 1px 0 0 var(--nb-line);
}

.nb-avail thead th.nb-avail-sum {
    font-size: 0.75rem;
    background: var(--nb-bg);
}

.nb-avail tfoot th,
.nb-avail tfoot td {
    background: var(--nb-bg);
    font-weight: 600;
    border-top: 1px solid var(--nb-line-strong);
    border-bottom: 0;
}

.nb-avail-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--nb-line);
    font-size: 0.8125rem;
    color: var(--nb-muted);
}

.nb-avail-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nb-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.nb-dot--ok      { background: var(--nb-st-free-dot); }
.nb-dot--low     { background: var(--nb-st-maint-dot); }
.nb-dot--full    { background: var(--nb-st-occupied-dot); }
.nb-dot--holiday { background: var(--nb-gold); box-shadow: 0 0 0 2px var(--nb-gold-soft); }

/* ---------- Guest search bar (home hero + rooms page) ---------- */
.nb-searchcard {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius-lg);
    padding: 1rem 1.15rem;
    box-shadow: 0 14px 36px rgba(11, 61, 47, 0.09);
}

.nb-hero-search {
    max-width: 1000px;
    margin: 0 auto;
}

.nb-hero-more {
    margin: 1rem auto 0;
    color: var(--nb-muted);
    font-size: 0.9375rem;
}

.nb-hero-more a { font-weight: 600; }

.nb-searchbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.nb-searchbar-field { grid-column: span 2; min-width: 0; }
.nb-searchbar-field--date { grid-column: span 3; }
.nb-searchbar-submit { grid-column: 1 / -1; }

.nb-searchbar-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--nb-muted);
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.nb-searchbar-hint { font-weight: 400; }

.nb-searchbar .form-control,
.nb-searchbar .form-select,
.nb-searchbar-submit .btn {
    min-height: 46px;
}

.nb-searchbar-submit .btn { white-space: nowrap; }

.nb-searchbar-errors {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--nb-radius-sm);
    background: #fbeceb;
    color: #8f2a23;
    font-size: 0.9375rem;
}

.nb-searchbar-errors .bi { margin-top: 0.15rem; }

@media (min-width: 992px) {
    .nb-searchbar { grid-template-columns: 1.3fr 1.3fr 0.8fr 0.95fr 0.75fr auto; }
    .nb-searchbar-field,
    .nb-searchbar-field--date,
    .nb-searchbar-submit { grid-column: auto; }
}

.nb-page-head--search { padding-bottom: 1.5rem; }

/* ---------- Rooms page: filters ---------- */
.nb-filter-toggle { margin-bottom: 0.75rem; }

.nb-filters {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius-lg);
    padding: 1.1rem 1.15rem 1.2rem;
}

.nb-filters-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.nb-filters-head h2 {
    font-family: var(--nb-font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
}

.nb-filters-head a { font-size: 0.875rem; font-weight: 600; }

.nb-filters-group {
    border: 0;
    border-top: 1px solid var(--nb-line);
    padding: 0.9rem 0 0.35rem;
    margin: 0;
}

.nb-filters-group legend {
    padding: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--nb-forest);
    margin-bottom: 0.55rem;
}

.nb-filters .form-check { margin-bottom: 0.4rem; }
.nb-filters .form-check-label { font-size: 0.9375rem; }
.nb-filters .form-check-label .bi { color: var(--nb-emerald); margin-right: 0.15rem; }

.nb-filters-note {
    font-size: 0.75rem;
    color: var(--nb-muted);
    margin: 0.35rem 0 0.4rem;
}

.nb-price-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.4rem;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--nb-muted);
}

.nb-price-range .input-group-text { padding-left: 0.5rem; padding-right: 0.5rem; }
.nb-filters > .btn { margin-top: 0.85rem; }

/* ---------- Rooms page: results ---------- */
.nb-results-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.nb-results-count {
    font-family: var(--nb-font-body);
    font-size: 1.1875rem;
    font-weight: 700;
    margin: 0;
}

.nb-results-for {
    margin: 0.15rem 0 0;
    color: var(--nb-muted);
    font-size: 0.9375rem;
}

.nb-results-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nb-results-sort .form-label { color: var(--nb-muted); white-space: nowrap; }
.nb-results-sort .form-select { min-width: 190px; }

.nb-results-hint {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    max-width: none;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px dashed var(--nb-line-strong);
    border-radius: var(--nb-radius);
    color: var(--nb-muted);
}

.nb-results-hint .bi { color: var(--nb-emerald); font-size: 1.1rem; }

.nb-results {
    display: grid;
    gap: 1rem;
}

.nb-result {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "media" "body" "side";
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nb-result:hover {
    border-color: #b7d3c6;
    box-shadow: 0 10px 28px rgba(11, 61, 47, 0.07);
}

.nb-result-media {
    grid-area: media;
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--nb-forest);
    overflow: hidden;
}

.nb-result-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nb-result:hover .nb-result-media > img { transform: scale(1.03); }

.nb-result.is-unavailable .nb-result-media > img { filter: grayscale(0.45); opacity: 0.85; }

.nb-result-body {
    grid-area: body;
    padding: 1.1rem 1.25rem;
    min-width: 0;
}

.nb-result-body h3 { font-size: 1.3125rem; margin-bottom: 0.35rem; }
.nb-result-body h3 a { color: inherit; text-decoration: none; }
.nb-result-body h3 a:hover { color: var(--nb-emerald); }

.nb-result-desc {
    color: var(--nb-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.nb-result-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    display: grid;
    gap: 0.3rem;
    font-size: 0.9375rem;
}

.nb-result-specs li { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.nb-result-specs .bi { color: var(--nb-emerald); }
.nb-result-specs .text-muted { font-size: 0.875rem; }

.nb-result-side {
    grid-area: side;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px dashed var(--nb-line-strong);
    background: #fbfcfa;
}

.nb-result-side > .nb-offer,
.nb-result-side > .btn { flex: 1 1 100%; }

.nb-result-rate {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--nb-forest);
    line-height: 1.15;
}

.nb-result-per {
    display: block;
    font-size: 0.8125rem;
    color: var(--nb-muted);
}

.nb-result-total {
    padding-left: 1.25rem;
    border-left: 1px solid var(--nb-line);
}

.nb-result-total strong {
    display: block;
    font-size: 1.125rem;
    color: var(--nb-emerald);
}

.nb-result-total span {
    display: block;
    font-size: 0.8125rem;
    color: var(--nb-muted);
}

@media (min-width: 768px) {
    .nb-result {
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-areas: "media body" "media side";
    }
    .nb-result-media { aspect-ratio: auto; min-height: 220px; }
    .nb-result-side > .btn { flex: 0 0 auto; margin-left: auto; width: auto !important; }
}

@media (min-width: 1200px) {
    .nb-result {
        grid-template-columns: 260px minmax(0, 1fr) 250px;
        grid-template-areas: "media body side";
    }
    .nb-result-side {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        border-top: 0;
        border-left: 1px dashed var(--nb-line-strong);
        padding: 1.1rem 1.15rem;
    }
    .nb-result-side > .nb-offer { flex: 0 0 auto; }
    .nb-result-side > .btn { flex: 0 0 auto; margin: auto 0 0; width: 100% !important; }
    .nb-result-total { padding: 0.6rem 0 0; border-left: 0; border-top: 1px solid var(--nb-line); }
}

/* Availability line on a result / room page */
.nb-offer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.nb-offer--ok   .nb-offer-pill { background: var(--nb-st-free-bg);     color: var(--nb-st-free); }
.nb-offer--few  .nb-offer-pill { background: var(--nb-gold-soft);      color: #7a5114; }
.nb-offer--full .nb-offer-pill { background: var(--nb-st-occupied-bg); color: var(--nb-st-occupied); }
.nb-offer--off  .nb-offer-pill { background: #eef0ef; color: #4f5954; }

.nb-offer-text {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    color: var(--nb-ink);
}

.nb-offer-try {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Home room cards open the room page */
.nb-room--link { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.nb-room--link:hover { border-color: #b7d3c6; box-shadow: 0 10px 28px rgba(11, 61, 47, 0.08); }
.nb-room--link h3 a { color: inherit; text-decoration: none; }
.nb-room--link:hover h3 a { color: var(--nb-emerald); }

/* ---------- Room page ---------- */
.nb-breadcrumb {
    --bs-breadcrumb-divider-color: var(--nb-muted);
    --bs-breadcrumb-item-active-color: var(--nb-muted);
    font-size: 0.875rem;
    margin-bottom: 0.6rem;
}

.nb-breadcrumb a { color: var(--nb-emerald); text-decoration: none; }
.nb-breadcrumb a:hover { text-decoration: underline; }

.nb-room-facts {
    list-style: none;
    padding: 0;
    margin: 0.9rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    font-weight: 500;
}

.nb-room-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.nb-room-facts .bi { color: var(--nb-emerald); }

/* Layout: phones get photos, then the booking panel, then the details */
.nb-room-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
}

.nb-room-info > .nb-room-section:first-child { margin-top: 0; }

@media (min-width: 992px) {
    .nb-room-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-areas: "gallery book" "info book";
        column-gap: 2rem;
        row-gap: 0;
    }
    .nb-room-gallery { grid-area: gallery; }
    .nb-room-info { grid-area: info; }
    .nb-room-layout > .nb-book { grid-area: book; align-self: start; }
    .nb-room-info > .nb-room-section:first-child { margin-top: 2rem; }
}

@media (min-width: 1200px) {
    .nb-room-layout { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 3rem; }
}

/* Gallery */
.nb-gallery-main {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    background: var(--nb-forest);
}

.nb-gallery-main .carousel-inner,
.nb-gallery-main .carousel-item { height: 100%; }

.nb-gallery-main .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-gallery-main .carousel-control-prev,
.nb-gallery-main .carousel-control-next {
    width: 64px;
    opacity: 1;
}

.nb-gallery-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--nb-forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease;
}

.nb-gallery-main .carousel-control-prev:hover .nb-gallery-arrow,
.nb-gallery-main .carousel-control-next:hover .nb-gallery-arrow { transform: scale(1.08); }

.nb-gallery-count {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(11, 61, 47, 0.8);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.nb-gallery-main--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-gallery-soon {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--nb-ivory);
    font-weight: 500;
    opacity: 0.85;
}

.nb-gthumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.65rem 0.1rem 0.3rem;
    scrollbar-width: thin;
}

.nb-gthumb {
    flex: 0 0 92px;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    background: var(--nb-line);
    opacity: 0.7;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.nb-gthumb:hover { opacity: 1; }
.nb-gthumb.active { opacity: 1; border-color: var(--nb-gold); }
.nb-gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sections */
.nb-room-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--nb-line);
}

.nb-room-section h2 { font-size: 1.3125rem; margin-bottom: 1rem; }

.nb-room-text { line-height: 1.75; max-width: 72ch; }

.nb-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.nb-spec-grid > div {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    padding: 0.8rem 1rem;
}

.nb-spec-grid dt {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--nb-muted);
    margin-bottom: 0.15rem;
}

.nb-spec-grid dd {
    margin: 0;
    font-weight: 600;
    color: var(--nb-forest);
}

.nb-spec-grid dd span { font-weight: 400; color: var(--nb-muted); font-size: 0.875rem; }

.nb-amenity-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.7rem 1rem;
}

.nb-amenity-grid li { display: flex; align-items: center; gap: 0.65rem; }

.nb-amenity-grid .bi {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nb-rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.nb-rule-list li { display: flex; gap: 0.75rem; align-items: flex-start; max-width: 72ch; }
.nb-rule-list .bi { color: var(--nb-emerald); font-size: 1.1rem; line-height: 1.4; }

/* Booking panel */
.nb-book {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius-lg);
    padding: 1.35rem 1.35rem 1.5rem;
    box-shadow: 0 14px 36px rgba(11, 61, 47, 0.08);
    scroll-margin-top: 96px;
}

@media (min-width: 992px) {
    .nb-book { position: sticky; top: 96px; }
}

.nb-book-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    margin-bottom: 1rem;
}

.nb-book-price strong { font-size: 1.75rem; color: var(--nb-forest); line-height: 1.1; }
.nb-book-price span { color: var(--nb-muted); font-size: 0.875rem; }

.nb-book-form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--nb-muted);
    margin-bottom: 0.25rem;
}

.nb-book-result {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--nb-line-strong);
}

.nb-book-result:empty { display: none; }
.nb-book-result .nb-holiday { padding: 0.8rem 0.9rem; font-size: 0.9375rem; }

.nb-book-hint { color: var(--nb-muted); font-size: 0.9375rem; margin: 0; }

.nb-book-for {
    font-size: 0.875rem;
    color: var(--nb-muted);
    margin: 0.75rem 0 0.4rem;
}

.nb-bill {
    width: 100%;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.nb-bill th,
.nb-bill td {
    padding: 0.4rem 0;
    vertical-align: top;
}

.nb-bill th { font-weight: 500; text-align: left; }
.nb-bill th span { display: block; font-size: 0.8125rem; color: var(--nb-muted); font-weight: 400; }

.nb-bill td {
    text-align: right;
    white-space: nowrap;
    padding-left: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.nb-bill tfoot th,
.nb-bill tfoot td {
    border-top: 1px solid var(--nb-line-strong);
    padding-top: 0.65rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--nb-forest);
}

.nb-book-note {
    font-size: 0.8125rem;
    color: var(--nb-muted);
    margin: 0.6rem 0 0.9rem;
}

.nb-book-result > .btn + .nb-book-note { margin-bottom: 0; }

/* Phone: price bar fixed at the bottom */
.nb-book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--nb-line);
    box-shadow: 0 -8px 24px rgba(11, 61, 47, 0.1);
}

.nb-book-bar { transition: transform 0.2s ease; }
.nb-book-bar.is-hidden { transform: translateY(110%); box-shadow: none; }

.nb-book-bar-price strong { display: block; font-size: 1.125rem; color: var(--nb-forest); line-height: 1.2; }
.nb-book-bar-price span { font-size: 0.75rem; color: var(--nb-muted); }
.nb-book-bar .btn { white-space: nowrap; }

@media (max-width: 991.98px) {
    body:has(.nb-book-bar) .nb-footer { padding-bottom: 72px; }
}

/* Other rooms */
.nb-room-others {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--nb-line);
}

.nb-room-others h2 { font-size: 1.3125rem; margin-bottom: 1rem; }

.nb-mini-room {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    color: var(--nb-ink);
    text-decoration: none;
}

.nb-mini-room:hover { border-color: #b7d3c6; }
.nb-mini-room:hover strong { color: var(--nb-emerald); }

.nb-mini-room-media {
    position: relative;
    flex: 0 0 96px;
    aspect-ratio: 4 / 3;
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    background: var(--nb-forest);
}

.nb-mini-room-media > img { width: 100%; height: 100%; object-fit: cover; }
.nb-mini-room-media .nb-room-placeholder img { width: 50%; }
.nb-mini-room-body { min-width: 0; }
.nb-mini-room-body strong { display: block; color: var(--nb-forest); }
.nb-mini-room-body span { font-size: 0.8125rem; color: var(--nb-muted); }

@media (max-width: 575.98px) {
    .nb-searchcard { padding: 0.85rem; }
    .nb-results-sort { width: 100%; }
    .nb-results-sort .form-select { min-width: 0; flex: 1; }
    .nb-gallery-main { aspect-ratio: 4 / 3; border-radius: var(--nb-radius); }
    .nb-gthumb { flex-basis: 74px; }
    .nb-book { padding: 1.1rem; }
    .nb-avail .nb-avail-cat { min-width: 112px; padding-left: 0.75rem; }
}

/* ==========================================================================
   PHASE 4 — booking: steps, checkout, payment, confirmation, my bookings
   ========================================================================== */

/* Steps 1-2-3 */
.nb-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nb-muted);
}

.nb-steps li { display: inline-flex; align-items: center; gap: 0.5rem; }

.nb-steps li + li::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    margin-right: 0.25rem;
    background: var(--nb-line-strong);
}

.nb-steps-dot {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--nb-line-strong);
    background: #fff;
    font-size: 0.8125rem;
}

.nb-steps .is-done { color: var(--nb-emerald); }
.nb-steps .is-done .nb-steps-dot { background: var(--nb-emerald); border-color: var(--nb-emerald); color: #fff; }
.nb-steps .is-current { color: var(--nb-forest); }
.nb-steps .is-current .nb-steps-dot { border-color: var(--nb-gold); background: var(--nb-gold-soft); color: var(--nb-gold-deep); }

/* Checkout + payment layout: form left, summary right (summary first on phones? no: after) */
.nb-checkout,
.nb-pay {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.nb-checkout-main,
.nb-pay-main { display: grid; gap: 1.25rem; min-width: 0; }

@media (min-width: 992px) {
    .nb-checkout,
    .nb-pay { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 2rem; }
    .nb-checkout-side,
    .nb-pay-side { position: sticky; top: 96px; }
}

.nb-checkout-as {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: var(--nb-radius);
    background: var(--nb-bg);
    font-size: 0.9375rem;
    max-width: none;
}

.nb-checkout-as > .bi { font-size: 1.4rem; color: var(--nb-emerald); }

.nb-checkout-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: var(--nb-muted);
    margin: -0.25rem 0 1rem;
    max-width: none;
}

.nb-checkout-note .bi { color: var(--nb-emerald); margin-top: 0.1rem; }

.nb-coupon { max-width: 420px; }

.nb-coupon-msg {
    min-height: 1.25rem;
    margin-top: 0.4rem;
    font-size: 0.875rem;
}

.nb-coupon-msg.is-ok { color: var(--nb-emerald); font-weight: 600; }
.nb-coupon-msg.is-error { color: #a1281f; }

.nb-checkout-sum { padding: 1.25rem; }

.nb-checkout-bill {
    margin: 1rem 0 1.1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--nb-line-strong);
}

.nb-checkout-sum .btn-lg { white-space: normal; }

.nb-checkout-secure {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
    color: var(--nb-muted);
}

.nb-checkout-secure .bi { color: var(--nb-emerald); }

.nb-bill .nb-bill-discount th,
.nb-bill .nb-bill-discount td { color: var(--nb-emerald); font-weight: 600; }

/* Stay summary card */
.nb-stay-head { display: flex; gap: 0.9rem; align-items: center; }

.nb-stay-media {
    position: relative;
    flex: 0 0 88px;
    aspect-ratio: 4 / 3;
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    background: var(--nb-forest);
}

.nb-stay-media > img { width: 100%; height: 100%; object-fit: cover; }
.nb-stay-media .nb-room-placeholder img { width: 50%; }

.nb-stay-title { display: flex; flex-direction: column; min-width: 0; }
.nb-stay-title strong { font-size: 1.125rem; color: var(--nb-forest); }
.nb-stay-title > span:last-child { font-size: 0.875rem; color: var(--nb-muted); }

.nb-stay-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--nb-gold-deep);
}

.nb-stay-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0 0.75rem;
}

.nb-stay-dates > div {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius-sm);
    background: var(--nb-bg);
}

.nb-stay-dates dt { font-size: 0.75rem; font-weight: 600; color: var(--nb-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.nb-stay-dates dd { margin: 0.15rem 0 0; font-weight: 700; color: var(--nb-forest); font-size: 0.9375rem; }
.nb-stay-dates dd span { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--nb-muted); }

.nb-stay-guests {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.9375rem;
    max-width: none;
}

.nb-stay-guests .bi { color: var(--nb-emerald); }
.nb-stay-change { margin-left: auto; font-size: 0.875rem; font-weight: 600; }

/* Payment page */
.nb-pay-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: var(--nb-radius);
    background: var(--nb-emerald-soft);
    color: var(--nb-forest);
    font-size: 0.9375rem;
}

.nb-pay-timer strong {
    margin-left: auto;
    font-size: 1.375rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.nb-pay-box.is-urgent .nb-pay-timer { background: #fbe8e2; color: #8f2a1c; }

.nb-pay-amount {
    font-family: var(--nb-font-body);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--nb-forest);
    line-height: 1.1;
}

.nb-pay-amount span {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nb-muted);
    margin-bottom: 0.25rem;
}

.nb-pay-msg {
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: var(--nb-radius-sm);
    font-size: 0.9375rem;
}

.nb-pay-msg--info  { background: var(--nb-st-reserved-bg); color: var(--nb-st-reserved); }
.nb-pay-msg--error { background: #fbeceb; color: #8f2a23; }
.nb-pay-msg--ok    { background: var(--nb-st-free-bg); color: var(--nb-st-free); font-weight: 600; }

.nb-pay-methods {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
    color: var(--nb-muted);
    max-width: none;
}

.nb-pay-methods .bi { color: var(--nb-emerald); }

.nb-sim-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: var(--nb-radius-sm);
    background: var(--nb-gold-soft);
    border: 1px dashed #e4bb76;
    color: #5f3f10;
    font-size: 0.875rem;
}

.nb-pay-expired { text-align: center; padding: 1rem 0.5rem; }
.nb-pay-expired p { margin: 0 auto 1.25rem; color: var(--nb-muted); }

.nb-pay-expired-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--nb-gold-soft);
    color: var(--nb-gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.nb-pay-actions { margin-top: -0.5rem; }

/* Confirmation */
.nb-done-head { text-align: center; padding-bottom: 2rem; }
.nb-done-head p { margin-left: auto; margin-right: auto; }

.nb-done-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--nb-emerald);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 0 0 8px var(--nb-emerald-soft);
}

.nb-done-badge--warn { background: var(--nb-gold); box-shadow: 0 0 0 8px var(--nb-gold-soft); }

.nb-done-code {
    display: inline-block;
    margin-top: 0.85rem !important;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--nb-line);
    color: var(--nb-forest) !important;
}

.nb-done-code strong { letter-spacing: 0.04em; color: var(--nb-emerald); }

.nb-done-account {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: var(--nb-radius);
    background: var(--nb-gold-soft);
    border: 1px solid #efd4a6;
    color: #5f3f10;
}

.nb-done-account > .bi { font-size: 1.35rem; color: var(--nb-gold-deep); }
.nb-done-account strong { display: block; color: #4d3209; }

.nb-narrow { max-width: 720px; margin: 0 auto; }

/* My bookings (customer account) */
.nb-bookings { list-style: none; margin: 0; padding: 0; }

.nb-booking {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--nb-line);
}

.nb-booking:last-child { border-bottom: 0; }

.nb-booking-main { display: flex; flex-direction: column; min-width: 0; }
.nb-booking-main strong { color: var(--nb-forest); }

.nb-booking-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--nb-gold-deep);
}

.nb-booking-dates { font-size: 0.875rem; color: var(--nb-muted); }

.nb-booking-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.nb-booking-total { font-weight: 700; color: var(--nb-forest); font-variant-numeric: tabular-nums; }

[data-nb-coupon]::placeholder { text-transform: none; }

@media (max-width: 575.98px) {
    .nb-steps { gap: 0.4rem 0.6rem; flex-wrap: nowrap; }
    .nb-steps li + li::before { width: 0.75rem; }
    .nb-steps li:not(.is-current) .nb-steps-label { display: none; }   /* phones: only the current step's name */
    .nb-pay-amount { font-size: 1.875rem; }
    .nb-checkout-sum { padding: 1rem; }
}

@media print {
    .nb-steps, .nb-pay-actions, .d-print-none { display: none !important; }
    .nb-pay { grid-template-columns: 1fr 1fr; }
    .nb-pay-side { position: static; }
}

/* ==========================================================================
   PHASE 5 — My account: overview, bookings, booking page, cancel, profile
   ========================================================================== */

.nb-account-head { padding-bottom: 1.5rem; }
.nb-account-head .nb-badge { vertical-align: middle; }

.nb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.nb-back:hover { text-decoration: underline; }

/* Account menu: a scrolling row of pills on phones and tablets */
@media (max-width: 991.98px) {
    .nb-account-nav {
        display: flex;
        gap: 0.25rem;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 0.35rem;
    }
    .nb-account-nav a,
    .nb-account-nav button { width: auto; white-space: nowrap; padding: 0.5rem 0.75rem; }
    .nb-account-nav form { flex-shrink: 0; }
}

.nb-next-when {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--nb-emerald);
}

/* Booking rows */
.nb-brows { list-style: none; margin: 0; padding: 0; }

.nb-brow {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--nb-line);
}

.nb-brow:last-child { border-bottom: 0; }

.nb-brow-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--nb-radius-sm);
    overflow: hidden;
    background: var(--nb-forest);
}

.nb-brow-media > img { width: 100%; height: 100%; object-fit: cover; }
.nb-brow-media .nb-room-placeholder img { width: 50%; }

.nb-brow-main { display: flex; flex-direction: column; min-width: 0; }

.nb-brow-title {
    font-weight: 700;
    color: var(--nb-forest);
    text-decoration: none;
}

.nb-brow-title:hover { color: var(--nb-emerald); text-decoration: underline; }

.nb-brow-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem 0.75rem;
}

@media (max-width: 575.98px) {
    .nb-brow { grid-template-columns: 64px minmax(0, 1fr); padding: 0.85rem 1rem; }
    .nb-brow-side { grid-column: 1 / -1; justify-content: flex-start; }
    .nb-brow-side .btn { margin-left: auto; }
}

.nb-toolbar--account { border-bottom: 0; margin-bottom: 0.75rem; }

/* Booking page: details left, payment right */
.nb-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.nb-detail-main { display: grid; gap: 1.25rem; min-width: 0; }

@media (min-width: 1200px) {
    .nb-detail { grid-template-columns: minmax(0, 1fr) 330px; }
    .nb-detail-side { position: sticky; top: 96px; }
}

.nb-side-title {
    font-family: var(--nb-font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.nb-side-sub {
    font-family: var(--nb-font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nb-muted);
    margin: 1rem 0 0.5rem;
}

.nb-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.25rem 1.25rem;
}

.nb-detail-grid dd { margin-bottom: 0.5rem; }
.nb-detail-wide { grid-column: 1 / -1; }

.nb-docs { border-top: 1px dashed var(--nb-line-strong); margin-top: 1rem; }

.nb-doc {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    color: var(--nb-ink);
    text-decoration: none;
    background: #fff;
}

.nb-doc:hover { border-color: #b7d3c6; background: var(--nb-emerald-soft); }
.nb-doc > .bi { font-size: 1.5rem; color: #b5452f; }
.nb-doc strong { display: block; color: var(--nb-forest); font-size: 0.9375rem; }
.nb-doc span span { font-size: 0.8125rem; color: var(--nb-muted); }

/* History */
.nb-timeline { list-style: none; margin: 0; padding: 0; position: relative; }

.nb-timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--nb-line);
}

.nb-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.4rem 0;
}

.nb-timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--nb-line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nb-emerald);
    font-size: 0.9rem;
    z-index: 1;
}

.nb-timeline li:last-child .nb-timeline-dot { border-color: var(--nb-emerald); background: var(--nb-emerald-soft); }
.nb-timeline-text { font-weight: 500; }
.nb-timeline time { font-size: 0.8125rem; color: var(--nb-muted); white-space: nowrap; }

@media (max-width: 575.98px) {
    .nb-timeline li { grid-template-columns: 32px minmax(0, 1fr); }
    .nb-timeline time { grid-column: 2; margin-top: -0.4rem; }
}

/* Refund box */
.nb-refund {
    padding: 0.9rem 1rem;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    background: #fbfcfa;
    margin-bottom: 0.75rem;
}

.nb-refund-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.nb-refund-head strong { font-size: 1.0625rem; color: var(--nb-forest); }

.nb-warn {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: var(--nb-radius);
    background: #fbeceb;
    border: 1px solid #f0c9c5;
    color: #7d241d;
}

.nb-warn > .bi { font-size: 1.25rem; line-height: 1.3; }
.nb-warn strong { color: #6a1d17; }

.nb-bill--lg { font-size: 1rem; max-width: 520px; }
.nb-bill--lg tfoot th,
.nb-bill--lg tfoot td { font-size: 1.25rem; color: var(--nb-emerald); }

.nb-form-narrow { max-width: 680px; }

/* ==========================================================================
   PHASE 6 — Front desk: reservations, new booking, check-in, bill, check-out
   ========================================================================== */

.nb-res-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.nb-res-table td { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* Hidden labels in wide tables stay inside the scroll box (no sideways page scroll on phones) */
.table-responsive { position: relative; }
.nb-today { color: #7a5114; font-weight: 600; }

.nb-due { color: #a2361f; font-weight: 700; }
.nb-due--back { color: #7a5114; }
.nb-paid { color: #0a5c43; font-weight: 600; }

.nb-stepno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    font-size: 0.8125rem;
    font-weight: 700;
}

.nb-form-section {
    font-family: var(--nb-font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nb-muted);
    margin: 1.25rem 0 0.75rem;
}

.nb-surface-body > .nb-form-section:first-child { margin-top: 0; }
.nb-surface-head:has(.nb-stepno) { flex-wrap: wrap; row-gap: 0.25rem; }
.nb-offer.is-picked .nb-free { background: #fff; }

/* New booking: search row */
.nb-desk-search {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(3, minmax(0, 0.6fr)) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
}

/* New booking: room categories */
.nb-offers { list-style: none; margin: 0; padding: 0; }

.nb-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 150px 110px;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--nb-line);
}

.nb-offer:last-child { border-bottom: 0; }
.nb-offer.is-picked { background: var(--nb-emerald-soft); }
.nb-offer.is-off .nb-offer-main strong { color: var(--nb-muted); }
.nb-offer-main strong { color: var(--nb-forest); }
.nb-offer-price { text-align: right; font-variant-numeric: tabular-nums; }
.nb-offer-go { text-align: right; }

.nb-free {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--nb-st-free-bg, #e3f1ea);
    color: #0a5c43;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.nb-free--none { background: #eef0ef; color: var(--nb-muted); }

/* Cash / UPI / card */
.nb-paymethods { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.nb-paymethod {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--nb-line-strong);
    border-radius: var(--nb-radius-sm);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.nb-paymethod .form-check-input { margin: 0; }
.nb-paymethod .bi { color: var(--nb-emerald); }
.nb-paymethod:has(input:checked) { border-color: var(--nb-emerald); background: var(--nb-emerald-soft); }

/* Bill table */
.nb-folio td, .nb-folio th { font-variant-numeric: tabular-nums; }
.nb-folio tfoot th, .nb-folio tfoot td { font-weight: 700; color: var(--nb-forest); border-top: 2px solid var(--nb-line-strong); }
.nb-folio tbody td:first-child { min-width: 200px; }

.nb-add-extra { border-top: 1px dashed var(--nb-line-strong); }

.nb-add-extra-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.7fr) minmax(0, 1.35fr) minmax(0, 0.75fr);
    gap: 0.75rem;
    align-items: end;
}

.nb-take-pay { border-top: 1px dashed var(--nb-line-strong); }

.nb-bill-due th, .nb-bill-due td { color: #a2361f !important; }

/* Payments ledger */
.nb-ledger { list-style: none; margin: 0; padding: 0; }

.nb-ledger li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--nb-line);
}

.nb-ledger li:last-child { border-bottom: 0; }

.nb-ledger-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nb-emerald-soft);
    color: var(--nb-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-ledger-amt { font-weight: 700; color: var(--nb-forest); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-ledger li.is-refund .nb-ledger-icon { background: var(--nb-gold-soft); color: var(--nb-gold-deep); }
.nb-ledger li.is-refund .nb-ledger-amt { color: #7a5114; }
.nb-ledger li.is-void strong, .nb-ledger li.is-void .nb-ledger-amt { text-decoration: line-through; color: var(--nb-muted); }
.nb-ledger li.is-void .nb-ledger-icon { background: #eef0ef; color: var(--nb-muted); }
.nb-void-note { color: #a2361f; }

.nb-void summary { font-size: 0.8125rem; color: var(--nb-muted); cursor: pointer; margin-top: 0.25rem; width: fit-content; }
.nb-void summary:hover { color: #a2361f; }
.nb-void .form-control { max-width: 280px; }

.nb-staff-note { background: var(--nb-gold-soft); border-radius: var(--nb-radius-sm); padding: 0.5rem 0.75rem; }

.nb-timeline--desk li { grid-template-columns: 32px minmax(0, 1fr) auto; }
.nb-timeline--desk .nb-timeline-dot { color: var(--nb-line-strong); font-size: 1.4rem; }
.nb-timeline--desk .nb-timeline-text { font-weight: 400; font-size: 0.9375rem; }
.nb-timeline--desk li:first-child .nb-timeline-dot { border-color: var(--nb-emerald); background: var(--nb-emerald-soft); color: var(--nb-emerald); }
.nb-timeline--desk li:last-child .nb-timeline-dot { border-color: var(--nb-line-strong); background: #fff; }

.nb-side-more { border-top: 1px dashed var(--nb-line-strong); margin-top: 1rem; padding-top: 0.75rem; }

/* Check-out checklist */
.nb-checklist { list-style: none; margin: 0 0 1rem; padding: 0; }
.nb-checklist li { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.3rem 0; color: var(--nb-muted); }
.nb-checklist li .bi { color: var(--nb-line-strong); }
.nb-checklist li.is-done { color: var(--nb-ink); }
.nb-checklist li.is-done .bi { color: var(--nb-emerald); }

/* Today on the dashboard */
.nb-today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.nb-today-list { list-style: none; margin: 0; padding: 0; }
.nb-today-list li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--nb-line); }
.nb-today-list li:last-child { border-bottom: 0; }
.nb-today-list a { font-weight: 600; text-decoration: none; }
.nb-today-big { font-size: 2rem; font-weight: 700; color: var(--nb-forest); margin: 0 0 0.25rem; line-height: 1; }

@media (max-width: 1199.98px) {
    .nb-detail--desk .nb-detail-side { order: -1; }   /* money and actions first on tablets and phones */
    .nb-desk-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-desk-search-go { grid-column: 1 / -1; }
    .nb-today-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .nb-offer { grid-template-columns: minmax(0, 1fr) auto; }
    .nb-offer-price { grid-column: 1; text-align: left; }
    .nb-add-extra-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-add-extra-item, .nb-add-extra-go { grid-column: 1 / -1; }
    .nb-ledger li { padding: 0.85rem 1rem; }
}

/* ==========================================================================
   PHASE 7 — Room calendar (day / week / month / range), rooms and dates
   ========================================================================== */

/* Bar colours: the room-status colours, solid enough to read at a glance */
:root {
    --nb-cal-reserved: #2c6d8c;
    --nb-cal-reserved-2: #4a8db0;
    --nb-cal-occupied: #a5402a;
    --nb-cal-occupied-2: #c2553d;
    --nb-cal-maint: #e9bd7a;
    --nb-cal-maint-2: #f3d7a8;
    --nb-cal-stayed: #d4ddd6;
    --nb-cal-free: #e3f1ea;
    --nb-cal-free-hover: #cfe6da;
    --nb-cal-past: #f3f5f2;
    --nb-cal-room-w: 106px;
    --nb-cal-row-h: 46px;
}

/* ---------- Head: arrows, title, filters ---------- */
.nb-cal-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.9rem;
}

.nb-cal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.nb-cal-arrow { width: 2.6rem; padding-left: 0; padding-right: 0; }

.nb-cal-title {
    margin: 0 0 0 0.5rem;
    font-family: var(--nb-font-display);
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    color: var(--nb-forest);
}

.nb-cal-title span {
    margin-left: 0.6rem;
    font-family: var(--nb-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--nb-muted);
}

.nb-cal-filter { margin-bottom: 0; align-items: flex-end; }
.nb-cal-filter .nb-filter-field { min-width: 148px; }
.nb-cal-filter .nb-cal-find { min-width: 150px; max-width: 190px; }

/* ---------- Legend ---------- */
.nb-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: var(--nb-muted);
}

.nb-cal-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }

.nb-cal-key {
    display: inline-block;
    width: 1.15rem;
    height: 0.8rem;
    border-radius: 3px;
}

.nb-cal-key--free        { background: var(--nb-cal-free); box-shadow: inset 0 0 0 1px #bcdccb; }
.nb-cal-key--reserved    { background: var(--nb-cal-reserved); }
.nb-cal-key--hold        { background: repeating-linear-gradient(135deg, var(--nb-cal-reserved) 0 3px, var(--nb-cal-reserved-2) 3px 6px); }
.nb-cal-key--occupied    { background: var(--nb-cal-occupied); }
.nb-cal-key--overdue     { background: repeating-linear-gradient(135deg, var(--nb-cal-occupied) 0 3px, var(--nb-cal-occupied-2) 3px 6px); box-shadow: inset 0 0 0 1px #6f2414; }
.nb-cal-key--maintenance { background: var(--nb-cal-maint); }
.nb-cal-key--stayed      { background: var(--nb-cal-stayed); }

/* ---------- The grid (week / month / range) ---------- */
.nb-cal-wrap {
    position: relative;
    overflow: auto;
    max-height: calc(100vh - 96px);   /* scroll the page to the calendar, then it fills the screen */
    min-height: 260px;
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    box-shadow: 0 1px 2px rgba(11, 61, 47, 0.05);
    overscroll-behavior: contain;
}

.nb-cal {
    --nb-cal-min: 34px;
    width: 100%;
    min-width: calc(var(--nb-cal-room-w) + var(--nb-cal-n) * var(--nb-cal-min));
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

.nb-cal--week { --nb-cal-min: 104px; }
.nb-cal--month { --nb-cal-min: 29px; }   /* a whole month fits a 1366 px screen */

.nb-cal th,
.nb-cal td {
    padding: 0;
    border-bottom: 1px solid #edf2ee;
    vertical-align: middle;
}

/* Day header, sticky at the top of the box */
.nb-cal thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid var(--nb-line-strong);
    text-align: center;
    line-height: 1.1;
    font-weight: 600;
}

.nb-cal-day { color: var(--nb-muted); }
.nb-cal-dow { display: block; font-size: 0.625rem; letter-spacing: 0.05em; text-transform: uppercase; }
.nb-cal-num { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--nb-forest); }
.nb-cal-mon { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--nb-gold-deep); }

.nb-cal thead th.is-weekend { background: #f1f6f0; }
.nb-cal thead th.is-past .nb-cal-num { color: var(--nb-muted); font-weight: 600; }
.nb-cal thead th.is-holiday { background: var(--nb-gold-soft); box-shadow: inset 0 -3px 0 var(--nb-gold); }
.nb-cal thead th.is-first { box-shadow: inset 2px 0 0 var(--nb-line-strong); }
.nb-cal thead th.is-today { background: var(--nb-forest); }
.nb-cal thead th.is-today .nb-cal-dow,
.nb-cal thead th.is-today .nb-cal-num { color: #fff; }
.nb-cal thead th.is-today .nb-cal-mon { color: var(--nb-gold); }

/* Room column, sticky at the left */
.nb-cal .nb-cal-room {
    position: sticky;
    left: 0;
    z-index: 2;
    width: var(--nb-cal-room-w);
    padding: 0 0.6rem;
    background: #fff;
    text-align: left;
    box-shadow: inset -1px 0 0 var(--nb-line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nb-cal thead .nb-cal-corner { z-index: 4; color: var(--nb-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

.nb-cal-room-no { display: block; font-weight: 700; color: var(--nb-forest); }
.nb-cal-room-cat { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--nb-muted); overflow: hidden; text-overflow: ellipsis; }

.nb-cal tbody tr { height: var(--nb-cal-row-h); }
.nb-cal tbody tr.is-inactive .nb-cal-room-no { color: var(--nb-muted); }

/* Building rows */
.nb-cal .nb-cal-bld th {
    height: 32px;
    padding: 0;
    background: var(--nb-bg);
    border-bottom: 1px solid var(--nb-line);
    text-align: left;
}

.nb-cal .nb-cal-bld th > span {
    position: sticky;
    left: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--nb-forest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nb-cal .nb-cal-bld th small {
    margin-left: 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--nb-muted);
}

/* Free nights */
.nb-cal-free {
    background: var(--nb-cal-free);
    box-shadow: inset -1px 0 0 #fff;
    cursor: pointer;
}

.nb-cal-free:hover { background: var(--nb-cal-free-hover); }
.nb-cal-free.is-today { background: #cfe8da; box-shadow: inset 2px 0 0 var(--nb-gold), inset -2px 0 0 var(--nb-gold); }
.nb-cal-free.is-past { background: var(--nb-cal-past); cursor: default; }
.nb-cal-free.is-off { cursor: default; }
.nb-cal-free.is-off:hover { background: var(--nb-cal-free); }
tr.is-inactive .nb-cal-free { background: var(--nb-cal-past); }
.nb-cal-free.is-picked,
.nb-cal-free.is-picked:hover { background: var(--nb-gold); box-shadow: inset 0 0 0 2px #b9812f; }

/* Bars: a stay or a block across its nights */
.nb-cal-cell { position: relative; padding: 3px 1px; }

.nb-cal-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(var(--nb-cal-row-h) - 7px);
    padding: 0 0.45rem;
    border-radius: 7px;
    overflow: hidden;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    text-decoration: none;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.nb-cal-bar:hover,
.nb-cal-bar:focus-visible { color: #fff; filter: brightness(1.1); }
.nb-cal-bar:focus-visible { outline: 3px solid var(--nb-gold); outline-offset: 1px; z-index: 2; }

.nb-cal-name { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.nb-cal-code { overflow: hidden; text-overflow: ellipsis; font-size: 0.6875rem; opacity: 0.85; }
.nb-cal-bar.is-short { padding: 0 0.3rem; }
.nb-cal-bar.is-short .nb-cal-code { display: none; }

.nb-cal-ico { position: absolute; top: 3px; left: 4px; font-size: 0.6875rem; opacity: 0.9; }
.nb-cal-ico--end { left: auto; right: 4px; }
.nb-cal-bar:has(.nb-cal-ico:not(.nb-cal-ico--end)) { padding-left: 1.15rem; }

.nb-cal-bar--reserved { background: var(--nb-cal-reserved); }
.nb-cal-bar--hold     { background: repeating-linear-gradient(135deg, var(--nb-cal-reserved) 0 7px, var(--nb-cal-reserved-2) 7px 14px); }
.nb-cal-bar--occupied { background: var(--nb-cal-occupied); }
.nb-cal-bar--overdue  { background: repeating-linear-gradient(135deg, var(--nb-cal-occupied) 0 7px, var(--nb-cal-occupied-2) 7px 14px); box-shadow: inset 0 0 0 2px #6f2414; }
.nb-cal-bar--maintenance { background: var(--nb-cal-maint); color: #4d3209; }
.nb-cal-bar--blocked     { background: repeating-linear-gradient(135deg, var(--nb-cal-maint) 0 7px, var(--nb-cal-maint-2) 7px 14px); color: #4d3209; }
.nb-cal-bar--stayed      { background: var(--nb-cal-stayed); color: #3f4f47; }
.nb-cal-bar--maintenance:hover, .nb-cal-bar--blocked:hover { color: #4d3209; }
.nb-cal-bar--stayed:hover { color: #3f4f47; }

.nb-cal-bar.is-cut-left  { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.nb-cal-bar.is-cut-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.nb-cal-bar.is-found {
    box-shadow: 0 0 0 3px var(--nb-gold), 0 0 0 6px rgba(226, 172, 94, 0.35);
    z-index: 1;
}

/* Tonight, across a bar: a light gold band */
.nb-cal-cell.has-today::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100% - 2px) * var(--t) / var(--s) + 1px);
    width: calc((100% - 2px) / var(--s));
    background: rgba(255, 214, 140, 0.26);
    box-shadow: inset 2px 0 0 var(--nb-gold), inset -2px 0 0 var(--nb-gold);
    pointer-events: none;
}

/* Free rooms per night */
.nb-cal tfoot th,
.nb-cal tfoot td {
    height: 34px;
    background: var(--nb-bg);
    border-bottom: 1px solid var(--nb-line);
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--nb-st-free);
}

.nb-cal tfoot .nb-cal-sum:first-child th,
.nb-cal tfoot .nb-cal-sum:first-child td { border-top: 2px solid var(--nb-line-strong); }
.nb-cal tfoot th.nb-cal-room { background: var(--nb-bg); color: var(--nb-forest); }
.nb-cal tfoot td.is-zero { color: var(--nb-st-occupied); }
.nb-cal tfoot td.is-past { color: var(--nb-muted); font-weight: 500; }
.nb-cal tfoot td.is-today { box-shadow: inset 2px 0 0 var(--nb-gold), inset -2px 0 0 var(--nb-gold); }
.nb-cal tfoot .nb-cal-sum--cat th,
.nb-cal tfoot .nb-cal-sum--cat td { height: 28px; font-weight: 600; font-size: 0.75rem; background: #fafcf9; }

/* What to do with the free nights picked */
.nb-cal-pick {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1040;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.1rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 0.9rem 0.75rem 1.1rem;
    border-radius: 14px;
    background: var(--nb-forest);
    color: #fff;
    box-shadow: 0 12px 32px rgba(11, 61, 47, 0.35);
    transform: translateX(-50%);
}

.nb-cal-pick-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nb-cal-pick-text strong { font-size: 0.9375rem; }
.nb-cal-pick-text span { font-size: 0.8125rem; color: #d8e6df; }
.nb-cal-pick-text small { font-size: 0.75rem; color: #a9c3b7; }
.nb-cal-pick-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.nb-cal-pick .btn-primary { background: var(--nb-gold); border-color: var(--nb-gold); color: #2b1d05; font-weight: 600; }
.nb-cal-pick .btn-primary:hover { background: var(--nb-gold-hover); border-color: var(--nb-gold-hover); color: #2b1d05; }
.nb-cal-pick .btn-outline-primary { border-color: #8fb3a3; color: #fff; }
.nb-cal-pick .btn-outline-primary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Day view: one tile per room ---------- */
.nb-day-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.nb-day-counts li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--nb-line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.8125rem;
    color: var(--nb-muted);
}

.nb-day-counts strong { font-size: 0.9375rem; color: var(--nb-ink); }
.nb-day-counts li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; display: none; }
.nb-day-counts .is-free::before     { display: inline-block; background: var(--nb-st-free-dot); }
.nb-day-counts .is-reserved::before { display: inline-block; background: var(--nb-cal-reserved); }
.nb-day-counts .is-occupied::before { display: inline-block; background: var(--nb-cal-occupied); }
.nb-day-counts .is-maint::before    { display: inline-block; background: var(--nb-st-maint-dot); }

.nb-day-bld { margin-bottom: 1.4rem; }
.nb-day-bld:last-child { margin-bottom: 0; }

.nb-day-bld-title {
    margin: 0 0 0.6rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nb-forest);
}

.nb-day-bld-title small { margin-left: 0.35rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--nb-muted); }

.nb-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 0.65rem;
}

.nb-tile {
    --tone: var(--nb-st-free-dot);
    --tone-text: var(--nb-st-free);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 118px;
    padding: 0.6rem 0.75rem 0.65rem;
    border: 1px solid var(--nb-line);
    border-top: 4px solid var(--tone);
    border-radius: 10px;
    background: #fff;
}

.nb-tile--free        { background: #f5fbf8; }
.nb-tile--reserved    { --tone: var(--nb-cal-reserved); --tone-text: var(--nb-cal-reserved); }
.nb-tile--hold        { --tone: var(--nb-cal-reserved-2); --tone-text: var(--nb-cal-reserved); }
.nb-tile--occupied    { --tone: var(--nb-cal-occupied); --tone-text: var(--nb-cal-occupied); background: #fdf6f3; }
.nb-tile--overdue     { --tone: #6f2414; --tone-text: #8a2b17; background: #fbe8e2; }
.nb-tile--maintenance,
.nb-tile--blocked     { --tone: #d59a45; --tone-text: var(--nb-gold-deep); background: var(--nb-gold-soft); }
.nb-tile--stayed      { --tone: #b8c5bb; --tone-text: var(--nb-muted); background: #fafbfa; }
.nb-tile.is-inactive  { --tone: #c6d3c8; --tone-text: var(--nb-muted); background: var(--nb-cal-past); }
.nb-tile.is-found     { box-shadow: 0 0 0 3px var(--nb-gold); }

.nb-tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.nb-tile-no { flex-shrink: 0; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; color: var(--nb-forest); }
.nb-tile-cat { min-width: 0; overflow: hidden; font-size: 0.6875rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; color: var(--nb-muted); }

.nb-tile-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

a.nb-tile-main::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
a.nb-tile-main:hover .nb-tile-guest { color: var(--nb-emerald); text-decoration: underline; }
a.nb-tile-main:focus-visible { outline: none; }
a.nb-tile-main:focus-visible::after { box-shadow: 0 0 0 3px var(--nb-gold); }

.nb-tile-state { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tone-text); }
.nb-tile-guest { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--nb-ink); }
.nb-tile-meta { font-size: 0.75rem; color: var(--nb-muted); }

.nb-tile-links { display: flex; gap: 0.9rem; margin-top: auto; padding-top: 0.35rem; }
.nb-tile-links a { font-size: 0.8125rem; font-weight: 600; }

.nb-tile-out {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--nb-line-strong);
    overflow: hidden;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--nb-muted);
    text-decoration: none;
}

.nb-tile-out:hover { color: var(--nb-emerald); }

/* Dashboard: rooms tonight */
.nb-day-bld--compact .nb-day-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.nb-day-bld--compact .nb-tile { min-height: 96px; padding: 0.5rem 0.6rem; }
.nb-day-bld--compact .nb-day-bld-title { margin-bottom: 0.45rem; }

.nb-cal-links { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ---------- Booking page additions ---------- */
.nb-id-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; margin-top: 0.15rem; }
.nb-id-actions form { display: inline; }
.nb-id-actions .nb-void { flex-basis: 100%; }
.nb-folio tr.nb-folio-less td { color: var(--nb-st-free); }
.nb-folio td.text-end { white-space: nowrap; }
.nb-callout--action form { display: block; }

/* ---------- Rooms and dates page ---------- */
.nb-plan { list-style: none; margin: 0; padding: 0; }
.nb-plan > li { padding: 0.75rem 0; border-bottom: 1px solid var(--nb-line); }
.nb-plan > li:last-child { border-bottom: 0; padding-bottom: 0; }
.nb-plan > li:first-child { padding-top: 0; }
.nb-plan-slot { display: block; margin-bottom: 0.35rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--nb-muted); }

.nb-plan-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.nb-plan-part {
    display: inline-flex;
    flex-direction: column;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--nb-line);
    border-left: 4px solid var(--nb-cal-reserved);
    border-radius: 8px;
    background: #fff;
    line-height: 1.25;
}

.nb-plan-part strong { color: var(--nb-forest); }
.nb-plan-part span { font-size: 0.75rem; color: var(--nb-muted); }
.nb-plan-part.is-staying { border-left-color: var(--nb-cal-occupied); }
.nb-plan-part.is-other { border-left-color: var(--nb-gold); }
.nb-plan-arrow { color: var(--nb-muted); }

.nb-room-pick { display: grid; gap: 0.9rem; }
.nb-room-pick-cat { margin: 0; padding: 0; border: 0; }
.nb-room-pick-cat legend {
    float: none;
    width: auto;
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--nb-forest);
}

.nb-room-pick-cat legend span { margin-left: 0.35rem; font-weight: 500; color: var(--nb-muted); }
.nb-room-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.45rem; }

.nb-room-opt {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--nb-line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.nb-room-opt .form-check-input { margin: 0.15rem 0 0; flex-shrink: 0; }
.nb-room-opt strong { display: block; font-size: 0.875rem; color: var(--nb-forest); }
.nb-room-opt small { display: block; font-size: 0.75rem; color: var(--nb-muted); }
.nb-room-opt:hover { border-color: var(--nb-emerald); }
.nb-room-opt:has(input:checked) { border-color: var(--nb-emerald); background: var(--nb-emerald-soft); box-shadow: inset 0 0 0 1px var(--nb-emerald); }
.nb-room-opt:has(input:focus-visible) { outline: 3px solid var(--nb-gold); outline-offset: 1px; }
.nb-room-opt.is-reserved small { color: var(--nb-cal-reserved); }
.nb-room-opt.is-disabled { cursor: not-allowed; background: var(--nb-cal-past); opacity: 0.75; }
.nb-room-opt.is-disabled:hover { border-color: var(--nb-line); }
.nb-room-opt--same { border-style: dashed; }

.nb-cal-wrap--strip { max-height: 420px; }
.nb-cal-wrap--strip .nb-cal { --nb-cal-min: 40px; }
.nb-cal tr.is-mine .nb-cal-room { box-shadow: inset 4px 0 0 var(--nb-gold), inset -1px 0 0 var(--nb-line); }

@media (max-width: 767.98px) {
    :root { --nb-cal-room-w: 86px; --nb-cal-row-h: 44px; }
    .nb-cal-wrap { max-height: 72vh; }
    .nb-cal .nb-cal-room { padding: 0 0.4rem; }
    .nb-cal-room-cat { font-size: 0.625rem; }
    .nb-cal--week { --nb-cal-min: 76px; }
    .nb-cal-title { flex-basis: 100%; margin: 0.35rem 0 0; font-size: 1.2rem; }
    .nb-cal-filter .nb-cal-find { max-width: none; }
    .nb-cal-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.6rem; width: 100%; }
    .nb-cal-filter .nb-filter-field { min-width: 0; }
    .nb-cal-filter > .btn { grid-column: 1 / -1; }
    .nb-cal-filter .form-label { font-size: 0.75rem; }
    .nb-cal-pick { left: 1rem; right: 1rem; bottom: 0.75rem; width: auto; transform: none; }
    .nb-cal-pick-actions { width: 100%; }
    .nb-cal-pick-actions .btn:not([data-pick-close]) { flex: 1 1 auto; }
    .nb-day-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 0.5rem; }
    .nb-tile { min-height: 108px; padding: 0.55rem 0.6rem; }
    .nb-room-pick-grid { grid-template-columns: 1fr; }
}

@media print {
    .nb-cal-head form, .nb-cal-pick, .nb-toolbar, .nb-panel-head .btn { display: none !important; }
    .nb-cal-wrap { max-height: none; overflow: visible; border: 0; }
    .nb-cal thead th, .nb-cal .nb-cal-room { position: static; }
}

/* ==========================================================================
   PHASE 8 — Reviews (stars, cards, summary, form) and support tickets
   ========================================================================== */
:root {
    --nb-star: #e2a33f;
    --nb-star-off: #cfd8d1;
}

/* ---------- Stars ---------- */
.nb-stars { display: inline-flex; gap: 0.1rem; color: var(--nb-star); font-size: 1rem; line-height: 1; vertical-align: -0.1em; }
.nb-stars--sm { font-size: 0.8125rem; }
.nb-stars--lg { font-size: 1.35rem; gap: 0.15rem; }

.nb-rating-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--nb-muted); }
.nb-rating-chip strong { color: var(--nb-forest); }
.nb-room-body .nb-rating-chip { margin-top: -0.2rem; }
.nb-room-facts-rating a { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; text-decoration: none; }
.nb-room-facts-rating a:hover span { text-decoration: underline; }
.nb-room-facts-rating strong { color: var(--nb-forest); }
.nb-room-facts .nb-stars .bi { color: var(--nb-star); }

/* ---------- Summary: average, bars, quick ratings ---------- */
.nb-rsum { display: grid; gap: 1.25rem 2rem; grid-template-columns: auto minmax(0, 1fr); align-items: start; margin-bottom: 1.5rem; }
.nb-rsum-score { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; min-width: 128px; }
.nb-rsum-avg { font-family: var(--nb-font-display); font-size: 2.75rem; line-height: 1; color: var(--nb-forest); font-weight: 700; }
.nb-rsum-count { font-size: 0.875rem; color: var(--nb-muted); }
.nb-rsum-bars, .nb-rsum-aspects { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.875rem; }
.nb-rsum-bars li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2rem; align-items: center; gap: 0.6rem; }
.nb-rsum-label { color: var(--nb-muted); white-space: nowrap; }
.nb-rsum-label .bi { color: var(--nb-star); font-size: 0.75rem; }
.nb-rsum-n { text-align: right; color: var(--nb-muted); font-variant-numeric: tabular-nums; }
.nb-rsum-bar { display: block; height: 8px; border-radius: 99px; background: #edf1ec; overflow: hidden; }
.nb-rsum-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--nb-star); }
.nb-rsum-aspects { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.55rem 2rem; padding-top: 1rem; border-top: 1px solid var(--nb-line); }
.nb-rsum-aspects li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 1.8rem; align-items: center; gap: 0.6rem; }
.nb-rsum-aspects .nb-rsum-bar > span { background: var(--nb-emerald); }
.nb-rsum-aspects strong { text-align: right; color: var(--nb-forest); font-variant-numeric: tabular-nums; }
.nb-reviews-side .nb-rsum { grid-template-columns: 1fr; }

/* ---------- One review ---------- */
.nb-review {
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: var(--nb-radius);
    padding: 1.15rem 1.25rem;
    height: 100%;
}
.nb-room-reviews .nb-review, .nb-reviews-main .nb-review { height: auto; margin-bottom: 1rem; }
.nb-review-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.nb-review-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--nb-emerald-soft); color: var(--nb-emerald); font-weight: 700; font-size: 0.875rem;
}
.nb-review-who { min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.nb-review-who strong { display: block; color: var(--nb-forest); }
.nb-review-who span { font-size: 0.8125rem; color: var(--nb-muted); }
.nb-review-verified { font-size: 0.75rem; font-weight: 600; color: var(--nb-emerald); white-space: nowrap; }
.nb-review-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; font-weight: 600; font-size: 0.875rem; color: var(--nb-forest); }
.nb-review-title { font-family: var(--nb-font-body); font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.3rem; color: var(--nb-ink); }
.nb-review-text { margin: 0 0 0.6rem; color: var(--nb-ink); overflow-wrap: anywhere; }
.nb-review-aspects { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0 0 0.25rem; font-size: 0.8125rem; color: var(--nb-muted); }
.nb-review-aspects li { background: var(--nb-bg); border-radius: 99px; padding: 0.15rem 0.6rem; }
.nb-review-aspects strong { color: var(--nb-forest); margin-left: 0.15rem; }
.nb-review-reply { margin-top: 0.75rem; padding: 0.7rem 0.9rem; background: var(--nb-emerald-soft); border-left: 3px solid var(--nb-emerald); border-radius: 0 var(--nb-radius-sm) var(--nb-radius-sm) 0; font-size: 0.9375rem; }
.nb-review-reply strong { display: inline-block; color: var(--nb-emerald); font-size: 0.875rem; margin-bottom: 0.2rem; margin-right: 0.4rem; }

/* Home page */
.nb-section--reviews { background: #fff; border-top: 1px solid var(--nb-line); }
.nb-section--reviews .nb-review { background: var(--nb-bg); border-color: transparent; }
.nb-section-head .nb-reviews-overall { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; max-width: none; }
.nb-reviews-overall strong { color: var(--nb-forest); }

/* Reviews page */
.nb-reviews-layout { display: grid; gap: 1.5rem; }
.nb-reviews-filter { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.nb-reviews-filter > div { flex: 0 1 220px; }
@media (min-width: 992px) {
    .nb-reviews-layout { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
    .nb-reviews-side { position: sticky; top: 90px; }
}

/* ---------- Guest's own review + "How was your stay?" ---------- */
.nb-myreview-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.nb-review-prompt {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
    padding: 1rem 1.15rem; background: var(--nb-gold-soft); border: 1px solid #f0dcb6; border-radius: var(--nb-radius);
}
.nb-review-prompt-text strong { display: block; color: var(--nb-forest); font-size: 1.0625rem; }
.nb-review-prompt-text span { font-size: 0.875rem; color: #6b4612; }
.nb-review-prompt-stars { display: inline-flex; gap: 0.2rem; }
.nb-review-prompt-stars a { font-size: 1.85rem; line-height: 1; color: #d9c8a6; text-decoration: none; padding: 0.1rem; border-radius: 6px; transition: color 0.12s, transform 0.12s; }
.nb-review-prompt-stars:hover a { color: var(--nb-star); }
.nb-review-prompt-stars a:hover ~ a { color: #d9c8a6; }
.nb-review-prompt-stars a:hover { transform: scale(1.12); }
.nb-review-prompt-stars a:focus-visible { outline: 2px solid var(--nb-emerald); outline-offset: 2px; }

/* ---------- Review form: stars to choose ---------- */
.nb-review-form-stay { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 1rem; margin-bottom: 1.25rem; background: var(--nb-bg); border-radius: var(--nb-radius-sm); }
.nb-review-form-stay > .bi { font-size: 1.5rem; color: var(--nb-emerald); }
.nb-rate-field { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.nb-rate-legend { float: none; width: auto; font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--nb-ink); }
.nb-rate-field--lg .nb-rate-legend { font-size: 1.125rem; font-family: var(--nb-font-body); color: var(--nb-forest); }
.nb-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.nb-rate-stars { position: relative; display: inline-flex; gap: 0.1rem; }
.nb-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nb-rate-stars label { cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 0.15rem; color: var(--nb-star-off); border-radius: 6px; transition: color 0.1s, transform 0.1s; }
.nb-rate--lg .nb-rate-stars label { font-size: 2.35rem; }
/* chosen: every star up to the one picked */
.nb-rate-stars:has(input:checked) label { color: var(--nb-star); }
.nb-rate-stars.nb-rate-stars input:checked + label ~ label { color: var(--nb-star-off); }
/* pointer over: preview */
.nb-rate-stars:hover label { color: var(--nb-star) !important; }
.nb-rate-stars label:hover ~ label { color: var(--nb-star-off) !important; }
.nb-rate-stars label:hover { transform: scale(1.1); }
.nb-rate input:focus-visible + label { outline: 2px solid var(--nb-emerald); outline-offset: 1px; }
.nb-rate-word { font-size: 0.9375rem; font-weight: 600; color: var(--nb-gold-deep); min-width: 5.5rem; }
.nb-rate-skip { cursor: pointer; font-size: 0.8125rem; padding: 0.25rem 0.7rem; border: 1px solid var(--nb-line-strong); border-radius: 99px; color: var(--nb-muted); }
.nb-rate input:checked + .nb-rate-skip { background: var(--nb-emerald-soft); border-color: var(--nb-emerald); color: var(--nb-emerald); font-weight: 600; }
.nb-rate-error { color: var(--bs-form-invalid-color, #b02a37); font-size: 0.875rem; margin-top: 0.25rem; }
.nb-review-aspect-grid { display: grid; gap: 0 1.5rem; padding: 1rem 1rem 0.1rem; margin-bottom: 1.25rem; border: 1px solid var(--nb-line); border-radius: var(--nb-radius-sm); }
.nb-review-aspect-grid .nb-rate-word { min-width: 0; font-weight: 500; font-size: 0.8125rem; }
@media (min-width: 768px) { .nb-review-aspect-grid { grid-template-columns: 1fr 1fr; } }
.nb-review-form-note { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--nb-muted); margin: 0.25rem 0 1.25rem; }
.nb-review-form-note .bi { color: var(--nb-emerald); }
.nb-count { color: var(--nb-muted); }
.nb-count.is-short { color: var(--nb-gold-deep); font-weight: 600; }

/* ---------- Staff: reviews to moderate ---------- */
.nb-review-score { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); font-size: 0.875rem; color: var(--nb-muted); }
.nb-review-score strong { color: var(--nb-forest); font-size: 1rem; }
.nb-mod-list { display: grid; gap: 1rem; }
.nb-mod { padding: 1.1rem 1.25rem; margin: 0; }
.nb-mod-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.nb-mod-rating { display: flex; align-items: center; gap: 0.5rem; color: var(--nb-forest); }
.nb-mod-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nb-mod-who { margin: 0 0 0.6rem; font-size: 0.9375rem; }
.nb-mod-title { font-family: var(--nb-font-body); font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.25rem; }
.nb-mod-text { margin: 0 0 0.6rem; overflow-wrap: anywhere; }
.nb-mod-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--nb-line); }
.nb-mod-form { margin-top: 0.75rem; padding: 0.9rem; background: var(--nb-bg); border-radius: var(--nb-radius-sm); }
.nb-mod-form-remove { margin-top: 0.4rem; }

/* ---------- Badges in menus ---------- */
.nb-side-badge, .nb-nav-badge {
    margin-left: auto; min-width: 1.4rem; height: 1.4rem; padding: 0 0.4rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 99px; font-size: 0.75rem; font-weight: 700; line-height: 1;
}
.nb-side-badge { background: var(--nb-gold); color: var(--nb-forest); }
.nb-nav-badge { background: var(--nb-emerald); color: #fff; position: relative; }

/* ---------- Dashboard: guest care ---------- */
.nb-stat--care { box-shadow: inset 4px 0 0 var(--nb-line-strong); }
.nb-stat--care.is-due { box-shadow: inset 4px 0 0 var(--nb-gold); }
.nb-stat--care.is-due .nb-stat-icon { background: var(--nb-gold-soft); color: var(--nb-gold-deep); }

/* ---------- Contact page ---------- */
.nb-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.nb-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.nb-contact-list li { display: flex; gap: 0.65rem; }
.nb-contact-list .bi { color: var(--nb-emerald); font-size: 1.05rem; }
.nb-thanks { padding-top: 2rem; padding-bottom: 2rem; }
.nb-thanks p { margin-left: auto; margin-right: auto; }
.nb-thanks-icon {
    width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--nb-emerald-soft); color: var(--nb-emerald); font-size: 2rem;
}
.nb-holiday--green { background: var(--nb-emerald-soft); border-color: #cfe3d8; }
.nb-holiday--green > .bi { color: var(--nb-emerald); }
.nb-holiday--green strong { color: var(--nb-forest); }

/* ---------- Tickets ---------- */
.nb-ticket-layout { display: grid; gap: 1.5rem; }
@media (min-width: 992px) {
    .nb-ticket-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
    .nb-ticket-side { position: sticky; top: 90px; }
}
@media (max-width: 991.98px) {
    .nb-ticket-side { order: -1; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .nb-ticket-layout--account { grid-template-columns: 1fr; }
    .nb-ticket-layout--account .nb-ticket-side { position: static; order: -1; }
}
.nb-ticket-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem 1rem; margin: 0; }
.nb-ticket-facts dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nb-muted); }
.nb-ticket-facts dd { margin: 0.1rem 0 0; font-weight: 600; color: var(--nb-ink); }
.nb-ticket-done { display: flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--nb-line); }
.nb-ticket-subject { overflow-wrap: anywhere; }

.nb-ticket-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); overflow: hidden; }
.nb-ticket-list li + li { border-top: 1px solid var(--nb-line); }
.nb-ticket-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; color: inherit; text-decoration: none; }
.nb-ticket-list a:hover { background: var(--nb-bg); }
.nb-ticket-list-main { min-width: 0; }
.nb-ticket-list-main strong { display: block; color: var(--nb-forest); overflow-wrap: anywhere; }
.nb-ticket-list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex-shrink: 0; }
.nb-ticket-list li.is-unread { box-shadow: inset 4px 0 0 var(--nb-emerald); }

/* the conversation */
.nb-thread { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.nb-msg { display: flex; }
.nb-msg-bubble { max-width: min(640px, 88%); background: #fff; border: 1px solid var(--nb-line); border-radius: 14px; padding: 0.75rem 1rem 0.8rem; }
.nb-msg--mine { justify-content: flex-end; }
.nb-msg--mine .nb-msg-bubble { background: var(--nb-emerald-soft); border-color: #cfe3d8; border-bottom-right-radius: 4px; }
.nb-msg--theirs .nb-msg-bubble { border-bottom-left-radius: 4px; }
.nb-msg--note { justify-content: flex-end; }
.nb-msg--note .nb-msg-bubble { background: var(--nb-gold-soft); border: 1px dashed #e5c68f; border-bottom-right-radius: 4px; }
.nb-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin-bottom: 0.3rem; font-size: 0.8125rem; }
.nb-msg-head strong { color: var(--nb-forest); }
.nb-msg-head time { color: var(--nb-muted); margin-left: auto; }
.nb-msg-body { overflow-wrap: anywhere; }
.nb-msg-files { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nb-msg-files a { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; padding: 0.3rem 0.65rem; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--nb-line); border-radius: 99px; font-size: 0.8125rem; text-decoration: none; color: var(--nb-ink); }
.nb-msg-files a:hover { border-color: var(--nb-emerald); color: var(--nb-emerald); }
.nb-msg-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.nb-msg-files small { color: var(--nb-muted); }
.nb-msg-files .bi-file-earmark-pdf { color: #b5452f; }
.nb-msg-files .bi-file-earmark-image { color: var(--nb-emerald); }
.nb-msg--system { justify-content: center; }
.nb-msg-system { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35rem; font-size: 0.8125rem; color: var(--nb-muted); background: #eef2ee; border-radius: 99px; padding: 0.25rem 0.85rem; text-align: center; }
.nb-msg-system time { opacity: 0.8; }
.nb-file-list { list-style: none; padding: 0; margin: 0.4rem 0 0; font-size: 0.8125rem; color: var(--nb-muted); }
.nb-file-list li.is-bad { color: #b02a37; }
.nb-ticket-table td:first-child { min-width: 240px; }
.nb-ticket-table td:nth-child(2) .fw-semibold { white-space: nowrap; }
.nb-reply-options { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
form.is-note textarea.form-control, form.is-note textarea.form-control:focus { background: var(--nb-gold-soft); border-color: #e5c68f; }

@media (max-width: 575.98px) {
    .nb-rsum { grid-template-columns: 1fr; }
    .nb-rsum-score { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
    .nb-rsum-avg { font-size: 2.25rem; }
    .nb-review-head { flex-wrap: wrap; }
    .nb-review-verified { flex-basis: 100%; order: 3; }
    .nb-rate--lg .nb-rate-stars label { font-size: 2.1rem; }
    .nb-review-prompt-stars a { font-size: 2.1rem; }
    .nb-msg-bubble { max-width: 94%; }
    .nb-ticket-list a { flex-direction: column; gap: 0.4rem; }
    .nb-ticket-list-side { flex-direction: row; align-items: center; justify-content: space-between; }
    .nb-reviews-filter > div { flex: 1 1 140px; }
}

/* ==========================================================================
   PHASE 9 — Admin: reports, figures, activity log, customers, staff, settings
   ========================================================================== */

/* Wide tables inside a detail page scroll in their box instead of widening the page */
.nb-detail-main { grid-template-columns: minmax(0, 1fr); }

/* ---------- Dates (chips + from–to) ---------- */
.nb-period { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1.25rem; }
.nb-surface-head .nb-period { margin-bottom: 0; }
.nb-period-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nb-period-chips a {
    padding: 0.35rem 0.8rem; border: 1px solid var(--nb-line-strong); border-radius: 99px;
    font-size: 0.875rem; font-weight: 600; color: var(--nb-ink); text-decoration: none; background: #fff;
}
.nb-period-chips a:hover { border-color: var(--nb-emerald); color: var(--nb-emerald); }
.nb-period-chips a.active { background: var(--nb-emerald); border-color: var(--nb-emerald); color: #fff; }
.nb-period-custom { display: flex; align-items: center; gap: 0.4rem; }
.nb-period-custom input { width: auto; min-width: 0; }

/* ---------- Headline figure + KPI tiles ---------- */
.nb-report-hero { padding: 1.25rem 1.4rem; margin-bottom: 1.5rem; }
.nb-report-hero-main { display: flex; flex-direction: column; gap: 0.2rem; }
.nb-report-hero-label { font-size: 0.9375rem; font-weight: 600; color: var(--nb-muted); }
.nb-report-hero-value {
    font-family: var(--nb-font-body); font-weight: 600; font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.05; color: var(--nb-forest); letter-spacing: -0.01em;
}
.nb-report-hero-sub { font-size: 0.875rem; color: var(--nb-muted); }
.nb-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; margin: 1.25rem 0 0; }
.nb-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
@media (min-width: 1500px) { .nb-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nb-kpi { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.8rem 0.95rem; background: var(--nb-bg); border-radius: var(--nb-radius-sm); min-width: 0; }
.nb-kpi dt { font-size: 0.8125rem; font-weight: 500; color: var(--nb-muted); }
.nb-kpi dd { margin: 0; font-family: var(--nb-font-body); font-size: 1.375rem; font-weight: 600; color: var(--nb-ink); line-height: 1.2; overflow-wrap: anywhere; }
.nb-meter { display: block; height: 6px; border-radius: 99px; background: var(--nb-emerald-soft); overflow: hidden; min-width: 60px; }
.nb-meter > span { display: block; height: 100%; border-radius: 99px; background: var(--nb-emerald); }
.nb-kpi .nb-meter { margin-top: 0.3rem; }
.nb-meter-row { display: flex; align-items: center; gap: 0.6rem; }
.nb-meter-row .nb-meter { flex: 1 1 auto; }
.nb-meter-row > span:last-child { min-width: 3.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.nb-meter-col { min-width: 170px; }
.nb-dash-figures { margin-bottom: 1.5rem; }
.nb-dash-figures .nb-surface-head { flex-wrap: wrap; gap: 0.6rem; }
.nb-dash-figures-grid { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 1200px) { .nb-dash-figures-grid { grid-template-columns: minmax(260px, 1fr) 2.2fr; } }

/* ---------- Number tables ---------- */
.nb-num-table td, .nb-num-table tfoot th { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-num-table tbody th { font-weight: 600; }
.nb-num-table tfoot th, .nb-num-table tfoot td { font-weight: 700; border-top: 2px solid var(--nb-line-strong); border-bottom: 0; }
.nb-row-weekend th, .nb-row-weekend td { background: #fafbf8; }
.nb-daily > summary { list-style: none; cursor: pointer; }
.nb-daily > summary::-webkit-details-marker { display: none; }
.nb-daily > summary h2::after { content: "\25BE"; margin-left: 0.4rem; font-size: 0.8em; color: var(--nb-muted); }
.nb-daily:not([open]) > summary { border-bottom: 0; }

/* ---------- Downloads ---------- */
.nb-downloads { list-style: none; margin: 0; padding: 0; }
.nb-downloads li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding: 0.85rem 1.25rem; }
.nb-downloads li + li { border-top: 1px solid var(--nb-line); }
.nb-downloads strong { color: var(--nb-forest); }
.nb-downloads-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Resort details still empty (Settings, admin dashboard) */
.nb-callout--warn { background: #fbeceb; color: #7a201a; border-left: 4px solid #b4372f; }
.nb-callout--warn > .bi { color: #b4372f; }
.nb-callout--warn a { color: #7a201a; font-weight: 600; }

/* ---------- Activity log ---------- */
.nb-log-filter .nb-filter-field { min-width: 150px; }
.nb-log-table td { vertical-align: top; }
.nb-log-desc { min-width: 240px; overflow-wrap: anywhere; }
.nb-log-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 6px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.nb-log-badge--ok     { background: #e3f1ea; color: #0a5c43; }
.nb-log-badge--info   { background: #eaf2f6; color: #2a6680; }
.nb-log-badge--warn   { background: var(--nb-gold-soft); color: #7a5114; }
.nb-log-badge--danger { background: #fbeceb; color: #9b2c25; }
.nb-log-badge--off    { background: #eef0ef; color: #5e6863; }
.nb-diff th { width: 28%; font-weight: 600; }
.nb-diff td { overflow-wrap: anywhere; }
.nb-diff-old { color: #9b2c25; text-decoration: line-through; text-decoration-color: rgba(155, 44, 37, 0.35); }
.nb-diff-new { color: #0a5c43; font-weight: 600; }

/* ---------- Staff and roles ---------- */
.nb-role-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.8125rem; font-weight: 700; }
.nb-role-pill--admin { background: var(--nb-forest); color: var(--nb-gold); }
.nb-role-pill--staff { background: var(--nb-emerald-soft); color: var(--nb-emerald); }
.nb-choice-check { padding: 0.55rem 0.75rem 0.55rem 2.2rem; border: 1px solid var(--nb-line); border-radius: var(--nb-radius-sm); margin-bottom: 0.5rem; }
.nb-choice-check:has(input:checked) { border-color: var(--nb-emerald); background: var(--nb-emerald-soft); }
fieldset:disabled .nb-choice-check { opacity: 0.7; }
.nb-code { font-size: 0.9375rem; font-weight: 700; color: var(--nb-forest); background: var(--nb-bg); padding: 0.1rem 0.45rem; border-radius: 4px; }

/* ---------- Settings ---------- */
.nb-settings { display: grid; gap: 1.5rem; }
.nb-settings-form > .nb-surface { margin-bottom: 1.25rem; scroll-margin-top: 80px; }
.nb-settings-intro { color: var(--nb-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.nb-settings-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nb-settings-nav a { padding: 0.35rem 0.75rem; border-radius: var(--nb-radius-sm); font-size: 0.875rem; font-weight: 600; color: var(--nb-ink); text-decoration: none; background: #fff; border: 1px solid var(--nb-line); }
.nb-settings-nav a:hover { color: var(--nb-emerald); border-color: #b7d3c6; }
.nb-settings-save {
    position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem 1rem;
    padding: 0.85rem 1rem; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--nb-line); border-radius: var(--nb-radius); box-shadow: 0 -6px 18px rgba(11, 61, 47, 0.06);
}
@media (min-width: 1200px) {
    .nb-settings { grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
    .nb-settings-nav { position: sticky; top: 84px; flex-direction: column; }
    .nb-settings-nav a { border: 0; background: none; padding: 0.45rem 0.6rem; }
}
.nb-slabs { border: 0; padding: 0; margin: 0; }
.nb-slab-row { display: grid; grid-template-columns: 5.5rem minmax(0, 11rem) 4rem minmax(0, 8rem); align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; }
.nb-slab-row > label { font-size: 0.9375rem; }
.nb-slab-row > span { font-size: 0.875rem; color: var(--nb-muted); }

@media (max-width: 575.98px) {
    .nb-period-custom { width: 100%; }
    .nb-period-custom input { flex: 1 1 0; }
    .nb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-kpi dd { font-size: 1.15rem; }
    .nb-slab-row { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 6.5rem); }
    .nb-slab-row > span { display: none; }
    .nb-slab-row > span.nb-slab-gap { display: block; }
    .nb-downloads li { padding: 0.8rem 1rem; }
    .nb-downloads-actions { width: 100%; }
    .nb-downloads-actions .btn { flex: 1 1 auto; }
    .nb-log-filter .nb-filter-field { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
    .nb-log-filter .nb-filter-field--grow { flex-basis: 100%; }
    .nb-settings-save > span { display: none; }
    .nb-settings-save .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   PHASE 10 — Analytics and website visitors
   ========================================================================== */

/* Two charts side by side on wide screens, one below the other otherwise */
.nb-analytics-grid { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) {
    .nb-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-analytics-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.nb-analytics-grid > .nb-surface { margin-bottom: 0; min-width: 0; }
.nb-analytics-top, .nb-analytics-wide { margin-bottom: 1.5rem; }
.nb-analytics-top .nb-surface-head, .nb-analytics-wide .nb-surface-head { flex-wrap: wrap; gap: 0.4rem 1rem; }
.nb-kpis--analytics { margin-top: 0; }
@media (min-width: 1400px) { .nb-kpis--analytics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nb-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.25rem; }
.nb-analytics-sub { font-family: var(--nb-font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--nb-ink); margin: 1.1rem 0 0.6rem; }

/* Change against the year before: arrow + words, never colour alone */
.nb-delta { display: block; font-size: 0.8125rem; font-weight: 600; margin-top: 0.15rem; line-height: 1.35; }
.nb-delta > .bi { margin-right: 0.15rem; }
.nb-delta--good { color: #17663a; }
.nb-delta--bad { color: #9b2c25; }
.nb-delta--same { color: var(--nb-muted); }
.nb-delta-vs { font-weight: 400; color: var(--nb-muted); }

/* Charts: fixed height includes the axis labels; the table is one click away */
.nb-chart { position: relative; height: 270px; }
.nb-chart--sm { height: 210px; }
.nb-chart--lg { height: 320px; }
.nb-chart canvas { display: block; }
.nb-chart-empty { margin: 0; padding: 2.5rem 1rem; text-align: center; color: var(--nb-muted); background: var(--nb-bg); border-radius: var(--nb-radius-sm); }
.nb-chart-note { margin: 0.6rem 0 0; font-size: 0.8125rem; color: var(--nb-muted); }
.nb-chart-table { margin-top: 0.75rem; }
.nb-chart-table > summary { display: inline-block; cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: var(--nb-emerald); }
.nb-chart-table > summary:hover { text-decoration: underline; }
.nb-chart-table[open] > summary { margin-bottom: 0.5rem; }
.nb-chart-table .nb-num-table { font-size: 0.875rem; }
.nb-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.35rem; vertical-align: 0; }

/* Lists with bars: label | number | bar + % */
.nb-barlist { list-style: none; margin: 0; padding: 0; }
.nb-barlist li { display: grid; grid-template-columns: minmax(0, 1.3fr) 3.5rem minmax(110px, 1.2fr); align-items: center; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--nb-line); }
.nb-barlist li:last-child { border-bottom: 0; }
.nb-barlist-label { min-width: 0; overflow-wrap: anywhere; font-size: 0.9375rem; }
.nb-barlist-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; max-width: none; }
.nb-chip-stat { display: inline-flex; gap: 0.35rem; align-items: baseline; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--nb-bg); font-size: 0.875rem; }

/* Website visitors */
.nb-live { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.75rem; border-radius: 99px; background: var(--nb-emerald-soft); color: #0a4a37; font-weight: 600; font-size: 0.875rem; }
.nb-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nb-emerald); box-shadow: 0 0 0 3px rgba(11, 107, 79, 0.18); }
.nb-funnel { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.nb-funnel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--nb-line); }
.nb-funnel li:last-child { border-bottom: 0; }
.nb-funnel-label { font-weight: 600; }
.nb-funnel-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.nb-funnel .nb-meter { grid-column: 1 / -1; height: 10px; }
.nb-funnel-drop { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--nb-muted); }
.nb-tip { margin-top: 1rem; }
.nb-tip code { overflow-wrap: anywhere; word-break: break-all; }
.nb-dash-web { margin-bottom: 1.5rem; }
.nb-dash-web .nb-surface-head { flex-wrap: wrap; gap: 0.5rem 1rem; }
.nb-dash-web .nb-kpis { margin-top: 0; }
@media (min-width: 1200px) { .nb-dash-web .nb-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (max-width: 575.98px) {
    /* Dashboard room tiles: long words ("Maintenance") stay inside the tile on small phones */
    .nb-stat { gap: 0.6rem; padding-left: 0.85rem; padding-right: 0.6rem; }
    .nb-stat > div:last-child { min-width: 0; }
    .nb-stat-label { overflow-wrap: anywhere; hyphens: auto; }
    .nb-stat-icon { width: 38px; height: 38px; flex: 0 0 38px; }
    .nb-kpis--3 { grid-template-columns: minmax(0, 1fr); }
    .nb-barlist li { grid-template-columns: minmax(0, 1fr) 3rem; }
    .nb-barlist-bar { grid-column: 1 / -1; }
    .nb-chart { height: 240px; }
    .nb-chart--sm { height: 200px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .nb-sticky { position: static; }

    .nb-auth {
        grid-template-columns: 1fr;
    }

    .nb-auth-brand {
        display: none;
    }

    .nb-auth-top .nb-brand {
        visibility: visible;
    }

    .nb-navbar .navbar-collapse {
        padding: 0.75rem 0 0.25rem;
    }

    .nb-navbar .nb-nav-actions {
        padding-top: 0.75rem;
        border-top: 1px solid var(--nb-line);
        margin-top: 0.5rem;
    }
}

@media (min-width: 992px) {
    /* Paint the sidebar column so long pages never show a gap under the sticky sidebar */
    .nb-panel {
        background: linear-gradient(to right, var(--nb-forest) var(--nb-sidebar-w), var(--nb-bg) var(--nb-sidebar-w));
    }

    .nb-sidebar {
        /* Bootstrap's .offcanvas-lg forces a transparent background on desktop — override it */
        background-color: var(--nb-forest) !important;
        width: var(--nb-sidebar-w);
        flex-shrink: 0;
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .nb-sidebar .offcanvas-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .nb-topbar-toggle {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .nb-brand img { height: 42px; }
    .nb-brand-name { font-size: 1.1875rem; }
    .nb-brand-tag { font-size: 0.625rem; }
    .nb-feather { display: none; }
    .nb-facts-list { justify-content: flex-start; flex-direction: column; gap: 0.6rem; }
    .nb-topbar-date { display: none; }
    .nb-hero-actions .btn { flex: 1 1 100%; }
    .nb-room-media { aspect-ratio: 16 / 9; }
    .nb-auth-top { flex-wrap: wrap; }
    .nb-choice-row { grid-template-columns: 1fr; }
    .nb-filter-field { flex: 1 1 100%; min-width: 0; }
    .nb-filter > .btn { flex: 1 1 auto; }
    .nb-filter--inline { flex-wrap: wrap; width: 100%; }
    .nb-filter--inline .form-select-sm,
    .nb-filter--inline .form-control-sm { flex: 1 1 140px; min-width: 0; }
    .nb-panel-head > .d-flex,
    .nb-panel-head > .btn { width: 100%; }
    .nb-panel-head > .d-flex .btn,
    .nb-panel-head > .btn { flex: 1 1 auto; }
    .nb-form-foot { justify-content: stretch; }
    .nb-form-foot .btn { flex: 1 1 auto; }
    .nb-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .nb-navbar, .nb-footer, .nb-sidebar, .nb-topbar, .nb-rule { display: none !important; }
    body { background: #fff; }
}
