/* ---------------------------------------------------------------------------
   TampaOasis — public site.

   The motif is the property itself at the only hour Florida is actually pleasant:
   dusk, lit pool, screen cage. "poolglow" is the lit water; "kumquat" is the lamp
   on the deck that keeps the dark surfaces warm rather than clinical.

   MudBlazor owns the admin. This file owns the public site and the sign-in page.
   --------------------------------------------------------------------------- */

:root {
    --deepwater: #07373b;
    --shallow: #0f5a5e;
    --poolglow: #35c4b5;
    --kumquat: #efa14a;
    --screen: #93a8a6;
    --deck: #f5f2ec;
    --ink: #10201f;

    --display: "Fraunces", Georgia, serif;
    --body: "Karla", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--deck);
    -webkit-font-smoothing: antialiased;
}

/* A visible focus ring everywhere, on the accent, so it reads as part of the brand. */
:focus-visible {
    outline: 2px solid var(--poolglow);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Blazor's FocusOnNavigate parks focus on the <h1> so screen readers announce the new page. That focus is
   programmatic, not a keyboard user arriving — painting a ring around the headline is just a box on the page. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    color: var(--poolglow);
}

/* --- Public shell ------------------------------------------------------- */

/* Sticky rather than floating over the hero: the same header has to stay legible on the pale pages too,
   and light-on-light would vanish there. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 5vw, 4rem);
    background: rgba(7, 55, 59, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(147, 168, 166, 0.18);
}

.site-header__mark {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--deck);
    text-decoration: none;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(245, 242, 236, 0.82);
    text-decoration: none;
}

.site-header__link:hover {
    color: var(--deck);
}

/* --- Hero: the signature ------------------------------------------------ */

/* This used to be a pure-CSS impression of the motif — drifting caustics under a screen-cage grid —
   because no photograph existed. One does now, and it is the motif: the pool lit from within at dusk,
   string lights, the lanai. The real thing beats the impression, so the impression is gone. */
.hero {
    position: relative;
    isolation: isolate;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
    overflow: hidden;
    background-color: var(--deepwater);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center 60%;
}

/* Type over a photograph needs a floor under it, not a wash over it: the scrim is heavy where the words
   are and lifts off the water entirely, so the picture keeps its dusk. */
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 35, 38, 0.55) 0%, transparent 32%),
        linear-gradient(9deg, rgba(5, 35, 38, 0.92) 12%, rgba(7, 55, 59, 0.55) 48%, transparent 78%);
}

.hero__content {
    position: relative;
    max-width: 46rem;
    color: var(--deck);
}

/* The photograph earns a credit line, set like a plate caption rather than a UI label. */
.hero__caption {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0.9rem clamp(1.25rem, 5vw, 4rem) 0;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b9a98;
}

.hero h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--poolglow);
}

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    max-width: 40ch;
    margin: 0 0 2rem;
    color: rgba(245, 242, 236, 0.86);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn--primary {
    background: var(--kumquat);
    color: #2a1a06;
}

.btn--primary:hover {
    background: #f5b163;
    transform: translateY(-1px);
}

.btn--ghost {
    border-color: rgba(147, 168, 166, 0.5);
    color: var(--deck);
    background: rgba(7, 55, 59, 0.35);
}

.btn--ghost:hover {
    border-color: var(--poolglow);
    transform: translateY(-1px);
}

/* The facts read as instrument data, in the mono face, along the waterline. */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.5rem;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(147, 168, 166, 0.28);
}

.facts div {
    padding: 0.35rem 0;
}

.facts dt {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--screen);
    margin-bottom: 0.25rem;
}

.facts dd {
    margin: 0;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--deck);
}

/* --- Content sections --------------------------------------------------- */

.section {
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 68rem;
    margin: 0 auto;
}

.section h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
}

.section p {
    max-width: 60ch;
    line-height: 1.7;
    color: #3d4d4b;
    margin: 0 0 1rem;
}

.pitch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* A hairline in the accent — a quiet reminder of the water. */
.pitch > div {
    border-top: 2px solid var(--poolglow);
    padding-top: 1rem;
}

.pitch h3 {
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.pitch p {
    font-size: 0.95rem;
    margin: 0;
}

/* --- The stay page: content beside a card that follows you -------------- */

.stay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    max-width: 74rem;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) 4rem;
}

