:root {
    --bg: #f7f5fb;
    --surface: #ffffff;
    --text: #12213d;
    --muted: #5e6b86;
    --line: #dde3f2;
    --primary: #084887;
    --primary-2: #0b62b5;
    --accent: #f58a07;
    --accent-soft: #f9ab55;
    --lav: #909cc2;
    --shadow: 0 12px 26px rgba(8, 72, 135, 0.12);
}

* { box-sizing: border-box; }

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 15.5px;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(247, 245, 251, 0.9);
    border-bottom: 1px solid var(--line);
}

.site-wrap,
.site-main,
.site-footer-inner {
    width: min(1150px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.88rem 0;
}

.brand {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.site-nav a,
.btn-link {
    text-decoration: none;
    color: var(--text);
    padding: 0.5rem 0.74rem;
    border-radius: 10px;
    border: 1px solid var(--lav);
    background: var(--surface);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    transition: 0.2s ease;
}

.site-nav a:hover,
.btn-link:hover {
    background: #f0edf7;
    border-color: var(--primary);
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover { filter: brightness(1.05); }

.site-main {
    padding: 1.9rem 0 2.6rem;
    flex: 1 0 auto;
}

.hero {
    border-radius: 20px;
    padding: clamp(1.2rem, 4vw, 2.25rem);
    color: #fff;
    background: var(--primary);
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.58rem, 2.6vw, 2.2rem);
    line-height: 1.12;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    font-weight: 700;
}

.hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

.hero-actions {
    margin-top: 1.05rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.rooms-block,
.panel-grid,
.section-block { margin-top: 1.25rem; }

.rooms-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.8rem;
    margin-bottom: 0.72rem;
}

.rooms-head h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--primary);
    font-weight: 650;
}

.rooms-head p,
.muted { margin: 0; color: var(--muted); }

.rooms-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.room-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #edf1fb;
}

.room-card-body {
    padding: 0.9rem;
    display: grid;
    gap: 0.52rem;
}

.room-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.room-title-row h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
}

