:root {
    color-scheme: light;
    --bg: #f6f7f2;
    --surface: #ffffff;
    --surface-strong: #111814;
    --ink: #151b17;
    --muted: #62706a;
    --line: #dbe2d7;
    --brand: #0b7f5c;
    --brand-strong: #07543f;
    --gold: #c99b38;
    --coral: #d9634f;
    --sky: #4178be;
    --shadow: 0 18px 50px rgba(17, 24, 20, 0.16);
    --radius: 8px;
    --header-height: 76px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1411;
    --surface: #17211c;
    --surface-strong: #ecf3eb;
    --ink: #eef5ee;
    --muted: #9fb0a8;
    --line: #2c3b34;
    --brand: #4fd1a1;
    --brand-strong: #9ff0cb;
    --gold: #e0bd67;
    --coral: #ff8b72;
    --sky: #8db8f0;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    border: 0;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px clamp(16px, 4vw, 48px);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--bg);
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.site-footer span,
.eyebrow,
.property-card p,
.calendar-head span,
.metric-grid span,
.plan-stack em {
    color: var(--muted);
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--muted);
}

.site-nav a:hover {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions form {
    margin: 0;
}

.mobile-tabbar {
    display: none;
}

.button,
.icon-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
    white-space: nowrap;
}

.button {
    padding: 0 18px;
    border: 1px solid transparent;
}

.button:hover,
.icon-button:hover,
.calendar-day:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.button-primary {
    background: var(--brand);
    color: #ffffff;
}

.button-dark {
    background: var(--surface-strong);
    color: var(--bg);
}

.button-ghost,
.button-glass {
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    color: var(--ink);
}

.button-glass {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
}

.icon-button {
    width: 42px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
}

.full {
    width: 100%;
}

.flash {
    max-width: 1120px;
    margin: 18px auto 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.flash-success {
    background: color-mix(in srgb, var(--brand) 16%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--line));
}

.flash-error {
    background: color-mix(in srgb, var(--coral) 14%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--coral) 38%, var(--line));
}

.availability-banner {
    padding: 12px clamp(16px, 5vw, 64px);
    background: color-mix(in srgb, var(--coral) 16%, var(--surface));
    border-bottom: 1px solid color-mix(in srgb, var(--coral) 36%, var(--line));
    color: var(--ink);
    font-weight: 900;
}

.hero {
    min-height: calc(100vh - 138px);
    display: grid;
    grid-template-columns: minmax(260px, 0.84fr) minmax(360px, 1.16fr);
    align-items: center;
    gap: clamp(18px, 4vw, 48px);
    padding: clamp(28px, 6vw, 74px) clamp(16px, 5vw, 64px);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(8, 13, 10, 0.82), rgba(8, 13, 10, 0.46)),
        var(--hero-image) center / cover no-repeat;
}

.home-hero {
    min-height: calc(100vh - 126px);
    grid-template-columns: 1fr;
    align-content: end;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(8, 13, 10, 0.86), rgba(8, 13, 10, 0.52), rgba(8, 13, 10, 0.2)),
        var(--hero-image) center / cover no-repeat;
}

