@font-face {
    font-family: "Anton Custom";
    src: url("/assets/fonts/anton-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Anton Custom";
    src: url("/assets/fonts/anton-latin-ext.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #d7d1c5;
    --surface: rgba(244, 240, 232, 0.86);
    --surface-strong: #f5f0e8;
    --surface-alt: #d8d1c5;
    --text: #1d2723;
    --muted: #667168;
    --line: rgba(29, 39, 35, 0.1);
    --brand: #3b5a4c;
    --brand-dark: #22362d;
    --accent: #bb7b44;
    --signal: #cc6a36;
    --danger: #a9473d;
    --danger-soft: rgba(169, 71, 61, 0.12);
    --success: #2f6a51;
    --success-soft: rgba(47, 106, 81, 0.12);
    --free: rgba(76, 114, 90, 0.11);
    --booked: rgba(187, 123, 68, 0.14);
    --blocked: rgba(97, 106, 132, 0.16);
    --radius: 10px;
    --shadow: 0 20px 44px rgba(47, 40, 26, 0.08);
}

* { box-sizing: border-box; }
*::before,
*::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(187, 123, 68, 0.16), transparent 22rem),
        radial-gradient(circle at top left, rgba(59, 90, 76, 0.12), transparent 18rem),
        linear-gradient(180deg, #dbd4c7 0%, #d1c9bc 100%);
    color: var(--text);
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, .brand-block h1 {
    font-family: "Anton Custom", Impact, sans-serif;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}
h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    letter-spacing: -0.02em;
    text-transform: none;
}
h1, h2 { margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4vw, 3.05rem); line-height: 0.92; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 0.98; }
p { margin-top: 0; }
.muted { color: var(--muted); }
.wrap { word-break: break-all; }
.text-error { color: var(--danger); }
.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.28rem 0.55rem;
    border-radius: 4px;
    background: rgba(59, 90, 76, 0.08);
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(233, 226, 216, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(29, 39, 35, 0.08);
    padding: 1.1rem 1rem 0.85rem;
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    align-items: flex-end;
}
.brand-block {
    max-width: 36rem;
}
.brand-block .muted {
    max-width: 24rem;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
}
.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}
.topnav a,
.button-link,
button,
input,
select,
textarea {
    font: inherit;
}
.topnav a,
.link-button,
.button-link,
button {
    border-radius: 6px;
    border: 1px solid rgba(29, 39, 35, 0.11);
    background: rgba(255, 255, 255, 0.35);
    color: var(--brand-dark);
    padding: 0.66rem 0.9rem;
    font-weight: 700;
    box-shadow: none;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.topnav a.active,
.button-link {
    background: var(--brand-dark);
    color: #f7f2ea;
    border-color: transparent;
}
.link-button,
button.secondary {
    background: rgba(255, 255, 255, 0.18);
    color: var(--brand-dark);
}
.link-button {
    border: 1px solid rgba(29, 39, 35, 0.1);
    padding-inline: 0.9rem;
}
.topnav a:hover,
.button-link:hover,
button:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.52);
}

.page,
.auth-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}
.cleaner-page {
    max-width: 1040px;
    padding-top: 2rem;
}
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}
.auth-card {
    width: min(100%, 420px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card {
    background: linear-gradient(180deg, rgba(247, 243, 236, 0.82), rgba(239, 233, 224, 0.88));
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
h2 + .muted,
.card > .muted {
    color: #6b756c;
}
.card-head,
.toolbar,
.actions,
.calendar-head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.property-focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.property-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.property-heading {
    margin: 0;
}
.property-signal {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.95rem 1.1rem 1rem;
    border-left: 6px solid var(--signal);
    background: linear-gradient(90deg, rgba(204, 106, 54, 0.16), rgba(255, 255, 255, 0.18));
}
.property-signal-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal);
}
.property-signal .property-heading {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    color: var(--brand-dark);
    text-shadow: none;
}
.property-tab {
    display: grid;
    gap: 0.12rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-left: 5px solid transparent;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.18));
    color: var(--text);
    transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}
