:root {
    --tea-green: #d7f2ba;
    --celadon: #bde4a8;
    --soft-celadon: #9cc69b;
    --muted-teal: #79b4a9;
    --dusty-olive: #676f54;
    --deep-green: #0d4a3a;
    --deep-green-2: #07392f;
    --ink: #062d2d;
    --line: #dfe7e3;
    --paper: #f7faf8;
}

[x-cloak] {
    display: none !important;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.bp-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    background: #f6f9f7;
    transition: grid-template-columns .22s ease;
}

.bp-mobilebar,
.bp-mobile-nav {
    display: none;
}

.bp-sidebar {
    background: linear-gradient(180deg, var(--deep-green), var(--deep-green-2));
    color: white;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: padding .22s ease;
}

.bp-brand-mark {
    display: none;
}

.bp-sidebar-toggle {
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.bp-shell.sidebar-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
}

.bp-shell.sidebar-collapsed .bp-sidebar {
    padding-left: .85rem;
    padding-right: .85rem;
}

.bp-shell.sidebar-collapsed .bp-brand-full,
.bp-shell.sidebar-collapsed .bp-brand-sub,
.bp-shell.sidebar-collapsed .bp-nav-label,
.bp-shell.sidebar-collapsed .bp-user-meta,
.bp-shell.sidebar-collapsed .bp-logout {
    display: none;
}

.bp-shell.sidebar-collapsed .bp-brand-mark {
    display: grid;
}

.bp-shell.sidebar-collapsed .bp-sidebar-toggle {
    margin-left: auto;
    margin-right: auto;
}

.bp-shell.sidebar-collapsed .bp-nav-link {
    justify-content: center;
    padding-left: .65rem;
    padding-right: .65rem;
}

.bp-shell.sidebar-collapsed .bp-nav-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.bp-shell.sidebar-collapsed .bp-sidebar form {
    text-align: center;
}

.bp-shell.sidebar-collapsed .bp-sidebar form .flex {
    justify-content: center;
}

.bp-nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    border-radius: .34rem;
    padding: .72rem .78rem;
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    font-weight: 720;
    line-height: 1;
}

.bp-nav-link:hover,
.bp-nav-link.active {
    background: #a7f2dc;
    color: #07352b;
}

.bp-nav-icon {
    display: grid;
    place-items: center;
    width: 1.18rem;
    height: 1.18rem;
    border: 1.6px solid currentColor;
    border-radius: .22rem;
    font-size: .58rem;
    font-weight: 900;
}

.bp-topbar {
    height: 48px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
}

.bp-content {
    width: min(100%, 980px);
    margin-left: auto;
    margin-right: auto;
}

main h1,
main h2 {
    font-weight: 700 !important;
    letter-spacing: -.025em;
}

main .font-black:not(.bp-sidebar .font-black):not(.bp-logo):not(.metric-value) {
    font-weight: 700 !important;
}

.room-card-title {
    font-weight: 700 !important;
}

.room-card-price {
    font-weight: 700 !important;
}

.bp-sidebar nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}

.bp-sidebar form {
    flex-shrink: 0;
}

.bp-search {
    height: 28px;
    min-width: 310px;
    border: 1px solid #edf2ef;
    background: #f5f8f6;
    border-radius: .45rem;
    padding: 0 .8rem;
    font-size: .72rem;
    font-weight: 650;
    color: #78908a;
}

.bp-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: .46rem;
    box-shadow: 0 12px 26px rgba(15, 74, 58, .045);
}

.bp-page-title {
    font-size: 1.9rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.035em;
}

.bp-page-subtitle {
    margin-top: .25rem;
    font-size: .86rem;
    line-height: 1.45;
    font-weight: 500;
    color: #637a73;
}

.bp-stat-card {
    min-height: 98px;
}

.bp-button {
    border-radius: .42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.5rem;
    padding: .62rem .95rem;
    font-weight: 780;
    font-size: .78rem;
    white-space: nowrap;
}