.stay__block {
    padding: 2.5rem 0;
    border-top: 1px solid #e2ddd2;
}

.stay__block:first-child {
    border-top: none;
    padding-top: 0.5rem;
}

.stay__block h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 1.25rem;
}

.stay__block p {
    max-width: 60ch;
    line-height: 1.7;
    color: #3d4d4b;
    margin: 0 0 1rem;
}

.stay__aside {
    font-size: 0.9rem;
    color: #5a6b69;
    border-left: 2px solid var(--poolglow);
    padding-left: 1rem;
    margin-top: 2rem;
}

/* The card tracks the reader down the page: the price should never be somewhere they have to go back to. */
.stay__side {
    position: sticky;
    top: 5.5rem;
}

/* --- Highlights, rooms, amenities, rules -------------------------------- */

.highlights,
.rooms,
.rules {
    list-style: none;
    margin: 0;
    padding: 0;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1.25rem 2rem;
}

.highlights li {
    border-top: 2px solid var(--poolglow);
    padding-top: 0.75rem;
}

.highlights__name {
    display: block;
    font-weight: 700;
}

.highlights__detail {
    display: block;
    font-size: 0.875rem;
    color: #5a6b69;
    margin-top: 0.15rem;
}

.rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
}

.rooms li {
    background: #fff;
    border: 1px solid #e2ddd2;
    border-radius: 10px;
    padding: 1rem;
}

.rooms__name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.rooms__beds {
    display: block;
    font-size: 0.875rem;
    color: #5a6b69;
    margin-top: 0.2rem;
}

.rules li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #3d4d4b;
    max-width: 60ch;
}

/* A waterline, not a bullet. */
.rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 0.6rem;
    height: 2px;
    background: var(--poolglow);
}

.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 2rem;
}

.amenities__group h3 {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a6b69;
    margin: 0 0 0.75rem;
}

.amenities__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.amenities__group li {
    padding: 0.3rem 0;
    font-size: 0.925rem;
    line-height: 1.45;
}

.amenities__group small {
    display: block;
    color: #8b9a98;
    font-size: 0.8rem;
}

/* --- Gallery ------------------------------------------------------------ */

/* Wide enough to break the text column: the pictures are the argument. */
.stay__block--wide .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 0.75rem;
}

.gallery__item {
    margin: 0;
}

.gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    background: #e2ddd2;
}

.gallery__item figcaption {
    padding-top: 0.5rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b9a98;
}

/* --- The booking card --------------------------------------------------- */

.book {
    background: #fff;
    border: 1px solid #e2ddd2;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px -28px rgba(7, 55, 59, 0.45);
}

.book__head {
    margin-bottom: 1.25rem;
}

.book__price {
    margin: 0;
    font-size: 0.95rem;
    color: #5a6b69;
}

.book__price strong {
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-right: 0.25rem;
}

.book__price--empty {
    font-family: var(--display);
    font-size: 1.35rem;
    color: var(--ink);
}

.book__rating {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: var(--ink);
}

.book__rating span[aria-hidden] {
    color: var(--kumquat);
}

.book__rating-count {
    color: #8b9a98;
}

.book__dates,
.book__guests {
    margin-bottom: 0.75rem;
}

/* Nights that can actually be sold. Every other day in the picker is disabled by IsDateDisabledFunc. */
.book__day--free {
    font-weight: 600;
}

.book__lines {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e2ddd2;
}

.book__lines > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.35rem 0;
}

.book__lines dt {
    font-size: 0.9rem;
    color: #3d4d4b;
}

.book__lines dt small {
    display: block;
    font-size: 0.75rem;
    color: #8b9a98;
}

.book__lines dd {
    margin: 0;
    font-size: 0.9rem;
}

.book__total {
    margin-top: 0.5rem;
    padding-top: 0.75rem !important;
    border-top: 1px solid #e2ddd2;
}

.book__total dt {
    font-weight: 700;
    font-size: 1rem !important;
    color: var(--ink) !important;
}

.book__total dd {
    font-weight: 700;
    font-size: 1.15rem !important;
}

/* The thesis of the entire project, in one line, at the moment it is worth money. */
.book__nofee {
    margin: 0.75rem 0 1.25rem;
    font-size: 0.8rem;
    color: var(--shallow);
    font-weight: 600;
}