.hero-copy,
.property-hero > div {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero .eyebrow,
.property-hero .eyebrow {
    color: #e7cf87;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.06;
    margin: 0;
}

.hero h1,
.property-hero h1,
.confirmation-hero h1,
.dashboard-heading h1,
.empty-state h1 {
    font-size: 4.25rem;
}

.hero p,
.property-hero p,
.confirmation-hero p {
    max-width: 620px;
    font-size: 1.05rem;
}

.hero-actions,
.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-proof {
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 52px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-proof span {
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px;
    background: rgba(8, 13, 10, 0.2);
}

.hero-proof strong {
    color: #e7cf87;
}

.booking-console {
    display: grid;
    grid-template-columns: minmax(270px, 0.86fr) minmax(340px, 1.14fr);
    gap: 16px;
    align-items: stretch;
}

.booking-form,
.calendar-widget,
.auth-card,
.summary-panel,
.panel {
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.booking-form,
.auth-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.form-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.form-title span,
.form-title strong {
    font-weight: 900;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}

textarea {
    min-height: 108px;
    padding-top: 10px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid color-mix(in srgb, var(--brand) 26%, transparent);
    border-color: var(--brand);
}

.calendar-widget {
    padding: 16px;
    overflow: hidden;
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.calendar-head strong,
.calendar-head span {
    display: block;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    font-size: 0.78rem;
}

.calendar-nav {
    display: inline-grid;
    grid-template-columns: 34px minmax(86px, auto) 34px;
    gap: 6px;
    align-items: center;
}

.calendar-nav button {
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 900;
}

.calendar-nav span {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
}

.dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
}

.dot.available,
.calendar-day.available {
    --status: var(--brand);
}

.dot.pending,
.calendar-day.pending {
    --status: var(--gold);
}

.dot.booked,
.calendar-day.booked {
    --status: var(--coral);
}

.dot.blocked,
.calendar-day.blocked {
    --status: var(--muted);
}

.calendar-day.past {
    --status: var(--muted);
}

.dot {
    background: var(--status);
}

.calendar-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.calendar-month {
    min-width: 0;
    display: none;
}

.calendar-month.is-visible {
    display: block;
}

.calendar-month h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1rem;
}

.calendar-weekdays,
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-empty {
    min-height: 54px;
}

.calendar-day {
    min-width: 0;
    min-height: 54px;
    display: grid;
    gap: 1px;
    align-content: center;
    justify-items: center;
    padding: 5px 3px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--status) 13%, var(--surface));
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--status) 42%, var(--line));
}

.calendar-day.booked,
.calendar-day.pending,
.calendar-day.blocked,
.calendar-day.past {
    opacity: 0.72;
}

.calendar-day em,
.calendar-day small {
    color: var(--muted);
    font-style: normal;
    font-size: 0.64rem;
}

.calendar-day strong {
    font-size: 0.95rem;
}

.calendar-day small {
    font-weight: 800;
}

.calendar-day.range-start,
.calendar-day.range-end {
    background: var(--surface-strong);
    border-color: var(--surface-strong);
    color: var(--bg);
}

.calendar-day.range-start em,
.calendar-day.range-end em {
    color: color-mix(in srgb, var(--bg) 82%, transparent);
}

.calendar-day.in-range {
    background: color-mix(in srgb, var(--brand) 18%, var(--surface));
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.calendar-day:disabled {
    cursor: not-allowed;
    transform: none;
}

.calendar-action-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.checkout-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.payment-option {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.payment-option h3,
.payment-option p {
    margin: 0;
}

.payment-option p {
    color: var(--muted);
    font-size: 0.9rem;
}

.payment-reference-form {
    display: grid;
    gap: 8px;
}

.checkout-qr,
.payment-qr-preview img {
    width: 138px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.band,
.property-layout,
.confirmation-shell,
.dashboard-shell,
.empty-state {
    padding: clamp(42px, 6vw, 82px) clamp(16px, 5vw, 64px);
}

.band {
    background: var(--bg);
}

.band.muted {
    background: color-mix(in srgb, var(--surface) 48%, var(--bg));
}

.intro-band {
    padding-top: clamp(36px, 5vw, 68px);
}

.section-heading,
.dashboard-heading {
    max-width: 1120px;
    margin: 0 auto 28px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.section-heading h2 {
    font-size: 2.75rem;
}

.farmhouse-grid,
.platform-grid,
.plan-grid,
.ops-grid,
.metric-grid,
.summary-grid,
.dashboard-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.farmhouse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-grid {
    grid-template-columns: 1.18fr 0.82fr;
    align-items: stretch;
}

.property-card,
.platform-card,
.plan-card,
.ops-grid > div,
.metric-grid > article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

.platform-card {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.platform-card.feature-wide {
    grid-row: span 3;
    padding: 0;
}

.platform-card.feature-wide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.platform-card.feature-wide div {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.platform-card span {
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.platform-card h3 {
    font-size: 1.45rem;
}

.platform-card p {
    margin: 0;
    color: var(--muted);
}

.property-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.property-card > div,
.plan-card,
.ops-grid > div,
.metric-grid > article {
    padding: 18px;
}

.private-url-band {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(10, 35, 27, 0.94), rgba(14, 36, 49, 0.88)),
        url("https://images.unsplash.com/photo-1510798831971-661eb04b3739?auto=format&fit=crop&w=1600&q=82") center / cover no-repeat;
}

.private-url-layout {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: center;
}

.private-url-layout h2 {
    font-size: 2.75rem;
}

.private-url-layout p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
}

.url-stack {
    display: grid;
    gap: 10px;
}

.url-stack div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.url-stack span {
    color: #e7cf87;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.url-stack strong {
    overflow-wrap: anywhere;
}

.property-card h3 {
    margin: 4px 0 14px;
    font-size: 1.45rem;
}

.property-meta,
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.property-meta span,
.chip-list span,
.status-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, var(--surface));
    color: var(--brand-strong);
    font-size: 0.8rem;
    font-weight: 900;
}

.plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
    display: grid;
    gap: 12px;
}

.plan-card > span,
.plan-stack span {
    color: var(--brand-strong);
    font-weight: 900;
}

.plan-card strong {
    font-size: 2rem;
}

.plan-card small {
    color: var(--muted);
    font-size: 0.9rem;
}

.plan-card ul,
.clean-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.ops-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-grid > div {
    display: grid;
    gap: 8px;
}

.ops-grid strong {
    font-size: 1.2rem;
}

.closing-strip {
    max-width: 1120px;
    margin: 18px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--sky) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--sky) 32%, var(--line));
}