.bp-button-primary {
    background: #0d4a3a;
    color: white;
    box-shadow: 0 8px 16px rgba(13, 74, 58, .15);
}

.bp-button-secondary {
    background: white;
    border: 1px solid #cad8d2;
    color: #0d4a3a;
}

.bp-input {
    width: 100%;
    border: 1px solid #cfdad5;
    border-radius: .45rem;
    background: white;
    padding: .68rem .78rem;
    outline: none;
}

.bp-input:focus {
    border-color: #79b4a9;
    box-shadow: 0 0 0 3px rgba(121,180,169,.18);
}

.bp-badge {
    border-radius: 999px;
    padding: .23rem .58rem;
    font-size: .64rem;
    font-weight: 800;
    text-transform: capitalize;
}

.bp-badge.pending,
.bp-badge.blocked {
    background: #e8eee9;
    color: #475947;
}

.bp-badge.confirmed,
.bp-badge.paid,
.bp-badge.checked_in,
.bp-badge.active {
    background: #a8f0dc;
    color: #064236;
}

.bp-badge.cancelled,
.bp-badge.no_show,
.bp-badge.suspended,
.bp-badge.archived {
    background: #ffd5ce;
    color: #9a2e24;
}

.bp-badge.checked_out,
.bp-badge.inactive,
.bp-badge.trial {
    background: #d7f2ba;
    color: #38512c;
}

.bp-table th {
    font-size: .67rem;
    letter-spacing: .02em;
    color: #58736b;
    font-weight: 850;
}

.bp-table td {
    font-size: .78rem;
    color: #143936;
}

.bp-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: end;
    background: white;
    border: 1px solid var(--line);
    border-radius: .46rem;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 74, 58, .035);
}

.calendar-grid {
    display: grid;
    grid-template-columns: 130px repeat(7, minmax(86px, 1fr));
    min-width: 780px;
}

.calendar-cell {
    min-height: 70px;
    border-right: 1px solid #dce6e1;
    border-bottom: 1px solid #dce6e1;
    background: rgba(255,255,255,.72);
}

.calendar-head {
    min-height: 54px;
    background: #fbfdfc;
    color: #58736b;
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-room {
    padding: .9rem;
    font-size: .76rem;
    font-weight: 700;
    color: #0d4a3a;
}

.calendar-bar {
    margin: 1.05rem .45rem 0;
    min-height: 32px;
    border-radius: .38rem;
    background: #1f7666;
    color: white;
    padding: .45rem .55rem;
    font-size: .68rem;
    font-weight: 700;
    box-shadow: 0 8px 15px rgba(31,118,102,.16);
}

.guest-public-shell {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fbfdfc;
    box-shadow: 0 0 0 1px #dce6e1, 0 24px 55px rgba(8, 34, 30, .12);
}

.bp-room-photo,
.bp-hero-photo {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6,45,45,.08), rgba(255,255,255,0)),
        radial-gradient(circle at 72% 30%, rgba(255,255,255,.86) 0 7%, transparent 8%),
        linear-gradient(90deg, #173f36 0 18%, #d6e5df 18% 22%, #eef4f1 22% 58%, #89b8ab 58% 100%);
}

