@font-face {
    font-family: "Fraunces";
    src: url("/fonts/fraunces/Fraunces-Latin-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/fonts/plus-jakarta-sans/PlusJakartaSans-Latin-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("/fonts/lora/Lora-Latin-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter/Inter-Latin-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Material Symbols Outlined";
    src: url("/fonts/material-symbols/MaterialSymbolsOutlined-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
}

:root {
    --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    --heading-font-weight: 600;
    --heading-letter-spacing: -0.02em;
    --bs-body-font-family: var(--font-body);
    --bg: #f8f4ea;
    --bg-soft: #efe8d9;
    --surface: #fffdf7;
    --surface-muted: #f3efe5;
    --text: #202622;
    --text-muted: #58635d;
    --primary: #123d34;
    --primary-soft: #276858;
    --blue: #d9e8ea;
    --sand: #d9c59d;
    --accent: #b96f47;
    --line: rgba(18, 61, 52, 0.16);
    --shadow: 0 24px 70px rgba(27, 52, 45, 0.13);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --max: 1180px;
    --header-height: 94px;
}

html.typography-classic {
    --font-heading: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --heading-font-weight: 500;
    --heading-letter-spacing: normal;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    font-family: var(--font-body);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--font-body);
}

body.reconnect-modal-open {
    overflow: hidden;
}

body,
button,
input,
select,
textarea {
    letter-spacing: 0;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: var(--heading-font-weight);
    line-height: 1.12;
    letter-spacing: var(--heading-letter-spacing);
}

button,
input,
select,
textarea {
    font: inherit;
}

main {
    padding-top: var(--header-height);
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.material-symbols-outlined {
    display: inline-block;
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

.wrap,
.section-shell {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-shell {
    padding-top: 92px;
    padding-bottom: 92px;
}

.soft-bg,
.target-section,
.main-quote-section,
.booking-section {
    background: var(--bg-soft);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head {
    margin-bottom: 42px;
}

.section-head--center,
.target-head {
    max-width: 770px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head h2,
.target-head h2,
.process-panel h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-head p,
.target-head p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.page > header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(255, 253, 247, 0.9);
    border-bottom: 1px solid rgba(18, 61, 52, 0.09);
    box-shadow: 0 12px 36px rgba(18, 61, 52, 0.07);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.page > header::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 111, 71, 0.38), transparent);
    pointer-events: none;
}

.site-nav-wrap {
    width: min(100%, var(--max));
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    min-width: 0;
}

.site-brand__mark {
    width: 140px;
    height: 62px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.site-brand__logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav a,
.site-nav .logout-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 999px;
    color: rgba(32, 38, 34, 0.72);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.logout-form {
    margin: 0;
}

.logout-link {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .logout-link:hover,
.site-nav .logout-link:focus-visible {
    color: var(--primary);
    background: rgba(39, 104, 88, 0.07);
    outline: none;
}

.site-nav a.active:not(.nav-cta) {
    color: var(--primary);
    background: transparent;
}

.site-nav a.active:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateX(-50%);
}

.site-nav__booking {
    margin-left: 5px;
}

.site-nav .nav-cta {
    min-height: 42px;
    padding: 9px 13px;
    border-color: rgba(18, 61, 52, 0.2);
    background: rgba(255, 253, 247, 0.68);
    color: var(--primary);
    box-shadow: none;
    font-size: 0.84rem;
    font-weight: 650;
}

.site-nav .nav-cta .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus {
    border-color: rgba(18, 61, 52, 0.34);
    color: var(--primary);
    background: rgba(39, 104, 88, 0.09);
}

.site-nav .nav-cta.active {
    border-color: rgba(18, 61, 52, 0.28);
    color: var(--primary);
    background: rgba(39, 104, 88, 0.12);
}

.site-nav .nav-cta:hover .material-symbols-outlined,
.site-nav .nav-cta:focus .material-symbols-outlined {
    transform: translateX(2px);
}

.nav-cta,
.btn-primary,
.btn-secondary,
.btn-light,
.menu-toggle {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-cta,
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 28px rgba(18, 61, 52, 0.2);
}

.btn-secondary {
    background: rgba(255, 253, 247, 0.78);
    color: var(--primary);
    border-color: var(--line);
}

.btn-light {
    background: var(--surface);
    color: var(--primary);
}

.nav-cta:hover,
.nav-cta:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-light:hover,
.btn-light:focus,
.menu-toggle:hover,
.menu-toggle:focus {
    transform: translateY(-1px);
    outline: none;
}

.nav-cta:hover,
.nav-cta:focus,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-soft);
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-light:hover,
.btn-light:focus,
.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--surface-muted);
    border-color: rgba(39, 104, 88, 0.3);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    min-height: 44px;
    padding: 10px 14px;
    background: rgba(248, 244, 234, 0.72);
    color: var(--primary);
    border-color: var(--line);
    cursor: pointer;
}

.menu-toggle .material-symbols-outlined {
    font-size: 21px;
}

.desktop-only {
    display: inline-flex;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(248, 244, 234, 0.98) 0%, rgba(248, 244, 234, 0.82) 44%, rgba(248, 244, 234, 0.24) 100%),
        url('/images/hero_background.webp') center right / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(248, 244, 234, 0), var(--bg));
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 48px;
    padding-top: 78px;
    padding-bottom: 86px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(185, 111, 71, 0.28);
    background: rgba(255, 253, 247, 0.78);
}

.hero-badge__text {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem, 5.3vw, 4.7rem);
}