.closing-strip span {
    color: var(--muted);
    font-weight: 800;
}

.property-hero {
    min-height: 420px;
    display: flex;
    align-items: end;
    padding: clamp(42px, 7vw, 82px) clamp(16px, 5vw, 64px);
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(8, 13, 10, 0.82), rgba(8, 13, 10, 0.22)),
        var(--hero-image) center / cover no-repeat;
}

.property-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.property-hero-stats span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    font-weight: 900;
}

.property-layout {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.property-calendar-zone,
.property-main {
    grid-column: 1;
    display: grid;
    gap: 22px;
}

.property-calendar-zone {
    align-self: start;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    min-height: 190px;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.detail-block {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.detail-block h2 {
    margin-bottom: 14px;
}

.detail-copy {
    max-width: 780px;
    color: var(--muted);
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rate-grid article {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.rate-grid span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rate-grid strong {
    color: var(--brand-strong);
    font-size: 1.25rem;
}

.sticky-booking {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--header-height) + 18px);
    align-self: start;
}

.price-preview {
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--gold) 14%, var(--surface));
    color: var(--ink);
    font-size: 0.88rem;
}

.confirmation-hero h1,
.dashboard-heading h1,
.empty-state h1 {
    color: var(--ink);
}

.confirmation-shell,
.dashboard-shell {
    max-width: 1220px;
    margin: 0 auto;
}

.confirmation-hero {
    margin-bottom: 24px;
}

.summary-grid,
.dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
}

.summary-panel,
.panel {
    padding: 20px;
    box-shadow: none;
}

.summary-panel h2,
.panel h2 {
    margin-bottom: 16px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin-bottom: 0;
}

.helper-text {
    max-width: 280px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: right;
}

.management-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.span-2 {
    grid-column: 1 / -1;
}

.checkbox-line {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    min-height: 44px;
}

.checkbox-line input {
    width: 18px;
    min-height: 18px;
}

.form-section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.form-section-title strong {
    color: var(--ink);
}

.form-section-title span,
.payment-qr-preview span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.payment-qr-preview {
    display: flex;
    gap: 12px;
    align-items: center;
}

.money-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.money-list div,
.timeline div,
.plan-stack div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.money-list dt,
.money-list dd {
    margin: 0;
}

.money-list dt,
.timeline span {
    color: var(--muted);
}

.money-list dd,
.timeline strong {
    font-weight: 900;
    text-align: right;
}

.money-list .total {
    color: var(--brand-strong);
    font-size: 1.1rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric-grid > article {
    display: grid;
    gap: 6px;
}

.metric-grid strong {
    font-size: 1.55rem;
}

.dashboard-heading {
    max-width: none;
}

.owner-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    margin-bottom: 16px;
}

.side-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.compact-timeline div {
    display: grid;
}

