:root { --forest: #123c35; --forest-deep: #082721; --ink: #17231f; --muted: #687771; --paper: #f6f6f2; --white: #fff; --line: #dce3df; --sun: #edbd48; --coral: #cf6041; --blue: #dceced; }
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 16px; background: var(--white); color: var(--forest); }
.skip-link:focus { top: 12px; }
.guest-boot, .fatal { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; }
.guest-boot img { width: 78px; height: 78px; object-fit: contain; }
.guest-boot p { color: var(--muted); }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.primary, .secondary { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; padding: 0 20px; font-weight: 800; }
.primary { background: var(--forest); color: var(--white); }
.primary:hover { background: var(--forest-deep); }
.primary:focus-visible, .secondary:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(237,189,72,.65); outline-offset: 2px; }
.secondary { border: 1px solid var(--line); background: var(--white); color: var(--forest); }
.primary .icon, .secondary .icon { width: 17px; height: 17px; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.08fr) minmax(520px, .92fr); }
.auth-scene { position: relative; min-height: 720px; overflow: hidden; background: var(--forest-deep); color: var(--white); }
.auth-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,31,27,.12), rgba(4,31,27,.82)); }
.auth-scene img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.scene-brand { position: absolute; z-index: 1; left: 48px; top: 42px; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; }
.scene-brand .icon { transform: rotate(180deg); }
.scene-copy { position: absolute; z-index: 1; left: clamp(48px, 7vw, 100px); right: 48px; bottom: 70px; max-width: 620px; }
.scene-copy > span { color: var(--sun); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.scene-copy h1 { margin: 17px 0 20px; font: 400 clamp(4rem, 6vw, 6.6rem)/.9 Georgia, serif; letter-spacing: 0; }
.scene-copy p { max-width: 440px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.06rem; line-height: 1.7; }
.auth-panel { display: grid; place-items: center; padding: 60px clamp(38px, 6vw, 94px); background: var(--paper); }
.auth-box { width: min(100%, 470px); }
.auth-box h2 { margin: 0 0 15px; font: 400 clamp(2.6rem, 4vw, 4rem)/.98 Georgia, serif; letter-spacing: 0; }
.auth-box > p:not(.eyebrow) { margin: 0 0 30px; color: var(--muted); line-height: 1.65; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; background: #e9ece8; }
.auth-switch button { min-height: 44px; border: 0; background: transparent; color: var(--muted); font-weight: 700; }
.auth-switch button.active { background: var(--white); color: var(--forest); box-shadow: 0 3px 12px rgba(17,47,40,.08); }
.guest-form { display: grid; gap: 17px; }
.guest-form label, .settings-form label { display: grid; gap: 8px; }
.guest-form label span, .settings-form label span { color: var(--muted); font-size: .74rem; font-weight: 800; }
.guest-form input, .settings-form input { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid #cbd4cf; border-radius: 0; background: var(--white); color: var(--ink); outline: 0; }
.guest-form input:focus, .settings-form input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(18,60,53,.1); }
.guest-form .primary { width: 100%; justify-content: space-between; margin-top: 3px; }
.text-button { border: 0; background: transparent; color: var(--forest); font-size: .78rem; font-weight: 800; }
.form-error { min-height: 18px; margin: -4px 0; color: #a33b2c; font-size: .78rem; line-height: 1.4; }
.auth-help { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.auth-help span { display: inline-flex; align-items: center; gap: 7px; }
.auth-help .icon { width: 15px; height: 15px; color: var(--forest); }
.auth-help a { color: var(--forest); font-weight: 800; }
.mobile-brand { display: none; }

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr); }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 4; width: 260px; display: flex; flex-direction: column; padding: 30px 22px 24px; background: var(--forest-deep); color: var(--white); }
.portal-brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 27px; border-bottom: 1px solid rgba(255,255,255,.12); }
.portal-brand img { width: 45px; height: 45px; object-fit: contain; }
.portal-brand span { display: grid; gap: 2px; }
.portal-brand strong { font: 400 1.28rem Georgia, serif; }
.portal-brand small { color: rgba(255,255,255,.6); font-size: .66rem; text-transform: uppercase; }
.portal-sidebar nav { display: grid; gap: 5px; margin-top: 34px; }
.portal-sidebar nav button { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; background: transparent; color: rgba(255,255,255,.68); text-align: left; }
.portal-sidebar nav button:hover, .portal-sidebar nav button.active { background: rgba(255,255,255,.1); color: var(--white); }
.portal-sidebar nav button.active { box-shadow: inset 3px 0 var(--sun); }
.sidebar-help { display: grid; gap: 10px; margin-top: auto; padding: 22px 10px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-help > span { margin-bottom: 4px; color: rgba(255,255,255,.5); font-size: .68rem; text-transform: uppercase; }
.sidebar-help a { display: flex; align-items: center; gap: 9px; font-size: .77rem; font-weight: 700; }
.sidebar-help .icon { width: 16px; height: 16px; color: var(--sun); }
.logout { min-height: 44px; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 10px; border: 0; background: transparent; color: rgba(255,255,255,.68); font-size: .76rem; }
.portal-header { position: sticky; top: 0; z-index: 3; grid-column: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(246,246,242,.94); backdrop-filter: blur(16px); }
.portal-header > a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.portal-header > a .icon { transform: rotate(180deg); }
.portal-header > div { display: flex; align-items: center; gap: 11px; font-size: .78rem; font-weight: 800; }
.portal-header i { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--forest); }
.portal-content { grid-column: 2; width: min(100%, 1240px); padding: 58px clamp(24px, 5vw, 74px) 90px; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.view-heading h1 { margin: 0; font: 400 clamp(2.8rem, 4.5vw, 4.8rem)/.98 Georgia, serif; letter-spacing: 0; }
.booking-grid { display: grid; gap: 20px; }
.guest-booking { display: grid; grid-template-columns: minmax(220px, 32%) minmax(0, 1fr); min-height: 330px; border: 1px solid var(--line); background: var(--white); }
.guest-booking.upcoming { border-top: 3px solid var(--sun); }
.guest-booking > img { width: 100%; height: 100%; min-height: 327px; object-fit: cover; }
.booking-body { min-width: 0; display: flex; flex-direction: column; padding: 30px clamp(24px, 4vw, 46px); }
.booking-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.status { padding: 7px 10px; background: var(--blue); color: var(--forest); }
.status.cancelled { background: #f5e6e2; color: #9c4532; }
.status.checked_out { background: #eceeea; color: var(--muted); }
.booking-body h2 { margin: 26px 0 20px; font: 400 2.05rem/1 Georgia, serif; }
.booking-dates { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-dates > div { display: grid; gap: 6px; }
.booking-dates span, .guest-booking dt { color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.booking-dates strong { font-size: .9rem; }
.booking-dates i { color: var(--sun); }
.guest-booking dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0; }
.guest-booking dl div { display: grid; gap: 5px; }
.guest-booking dd { margin: 0; font-size: .82rem; font-weight: 800; }
.booking-actions { display: flex; align-items: center; gap: 22px; margin-top: auto; }
.booking-actions a { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-size: .76rem; font-weight: 800; }
.booking-actions button { border: 0; background: transparent; color: #a33b2c; font-size: .74rem; font-weight: 800; }
.booking-actions .pay-booking { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 0; background: var(--forest); color: var(--white); font-size: .72rem; font-weight: 800; }
.booking-actions .pay-booking .icon { width: 15px; height: 15px; }
.empty-state { max-width: 700px; padding: 40px 0; }
.empty-state > i { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--forest); }
.empty-state h2 { margin: 0 0 15px; font: 400 clamp(2.8rem, 5vw, 5rem)/.95 Georgia, serif; }
.empty-state > p:not(.eyebrow) { max-width: 520px; margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.settings-form { max-width: 860px; display: grid; gap: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-section h2 { margin: 0 0 8px; font: 400 1.7rem Georgia, serif; }
.form-section p { margin: 0; color: var(--muted); line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-form input:disabled { background: #eeefeb; color: var(--muted); }
.settings-form .primary { justify-self: start; }
.mobile-tabs { display: none; }
.guest-toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 32px)); padding: 15px 19px; background: var(--forest); color: var(--white); box-shadow: 0 16px 40px rgba(4,31,27,.22); font-size: .82rem; }

@media (max-width: 1000px) {
    .auth-layout { grid-template-columns: 1fr 1fr; }
    .scene-copy h1 { font-size: 4rem; }
    .portal-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .portal-sidebar { width: 220px; }
    .guest-booking { grid-template-columns: 210px minmax(0, 1fr); }
    .guest-booking dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .auth-layout { display: block; min-height: 100svh; }
    .auth-scene { display: none; }
    .auth-panel { min-height: 100svh; display: block; padding: 26px 22px 48px; }
    .mobile-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 44px; }
    .mobile-brand img { width: 42px; height: 42px; object-fit: contain; }
    .mobile-brand span { display: grid; gap: 2px; }
    .mobile-brand strong { font: 400 1.25rem Georgia, serif; }
    .mobile-brand small { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
    .auth-box h2 { font-size: 2.8rem; }
    .auth-help { align-items: start; }
    .auth-help span { max-width: 170px; }
    .portal-shell { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .portal-sidebar { display: none; }
    .portal-header { height: 62px; padding: 0 18px; }
    .portal-header > div > span { display: none; }
    .portal-content { width: 100%; padding: 42px 18px 55px; }
    .view-heading { align-items: start; margin-bottom: 30px; }
    .view-heading h1 { font-size: 2.85rem; }
    .view-heading .secondary { width: 44px; min-height: 44px; padding: 0; font-size: 0; }
    .guest-booking { grid-template-columns: 1fr; min-height: 0; }
    .guest-booking > img { height: 210px; min-height: 0; }
    .booking-body { padding: 24px 20px 26px; }
    .booking-top { align-items: start; }
    .booking-body h2 { margin-top: 22px; font-size: 1.8rem; }
    .booking-dates { grid-template-columns: 1fr 22px 1fr; }
    .booking-dates strong { font-size: .78rem; }
    .guest-booking dl { gap: 14px; }
    .booking-actions { justify-content: space-between; padding-top: 6px; }
    .field-grid { grid-template-columns: 1fr; }
    .settings-form { gap: 25px; padding-top: 25px; }
    .settings-form .primary { width: 100%; }
    .mobile-tabs { position: fixed; z-index: 8; inset: auto 0 0; height: calc(66px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
    .mobile-tabs button { display: grid; place-content: center; justify-items: center; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: .62rem; }
    .mobile-tabs button.active { color: var(--forest); box-shadow: inset 0 3px var(--sun); }
    .mobile-tabs .icon { width: 18px; height: 18px; }
    .guest-toast { right: 16px; bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