.hero p {
    max-width: 680px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero__panel {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    padding: 30px;
    background: rgba(255, 253, 247, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero__panel img {
    width: 132px;
    display: block;
    margin-bottom: 20px;
}

.hero__panel p {
    margin: 0 0 22px;
    font-size: 1rem;
}

.hero__panel dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.hero__panel dl div {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.hero__panel dt {
    color: var(--primary);
    font-weight: 800;
}

.hero__panel dd {
    margin: 2px 0 0;
    color: var(--text-muted);
}

.missie-grid,
.split,
.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 58px;
    align-items: center;
}

.missie-visual {
    position: relative;
}

.missie-image-wrap,
.ritten-media {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.missie-image-wrap {
    aspect-ratio: 4 / 5;
}

.missie-image-wrap img,
.ritten-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.missie-status {
    position: absolute;
    right: -28px;
    bottom: 34px;
    width: min(320px, 86%);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 22px;
    background: rgba(255, 253, 247, 0.9);
    box-shadow: var(--shadow);
}

.missie-status h4 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.missie-status p,
.missie-content p {
    color: var(--text-muted);
}

.missie-content h2 {
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 4.4vw, 3.35rem);
}

.missie-content p + p {
    margin-top: 16px;
}

.missie-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.missie-stats div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.missie-stats strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

.missie-stats span {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.target-grid,
.benefit-grid,
.ritten-grid,
.news-grid {
    display: grid;
    gap: 22px;
}

.target-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.target-grid--four,
.benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.target-card,
.experience-detail,
.form-card,
.map-card,
.info-card,
.news-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(27, 52, 45, 0.08);
}

.target-card,
.experience-detail,
.form-card,
.map-card,
.info-card,
.news-card {
    padding: 28px;
}

.target-card--primary {
    background: var(--primary);
    color: #fff;
}

.target-card--primary h3,
.target-card--primary p,
.target-card--primary .target-icon {
    color: #fff;
}

.target-icon,
.experience-detail__icon-wrap {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--blue);
    color: var(--primary);
}

.target-card h3,
.experience-detail__title,
.news-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.target-card p,
.experience-detail__text,
.news-card p {
    color: var(--text-muted);
}

.news-card p a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}

.news-card p a:hover,
.news-card p a:focus-visible {
    color: var(--primary);
}

.news-card p a:focus-visible {
    outline: 2px solid rgba(39, 104, 88, 0.28);
    outline-offset: 2px;
}

.target-portal {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 58px;
    align-items: center;
    padding: clamp(30px, 5vw, 56px);
    border-radius: 32px;
    background: var(--primary);
    box-shadow: 0 26px 68px rgba(18, 61, 52, 0.22);
}

/* .target-portal::before {
    content: "";
    position: absolute;
    top: 26px;
    right: -28px;
    width: 214px;
    height: 214px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.1) 44% 56%, transparent 56%),
        linear-gradient(0deg, transparent 44%, rgba(255, 255, 255, 0.1) 44% 56%, transparent 56%);
    opacity: 0.9;
} */

.target-portal__content,
.target-portal__grid {
    position: relative;
    z-index: 1;
}

.target-portal__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 4px 14px;
    border: 1px solid rgba(213, 232, 223, 0.22);
    border-radius: 999px;
    color: #d8e5df;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.target-portal h3 {
    max-width: 11ch;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.target-portal__content p {
    max-width: 560px;
    margin-top: 22px;
    color: rgba(232, 241, 237, 0.78);
    font-size: 1.03rem;
    font-weight: 600;
}

.target-portal__button {
    margin-top: 30px;
    background: var(--surface);
}

.target-portal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.target-portal__card {
    min-height: 170px;
    padding: 24px;
    border: 1px solid rgba(213, 232, 223, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.target-portal__icon {
    margin-bottom: 22px;
    color: #bfe6da;
    font-size: 2.25rem;
}

.target-portal__card h4 {
    margin-bottom: 10px;
    color: #fff;
    font: 800 1.08rem/1.25 var(--font-body);
}

.target-portal__card p {
    color: rgba(232, 241, 237, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.42;
}

.main-quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.main-quote__icon {
    color: rgba(185, 111, 71, 0.38);
    font-size: 3.8rem;
}

.main-quote__text {
    margin: 6px 0 20px;
    color: var(--primary);
    font: 600 clamp(1.7rem, 4vw, 3.1rem) / 1.2 var(--font-heading);
}

.main-quote p {
    color: var(--text-muted);
}

.ritten-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ritten-card {
    min-width: 0;
}

.ritten-media {
    position: relative;
    aspect-ratio: 4 / 5;
    margin-bottom: 18px;
}

.ritten-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(18, 61, 52, 0.84));
}

.ritten-overlay h3 {
    color: #fff;
    font-size: 1.45rem;
}

.ritten-overlay p {
    color: rgba(255, 255, 255, 0.84);
}

.ritten-text {
    color: var(--text-muted);
}

.process-panel {
    margin-top: 52px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 58px;
    align-items: center;
    padding: clamp(30px, 5vw, 56px);
    border-radius: 32px;
    background: var(--primary);
    color: #e8f1ed;
    box-shadow: 0 26px 68px rgba(18, 61, 52, 0.22);
}

.process-panel > div,
.process-steps {
    position: relative;
    z-index: 1;
}

.process-panel .section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 4px 14px;
    border: 1px solid rgba(213, 232, 223, 0.22);
    border-radius: 999px;
    color: #d8e5df;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.process-panel h2 {
    max-width: 11ch;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.process-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.process-steps li {
    min-height: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: start;
    padding: 22px 24px;
    border: 1px solid rgba(213, 232, 223, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.process-steps span {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #bfe6da;
    color: var(--primary);
    font-weight: 800;
}

.process-steps strong {
    grid-column: 2;
    display: block;
    padding-top: 1px;
    color: #fff;
    font: 800 1.08rem/1.25 var(--font-body);
}

.process-steps p {
    grid-column: 2;
    margin-top: 8px;
    color: rgba(232, 241, 237, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.42;
}

.booking-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: start;
}

.booking-page {
    min-height: calc(100vh - var(--header-height));
    background: var(--bg);
}

.booking-page__shell {
    padding-top: 74px;
}

.booking-page__intro {
    max-width: 760px;
    margin-bottom: 44px;
}

.booking-page__intro h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
}

.booking-page__intro p {
    max-width: 670px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.booking-planner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 34px;
    align-items: start;
}

.booking-planner__main {
    display: grid;
    gap: 22px;
}

.booking-panel {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(18, 61, 52, 0.1);
    border-radius: var(--radius-xl);
    background: rgba(255, 253, 247, 0.76);
    box-shadow: 0 18px 48px rgba(27, 52, 45, 0.08);
}

.booking-calendar-panel {
    background: #fff;
}

.booking-step-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.booking-step-head h2,
.journey-summary h2 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.booking-step-head p {
    margin-top: 6px;
    color: var(--text-muted);
}

.route-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.route-choice,
.time-choice {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(18, 61, 52, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(243, 239, 229, 0.7);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.route-choice {
    min-height: 178px;
    padding: 24px 22px 20px;
}

.route-choice:hover,
.route-choice:focus,
.time-choice:hover,
.time-choice:focus {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(39, 104, 88, 0.34);
    background: var(--surface);
}

.route-choice.is-selected,
.time-choice.is-selected {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--primary), 0 14px 34px rgba(27, 52, 45, 0.08);
}

.route-choice strong,
.time-choice strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.14rem;
    line-height: 1.25;
}

.route-choice > span:not(.route-choice__check):not(.route-choice__meta),
.time-choice span {
    display: block;
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.route-choice__check {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    font-size: 18px;
}

.route-choice.is-selected .route-choice__check {
    background: var(--primary);
    color: #fff;
}

.route-choice__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.route-choice__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.route-choice__meta .material-symbols-outlined {
    font-size: 17px;
}

.booking-calendar__nav {
    display: flex;
    gap: 10px;
}

.booking-calendar__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.booking-calendar__month-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.booking-calendar__month-pill,
.calendar-today {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 61, 52, 0.16);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 5px 14px rgba(27, 52, 45, 0.05);
}

.booking-calendar__month-pill {
    gap: 9px;
    min-width: 178px;
    padding: 0 16px;
    color: var(--primary);
    font-weight: 500;
    text-transform: capitalize;
}

.booking-calendar__month-pill .material-symbols-outlined {
    color: var(--primary-soft);
    font-size: 20px;
}

.calendar-today {
    padding: 0 18px;
    font-weight: 500;
    cursor: pointer;
}

.calendar-today:hover,
.calendar-today:focus {
    border-color: rgba(39, 104, 88, 0.32);
    background: var(--surface);
    color: var(--primary);
}

.booking-calendar--large {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(18, 61, 52, 0.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(27, 52, 45, 0.08);
}

.booking-calendar--large .booking-calendar__weekdays,
.booking-calendar--large .booking-calendar__days {
    gap: 10px;
}

.booking-calendar--large .booking-calendar__weekdays {
    margin-bottom: 12px;
}

.booking-calendar--large .booking-calendar__weekdays span {
    padding: 0 4px;
    background: transparent;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 500;
}

.booking-calendar--large .booking-calendar__days {
    align-items: stretch;
}

.calendar-day--planner,
.calendar-day--empty {
    aspect-ratio: 1;
    min-height: 76px;
    border: 1px solid rgba(18, 61, 52, 0.11);
    border-radius: 10px;
    background: #fff;
}

.calendar-day--planner {
    display: grid;
    align-items: start;
    padding: 12px;
    font-weight: 400;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day--planner:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: rgba(39, 104, 88, 0.28);
    background: #fff;
}

.calendar-day__top {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.calendar-day__number {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1;
}

.calendar-day__marker,
.calendar-day__check {
    flex: 0 0 auto;
}

.calendar-day__marker {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #0f5d4e;
}

.calendar-day__check {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 18px;
    font-variation-settings: "FILL" 1, "wght" 700;
}

.calendar-day--planner.is-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(18, 61, 52, 0.2);
}

.calendar-day--planner.is-selected .calendar-day__number {
    color: #fff;
}

.calendar-day--planner.is-available {
    border-color: rgba(15, 93, 78, 0.25);
    background: #f7fcfa;
}

.calendar-day--planner.is-limited .calendar-day__marker {
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    background: transparent;
}

.calendar-day--planner.is-limited {
    border-color: rgba(185, 111, 71, 0.32);
    background: #fff9f1;
}

.calendar-day--planner.is-past {
    border-color: rgba(88, 99, 93, 0.16);
    background: #f6f6f2;
    color: rgba(45, 52, 48, 0.46);
}

.calendar-day--planner.is-full {
    border-color: rgba(196, 67, 55, 0.32);
    background: #fff7f5;
    color: rgba(64, 40, 35, 0.58);
}

.calendar-day--planner.is-past .calendar-day__marker {
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: rgba(88, 99, 93, 0.48);
}

.calendar-day--planner.is-full .calendar-day__marker {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #c44337;
}

.booking-calendar--editable .calendar-day--planner {
    align-content: space-between;
    text-align: left;
}

.calendar-day__status {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.booking-calendar--editable .calendar-day--planner.is-limited .calendar-day__status {
    color: #8c5436;
}

.booking-calendar--editable .calendar-day--planner.is-full .calendar-day__status {
    color: #9d352c;
}

.booking-calendar__legend {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(18, 61, 52, 0.1);
    border-radius: 14px;
    background: #fff;
}

.booking-calendar__legend > span {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.booking-calendar__legend strong,
.booking-calendar__legend small {
    display: block;
}

.booking-calendar__legend strong {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
}

.booking-calendar__legend small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.25;
}

.calendar-legend-dot {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border-radius: 999px;
    background: #0f5d4e;
}

.calendar-legend-dot.is-limited {
    width: 11px;
    height: 11px;
    border: 2px solid var(--accent);
    background: transparent;
}

.calendar-legend-dot.is-full {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: #c44337;
}

.calendar-legend-dot.is-past {
    width: 18px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(88, 99, 93, 0.55);
}

.time-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.time-choice {
    min-height: 112px;
    padding: 20px;
}

.booking-form {
    margin-top: 0;
}

.booking-form .label {
    margin-bottom: 8px;
    color: rgba(32, 38, 34, 0.78);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
}

.booking-form .input,
.booking-form .select,
.booking-form .textarea {
    min-height: 52px;
    border-color: rgba(18, 61, 52, 0.14);
    border-radius: 12px;
    background: rgba(255, 253, 247, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 1px 2px rgba(27, 52, 45, 0.04);
    font-size: 1rem;
    line-height: 1.45;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.booking-form .input::placeholder,
.booking-form .textarea::placeholder {
    color: rgba(88, 99, 93, 0.62);
}

.booking-form .select {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(18, 61, 52, 0.72) 50%),
        linear-gradient(135deg, rgba(18, 61, 52, 0.72) 50%, transparent 50%);
    background-position:
        calc(100% - 21px) 50%,
        calc(100% - 15px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px;
}

.booking-form .textarea {
    min-height: 132px;
}

.booking-form .input:hover,
.booking-form .select:hover,
.booking-form .textarea:hover {
    border-color: rgba(39, 104, 88, 0.28);
    background-color: #fff;
}

.journey-summary {
    position: sticky;
    top: 110px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 24px 60px rgba(18, 61, 52, 0.22);
}

.journey-summary__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.journey-summary .section-kicker {
    color: #bfe6da;
}

.journey-summary h2 {
    color: #fff;
}

.journey-summary__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #bfe6da;
}

.journey-summary__list {
    display: grid;
    gap: 18px;
    margin: 26px 0 0;
}

.journey-summary__list div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
}

.journey-summary__list dt {
    color: rgba(191, 230, 218, 0.78);
    font-size: 0.82rem;
}

.journey-summary__list dd {
    margin: 0;
    color: #fff;
    font-weight: 800;
    line-height: 1.35;
}

.journey-summary__submit {
    width: 100%;
    margin-top: 30px;
    background: var(--sand);
    color: var(--primary);
    box-shadow: none;
}

.journey-summary__submit:hover,
.journey-summary__submit:focus {
    background: #e2cfaa;
    color: var(--primary);
}

.journey-summary__note {
    min-height: 24px;
    margin-top: 18px;
    color: rgba(232, 241, 237, 0.75);
    font-size: 0.86rem;
    text-align: center;
}

.booking-card h3,
.info-card h3,
.map-card h3,
.form-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.booking-card > p,
.info-card > p,
.map-card > p,
.form-card > p {
    color: var(--text-muted);
}

.form {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid rgba(18, 61, 52, 0.22);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
}

.textarea {
    min-height: 118px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus,
.calendar-day:focus,
.calendar-nav:focus,
.calendar-today:focus {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(39, 104, 88, 0.16);
}

.booking-calendar-shell {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
    gap: 18px;
    align-items: start;
}

.booking-calendar {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.booking-calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.booking-calendar__head strong {
    color: var(--primary);
    text-transform: capitalize;
}

.calendar-nav {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
}

.booking-calendar__weekdays,
.booking-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.booking-calendar__weekdays {
    margin-bottom: 8px;
}

.booking-calendar__weekdays span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
}

.calendar-day {
    min-width: 0;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-weight: 400;
    cursor: pointer;
}

.calendar-day:hover {
    border-color: rgba(39, 104, 88, 0.3);
    background: #fff;
}

.calendar-day.is-selected {
    background: var(--primary);
    color: #fff;
}

.calendar-day:disabled:not(.calendar-day--planner) {
    color: rgba(88, 99, 93, 0.42);
    background: rgba(255, 255, 255, 0.34);
    cursor: not-allowed;
}

.calendar-day--empty {
    display: block;
    aspect-ratio: 1;
}

.booking-calendar--large .calendar-day--planner,
.booking-calendar--large .calendar-day--empty {
    aspect-ratio: 1;
    min-height: 76px;
    border-radius: 10px;
}

.booking-calendar--large .calendar-day--planner.is-selected {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(18, 61, 52, 0.2);
}

.booking-calendar--large .calendar-day--planner.is-full,
.booking-calendar--large .calendar-day--planner.is-past,
.booking-calendar--large .calendar-day--planner:disabled {
    cursor: not-allowed;
}

.booking-calendar--large .calendar-day--planner.is-selected .calendar-day__number {
    color: #fff;
}

.checkbox-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(18, 61, 52, 0.1);
    border-radius: 14px;
    background: rgba(243, 239, 229, 0.46);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-row__content {
    min-width: 0;
}

.checkbox-row__content .small {
    display: block;
    color: rgba(32, 38, 34, 0.82);
    line-height: 1.45;
    cursor: pointer;
}

.checkbox-row__content .small a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-row__content .small a:hover,
.checkbox-row__content .small a:focus {
    color: var(--accent);
}

.small,
.hint,
.validation-message {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.validation-message {
    display: block;
    margin-top: 6px;
    color: #9a3c25;
}

.validation-errors {
    margin: 0;
    color: #9a3c25;
}

.booking-aside {
    display: grid;
    gap: 18px;
}

.check-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-soft);
    font-weight: 800;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.meta-list p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
}

.meta-list a {
    color: var(--primary);
    font-weight: 800;
}

.contact-cta .btn-primary {
    margin-top: 24px;
}

.faq {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

details {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    padding: 14px 16px;
}

summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 800;
}

details p {
    margin-top: 10px;
    color: var(--text-muted);
}

#privacy {
    margin-top: 28px;
    font-size: 1.35rem;
}

.cta-band {
    background: var(--primary);
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-band p {
    max-width: 720px;
    margin: 14px auto 0;
    color: #d8e5df;
}

.news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card .small {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 800;
}

.news-empty {
    color: var(--text-muted);
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 12%, rgba(185, 111, 71, 0.18), transparent 30%),
        radial-gradient(circle at 8% 92%, rgba(217, 197, 157, 0.12), transparent 28%),
        #142d27;
    color: #e8f1ed;
    padding: 82px 0 30px;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 197, 157, 0.9), transparent);
}

.site-footer__main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 34px;
}

.site-footer__logo {
    width: 138px;
    display: block;
    filter: brightness(0) invert(1);
}

.site-footer__label,
.site-footer__eyebrow {
    color: #d9c59d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer__label {
    max-width: 160px;
    padding-left: 20px;
    border-left: 1px solid rgba(217, 197, 157, 0.34);
    line-height: 1.5;
}

.site-footer__intro h2 {
    max-width: 680px;
    color: #fff;
    font-size: clamp(2.25rem, 4.4vw, 4.25rem);
    letter-spacing: -0.03em;
}

.site-footer__desc {
    max-width: 610px;
    margin-top: 24px;
    color: rgba(232, 241, 237, 0.7);
    font-size: 1.03rem;
}

.site-footer__contact {
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 30px 70px rgba(6, 20, 16, 0.24);
    backdrop-filter: blur(10px);
}

.site-footer__contact h3 {
    margin-top: 12px;
    color: #fff;
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
}

.site-footer__contact > p {
    margin-top: 14px;
    color: rgba(232, 241, 237, 0.7);
}

.site-footer__cta {
    min-height: 52px;
    margin-top: 26px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 999px;
    background: #d9c59d;
    color: #142d27;
    font-weight: 800;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-footer__cta:hover,
.site-footer__cta:focus {
    transform: translateY(-2px);
    background: #ead9b7;
    color: #142d27;
    outline: none;
}

.site-footer__contact-links {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 12px;
}

.site-footer__contact-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(232, 241, 237, 0.78);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.site-footer__contact-links .material-symbols-outlined {
    color: #d9c59d;
    font-size: 20px;
}

.site-footer__contact-links a:hover,
.site-footer__contact-links a:focus,
.site-footer__privacy:hover,
.site-footer__privacy:focus {
    color: #fff;
    outline: none;
}

.site-footer__bottom {
    position: relative;
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__copyright,
.site-footer__privacy {
    color: rgba(232, 241, 237, 0.58);
    font-size: 0.82rem;
}

.site-footer__privacy {
    transition: color 0.2s ease;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(18, 31, 27, 0.52);
}

.modal-card {
    width: min(100%, 480px);
    padding: 24px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.modal-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-card__close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
}

.modal-card .btn-primary {
    margin-top: 22px;
}

.components-reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    overflow: auto;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 15%, rgba(217, 197, 157, 0.22), transparent 34%),
        rgba(18, 31, 27, 0.72);
    opacity: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.2s ease;
}

.components-reconnect-modal.components-reconnect-show,
.components-reconnect-modal.components-reconnect-failed,
.components-reconnect-modal.components-reconnect-rejected {
    display: grid;
    opacity: 1;
}

.components-reconnect-modal.components-reconnect-hide {
    display: none;
}

.components-reconnect-card {
    position: relative;
    width: min(100%, 540px);
    overflow: hidden;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 253, 247, 0.99), rgba(243, 239, 229, 0.98)),
        var(--surface);
    box-shadow: 0 34px 90px rgba(6, 20, 16, 0.32);
    text-align: center;
}