.owner-calendar-row {
    display: grid;
    margin-bottom: 16px;
}

.status-pill.active {
    background: color-mix(in srgb, var(--brand) 16%, var(--surface));
}

.status-pill.pending {
    background: color-mix(in srgb, var(--gold) 18%, var(--surface));
    color: color-mix(in srgb, var(--gold) 72%, var(--ink));
}

.owner-bookings-panel {
    margin-top: 16px;
}

.inline-toggle-form {
    margin: 0;
}

.inline-password-form {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 190px;
}

.inline-status-form {
    min-width: 150px;
}

.inline-status-form select {
    min-height: 36px;
}

.inline-password-form input {
    min-height: 36px;
}

.inline-password-form .button {
    min-height: 36px;
    padding: 0 12px;
}

.booking-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.booking-action-row form {
    margin: 0;
}

.booking-action-row .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
}

.switch-control {
    display: inline-grid;
    grid-template-columns: 42px auto;
    gap: 8px;
    align-items: center;
    min-width: 74px;
    color: var(--muted);
}

.switch-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch-control span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 22%, var(--surface));
    border: 1px solid var(--line);
}

.switch-control span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.switch-control input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
}

.switch-control input:checked + span::after {
    left: 21px;
}

.switch-control em {
    font-style: normal;
    font-weight: 900;
}

.plan-stack {
    display: grid;
}

.plan-stack div {
    align-items: center;
}

.table-link {
    color: var(--brand-strong);
    font-weight: 900;
}

.muted-text {
    color: var(--muted);
}

.timeline {
    display: grid;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(16px, 5vw, 64px);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer div {
    display: grid;
    gap: 4px;
}

.empty-state {
    min-height: calc(100vh - 180px);
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    gap: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-minimal-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(42px, 6vw, 82px) clamp(16px, 5vw, 64px);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--surface) 72%, transparent)),
        url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1800&q=84") center / cover no-repeat;
}

.auth-minimal-card {
    width: min(100%, 380px);
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 6px;
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--bg);
    font-size: 1.3rem;
    font-weight: 900;
}

.auth-submit {
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 1080px) {
    .hero,
    .booking-console,
    .property-layout,
    .summary-grid,
    .dashboard-grid,
    .owner-management-grid,
    .platform-grid,
    .private-url-layout {
        grid-template-columns: 1fr;
    }

    .sticky-booking {
        grid-column: auto;
        grid-row: auto;
        position: static;
    }

    .property-calendar-zone,
    .property-main {
        grid-column: auto;
    }

    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-grid,
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1,
    .property-hero h1,
    .confirmation-hero h1,
    .dashboard-heading h1,
    .empty-state h1 {
        font-size: 3.25rem;
    }

    .section-heading h2 {
        font-size: 2.25rem;
    }

    .private-url-layout h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 78px;
    }

    .site-header,
    .site-footer,
    .section-heading,
    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header {
        gap: 12px;
    }

    .site-nav {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-tabbar {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .mobile-tabbar a {
        min-height: 48px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 900;
    }

    .mobile-tabbar a:hover {
        background: color-mix(in srgb, var(--brand) 12%, var(--surface));
        color: var(--brand-strong);
    }

    .hero {
        min-height: auto;
        padding-top: 38px;
    }

    .farmhouse-grid,
    .plan-grid,
    .ops-grid,
    .metric-grid,
    .hero-proof,
    .rate-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-months {
        grid-template-columns: 1fr;
    }

    .hero-proof {
        margin-top: 34px;
    }

    .closing-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .panel-heading {
        display: grid;
    }

    .helper-text {
        max-width: none;
        text-align: left;
    }

    .calendar-day {
        min-height: 50px;
    }

    .calendar-head {
        display: grid;
    }

    .calendar-legend {
        justify-content: flex-start;
    }

    .button,
    .icon-button {
        min-height: 44px;
    }
}

@media (max-width: 460px) {
    .brand {
        min-width: 0;
    }

    .brand small {
        display: none;
    }

    .gallery-grid,
    .metric-grid,
    .rate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1,
    .property-hero h1,
    .confirmation-hero h1,
    .dashboard-heading h1,
    .empty-state h1 {
        font-size: 2.25rem;
    }
}
