:root {
    color-scheme: light;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-soft: #eef2f5;
    --text: #18212f;
    --muted: #5f6b7a;
    --line: #d9e0e8;
    --accent: #0f766e;
    --accent-strong: #134e4a;
    --warning: #b45309;
    --danger: #b91c1c;
    --success: #166534;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #f3f5f8 100%);
}

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

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

button,
input,
textarea {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
}

.site-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.flash-stack {
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.flash--success {
    border-color: #bbf7d0;
    color: var(--success);
    background: #f0fdf4;
}

.flash--error {
    border-color: #fecaca;
    color: var(--danger);
    background: #fef2f2;
}

.hero,
.catalog,
.detail-hero,
.booking-shell {
    padding: 28px 0 56px;
}

.hero {
    padding-top: 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.hero-grid,
.detail-grid,
.booking-grid {
    display: grid;
    gap: 22px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    align-items: center;
}

.detail-grid,
.booking-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-copy h1,
.section-head h1,
.section-head h2,
.product-card h3,
.detail-copy h1 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0;
}

.hero-copy h1,
.detail-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    max-width: 10ch;
}

.lead {
    max-width: 64ch;
    margin: 16px 0 0;
    font-size: 1.06rem;
    line-height: 1.65;
    color: var(--muted);
}

.hero-panel,
.product-card,
.booking-panel,
.detail-media,
.admin-row,
.admin-form,
.calendar {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 18px;
}

.hero-panel__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hero-panel__content {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin: 14px 0 18px;
}

.hero-panel__value {
    font-size: 1.4rem;
    font-weight: 700;
}

.hero-panel__meta {
    color: var(--muted);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-head--tight {
    margin-bottom: 12px;
}

.section-head h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-head h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.section-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
}

.product-card__media,
.detail-media {
    padding: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.product-card__media img,
.detail-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.product-card__body {
    padding: 18px;
}

.product-card__topline {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    margin-bottom: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f4f2;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
}

.price small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.product-card h3 {
    font-size: 1.18rem;
}

.product-card p {
    margin: 10px 0 14px;
    color: var(--muted);
    line-height: 1.55;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button--primary {
    background: var(--accent);
    color: #fff;
}

.button--primary:hover {
    background: var(--accent-strong);
}

.button--secondary {
    background: #f8fafc;
    color: var(--text);
    border-color: var(--line);
}

.button--secondary:hover {
    border-color: #b9c4d0;
}

.detail-hero {
    padding-bottom: 28px;
}

.detail-media {
    overflow: hidden;
}

.detail-copy {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.detail-meta div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.booking-panel {
    padding: 18px;
}

.datepicker {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.datepicker__field {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.datepicker__field:hover {
    background: #f8fafc;
}

.datepicker__label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.datepicker__display {
    font-weight: 700;
    color: var(--text);
}

.datepicker__chevron {
    color: var(--muted);
    font-size: 0.9rem;
}

.datepicker__panel {
    display: none;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.datepicker__panel--open {
    display: block;
}

.calendar {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.calendar__toolbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.calendar__title {
    text-align: center;
    font-weight: 700;
    text-transform: capitalize;
}

.icon-button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.calendar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.calendar__legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend--free {
    background: #d1fae5;
}

.legend--blocked {
    background: #fecaca;
}

.legend--selected {
    background: #c7d2fe;
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar__weekday,
.calendar__day {
    min-height: 44px;
    border-radius: 8px;
}

.calendar__weekday {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.82rem;
}

.calendar__day {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    text-align: left;
    padding: 0;
}

.calendar__day--available {
    background: #fff;
}

.calendar__day--empty {
    border: 1px dashed transparent;
    background: transparent;
}

.calendar__day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
}

.calendar__day--blocked,
.calendar__day:disabled {
    background: #fff1f2;
    color: #9f1239;
    cursor: not-allowed;
}

.calendar__day--selected {
    background: #dbeafe;
    border-color: #93c5fd;
}

.calendar__summary {
    margin-top: 12px;
    color: var(--muted);
}

.booking-form,
.admin-form {
    display: grid;
    gap: 14px;
}

.booking-form label,
.admin-form label {
    display: grid;
    gap: 8px;
}

.booking-form span,
.admin-form span {
    font-size: 0.9rem;
    font-weight: 700;
}

.booking-form input,
.booking-form textarea,
.admin-form input,
.admin-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}

.booking-form textarea,
.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

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

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.admin-row img {
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.admin-row h2 {
    margin: 0 0 4px;
    font-size: 1.06rem;
}

.admin-row p {
    margin: 0;
    color: var(--muted);
}

.admin-row__muted {
    margin-top: 4px;
}

.admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
}

.admin-form__full {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    .hero-grid,
    .detail-grid,
    .booking-grid,
    .product-grid,
    .admin-row {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 1180px);
    }

    .hero-copy h1,
    .detail-copy h1 {
        max-width: none;
    }

    .hero-panel__content,
    .product-card__topline {
        flex-direction: column;
        align-items: start;
    }

    .price {
        text-align: left;
    }

    .detail-meta,
    .admin-form {
        grid-template-columns: 1fr;
    }
}