.room-price {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.room-price small {
    color: var(--muted);
    font-weight: 500;
    margin-left: 0.18rem;
}

.room-type {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.24rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.room-desc {
    margin: 0;
    color: #30425f;
    font-size: 0.93rem;
    line-height: 1.42;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.room-amenities span {
    font-size: 0.77rem;
    border: 1px solid #cfd8ef;
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
    color: #36517a;
    background: #f9fbff;
    font-weight: 500;
}

.room-actions {
    margin-top: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.room-actions .btn-link,
.room-actions .btn-solid {
    margin: 0;
}

.rooms-empty,
.alert {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    padding: 0.78rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.alert.success { border-color: #bfe0c8; color: #1d6a37; background: #eefbf2; }
.alert.error { border-color: #f0c2c2; color: #8f3232; background: #fff2f2; }

.room-detail-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, 44%) 1fr;
}

.room-detail-section {
    margin-top: 2.1rem;
}

.room-top-links {
    margin: 0 0 1.45rem;
    gap: 0.75rem;
}

.room-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    display: block;
    background: #edf1fb;
}

.room-detail-body {
    padding: 1.75rem 1.85rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.room-detail-title {
    margin: 0 0 0.15rem;
}

.room-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.34rem;
    margin-bottom: 0.25rem;
}

.room-detail-description {
    margin: 0;
    line-height: 1.72;
    color: #30425f;
    max-width: 52ch;
}

.room-detail-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem 0.7rem;
    background: #fff;
}

.room-detail-price strong {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.room-detail-price span {
    color: var(--muted);
    font-size: 0.9rem;
}

.room-detail-amenities-block {
    margin-top: 0.55rem;
}

.room-detail-subtitle {
    margin: 0 0 0.62rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    line-height: 1.25;
}

.room-detail-actions {
    margin-top: 0.95rem;
}

.room-detail-actions .btn-solid {
    padding: 0.7rem 1.05rem;
}

.room-calendar-block {
    margin-top: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem;
    background: #fff;
}

.room-calendar-help {
    margin: 0 0 0.7rem;
    font-size: 0.86rem;
}

.room-calendar-block .room-detail-subtitle .lucide {
    flex-shrink: 0;
}

.room-calendar {
    min-height: 360px;
}

.room-calendar .fc {
    font-size: 0.88rem;
}

.room-calendar .fc-toolbar-title {
    font-size: 1rem;
    color: var(--primary);
}

.room-calendar .fc-button {
    background: var(--primary);
    border-color: var(--primary);
}

.room-calendar .fc-button:not(:disabled):hover {
    background: var(--primary-2);
    border-color: var(--primary-2);
}

.room-related-section {
    margin-top: 2.7rem;
}

.room-related-section .section-title {
    margin-bottom: 1.15rem;
}

.room-related-section .rooms-grid {
    gap: 1.05rem;
}

.room-related-section .room-card-body {
    gap: 0.72rem;
    padding: 1rem;
}

.room-card-cta {
    justify-self: flex-start;
    width: auto;
    margin-top: 0.28rem;
}

.panel-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.section-card {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    padding: 0.95rem;
    box-shadow: var(--shadow);
}

.info-card h3,
.section-card h3 {
    margin: 0 0 0.46rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 1rem;
    font-weight: 650;
}

.info-card p,
.section-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.section-title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.16rem, 1.8vw, 1.4rem);
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary);
}

.auth-shell {
    min-height: calc(100vh - 260px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(470px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0 0 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 650;
}

.auth-alert {
    margin-bottom: 0.9rem;
}

.form-grid { display: grid; gap: 0.72rem; }

.form-grid > button,
.form-grid > .btn-solid {
    justify-self: start;
}

.auth-shell-login {
    padding: 1.2rem 0;
}

.auth-card-login {
    width: min(540px, 100%);
    padding: 1.35rem;
}

.auth-card-login h1 {
    margin-bottom: 1rem;
}

.login-quick-access {
    margin-bottom: 1rem;
    padding: 0.88rem;
}

.login-quick-title {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 600;
}

.login-quick-actions {
    margin-top: 0;
    gap: 0.6rem;
}

.login-form {
    gap: 0.9rem;
}

.login-form input {
    padding: 0.64rem 0.7rem;
}

.login-submit {
    justify-self: flex-start;
    padding: 0.62rem 1rem;
}

.login-footer-actions {
    margin-top: 1rem;
    gap: 0.65rem;
}

label { display: block; margin-bottom: 0.28rem; font-weight: 550; color: #2f4060; font-size: 0.92rem; }

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ccd8f0;
    border-radius: 10px;
    padding: 0.56rem 0.62rem;
    background: #fff;
    color: var(--text);
}

select,
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235e6b86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.62rem center;
    background-size: 1rem;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

textarea { resize: vertical; }

button,
.btn-solid {
    border: 0;
    border-radius: 10px;
    padding: 0.56rem 0.78rem;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 550;
    text-decoration: none;
    width: auto;
    justify-content: center;
    justify-self: start;
    align-self: center;
}

.btn-block {
    width: 100%;
    justify-self: stretch;
}

.btn-light {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--lav);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface);
    font-weight: 500;
}

.hero .btn-link {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

.hero .btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.inline-links {
    margin-top: 0.72rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 0.64rem;
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 650;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.site-footer-inner {
    padding: 0.95rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 450;
}

svg.lucide {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.9;
    vertical-align: middle;
    flex-shrink: 0;
}

.site-nav a .lucide,
.btn-link .lucide,
button .lucide,
.btn-solid .lucide,
.btn-light .lucide {
    width: 1.05rem;
    height: 1.05rem;
}

.brand svg.lucide,
.hero h1 svg.lucide,
.section-title svg.lucide,
.rooms-head h2 svg.lucide,
.auth-card h1 svg.lucide,
.room-title-row .lucide {
    width: 1.26rem;
    height: 1.26rem;
}

.info-card h3 .lucide,
.section-card h3 .lucide,
.rooms-empty .lucide {
    width: 1.12rem;
    height: 1.12rem;
}

.info-card h3,
.section-card h3 {
    gap: 0.5rem;
    line-height: 1.3;
}

.btn-link,
.btn-light,
button,
.btn-solid {
    line-height: 1.2;
}

@media (max-width: 1000px) {
    .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .room-detail-card { grid-template-columns: 1fr; }
    .room-detail-media img { min-height: 260px; }
    .room-detail-body { padding: 1.2rem; gap: 0.86rem; }
    .room-related-section { margin-top: 2.1rem; }
}

@media (max-width: 800px) {
    .site-wrap { flex-direction: column; align-items: flex-start; }
    .rooms-grid,
    .panel-grid { grid-template-columns: 1fr; }
    .rooms-head { flex-direction: column; align-items: flex-start; }
    .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .auth-shell-login { padding: 0.4rem 0; }
    .auth-card-login { padding: 1rem; }
}