.bp-room-photo::before,
.bp-hero-photo::before {
    content: "";
    position: absolute;
    inset: auto 12% 15% 10%;
    height: 32%;
    border-radius: .34rem;
    background:
        linear-gradient(#f8faf8, #f8faf8) 20% 15% / 72% 24% no-repeat,
        linear-gradient(#174d42, #174d42) center / 100% 45% no-repeat,
        #dfe9e5;
    box-shadow: 0 12px 22px rgba(5, 34, 31, .15);
}

.bp-room-photo::after,
.bp-hero-photo::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 16%;
    background: linear-gradient(90deg, #d8c9b4, #f2eadf);
}

.bp-hero-label {
    z-index: 5;
    pointer-events: none;
}

.bp-room-photo.alt {
    background:
        linear-gradient(135deg, rgba(6,45,45,.08), rgba(255,255,255,0)),
        linear-gradient(90deg, #e9eee9 0 40%, #0d4a3a 40% 45%, #f5f3ea 45% 72%, #b0d7ce 72% 100%);
}

.bp-room-photo.maintenance {
    filter: grayscale(1);
}

.bp-hero-photo {
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(5,35,31,.54) 100%),
        radial-gradient(circle at 50% 15%, #8bb7d3 0 24%, transparent 25%),
        linear-gradient(135deg, #314a33 0 35%, #e9eee8 35% 55%, #7d9b74 55% 100%);
}

.bp-stepbar {
    height: 3px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .45rem;
}

.bp-stepbar span {
    border-radius: 999px;
    background: #e7eeea;
}

.bp-stepbar .active {
    background: #0d4a3a;
}

.bp-phone-tabbar {
    box-shadow: 0 -8px 22px rgba(12, 55, 46, .06);
}

@media (max-width: 700px) {
    .bp-shell {
        display: block;
        grid-template-columns: 1fr;
    }

    .bp-content {
        width: 100%;
    }

    .bp-sidebar {
        display: none;
    }

    .bp-topbar {
        display: none;
    }

    .bp-mobilebar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid var(--line);
        background: rgba(255,255,255,.96);
        padding: .9rem 1rem;
        backdrop-filter: blur(14px);
    }

    .bp-mobile-nav {
        position: sticky;
        top: 64px;
        z-index: 19;
        display: flex;
        gap: .45rem;
        overflow-x: auto;
        border-bottom: 1px solid var(--line);
        background: #f8fbf9;
        padding: .65rem 1rem;
        scrollbar-width: none;
    }

    .bp-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .bp-mobile-nav a {
        flex: 0 0 auto;
        border: 1px solid #dce6e1;
        border-radius: 999px;
        background: white;
        padding: .55rem .8rem;
        color: #0d4a3a;
        font-size: .74rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .bp-mobile-nav a.active {
        border-color: #a8f0dc;
        background: #a8f0dc;
        color: #07352b;
    }

    .bp-shell main > div {
        padding: 1rem;
    }

    .bp-page-title {
        font-size: 1.55rem;
    }

    .bp-page-subtitle {
        font-size: .8rem;
    }

    .bp-filterbar {
        display: grid;
        align-items: stretch;
    }

    .bp-filterbar label,
    .bp-filterbar .bp-button {
        min-width: 0 !important;
        width: 100%;
    }

    .bp-card:has(.bp-table) {
        overflow-x: auto;
    }

    .bp-table {
        min-width: 760px;
    }

    .bp-button {
        min-height: 2.75rem;
    }
}

@media (min-width: 701px) and (max-width: 1180px) {
    .bp-shell {
        grid-template-columns: 178px minmax(0, 1fr);
    }

    .bp-shell.sidebar-collapsed {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .bp-sidebar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bp-nav-link {
        gap: .55rem;
        padding: .68rem;
        font-size: .76rem;
    }

    .bp-search {
        min-width: 230px;
    }

    .bp-card:has(.bp-table) {
        overflow-x: auto;
    }

    .bp-table {
        min-width: 780px;
    }
}

@media (min-width: 900px) {
    body:has(.guest-public-shell) {
        min-height: 100vh;
        background: #eef5f1;
    }

    .guest-public-shell {
        max-width: 980px;
        margin: 0 auto;
        min-height: 100vh;
        border-radius: 0;
        overflow: hidden;
        box-shadow: 0 24px 70px rgba(8, 34, 30, .08);
    }

    .guest-public-shell > section,
    .guest-public-shell > form,
    .guest-public-shell > div {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .guest-public-shell form > .fixed {
        max-width: 720px !important;
    }
}

@media (min-width: 1181px) {
    .bp-shell main > div {
        max-width: 980px;
        margin: 0 auto;
        width: 100%;
    }
}