.components-reconnect-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--sand));
}

.components-reconnect-visual {
    position: relative;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 24px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 16px 34px rgba(18, 61, 52, 0.22);
}

.components-reconnect-icon {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    fill: currentColor;
}

.components-reconnect-show .components-reconnect-icon {
    animation: components-reconnect-spin 1.4s linear infinite;
}

.components-reconnect-pulse {
    position: absolute;
    inset: -1px;
    border: 2px solid rgba(18, 61, 52, 0.32);
    border-radius: 25px;
}

.components-reconnect-show .components-reconnect-pulse {
    animation: components-reconnect-pulse 1.8s ease-out infinite;
}

.components-reconnect-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.components-reconnect-card h2 {
    font-size: clamp(1.65rem, 5vw, 2.25rem);
}

.components-reconnect-card p {
    max-width: 430px;
    margin: 14px auto 0;
    color: var(--text-muted);
}

.components-reconnect-card p strong {
    color: var(--primary);
}

.components-reconnect-progress {
    height: 5px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(18, 61, 52, 0.1);
}

.components-reconnect-progress span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-soft), var(--accent));
    animation: components-reconnect-progress 1.35s ease-in-out infinite;
}

.components-reconnect-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.components-reconnect-actions .btn-primary,
.components-reconnect-actions .btn-secondary,
.components-reconnect-rejected-message .btn-primary {
    min-width: 168px;
}

