:root {
    color-scheme: light;
    --ink: #17211f;
    --muted: #596662;
    --line: #d9dfdc;
    --panel: #ffffff;
    --soft: #f4f7f3;
    --accent: #2f6b57;
    --accent-strong: #204d3e;
    --warm: #c58f4a;
    --guest: #dff4eb;
}

html,
body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: #eef2ef;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.hotel-page {
    min-height: 100dvh;
    background:
        linear-gradient(90deg, rgba(14, 28, 24, 0.84), rgba(14, 28, 24, 0.44) 46%, rgba(238, 242, 239, 0.94) 73%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Crect width='1200' height='800' fill='%23d9dfdc'/%3E%3Cpath d='M0 530h1200v270H0z' fill='%23b7c1bd'/%3E%3Cpath d='M0 0h1200v220H0z' fill='%237b8b84'/%3E%3Cpath d='M120 210h960v390H120z' fill='%23eee7dc'/%3E%3Cpath d='M170 260h230v250H170zm315 0h230v250H485zm315 0h230v250H800z' fill='%23f8faf8'/%3E%3Cpath d='M0 610c180-70 340-92 520-68 260 35 410 2 680-118v376H0z' fill='%238c9b94' opacity='.72'/%3E%3Cpath d='M110 650h980v44H110z' fill='%23566c62' opacity='.45'/%3E%3Ccircle cx='980' cy='155' r='74' fill='%23d9a24f' opacity='.8'/%3E%3C/svg%3E");
    background-position: center;
    background-size: cover;
}

.assistant-page {
    display: grid;
    min-height: 100dvh;
    padding: clamp(0.7rem, 3vw, 1.5rem);
    background: #eef2ef;
}

.assistant-page .hotel-chat {
    width: min(100%, 44rem);
    min-height: calc(100dvh - clamp(1.4rem, 6vw, 3rem));
    justify-self: center;
    align-self: center;
    box-shadow: 0 1rem 2.8rem rgba(10, 24, 19, 0.18);
}

.hotel-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem) minmax(0, 1fr);
    grid-template-areas: "content qr chat";
    align-items: center;
    gap: clamp(1.2rem, 4vw, 4rem);
    min-height: min(760px, 100dvh);
    padding: clamp(1rem, 4vw, 4rem);
}

.hotel-hero-content {
    grid-area: content;
    justify-self: start;
    max-width: 45rem;
    padding-top: clamp(4.5rem, 8vw, 7rem);
    color: #fff;
}

.hotelmate-brand {
    position: absolute;
    top: clamp(1rem, 4vw, 4rem);
    left: clamp(1rem, 4vw, 4rem);
    z-index: 2;
    display: grid;
    justify-items: start;
    gap: 0.4rem;
}

.hotelmate-brand img {
    display: block;
    width: clamp(12rem, 27vw, 28rem);
    max-width: 100%;
    height: auto;
}