.property-tab:hover {
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.46), rgba(255,255,255,0.24));
}
.property-tab.active {
    border-color: rgba(29, 39, 35, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.property-tab.property-hestur {
    border-left-color: #335d4e;
}
.property-tab.property-hillside {
    border-left-color: #c66f3d;
}
.property-tab-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.property-tab strong {
    font-size: 1.15rem;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 700;
    color: var(--brand-dark);
}
.grid {
    display: grid;
    gap: 1rem;
}
.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stack {
    display: grid;
    gap: 1rem;
}
label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-dark);
}
input,
select,
textarea {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid rgba(29, 39, 35, 0.12);
    background: rgba(255, 255, 255, 0.52);
    border-radius: 6px;
    padding: 0.78rem 0.82rem;
    color: var(--text);
}
input::placeholder,
textarea::placeholder {
    color: #889187;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(209, 138, 77, 0.7);
    box-shadow: 0 0 0 3px rgba(209, 138, 77, 0.12);
}
input[readonly] {
    color: #6c756c;
    background: rgba(255, 255, 255, 0.32);
}
input[type="date"],
input[type="month"],
input[type="email"],
input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
}
label {
    min-width: 0;
}
textarea { resize: vertical; }
button {
    cursor: pointer;
}
.alert {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}
.alert.success {
    background: var(--success-soft);
    color: var(--success);
}
.alert.error {
    background: var(--danger-soft);
    color: var(--danger);
}
.list {
    display: grid;
    gap: 0.6rem;
}
.list-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem 1rem 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.28));
}
.list-item strong,
.list-item span {
    display: block;
}
.list-item strong {
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}
.list-item span {
    color: #667167;
    font-size: 0.92rem;
}
.property-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.55rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.property-hestur {
    background: rgba(32, 76, 64, 0.12);
    color: #1e5442;
}
.property-hillside {
    background: rgba(217, 92, 43, 0.14);
    color: #a14924;
}
.list-item-block {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.legend {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.legend-item,
.pill {
    display: inline-block;
    border-radius: 4px;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}
.free { background: var(--free); }
.booked { background: var(--booked); }
.blocked { background: var(--blocked); }

.calendar-shell {
    overflow-x: auto;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    min-width: 760px;
}
.weekday {
    font-weight: 700;
    color: var(--muted);
    padding: 0.3rem 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}
.day {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}
.day.outside {
    opacity: 0.42;
}
.day.today {
    outline: 2px solid rgba(39, 88, 70, 0.4);
    outline-offset: 2px;
}
.day.free {
    background: linear-gradient(180deg, rgba(76, 114, 90, 0.14), rgba(76, 114, 90, 0.06));
}
.day.occupied {
    background: linear-gradient(180deg, rgba(187, 123, 68, 0.13), rgba(187, 123, 68, 0.06));
}
.day.turnover {
    background: linear-gradient(180deg, rgba(204, 106, 54, 0.16), rgba(59, 90, 76, 0.1));
}
.day-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.day-number {
    font-weight: 800;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}
.day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    border-radius: 4px;
    background: rgba(34, 54, 45, 0.08);
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
}
.turnover-count {
    background: rgba(204, 106, 54, 0.18);
    color: #9d4e25;
}
.arrival-count {
    min-width: 2rem;
    background: rgba(47, 106, 81, 0.14);
    color: #24553f;
}
.departure-count {
    min-width: 2.35rem;
    background: rgba(169, 71, 61, 0.14);
    color: #8e3c34;
}
.day-transitions {
    display: grid;
    gap: 0.22rem;
    margin: 0.2rem 0 0.32rem;
}
.transition-chip {
    display: block;
    width: 100%;
    padding: 0.18rem 0.42rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.transition-chip strong {
    font-weight: 900;
    margin-right: 0.18rem;
}
.transition-chip.arrival {
    background: rgba(47, 106, 81, 0.16);
    color: #24553f;
}
.transition-chip.arrival strong {
    color: #1d7a52;
}
.transition-chip.departure {
    background: rgba(169, 71, 61, 0.15);
    color: #8e3c34;
}
.transition-chip.departure strong {
    color: #b33d34;
}
.day-bookings {
    display: grid;
    gap: 0.3rem;
}
.pill {
    color: var(--text);
}
.pill.booked,
.pill.blocked {
    text-decoration: none;
}
.day-dots {
    display: none;
    gap: 0.2rem;
    margin-top: auto;
    padding-top: 0.3rem;
}
.dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--line);
}
.dot.booked { background: var(--accent); }
.dot.blocked { background: #6f7895; }
.dot.free { background: #8db49a; }
.dot.transition { background: var(--signal); }
.nav-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.28);
    border: 1px solid var(--line);
    font-weight: 700;
}
.agenda-list {
    display: grid;
    gap: 0.8rem;
}
.agenda-item {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.28));
    border: 1px solid var(--line);
}
.agenda-item strong {
    font-size: 1.02rem;
}
.agenda-item span:last-child {
    color: #667167;
}
.wrap {
    overflow-wrap: anywhere;
}
.agenda-badge {
    width: fit-content;
    border-radius: 4px;
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.agenda-badge.booked {
    background: rgba(178, 102, 47, 0.14);
    color: #8a4d21;
}
.agenda-badge.blocked {
    background: rgba(111, 120, 149, 0.16);
    color: #4e5774;
}
.month-agenda {
    display: block;
}
.email-preview pre {
    white-space: pre-wrap;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}
.booking-stack > .grid {
    gap: 0.9rem;
}
.booking-stack > label,
.booking-stack > .grid > label {
    gap: 0.28rem;
}

@media (max-width: 800px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.45rem; }
    .topbar {
        align-items: stretch;
        flex-direction: column;
        padding-top: 0.9rem;
    }
    .brand-block .muted {
        font-size: 0.95rem;
        max-width: none;
    }
    .topnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.1rem;
        margin-inline: -0.1rem;
    }
    .topnav a,
    .topnav form,
    .link-button {
        flex: 0 0 auto;
    }
    .topnav a,
    .link-button {
        white-space: nowrap;
    }
    .page,
    .auth-card {
        padding-inline: 0.8rem;
    }
    .card {
        padding: 0.9rem;
    }
    .property-signal {
        width: 100%;
        padding: 0.72rem 0.8rem 0.82rem;
    }
    .property-signal .property-heading {
        font-size: 1.9rem;
    }
    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }
    .property-switcher {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .booking-stack {
        gap: 0.82rem;
    }
    .booking-stack > .grid {
        gap: 0.72rem;
    }
    .booking-stack input,
    .booking-stack select,
    .booking-stack textarea {
        padding: 0.72rem 0.76rem;
    }
    .booking-stack label {
        font-size: 0.8rem;
    }
    input[type="date"],
    input[type="month"] {
        font-size: 16px;
        padding-right: 0.55rem;
    }
    .card-head .button-link,
    .card-head button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .toolbar {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
    }
    .calendar-head {
        align-items: center;
    }
    .calendar-grid {
        min-width: 0;
        gap: 0.35rem;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
    .weekday {
        padding: 0 0 0.2rem;
        text-align: center;
        font-size: 0.62rem;
    }
    .day {
        min-height: 3.8rem;
        border-radius: 14px;
        padding: 0.45rem 0.35rem;
    }
    .day-number {
        margin-bottom: 0;
        font-size: 0.82rem;
    }
    .day-count {
        min-width: 1.15rem;
        height: 1.15rem;
        font-size: 0.62rem;
    }
    .day-dots {
        display: flex;
        flex-wrap: wrap;
    }
    .day-bookings {
        display: grid;
        gap: 0.2rem;
        margin-top: 0.2rem;
    }
    .day-transitions {
        gap: 0.16rem;
        margin: 0.12rem 0 0.18rem;
    }
    .transition-chip {
        padding: 0.14rem 0.28rem;
        font-size: 0.5rem;
    }
    .day-bookings .pill {
        padding: 0.18rem 0.36rem;
        font-size: 0.58rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .day-bookings .pill.free {
        display: none;
    }
    .month-agenda {
        display: block;
    }
    .list-item-block {
        display: grid;
    }
    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .actions form,
    .actions button {
        width: 100%;
    }
}