.components-reconnect-rejected-message > .btn-primary {
    margin-top: 26px;
}

.components-reconnect-connecting,
.components-reconnect-failed-message,
.components-reconnect-rejected-message {
    display: none;
}

.components-reconnect-show .components-reconnect-connecting,
.components-reconnect-failed .components-reconnect-failed-message,
.components-reconnect-rejected .components-reconnect-rejected-message {
    display: block;
}

.components-reconnect-failed .components-reconnect-visual,
.components-reconnect-rejected .components-reconnect-visual {
    background: var(--accent);
}

@keyframes components-reconnect-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes components-reconnect-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.38);
    }
}

@keyframes components-reconnect-progress {
    0% {
        transform: translateX(-110%);
    }

    50% {
        transform: translateX(82%);
    }

    100% {
        transform: translateX(265%);
    }
}

@media (max-width: 560px) {
    .components-reconnect-modal {
        align-items: end;
        padding: 12px;
    }

    .components-reconnect-card {
        padding: 34px 22px 24px;
        border-radius: 24px;
    }

    .components-reconnect-visual {
        width: 66px;
        height: 66px;
        margin-bottom: 20px;
        border-radius: 20px;
    }

    .components-reconnect-pulse {
        border-radius: 21px;
    }

    .components-reconnect-actions {
        display: grid;
    }

    .components-reconnect-actions .btn-primary,
    .components-reconnect-actions .btn-secondary,
    .components-reconnect-rejected-message .btn-primary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .components-reconnect-show .components-reconnect-icon,
    .components-reconnect-show .components-reconnect-pulse,
    .components-reconnect-progress span {
        animation: none;
    }
}

