:root {
    --bg: #f4efe6;
    --paper: #fffdf8;
    --text: #1d2a2f;
    --muted: #60727c;
    --line: rgba(29, 42, 47, 0.12);
    --accent: #0f766e;
    --accent-strong: #115e59;
    --warning: #b45309;
    --danger: #b91c1c;
    --success: #166534;
    --shadow: 0 18px 50px rgba(20, 37, 45, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 30%),
        linear-gradient(180deg, #f7f3ea 0%, #efe7da 100%);
}

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

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

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

.hero {
    padding: 56px 0 36px;
}

.hero--landing {
    padding-bottom: 24px;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: end;
}

.hero__content--single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.hero__intro {
    display: grid;
    justify-items: center;
    align-content: start;
    text-align: center;
    padding-top: 10px;
}

.hero__intro--landing {
    justify-items: start;
    text-align: left;
}

.hero__intro--home {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    justify-items: center;
    text-align: center;
}

.hero h1,
.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.site-logo {
    width: min(320px, 70vw);
    height: auto;
    margin: 0 0 8px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
}

.search-card,
.login-card,
.admin-form,
.empty-state,
.admin-table {
    background: rgba(255, 253, 248, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.search-card,
.login-card {
    padding: 22px;
    border-radius: 24px;
}

.search-card {
    display: grid;
    gap: 16px;
}

.search-card--wide {
    width: 100%;
    max-width: 1120px;
}

.landing-copy {
    max-width: 700px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.landing-actions--center {
    justify-content: center;
}

.landing-panel {
    align-self: stretch;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.landing-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.landing-main {
    padding-bottom: 24px;
}

.landing-section {
    margin-bottom: 32px;
}

.landing-cards .card__description {
    min-height: 0;
    margin-bottom: 0;
}

.landing-section--cta .card {
    background: rgba(255, 253, 248, 0.92);
}

.landing-section--download {
    max-width: 760px;
    margin: 0 auto 32px;
}

.landing-download .card__body {
    text-align: center;
}

.store-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-badge__image {
    height: 54px;
    width: auto;
    display: block;
}

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

.admin-link {
    color: var(--accent-strong);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    padding-bottom: 48px;
}

.card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card__image {
    min-height: 180px;
    background-size: cover;
    background-position: center;
}

.card__body {
    padding: 20px;
}

.card__header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.card__logo-wrap {
    width: 88px;
    flex: 0 0 88px;
}

.card__logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--line);
    padding: 8px;
}

.card__title-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    width: 100%;
}

.card__title-block h3,
.card__locality {
    margin: 0;
}

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

.card__cta {
    white-space: nowrap;
    align-self: start;
    margin-top: 2px;
}

.card__description {
    color: var(--muted);
    min-height: 54px;
    margin: 0 0 14px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(29, 42, 47, 0.06);
    border: 1px solid rgba(29, 42, 47, 0.1);
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.2;
}

.card__directions {
    margin: 0 0 14px;
}

.price-tag {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--accent-strong);
    font-weight: 700;
}

.booking-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.booking-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.16);
    color: var(--accent-strong);
    font-size: 0.85rem;
}

.availability {
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 16px;
    margin: 0;
    font-size: 0.95rem;
}

.availability__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.availability__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 12px;
}

.availability--available {
    color: var(--success);
}

.availability--unavailable,
.availability--error {
    color: var(--danger);
}

.availability--unknown,
.availability--dates-required {
    color: var(--warning);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 0;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font: inherit;
}

.button-large {
    padding: 16px 28px;
    font-size: 0.98rem;
    font-weight: 700;
}

.button-secondary {
    background: transparent;
    color: var(--accent-strong);
    border: 1px solid rgba(17, 94, 89, 0.25);
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: white;
    font: inherit;
}

.admin-body {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    display: grid;
    gap: 14px;
}

.admin-shell {
    padding: 36px 0 48px;
}

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

.admin-table {
    border-radius: 24px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

.row-actions {
    display: flex;
    gap: 12px;
}

.admin-form {
    border-radius: 24px;
    padding: 22px;
}

.admin-form h3 {
    margin-top: 26px;
}

.gallery-editor {
    margin-bottom: 22px;
}

.gallery-editor__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-editor__head h3 {
    margin: 0;
}

.gallery-editor__list {
    display: grid;
    gap: 10px;
}

.gallery-editor__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.gallery-editor__remove {
    white-space: nowrap;
}

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

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.checkbox input {
    width: auto;
}

.checkbox--compact {
    margin: 0;
    font-size: 0.88rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
    margin-bottom: 12px;
}

.filter-dropdown {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
}

.filter-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.filter-dropdown__panel {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
    max-height: 220px;
    overflow: auto;
    border-top: 1px solid var(--line);
}

.results-toggle {
    display: grid;
    gap: 12px;
    margin-bottom: 10px;
}

.results-toggle__field {
    max-width: 260px;
    margin-bottom: 6px;
}

.results-toggle__field:first-of-type {
    max-width: 360px;
}

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

.toggle input {
    width: auto;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

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

.switch__slider {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(96, 114, 124, 0.35);
    transition: background 0.2s ease;
    flex: 0 0 52px;
}

.switch__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.switch input:checked + .switch__slider {
    background: var(--accent);
}

.switch input:checked + .switch__slider::after {
    transform: translateX(22px);
}

.switch__label {
    color: var(--accent-strong);
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
}

.flash--success {
    background: rgba(22, 101, 52, 0.1);
    color: var(--success);
}

.flash--error {
    background: rgba(185, 28, 28, 0.1);
    color: var(--danger);
}

.empty-state {
    border-radius: 24px;
    padding: 30px;
}

.site-footer {
    padding: 8px 0 24px;
}

.site-footer p {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--accent-strong);
}

.privacy-policy {
    max-width: 860px;
    margin: 0 auto 32px;
}

.privacy-policy__body {
    line-height: 1.7;
}

.privacy-policy__body h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.privacy-policy__body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 24px 0;
}

.privacy-policy__body ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

@media (max-width: 800px) {
    .hero__content,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero__intro--landing {
        justify-items: center;
        text-align: center;
    }

    .hero__intro--home {
        max-width: none;
    }

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

    .results-toggle__field {
        max-width: none;
    }

    .card__image {
        min-height: 160px;
    }

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

    .gallery-editor__head,
    .gallery-editor__row {
        grid-template-columns: 1fr;
    }

}