.book__problem {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: #fbf0ee;
    border: 1px solid #e3b9b1;
    color: #8c3627;
    font-size: 0.875rem;
    line-height: 1.5;
}

.book__notice {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.book__notice--warn {
    background: #fdf6ec;
    border: 1px solid #ecd5ae;
    color: #7a5520;
}

.book__notice p {
    margin: 0;
}

.book__notice-action {
    margin-top: 0.5rem !important;
}

.book__guest-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.book__guest .field {
    margin-bottom: 0.85rem;
}

.field__optional {
    text-transform: none;
    letter-spacing: 0;
    color: #a4b0ae;
    font-family: var(--body);
}

.btn--block {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.book__reassure {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: #8b9a98;
    text-align: center;
    line-height: 1.45;
}

.book__meta {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e2ddd2;
    font-size: 0.78rem;
    color: #8b9a98;
}

.book__meta:empty {
    display: none;
}

/* --- Confirmation ------------------------------------------------------- */

.receipt {
    max-width: 40rem;
}

.receipt h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.receipt .eyebrow {
    color: var(--shallow);
}

.receipt__lines {
    margin: 2.5rem 0;
    border-top: 1px solid #e2ddd2;
}

.receipt__lines > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e2ddd2;
}

.receipt__lines dt {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a6b69;
}

.receipt__lines dd {
    margin: 0;
    font-weight: 500;
}

.receipt__total dt,
.receipt__total dd {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: var(--ink) !important;
}

.btn--ghost-dark {
    border-color: #cfc9bd;
    color: var(--ink);
    background: transparent;
}

/* Money and codes are read by eye, column by column — they line up on the digit. */
.figure {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .stay {
        grid-template-columns: 1fr;
    }

    /* Below the fold on a phone, a sticky card is just a card that gets in the way. */
    .stay__side {
        position: static;
        order: -1;
    }

    .book__guest-row {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
    border-top: 1px solid #dcd7cc;
    font-size: 0.85rem;
    color: #5a6b69;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.site-footer a {
    color: #5a6b69;
}

/* --- Sign in ------------------------------------------------------------ */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.auth__aside {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 5vw, 4rem);
    color: var(--deck);
    background:
        radial-gradient(90% 70% at 20% 100%, rgba(53, 196, 181, 0.32), transparent 62%),
        linear-gradient(178deg, #0a2f36, var(--deepwater) 55%, #052326);
}

.auth__quote {
    position: relative;
    z-index: 1;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    max-width: 22ch;
    margin: 0;
}

.auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    background: var(--deck);
}

.auth__card {
    width: 100%;
    max-width: 26rem;
}

.auth__card h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.auth__sub {
    color: #5a6b69;
    margin: 0 0 2rem;
    font-size: 0.95rem;
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5a6b69;
    margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem;
    font-family: var(--body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d3cec3;
    border-radius: 8px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:focus {
    outline: none;
    border-color: var(--poolglow);
    box-shadow: 0 0 0 3px rgba(53, 196, 181, 0.18);
}

.field--check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.field--check label {
    margin: 0;
    font-family: var(--body);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
}

.btn--submit {
    width: 100%;
    justify-content: center;
    background: var(--deepwater);
    color: var(--deck);
}

.btn--submit:hover {
    background: var(--shallow);
    transform: translateY(-1px);
}

.auth__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b9a98;
}

.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dcd7cc;
}

.auth__back {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #5a6b69;
}

/* Errors say what happened and what to do about it. They do not apologise. */
.validation-message,
.validation-errors {
    color: #c1503f;
    font-size: 0.875rem;
    margin-top: 0.4rem;
}

.validation-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.status-banner {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.status-banner--error {
    border-color: #e3b9b1;
    background: #fbf0ee;
    color: #8c3627;
}

.status-banner--ok {
    border-color: #b7dcd0;
    background: #edf7f3;
    color: #1f6b55;
}

@media (max-width: 900px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth__aside {
        display: none;
    }
}

/* --- Blazor plumbing ---------------------------------------------------- */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem 1.25rem;
    background: var(--kumquat);
    color: #2a1a06;
    font-size: 0.9rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

/* Movement here is atmosphere, never information — so it can be switched off wholesale. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