.btn-primary:disabled,
.btn-primary:disabled:hover,
.btn-primary:disabled:focus {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.ride-status-modal {
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background:
        linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(243, 239, 229, 0.96)),
        var(--surface);
}

.ride-status-modal__icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(39, 104, 88, 0.12);
    color: var(--primary);
}

.ride-status-modal.is-complete .ride-status-modal__icon {
    background: var(--primary);
    color: #fff;
}

.ride-status-modal.is-failed .ride-status-modal__icon {
    background: rgba(154, 60, 37, 0.12);
    color: #9a3c25;
}

.ride-status-modal__icon .material-symbols-outlined {
    font-size: 34px;
}

.ride-status-modal__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(18, 61, 52, 0.18);
    border-top-color: var(--primary);
    border-radius: 999px;
    animation: ride-status-spin 0.9s linear infinite;
}

.ride-status-modal .modal-card__head {
    margin-bottom: 10px;
}

.ride-status-modal .modal-card__head strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.14;
}

.ride-status-modal p {
    color: var(--text-muted);
}

.ride-status-modal__steps {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.ride-status-modal__step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 253, 247, 0.66);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.ride-status-modal__step .material-symbols-outlined {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(88, 99, 93, 0.12);
    color: currentColor;
    font-size: 18px;
}