.eyebrow {
    margin: 0;
    color: #e7c58b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hotel-hero h1 {
    max-width: 12ch;
    margin: 0.65rem 0 1rem;
    font-size: clamp(2.4rem, 8vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hotel-lead {
    max-width: 36rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
}

.hotel-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.hotel-facts span {
    padding: 0.48rem 0.7rem;
    color: #10251f;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.hotel-qr {
    grid-area: qr;
    align-self: center;
    justify-self: center;
    box-sizing: border-box;
    width: min(100%, 17rem);
    margin-bottom: 0;
    padding: 0.85rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2.4rem rgba(10, 24, 19, 0.2);
    backdrop-filter: blur(14px);
}

.hotel-qr * {
    box-sizing: border-box;
}

.hotel-qr-code {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-height: 12rem;
    padding: 0.85rem;
    overflow: hidden;
    background: #f4f7f3;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
}

.hotel-qr-code svg {
    display: block;
    width: 100%;
    max-width: 12.5rem;
    height: auto;
    aspect-ratio: 1;
}

.hotel-qr-copy {
    display: grid;
    gap: 0.12rem;
    margin-top: 0.7rem;
}

.hotel-qr-copy span {
    color: var(--warm);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hotel-qr-copy strong {
    color: var(--accent-strong);
    font-size: 0.96rem;
    line-height: 1.2;
}

.hotel-hero > .hotel-chat {
    grid-area: chat;
    justify-self: end;
    width: min(100%, 28rem);
}

.hotel-chat {
    display: grid;
    grid-template-rows: auto minmax(19rem, 1fr) auto auto;
    min-height: min(38rem, calc(100dvh - 2rem));
    overflow: hidden;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 0.5rem;
    box-shadow: 0 1.4rem 3.5rem rgba(10, 24, 19, 0.28);
    backdrop-filter: blur(16px);
}

.hotel-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.hotel-chat-header h2 {
    margin: 0.18rem 0 0;
    font-size: 1.05rem;
    line-height: 1.15;
}

.hotel-chat-logo-title {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.35rem 0.5rem;
    margin-top: 0.18rem;
}

.hotel-chat-logo-title img {
    display: block;
    width: clamp(8.5rem, 28vw, 11rem);
    height: auto;
}

.hotel-chat-logo-title span {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.status-dot::before {
    content: "";
    width: 0.58rem;
    height: 0.58rem;
    background: #31b977;
    border-radius: 999px;
    box-shadow: 0 0 0 0.22rem rgba(49, 185, 119, 0.15);
}

.hotel-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    overflow-y: auto;
    background: var(--soft);
}

.hotel-chat-message {
    max-width: 88%;
    padding: 0.7rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.94rem;
    line-height: 1.42;
    white-space: pre-wrap;
}

.hotel-chat-message.assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
}

.hotel-chat-message.user {
    align-self: flex-end;
    color: #10251f;
    background: var(--guest);
    border: 1px solid #b6dfcf;
}

.hotel-chat-message.thinking {
    color: var(--muted);
    font-style: italic;
}

.hotel-chat-suggestions {
    display: flex;
    gap: 0.45rem;
    padding: 0.75rem;
    overflow-x: auto;
    border-top: 1px solid var(--line);
}

.hotel-chat-suggestions button {
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0 0.65rem;
    color: var(--accent-strong);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.hotel-chat-suggestions button:hover,
.hotel-chat-suggestions button:focus {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.hotel-chat-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.8rem;
    background: #fff;
    border-top: 1px solid var(--line);
}

.hotel-chat-input textarea {
    width: 100%;
    min-height: 2.65rem;
    max-height: 7rem;
    resize: vertical;
    padding: 0.62rem 0.72rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    line-height: 1.35;
}

.hotel-chat-input button {
    min-width: 5.5rem;
    min-height: 2.65rem;
    padding: 0 0.9rem;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0.45rem;
    font-weight: 800;
}

.hotel-chat-input button:hover,
.hotel-chat-input button:focus {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.hotel-chat-input button:disabled {
    color: #8b9692;
    background: #edf1ef;
    border-color: var(--line);
}

.hotel-info-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #d6ddd9;
}

.hotel-info-band article {
    min-height: 9rem;
    padding: clamp(1rem, 3vw, 2rem);
    background: #fff;
}

.hotel-info-band span {
    color: var(--warm);
    font-size: 0.82rem;
    font-weight: 900;
}

.hotel-info-band h2 {
    margin: 0.55rem 0 0.45rem;
    font-size: 1.08rem;
}

.hotel-info-band p {
    max-width: 24rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.hotel-contact {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    padding: clamp(1.4rem, 4vw, 2.4rem) 1rem;
    color: var(--warm);
    text-align: center;
    background: #eef2ef;
}

.hotel-contact h2 {
    margin: 0 0 0.15rem;
    color: inherit;
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0;
}

.hotel-contact a {
    color: inherit;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 400;
    text-decoration: none;
}

.hotel-contact a:hover,
.hotel-contact a:focus {
    color: var(--accent-strong);
    text-decoration: underline;
}

#blazor-error-ui {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: none;
    padding: 0.8rem 1rem;
    color: #fff;
    background: #8a1f1f;
    border-radius: 0.45rem;
    box-shadow: 0 0.8rem 1.8rem rgba(10, 24, 19, 0.24);
}

#blazor-error-ui .reload {
    color: #fff;
    font-weight: 800;
}

#blazor-error-ui .dismiss {
    margin-left: 0.75rem;
    cursor: pointer;
}

.not-found-panel {
    width: min(100%, 34rem);
    align-self: center;
    justify-self: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.not-found-panel h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.not-found-panel p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 1180px) {
    .hotel-hero {
        grid-template-columns: minmax(0, 1fr) minmax(21rem, 28rem);
        grid-template-areas:
            "content chat"
            "qr qr";
    }

    .hotel-qr {
        justify-self: center;
    }
}

@media (max-width: 900px) {
    .hotel-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "qr"
            "chat";
        align-items: start;
    }

    .hotel-hero h1 {
        max-width: 14ch;
    }

    .hotel-chat {
        min-height: 34rem;
    }

    .hotel-qr {
        align-self: center;
        justify-self: center;
        width: min(100%, 16rem);
        margin-bottom: 0;
        transform: none;
    }

    .hotel-info-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hotel-hero {
        padding: 0.85rem;
    }

    .hotel-hero-content {
        padding-top: 4.75rem;
    }

    .hotelmate-brand {
        top: 0.85rem;
        left: 0.85rem;
    }

    .hotel-hero h1 {
        font-size: 2.45rem;
    }

    .hotel-chat {
        min-height: calc(100dvh - 1.7rem);
    }

    .hotel-chat-input {
        grid-template-columns: 1fr;
    }

    .hotel-chat-input button {
        width: 100%;
    }

    .assistant-page {
        padding: 0;
    }

    .assistant-page .hotel-chat {
        width: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