.ride-status-modal__step.is-reached {
    border-color: rgba(39, 104, 88, 0.28);
    background: rgba(39, 104, 88, 0.08);
    color: var(--primary);
}

.ride-status-modal__step.is-reached .material-symbols-outlined {
    background: var(--primary);
    color: #fff;
}

.ride-status-modal__step.is-current {
    box-shadow: 0 0 0 4px rgba(39, 104, 88, 0.1);
}

@keyframes ride-status-spin {
    to {
        transform: rotate(360deg);
    }
}

.back-to-top {
    display: none;
}

@media (max-width: 1120px) {
    .site-nav a,
    .site-nav .logout-link {
        padding-inline: 9px;
        font-size: 0.84rem;
    }

    .site-nav__booking {
        margin-left: 4px;
    }

    .desktop-only {
        display: none;
    }

    .target-grid--four,
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .target-portal {
        gap: 34px;
    }
}

@media (max-width: 940px) {
    :root {
        --header-height: 76px;
    }

    main {
        padding-top: var(--header-height);
    }

    .site-nav-wrap {
        min-height: var(--header-height);
        padding: 0 16px;
        position: relative;
    }

    .site-brand__mark {
        width: 108px;
        height: 48px;
    }

    .site-brand__logo {
        width: 100%;
        height: auto;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav ul {
        display: none;
        position: absolute;
        top: 68px;
        left: 12px;
        right: 12px;
        padding: 12px;
        border: 1px solid rgba(18, 61, 52, 0.14);
        border-radius: 20px;
        background: rgba(255, 253, 247, 0.97);
        box-shadow: 0 24px 60px rgba(18, 61, 52, 0.18);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .site-nav ul.open {
        display: grid;
        gap: 4px;
    }

    .site-nav a,
    .site-nav .logout-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        padding: 11px 13px;
        font-size: 0.93rem;
    }

    .site-nav a.active:not(.nav-cta) {
        background: rgba(39, 104, 88, 0.08);
    }

    .site-nav a.active:not(.nav-cta)::after {
        inset: 50% 12px auto auto;
        width: 6px;
        height: 6px;
        transform: translateY(-50%);
    }

    .site-nav__booking {
        margin: 7px 0 0;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .site-nav .nav-cta {
        justify-content: center;
        min-height: 46px;
        border-radius: 14px;
    }

    .section-shell {
        padding: 70px 18px;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(248, 244, 234, 0.94), rgba(248, 244, 234, 0.88)),
            url('/images/hero_background.webp') center / cover no-repeat;
    }

    .hero__grid,
    .missie-grid,
    .split,
    .booking-grid,
    .process-panel,
    .booking-planner {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        min-height: calc(100vh - var(--header-height));
        min-height: calc(100svh - var(--header-height));
        padding-top: 64px;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .hero__panel {
        max-width: 520px;
    }

    .missie-status {
        position: static;
        width: 100%;
        margin-top: 16px;
    }

    .target-grid,
    .target-portal,
    .ritten-grid,
    .news-grid,
    .site-footer__main {
        grid-template-columns: 1fr;
    }

    .site-footer__main {
        gap: 46px;
    }

    .site-footer__contact {
        max-width: 620px;
    }

    .target-portal::before {
        top: -42px;
        right: -70px;
    }

    .process-steps,
    .field-grid,
    .booking-calendar-shell {
        grid-template-columns: 1fr;
    }

    .booking-page__shell {
        padding-top: 58px;
    }

    .route-choice-grid,
    .time-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-summary {
        position: static;
    }

    .booking-aside {
        order: -1;
    }

    .back-to-top {
        position: fixed;
        right: 14px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: rgba(18, 61, 52, 0.9);
        color: #fff;
        z-index: 70;
        font-size: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .section-shell {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.25rem);
    }

    .hero__panel,
    .target-card,
    .target-portal,
    .experience-detail,
    .form-card,
    .map-card,
    .info-card,
    .news-card,
    .process-panel {
        padding: 22px;
    }

    .process-steps li {
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 14px;
        padding: 18px;
    }

    .process-steps span {
        width: 34px;
        height: 34px;
    }

    .benefit-grid,
    .target-portal__grid,
    .missie-stats,
    .route-choice-grid,
    .time-choice-grid {
        grid-template-columns: 1fr;
    }

    .booking-page__intro h1 {
        font-size: clamp(2.2rem, 11vw, 3.25rem);
    }

    .booking-step-head {
        flex-direction: column;
    }

    .booking-panel {
        padding: clamp(14px, 4vw, 18px);
        border-radius: 18px;
    }

    .booking-calendar__nav {
        width: 100%;
        justify-content: flex-end;
    }

    .booking-calendar__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
    }

    .booking-calendar__month-controls {
        width: 100%;
    }

    .booking-calendar__month-pill {
        flex: 1 1 auto;
        min-width: 0;
    }

    .booking-calendar--large {
        padding: 8px;
        border-radius: 14px;
    }

    .booking-calendar--large .booking-calendar__weekdays,
    .booking-calendar--large .booking-calendar__days {
        gap: 3px;
    }

    .booking-calendar--large .calendar-day--planner,
    .booking-calendar--large .calendar-day--empty {
        min-height: 0;
        border-radius: 7px;
    }

    .calendar-day--planner {
        place-items: center;
        padding: 3px;
    }

    .calendar-day__top {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }

    .calendar-day__number {
        font-size: 0.9rem;
    }

    .calendar-day__check {
        width: 15px;
        height: 15px;
        font-size: 13px;
    }

    .calendar-day__marker {
        width: 6px;
        height: 6px;
    }

    .calendar-day--planner.is-limited .calendar-day__marker {
        width: 8px;
        height: 8px;
    }

    .calendar-day--planner.is-past .calendar-day__marker {
        width: 12px;
    }

    .booking-calendar--editable .calendar-day__status {
        display: none;
    }

    .booking-calendar__legend {
        grid-template-columns: 1fr 1fr;
        gap: 10px 8px;
        margin-top: 16px;
        padding: 10px;
    }

    .booking-calendar__legend > span {
        gap: 7px;
    }

    .booking-calendar__legend strong {
        font-size: 0.78rem;
    }

    .journey-summary__list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .target-portal__card {
        min-height: 0;
        padding: 20px;
    }

    .cta-row .btn-primary,
    .cta-row .btn-secondary,
    .form .btn-primary {
        width: 100%;
    }

    .site-footer {
        padding-top: 62px;
    }

    .site-footer__brand {
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }

    .site-footer__logo {
        width: 118px;
    }

    .site-footer__label {
        padding-left: 16px;
    }

    .site-footer__bottom {
        margin-top: 48px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* Login and administration */
.login-page,
.admin-page {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
}

.login-page {
    display: grid;
    align-items: center;
    padding: 64px 24px;
    background:
        radial-gradient(circle at 12% 14%, rgba(217, 197, 157, 0.42), transparent 34%),
        radial-gradient(circle at 88% 86%, rgba(217, 232, 234, 0.72), transparent 32%),
        var(--bg);
}

.login-shell {
    width: min(100%, 1040px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
    overflow: hidden;
    border: 1px solid rgba(18, 61, 52, 0.12);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-story {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 6vw, 64px);
    background:
        linear-gradient(145deg, rgba(18, 61, 52, 0.96), rgba(39, 104, 88, 0.9)),
        url('/images/drenttimer_about.webp') center / cover;
    color: #fff;
}

.login-logo {
    width: 176px;
    display: block;
}

.login-logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.login-story .section-kicker {
    color: #d9c59d;
}

.login-story h1 {
    max-width: 9ch;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.login-story p {
    max-width: 520px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.04rem;
}

.login-story__note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 58px);
}

.login-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.login-card__head .section-kicker,
.login-reset-modal .section-kicker {
    margin-bottom: 6px;
}

.login-card__head h2,
.login-reset-modal h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.login-card__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--blue);
    color: var(--primary);
    font-size: 30px;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.login-input {
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid rgba(18, 61, 52, 0.2);
    border-radius: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus-within {
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(39, 104, 88, 0.13);
}

.login-input .material-symbols-outlined {
    color: var(--primary-soft);
}

.login-input input {
    min-width: 0;
    width: 100%;
    height: 52px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.88rem;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.login-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: inherit;
    font-weight: 800;
    cursor: pointer;
}

.login-submit {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(18, 61, 52, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
    transform: translateY(-1px);
    background: var(--primary-soft);
    outline: none;
}

.login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.login-back:hover {
    color: var(--primary);
}

.login-alert,
.admin-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(154, 60, 37, 0.24);
    border-radius: 14px;
    background: rgba(154, 60, 37, 0.08);
    color: #7f321f;
}

.login-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    font-size: 0.9rem;
}

.login-alert.is-info {
    margin: 18px 0 0;
    border-color: rgba(39, 104, 88, 0.24);
    background: rgba(39, 104, 88, 0.08);
    color: var(--primary);
}

.login-reset-modal {
    width: min(100%, 540px);
    padding: 30px;
}

.login-reset-modal > p {
    margin-bottom: 22px;
    color: var(--text-muted);
}

.login-reset-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.admin-page {
    padding: 54px 24px 84px;
    background:
        linear-gradient(180deg, rgba(217, 232, 234, 0.44), transparent 320px),
        var(--bg);
}

.admin-shell {
    width: min(100%, 1380px);
    margin: 0 auto;
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}

.admin-hero h1 {
    max-width: 760px;
    font-size: clamp(2.35rem, 5vw, 4rem);
}

.admin-hero p {
    max-width: 720px;
    margin-top: 14px;
    color: var(--text-muted);
}

.admin-identity {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.8);
}

.admin-identity > .material-symbols-outlined {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
}

.admin-identity strong,
.admin-identity span {
    display: block;
}

.admin-identity strong {
    color: var(--primary);
}

.admin-identity div span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-notice {
    margin-bottom: 20px;
    padding: 13px 16px;
}

.admin-notice.is-success {
    border-color: rgba(39, 104, 88, 0.24);
    background: rgba(39, 104, 88, 0.09);
    color: var(--primary);
}

.admin-notice > span:nth-child(2) {
    flex: 1;
}

.admin-notice button {
    border: 0;
    background: transparent;
    color: currentColor;
    font-size: 1.4rem;
    cursor: pointer;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stats button {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(27, 52, 45, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-stats button:hover,
.admin-stats button:focus {
    transform: translateY(-2px);
    border-color: rgba(39, 104, 88, 0.34);
    outline: none;
}

.admin-stats .material-symbols-outlined {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--blue);
    color: var(--primary);
}

.admin-stats strong {
    color: var(--primary);
    font: 700 1.6rem/1 var(--font-heading);
}

.admin-stats button > span:last-child {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-workspace {
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 640px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.admin-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 14px;
    border-right: 1px solid var(--line);
    background: var(--surface-muted);
}

.admin-tabs button {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.admin-tabs button:hover,
.admin-tabs button:focus,
.admin-tabs button.is-active {
    background: var(--surface);
    color: var(--primary);
    outline: none;
}

.admin-tabs button.is-active {
    box-shadow: 0 7px 20px rgba(27, 52, 45, 0.08);
}

.admin-content {
    min-width: 0;
    padding: clamp(24px, 4vw, 42px);
}

.admin-section-head,
.admin-editor__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.admin-section-head {
    margin-bottom: 28px;
}

.admin-section-head .section-kicker,
.admin-editor__head .section-kicker {
    margin-bottom: 7px;
}

.admin-section-head h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.admin-section-head p {
    max-width: 680px;
    margin-top: 9px;
    color: var(--text-muted);
}

.admin-primary-button,
.admin-secondary-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.admin-primary-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
}

.admin-secondary-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--primary);
}

.admin-primary-button:hover,
.admin-primary-button:focus {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
    outline: none;
}

.admin-secondary-button:hover,
.admin-secondary-button:focus {
    background: var(--surface-muted);
    border-color: rgba(39, 104, 88, 0.3);
    outline: none;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: rgba(217, 232, 234, 0.2);
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td small {
    margin-top: 3px;
    color: var(--text-muted);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-badge.is-live {
    background: rgba(39, 104, 88, 0.12);
    color: var(--primary);
}

.admin-badge.is-muted {
    background: rgba(88, 99, 93, 0.12);
    color: var(--text-muted);
}

.admin-actions {
    width: 100px;
    text-align: right !important;
    white-space: nowrap;
}

.admin-actions button {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
}

.admin-actions button .material-symbols-outlined {
    font-size: 19px;
}

.admin-actions button.is-danger,
.admin-card-actions .is-danger {
    color: #9a3c25;
}

.admin-actions button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.admin-editor {
    margin-top: 26px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(39, 104, 88, 0.22);
    border-radius: 22px;
    background: rgba(243, 239, 229, 0.54);
}

.admin-editor__head {
    margin-bottom: 24px;
}

.admin-editor__head h3 {
    font-size: 1.65rem;
}

.admin-close-button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: 1.45rem;
    cursor: pointer;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-field {
    display: grid;
    gap: 7px;
}

.admin-field--wide {
    grid-column: 1 / -1;
}

.admin-field label {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-field-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(18, 61, 52, 0.2);
    border-radius: 13px;
    background: #fff;
    color: var(--text);
    padding: 10px 13px;
}

.admin-field textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: var(--primary-soft);
    outline: none;
    box-shadow: 0 0 0 4px rgba(39, 104, 88, 0.12);
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 750;
}

.admin-check input {
    width: 19px;
    height: 19px;
    accent-color: var(--primary);
}

.admin-editor__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-person-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(27, 52, 45, 0.06);
}

.admin-person-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--blue);
    color: var(--primary);
}

.admin-person-card h3 {
    margin-bottom: 7px;
    font-size: 1.28rem;
}

.admin-person-card dl,
.admin-person-card dl div {
    display: grid;
}

.admin-person-card dl {
    grid-column: 1 / -1;
    gap: 10px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.admin-person-card dl div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
}

.admin-person-card dt {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-person-card dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-card-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
}

.admin-card-actions button {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-loading {
    min-height: 420px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.admin-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(18, 61, 52, 0.16);
    border-top-color: var(--primary);
    border-radius: 999px;
    animation: ride-status-spin 0.9s linear infinite;
}

@media (max-width: 1040px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .login-story {
        min-height: 340px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-workspace {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        overflow-x: auto;
        flex-direction: row;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-tabs button {
        flex: 0 0 auto;
    }
}

@media (max-width: 760px) {
    .login-page,
    .admin-page {
        min-height: calc(100vh - 76px);
        min-height: calc(100svh - 76px);
    }

    .login-page {
        padding: 24px 14px;
    }

    .login-story {
        min-height: 300px;
        padding: 30px;
    }

    .login-story__note {
        display: none;
    }

    .login-card {
        padding: 30px 24px;
    }

    .admin-page {
        padding: 36px 14px 60px;
    }

    .admin-hero,
    .admin-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-identity {
        align-self: flex-start;
    }

    .admin-section-head .admin-primary-button,
    .admin-section-head .admin-secondary-button {
        align-self: flex-start;
    }

    .admin-content {
        padding: 22px 16px;
    }

    .admin-table-wrap {
        overflow: visible;
        border: 0;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 14px;
    }

    .admin-table tr {
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 9px 4px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--primary);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .admin-table td.admin-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        padding-top: 13px;
        border-bottom: 0;
    }

    .admin-table td.admin-actions::before {
        content: none;
    }

    .admin-form-grid,
    .admin-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .login-story {
        min-height: 260px;
    }

    .login-story h1 {
        font-size: 2.25rem;
    }

    .login-logo {
        width: 138px;
    }

    .login-options,
    .login-reset-modal__actions,
    .admin-editor__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .login-link {
        text-align: left;
    }

    .login-reset-modal__actions button,
    .admin-editor__actions button {
        width: 100%;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-person-card dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Accessibility utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

