@import 'bootstrap/dist/css/bootstrap.min.css';

:root {
    --font-scale: 1;
    --forest: #073f32;
    --forest-dark: #052e25;
    --terracotta: #c95f40;
    --ink: #171817;
    --muted: #66645f;
    --linen: #f7f4ee;
    --line: #ddd8cf;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
    font-size: calc(1rem * var(--font-scale));
}

html[data-theme="dark"] {
    color-scheme: dark;
    --forest: #93d8bf;
    --forest-dark: #06231d;
    --terracotta: #e88a67;
    --ink: #f5efe6;
    --muted: #bdb3a7;
    --linen: #0d1713;
    --line: #2b3f37;
}

html[data-theme="dark"] body {
    background: #07110e;
}

html[data-theme="dark"] .accessibility-bar,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .page-section,
html[data-theme="dark"] .admin-form,
html[data-theme="dark"] .admin-placeholder,
html[data-theme="dark"] .catalog-toolbar,
html[data-theme="dark"] .route-builder-shell,
html[data-theme="dark"] .confidence-section,
html[data-theme="dark"] .local-economy__copy {
    color: var(--ink);
    background: #0d1512;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero__copy,
html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .discover-section,
html[data-theme="dark"] .territory-highlights {
    color: var(--ink);
    background-color: var(--linen);
}

html[data-theme="dark"] .route-search__field,
html[data-theme="dark"] .experience-card,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .link-card,
html[data-theme="dark"] .confidence-grid article,
html[data-theme="dark"] .appearance-preview,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: var(--ink);
    background: #111d18;
    border-color: var(--line);
}

html[data-theme="dark"] .experience-card__icon {
    background: #0d1512;
    border-color: var(--line);
}

html[data-theme="dark"] .route-search__field input::placeholder {
    color: #b4aaa0;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 3px;
}

.page-container {
    width: min(100%, 1536px);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 3.8vw, 3.75rem);
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--forest);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.accessibility-bar {
    color: #20211f;
    background: var(--linen);
    border-bottom: 1px solid #eee9df;
}

.accessibility-bar__content,
.accessibility-tools,
.locale-tools {
    display: flex;
    align-items: center;
}

.accessibility-bar__content {
    min-height: 50px;
    justify-content: space-between;
}

.accessibility-tools,
.locale-tools {
    gap: 1.15rem;
}

.utility-button {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    white-space: nowrap;
}

.utility-button:hover {
    color: var(--forest);
}

.utility-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.municipality-selector {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    margin: 0;
    color: inherit;
}

.municipality-selector__icon {
    display: inline-flex;
    color: inherit;
}

.municipality-selector__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.municipality-selector select {
    max-width: 15rem;
    padding: 0.25rem 1.65rem 0.25rem 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.municipality-selector select:hover {
    color: var(--forest);
}

.accessibility-symbol {
    display: grid;
    width: 25px;
    height: 25px;
    color: var(--white);
    background: var(--forest);
    border-radius: 50%;
    place-items: center;
}

.contrast-symbol {
    width: 19px;
    height: 19px;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%);
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.theme-symbol {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
}

.utility-divider {
    width: 1px;
    height: 24px;
    background: #d5cfc4;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
}

.navbar {
    min-height: 92px;
}

.brand {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    color: var(--forest);
    font-size: clamp(1.7rem, 2.3vw, 2.25rem);
    font-weight: 750;
    letter-spacing: 0.035em;
    text-decoration: none;
}

.brand:hover {
    color: var(--forest-dark);
}

.brand__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 999px;
}

.brand--light .brand__logo {
    background: rgb(255 255 255 / 12%);
}

.navbar-nav {
    gap: clamp(0.8rem, 1.6vw, 2rem);
    order: 1;
}

.navbar-collapse {
    gap: 1rem;
}

.navigation-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    order: 2;
}

.route-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 1.25rem;
    color: var(--white);
    background: var(--forest);
    border: 1px solid var(--forest);
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease;
}

.route-cta:hover {
    color: var(--forest);
    background: var(--white);
}

.dropdown-menu {
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(7, 63, 50, 0.12);
}

.dropdown-item {
    padding: 0.65rem 0.8rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--forest);
    background: var(--linen);
}

.navbar .nav-link {
    position: relative;
    padding: 0.55rem 0 !important;
    color: var(--ink);
    font-weight: 500;
}

.navbar .nav-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--terracotta);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.manager-link {
    display: inline-flex;
    gap: 0.9rem;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 1.45rem;
    color: var(--forest);
    border: 1px solid var(--forest);
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease;
}

.manager-link:hover {
    color: var(--white);
    background: var(--forest);
}

.manager-link--ghost {
    background: var(--white);
}

.logout-form {
    margin: 0;
}

.logout-form .manager-link {
    cursor: pointer;
}

.manager-link svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.site-header--inner {
    border-bottom: 1px solid var(--line);
}

.inner-page {
    min-height: 55vh;
}

.page-hero {
    display: flex;
    min-height: 390px;
    align-items: end;
    color: var(--white);
    background:
        linear-gradient(105deg, rgba(5, 46, 37, 0.98), rgba(7, 63, 50, 0.76)),
        url('/images/rota-viva-hero.webp') center 45% / cover;
}

.page-hero--compact {
    min-height: 320px;
}

.page-hero--detail {
    min-height: 350px;
}

.page-hero__content {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.page-hero__content h1 {
    max-width: 900px;
    margin: 0.35rem 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.95;
}

.page-hero__content > p:last-child {
    max-width: 700px;
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

.page-section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.link-card-grid,
.catalog-grid,
.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.link-card {
    min-height: 330px;
    padding: clamp(1.6rem, 3vw, 2.6rem);
    color: var(--ink);
    background: var(--linen);
    border-top: 3px solid var(--terracotta);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
    color: var(--ink);
    box-shadow: 0 20px 45px rgba(7, 63, 50, 0.1);
    transform: translateY(-4px);
}

.link-card__number {
    color: var(--terracotta);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
}

.link-card h2,
.catalog-card h2,
.detail-copy h2,
.editorial-content h2 {
    margin: 1rem 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 400;
}

.link-card p,
.catalog-card p,
.detail-copy p,
.editorial-content p {
    color: var(--muted);
    line-height: 1.7;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.1rem 1.3rem;
    color: var(--forest);
    background: var(--linen);
    border: 1px solid var(--line);
}

.catalog-toolbar span {
    color: var(--muted);
}

.catalog-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
}

.catalog-card__media {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, var(--forest), #2e7563);
}

.catalog-card__media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.catalog-card__media::after {
    display: none;
}

.catalog-card__media span {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    color: rgba(255, 255, 255, 0.78);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    transform: translate(-50%, -50%);
}

.catalog-card__media--placeholder {
    display: grid;
    place-items: center;
}

.catalog-card__media--placeholder::after {
    display: none;
}

.catalog-card__content {
    padding: 1.5rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.detail-placeholder,
.map-placeholder {
    min-height: 430px;
    background:
        linear-gradient(rgba(7, 63, 50, 0.35), rgba(7, 63, 50, 0.7)),
        url('/images/cultural-center.webp') center / cover;
}

.map-placeholder {
    display: grid;
    min-height: 520px;
    padding: 2rem;
    color: var(--white);
    background:
        radial-gradient(circle at 68% 35%, rgba(201, 95, 64, 0.8) 0 8px, transparent 9px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.85) 0 7px, transparent 8px),
        linear-gradient(135deg, #174f43, #052e25);
    place-content: center;
    text-align: center;
}

.map-placeholder span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 4rem);
}

.route-builder-card,
.login-placeholder,
.editorial-content,
.admin-placeholder {
    max-width: 960px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--linen);
    border: 1px solid var(--line);
}

.route-builder-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
}

.route-builder-steps li {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.route-builder-steps span {
    display: block;
    color: var(--terracotta);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.route-builder-card form {
    display: grid;
    gap: 1rem;
}

.route-builder-card textarea {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 1px solid #aaa59c;
    resize: vertical;
}

.route-builder-card .route-cta {
    justify-self: start;
}

.route-builder-card .route-cta[disabled] {
    cursor: wait;
    opacity: 0.78;
}

.route-builder-status {
    max-width: 42rem;
    margin: 0.25rem 0 0;
    color: var(--forest);
    font-size: 0.95rem;
    line-height: 1.6;
}

.route-builder-followup {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(0, 75, 61, 0.18);
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at top right, rgba(237, 151, 111, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 239, 230, 0.92));
    box-shadow: 0 18px 44px rgb(0 0 0 / 6%);
}

.route-builder-followup h2 {
    max-width: 42rem;
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.08;
}

.route-builder-followup p:not(.eyebrow) {
    max-width: 48rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.route-builder-time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.route-builder-time-option {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 75, 61, 0.28);
    border-radius: 999px;
    background: var(--white);
    color: var(--forest);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.route-builder-time-option:hover,
.route-builder-time-option:focus-visible {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--white);
    transform: translateY(-1px);
}

.route-builder-loading {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    padding: 1.25rem;
    background: rgba(5, 46, 37, 0.78);
    backdrop-filter: blur(5px);
    place-items: center;
}

.route-builder-loading[hidden] {
    display: none;
}

.route-builder-loading__panel {
    display: grid;
    width: min(100%, 430px);
    gap: 0.85rem;
    padding: clamp(2rem, 5vw, 3rem);
    color: var(--ink);
    background: var(--linen);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.route-builder-loading__panel .eyebrow {
    margin-bottom: 0;
}

.route-builder-loading__panel strong {
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    font-weight: 400;
    line-height: 1.1;
}

.route-builder-loading__panel span:last-child {
    color: var(--muted);
    line-height: 1.55;
}

.route-builder-loading__spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto 0.3rem;
    border: 4px solid rgba(7, 63, 50, 0.16);
    border-top-color: var(--forest);
    border-radius: 50%;
    animation: route-builder-spin 850ms linear infinite;
}

@keyframes route-builder-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-placeholder h1 {
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.detail-gallery {
    display: grid;
    gap: 0.9rem;
    align-self: start;
}

.detail-gallery__item {
    position: relative;
    min-height: 160px;
    margin: 0;
    overflow: hidden;
    background: var(--linen);
    border: 1px solid var(--line);
}

.detail-gallery__item--featured {
    min-height: clamp(280px, 42vw, 520px);
}

.detail-gallery__item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
}

.detail-gallery__item figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    color: var(--white);
    background: linear-gradient(135deg, rgba(5, 46, 37, 0.92), rgba(7, 63, 50, 0.76));
    backdrop-filter: blur(6px);
}

.detail-gallery__item figcaption strong,
.detail-gallery__item figcaption span {
    color: inherit;
}

.detail-gallery__item figcaption span {
    font-size: 0.85rem;
    opacity: 0.86;
}

.detail-gallery:not(.detail-gallery--fallback):has(.detail-gallery__item:nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-gallery:not(.detail-gallery--fallback):has(.detail-gallery__item:nth-child(2)) .detail-gallery__item--featured {
    grid-column: 1 / -1;
}

.login-shell {
    max-width: 560px;
    margin-inline: auto;
}

.login-card {
    padding: clamp(1.75rem, 4vw, 2.4rem);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 22px 55px rgba(7, 63, 50, 0.08);
}

.login-card__intro {
    margin-bottom: 1.5rem;
}

.login-card__intro h2 {
    margin-bottom: 0.65rem;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
}

.login-card__intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.form-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid;
    font-size: 0.95rem;
}

.form-alert ul {
    margin: 0.35rem 0 0 1.1rem;
    padding: 0;
}

.form-alert--danger {
    color: #8a1f16;
    background: #fff1ee;
    border-color: #f0b3a7;
}

.form-alert--success {
    color: var(--forest);
    background: #edf7f1;
    border-color: #b8dec8;
}

.ai-disclaimer,
.privacy-note {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    color: #2f4f46;
    background: #f1f7f3;
    border: 1px solid #c8ded1;
}

.ai-disclaimer span {
    display: inline-grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    color: var(--white);
    background: var(--forest);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    place-items: center;
}

.ai-disclaimer p,
.privacy-note p {
    margin: 0;
    color: inherit;
    line-height: 1.55;
}

.privacy-note {
    display: block;
}

.privacy-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--forest);
}

.form-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-field label {
    color: var(--forest);
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.form-field input:focus {
    border-color: var(--forest);
    outline: 3px solid rgba(7, 63, 50, 0.14);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.35rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.login-options label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
}

.login-options input {
    accent-color: var(--forest);
}

.login-submit {
    width: 100%;
}

.demo-credentials {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    text-align: center;
}

.demo-credentials p {
    margin: 0 0 0.45rem;
}

.demo-credentials code {
    display: inline-block;
    padding: 0.25rem 0.45rem;
    color: var(--forest);
    background: var(--linen);
    border: 1px solid var(--line);
}

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

.admin-module-card {
    display: flex;
    min-height: 190px;
    padding: 1.5rem;
    color: var(--forest);
    background: var(--linen);
    border: 1px solid var(--line);
    flex-direction: column;
    text-decoration: none;
}

.admin-module-card span {
    color: var(--terracotta);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
}

.admin-module-card strong {
    margin-block: auto;
    font-size: 1.15rem;
}

.admin-module-card small {
    color: var(--muted);
}

.admin-placeholder {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-flash {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    color: var(--forest);
    background: #edf7f1;
    border: 1px solid #b8dec8;
}

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: flex-end;
}

.admin-table-actions a,
.admin-table-actions button {
    color: #0284c7;
    background: transparent;
    border: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-table-actions button {
    color: #b91c1c;
    cursor: pointer;
}

.admin-form-shell {
    max-width: 1050px;
}

.admin-form {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--linen);
    border: 1px solid var(--line);
}

.admin-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

.admin-form__divider {
    width: 100%;
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.admin-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--forest);
    font-weight: 650;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #aaa59c;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-form__checks label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--ink);
}

.admin-form__checks input {
    width: auto;
    min-height: auto;
}

.admin-form__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.appearance-preview {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
}

.appearance-preview span {
    color: var(--forest);
    font-weight: 700;
}

.appearance-preview img {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}

.appearance-preview--wide img {
    width: min(100%, 680px);
    max-width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.inner-footer {
    padding-top: 3.5rem;
    color: rgba(255, 255, 255, 0.78);
    background: var(--forest-dark);
}

.inner-footer__content,
.inner-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.inner-footer__content nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem 2rem;
}

.inner-footer a {
    color: inherit;
    text-decoration: none;
}

.inner-footer a:hover {
    color: var(--white);
}

.inner-footer__bottom {
    margin-top: 2.5rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero {
    display: grid;
    height: clamp(550px, calc(100vh - 142px), 680px);
    min-height: 0;
    grid-template-columns: 48.2% 51.8%;
    background: var(--linen);
    overflow: hidden;
}

.hero__copy {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 0;
    background-color: var(--linen);
    background-image: radial-gradient(rgba(7, 63, 50, 0.035) 0.6px, transparent 0.6px);
    background-size: 5px 5px;
}

.hero__copy-inner {
    width: 100%;
    max-width: 720px;
    padding: 3.5rem clamp(1.25rem, 4vw, 4rem);
}

.eyebrow {
    margin: 0 0 1.35rem;
    color: var(--terracotta);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 4.25vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.hero__description {
    max-width: 580px;
    margin: 1.65rem 0 2.7rem;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.65;
}

.route-search {
    display: flex;
    width: min(100%, 665px);
    gap: 0.8rem;
}

.route-search__field {
    display: flex;
    flex: 1 1 auto;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    height: 66px;
    padding: 0 1.15rem;
    background: var(--white);
    border: 1px solid #a8a59f;
    border-radius: 2px;
}

.route-search__field:focus-within {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(7, 63, 50, 0.12);
}

.route-search__field svg {
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.3;
}

.route-search__field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.route-search__field input::placeholder {
    color: #74716c;
}

.route-search__button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 1.1rem;
    align-items: center;
    justify-content: center;
    height: 66px;
    padding: 0 1.5rem;
    color: var(--white);
    background: var(--forest);
    border: 1px solid var(--forest);
    border-radius: 2px;
    transition: background 180ms ease, transform 180ms ease;
}

.route-search__button:hover {
    background: var(--forest-dark);
    transform: translateY(-1px);
}

.route-search__button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.hero__visual {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin-left: -6.5rem;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 8% 100%, 0 70%, 4% 46%);
}

.hero__visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 37, 31, 0.05), transparent 34%);
    content: "";
    pointer-events: none;
}

.hero__visual > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.experience-card {
    position: absolute;
    z-index: 2;
    right: clamp(1.5rem, 5vw, 5.25rem);
    bottom: 1.65rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    width: min(470px, calc(100% - 7rem));
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 5px;
    box-shadow: 0 9px 24px rgba(8, 37, 31, 0.16);
}

.experience-card__icon {
    display: grid;
    flex: 0 0 auto;
    width: 65px;
    height: 65px;
    color: var(--forest);
    background: #fbfaf6;
    border: 1px solid #ddd8cf;
    border-radius: 50%;
    place-items: center;
}

.experience-card__icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.experience-card__icon .dashed {
    stroke-dasharray: 3 3;
}

.experience-card strong {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

.experience-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.experience-card__tags span {
    padding: 0.35rem 0.75rem;
    background: #f1efe9;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.trust-strip {
    background-color: #f8f6f0;
    background-image: radial-gradient(rgba(7, 63, 50, 0.04) 0.6px, transparent 0.6px);
    background-size: 5px 5px;
    border-block: 1px solid var(--line);
}

.trust-strip__grid {
    display: grid;
    min-height: 96px;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 1.5rem;
    font-weight: 500;
}

.trust-item:not(:last-child)::after {
    position: absolute;
    top: 25%;
    right: 0;
    bottom: 25%;
    width: 1px;
    background: #d7d0c5;
    content: "";
}

.trust-item__icon {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 34px;
    color: var(--forest);
    place-items: center;
}

.trust-item__icon--filled {
    color: var(--white);
    background: var(--forest);
    clip-path: polygon(50% 0, 90% 18%, 87% 65%, 50% 100%, 13% 65%, 10% 18%);
}

.trust-item__svg {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--forest);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.discover-section {
    padding-top: 2.75rem;
    padding-bottom: 4rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 2.7vw, 2.65rem);
    font-weight: 600;
}

.section-heading > span {
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 0.9rem;
    background: var(--terracotta);
}

.discovery-grid {
    display: grid;
    margin-top: 0.65rem;
    grid-template-columns: repeat(4, 1fr);
}

.discovery-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.35rem;
    align-items: center;
    min-height: 105px;
    padding: 1rem 2.35rem 0.25rem 0;
    color: var(--ink);
    text-decoration: none;
}

.discovery-item:not(:first-child) {
    padding-left: 2.35rem;
}

.discovery-item:not(:last-child)::after {
    position: absolute;
    top: 20%;
    right: 0;
    bottom: 10%;
    width: 1px;
    background: var(--line);
    content: "";
}

.discovery-item__number {
    color: var(--terracotta);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.25rem;
    line-height: 1;
}

.discovery-item__label {
    padding-bottom: 0.8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    border-bottom: 1px solid #a7a39b;
}

.discovery-item__arrow {
    font-size: 1.8rem;
    transition: transform 180ms ease;
}

.discovery-item:hover {
    color: var(--forest);
}

.discovery-item:hover .discovery-item__arrow {
    transform: translateX(6px);
}

.territory-highlights {
    padding-top: clamp(3.5rem, 6vw, 6rem);
    padding-bottom: 2rem;
}

.highlights-heading,
.confidence-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.highlights-heading .eyebrow,
.local-economy .eyebrow,
.adaptive-route .eyebrow {
    margin-bottom: 1rem;
}

.highlights-heading h2,
.adaptive-route h2,
.confidence-heading h2,
.local-economy h2,
.final-cta h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.highlights-heading h2 {
    font-size: clamp(2.6rem, 4.5vw, 4.4rem);
}

.text-link {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    color: var(--forest);
    font-weight: 650;
    text-decoration: none;
}

.text-link span {
    font-size: 1.6rem;
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

.places-grid {
    display: grid;
    margin-top: 2.25rem;
    grid-template-columns: 1.9fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.4rem;
}

.place-card {
    display: flex;
    min-height: 0;
    min-width: 0;
    flex-direction: column;
    background: var(--white);
}

.place-card--market {
    grid-column: 1;
    grid-row: 2;
}

.place-card--viewpoint {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.place-card img {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.place-card--culture img {
    height: 360px;
    object-position: center 48%;
}

.place-card--market img {
    height: 235px;
}

.place-card--viewpoint img {
    height: 620px;
    object-position: 68% center;
}

.place-card__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 92px;
    padding: 0.8rem 0.8rem 0.85rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.place-card__content strong,
.place-card__content small {
    display: block;
}

.place-card__content strong {
    margin-bottom: 0.15rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
    font-weight: 400;
    line-height: 1.12;
}

.place-card__content small {
    color: var(--muted);
}

.place-card__arrow {
    flex: 0 0 auto;
    font-size: 1.8rem;
    transition: transform 180ms ease;
}

.place-card__content:hover .place-card__arrow {
    transform: translateX(5px);
}

.municipal-validation {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.municipal-validation span {
    display: grid;
    width: 25px;
    height: 28px;
    color: var(--white);
    background: var(--forest);
    clip-path: polygon(50% 0, 90% 18%, 87% 65%, 50% 100%, 13% 65%, 10% 18%);
    place-items: center;
}

.adaptive-route {
    margin-top: 1.5rem;
    color: #f8f5ed;
    background: var(--forest-dark);
}

.adaptive-route__grid {
    display: grid;
    min-height: 650px;
    grid-template-columns: 38% 62%;
}

.adaptive-route__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 4rem 0;
}

.adaptive-route__copy .eyebrow {
    color: #e77c58;
}

.adaptive-route h2 {
    font-size: clamp(2.6rem, 4.1vw, 4.2rem);
}

.adaptive-route__copy > p:not(.eyebrow) {
    max-width: 490px;
    margin: 1.5rem 0 2rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.adaptive-steps {
    max-width: 500px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adaptive-steps li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.adaptive-steps span {
    color: #e77c58;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.7rem;
    font-weight: 400;
}

.adaptive-steps strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.35;
}

.route-map {
    position: relative;
    min-height: 650px;
    overflow: hidden;
}

.route-map > img,
.route-map__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.route-map > img {
    object-fit: cover;
    object-position: center;
    filter: grayscale(0.3) contrast(1.05);
}

.route-map__shade {
    background: linear-gradient(90deg, rgba(5, 46, 37, 0.68), rgba(4, 38, 31, 0.88)), radial-gradient(circle at 70% 35%, transparent, #052e25 82%);
}

.route-map__path {
    position: absolute;
    z-index: 2;
    inset: 7% 25% 7% 5%;
    width: 70%;
    height: 86%;
    overflow: visible;
}

.route-map__path path {
    fill: none;
    stroke-linecap: round;
    stroke-width: 5;
}

.route-map__old {
    stroke: #e26845;
    stroke-dasharray: 10 10;
}

.route-map__new {
    stroke: #f9f7f0;
}

.route-map__path circle {
    fill: var(--forest);
    stroke: #f9f7f0;
    stroke-width: 4;
}

.route-point,
.route-summary,
.rain-card {
    position: absolute;
    z-index: 3;
}

.route-point {
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
}

.route-point--one {
    top: 10%;
    left: 23%;
}

.route-point--two {
    top: 38%;
    left: 39%;
}

.route-point--three {
    bottom: 8%;
    left: 47%;
}

.route-summary {
    top: 10%;
    right: 3%;
    display: grid;
    gap: 1rem;
    font-weight: 650;
}

.rain-card {
    right: 3%;
    bottom: 9%;
    width: 225px;
    padding: 1.2rem;
    background: rgba(5, 46, 37, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
}

.rain-card p {
    margin: 0.75rem 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.rain-card div {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.55rem;
    font-size: 0.8rem;
}

.rain-card__old,
.rain-card__new {
    width: 34px;
    border-top: 3px solid #e26845;
}

.rain-card__old {
    border-top-style: dashed;
}

.rain-card__new {
    border-color: #fff;
}

.confidence-section {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    background-color: var(--linen);
    background-image: radial-gradient(rgba(7, 63, 50, 0.035) 0.6px, transparent 0.6px);
    background-size: 5px 5px;
}

.confidence-heading {
    align-items: flex-start;
}

.confidence-heading h2 {
    font-size: clamp(2.2rem, 3.3vw, 3.25rem);
}

.confidence-heading p {
    margin: 0.9rem 0 0;
    color: var(--muted);
}

.municipal-mark {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    color: var(--muted);
}

.municipal-mark > span {
    font-size: 3.2rem;
    line-height: 1;
}

.confidence-grid {
    display: grid;
    margin-top: 3rem;
    grid-template-columns: repeat(4, 1fr);
}

.confidence-grid article {
    display: grid;
    grid-template-columns: 58px 1fr;
    padding: 0 2rem;
    border-left: 1px solid var(--line);
}

.confidence-grid article:first-child {
    padding-left: 0;
    border-left: 0;
}

.confidence-grid svg {
    width: 47px;
    height: 47px;
    fill: none;
    stroke: var(--forest);
    stroke-linecap: round;
    stroke-width: 1.4;
}

.confidence-grid h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 400;
}

.confidence-grid p {
    grid-column: 1 / -1;
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.local-economy {
    display: grid;
    grid-template-columns: 46% 54%;
    height: clamp(520px, 38vw, 620px);
    overflow: hidden;
}

.local-economy__copy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 0;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
}

.local-economy__copy > div {
    width: min(100%, 560px);
}

.local-economy h2 {
    font-size: clamp(2.5rem, 3.8vw, 3.8rem);
}

.local-economy__copy p:not(.eyebrow) {
    max-width: 535px;
    margin: 1.4rem 0;
    color: var(--muted);
    line-height: 1.65;
}

.local-economy .local-opportunities {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-block: 2rem !important;
    color: var(--forest) !important;
    font-weight: 600;
}

.local-opportunities span {
    font-size: 2rem;
}

.local-economy__image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: hidden;
    background: #0b3f35;
}

.local-economy__image img {
    display: block;
}

.local-economy__image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(0.92) brightness(0.72);
    opacity: 0.58;
    transform: scale(1.08);
}

.local-economy__image-main {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.final-cta {
    position: relative;
    min-height: 510px;
    overflow: hidden;
}

.final-cta > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.final-cta__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 510px;
}

.final-cta__panel {
    width: min(520px, 100%);
    padding: clamp(2.2rem, 4vw, 4rem);
    color: var(--white);
    background: rgba(5, 56, 44, 0.96);
    box-shadow: 0 20px 50px rgba(4, 37, 31, 0.25);
}

.final-cta h2 {
    font-size: clamp(2.5rem, 3.7vw, 3.75rem);
}

.final-cta__panel p {
    margin: 1.2rem 0 1.75rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.final-cta__button {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1.25rem;
    color: var(--forest);
    background: var(--white);
    font-weight: 650;
    text-decoration: none;
}

.final-cta__secondary {
    display: block;
    width: fit-content;
    margin-top: 1.2rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.site-footer {
    padding: 3.5rem 0 1.3rem;
    color: rgba(255, 255, 255, 0.78);
    background: var(--forest-dark);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(4, 1fr);
    gap: 3rem;
}

.brand--light {
    color: var(--white);
}

.brand--light:hover {
    color: #f6eade;
}

.site-footer__brand p {
    margin: 0.8rem 0 1.5rem;
    line-height: 1.5;
}

.site-footer__grid h2 {
    margin: 0 0 0.9rem;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 650;
}

.site-footer__grid > div:not(.site-footer__brand) a {
    display: block;
    width: fit-content;
    margin-top: 0.65rem;
    color: inherit;
    text-decoration: none;
}

.site-footer__grid a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: grid;
    width: 30px;
    height: 30px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    text-decoration: none;
    place-items: center;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
}

html[data-theme="dark"] .accessibility-bar {
    color: #e9dfd2;
    background: #0a120f;
    border-bottom-color: #1f3029;
}

html[data-theme="dark"] .site-header {
    background: rgb(8 17 14 / 96%);
    border-bottom: 1px solid #1d2d26;
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .navbar .nav-link,
html[data-theme="dark"] .municipality-selector select,
html[data-theme="dark"] .utility-button {
    color: #f3ebdf;
}

html[data-theme="dark"] .brand:hover,
html[data-theme="dark"] .navbar .nav-link:hover,
html[data-theme="dark"] .utility-button:hover,
html[data-theme="dark"] .text-link {
    color: var(--forest);
}

html[data-theme="dark"] .utility-divider {
    background: #314039;
}

html[data-theme="dark"] .route-cta,
html[data-theme="dark"] .route-search__button {
    color: #05231d;
    background: var(--forest);
    border-color: var(--forest);
    box-shadow: 0 12px 26px rgb(0 0 0 / 18%);
}

html[data-theme="dark"] .route-cta:hover,
html[data-theme="dark"] .route-search__button:hover {
    color: #061a15;
    background: #b8ead7;
    border-color: #b8ead7;
}

html[data-theme="dark"] .manager-link {
    color: var(--forest);
    border-color: rgb(147 216 191 / 65%);
}

html[data-theme="dark"] .manager-link:hover,
html[data-theme="dark"] .manager-link--ghost {
    color: #05231d;
    background: var(--forest);
}

html[data-theme="dark"] .dropdown-menu {
    background: #101c18;
    border-color: var(--line);
    box-shadow: 0 22px 60px rgb(0 0 0 / 34%);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--ink);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    color: #05231d;
    background: var(--forest);
}

html[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 6% 18%, rgb(232 138 103 / 9%), transparent 30%),
        linear-gradient(135deg, #0b1511, #111b16);
}

html[data-theme="dark"] .hero__copy {
    background-color: transparent;
    background-image: radial-gradient(rgb(255 255 255 / 4%) 0.6px, transparent 0.6px);
}

html[data-theme="dark"] .hero__visual::after {
    background:
        linear-gradient(90deg, rgb(7 17 14 / 48%), transparent 36%),
        linear-gradient(0deg, rgb(7 17 14 / 20%), transparent 42%);
}

html[data-theme="dark"] .hero__visual > img,
html[data-theme="dark"] .place-card img,
html[data-theme="dark"] .local-economy__image img,
html[data-theme="dark"] .final-cta > img,
html[data-theme="dark"] .catalog-card__media img,
html[data-theme="dark"] .detail-gallery__item img {
    filter: brightness(0.82) saturate(0.92);
}

html[data-theme="dark"] .route-search__field,
html[data-theme="dark"] .experience-card,
html[data-theme="dark"] .place-card,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .link-card,
html[data-theme="dark"] .admin-form,
html[data-theme="dark"] .admin-placeholder,
html[data-theme="dark"] .route-builder-card,
html[data-theme="dark"] .appearance-preview,
html[data-theme="dark"] .detail-gallery__item {
    background: #111d18;
    border-color: var(--line);
    box-shadow: 0 18px 50px rgb(0 0 0 / 16%);
}

html[data-theme="dark"] .route-search__field,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: var(--ink);
    background: #0c1612;
    border-color: #385047;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .route-search__field input::placeholder {
    color: #938a80;
}

html[data-theme="dark"] .experience-card {
    background: rgb(12 22 18 / 88%);
    border-color: rgb(255 255 255 / 12%);
    backdrop-filter: blur(12px);
}

html[data-theme="dark"] .experience-card__icon {
    color: var(--forest);
    background: #0a120f;
    border-color: #2f443b;
}

html[data-theme="dark"] .experience-card__tags span,
html[data-theme="dark"] .catalog-toolbar,
html[data-theme="dark"] .trust-strip {
    background: #101a16;
    border-color: var(--line);
}

html[data-theme="dark"] .trust-strip {
    color: #e8ded1;
}

html[data-theme="dark"] .trust-item::after,
html[data-theme="dark"] .discovery-item:not(:last-child)::after,
html[data-theme="dark"] .confidence-grid article,
html[data-theme="dark"] .confidence-grid article:nth-child(3) {
    border-color: var(--line);
}

html[data-theme="dark"] .discover-section,
html[data-theme="dark"] .territory-highlights,
html[data-theme="dark"] .confidence-section,
html[data-theme="dark"] .page-section {
    background:
        radial-gradient(circle at 90% 0%, rgb(147 216 191 / 6%), transparent 28%),
        #07110e;
}

html[data-theme="dark"] .discovery-item {
    color: #f0e7dc;
}

html[data-theme="dark"] .discovery-item__label {
    border-bottom-color: #46554d;
}

html[data-theme="dark"] .discovery-item:hover,
html[data-theme="dark"] .place-card__content:hover,
html[data-theme="dark"] .catalog-card a:hover,
html[data-theme="dark"] .link-card:hover {
    color: var(--forest);
}

html[data-theme="dark"] .place-card__content {
    color: var(--ink);
    background: #101c18;
    border-color: var(--line);
}

html[data-theme="dark"] .municipal-validation span,
html[data-theme="dark"] .trust-item__icon--filled {
    color: #05231d;
    background: var(--forest);
}

html[data-theme="dark"] .adaptive-route,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .inner-footer {
    background:
        radial-gradient(circle at 75% 10%, rgb(147 216 191 / 10%), transparent 32%),
        #06130f;
}

html[data-theme="dark"] .adaptive-route__copy .eyebrow,
html[data-theme="dark"] .adaptive-steps span {
    color: #f0a07d;
}

html[data-theme="dark"] .route-map {
    background: #07110e;
}

html[data-theme="dark"] .confidence-grid svg {
    color: var(--forest);
}

html[data-theme="dark"] .local-economy__copy {
    background:
        radial-gradient(circle at 14% 18%, rgb(232 138 103 / 8%), transparent 28%),
        #0b1511;
}

html[data-theme="dark"] .local-economy__image-bg {
    filter: blur(22px) saturate(0.84) brightness(0.52);
}

html[data-theme="dark"] .local-economy__image-main {
    filter: brightness(0.86) saturate(0.92);
}

html[data-theme="dark"] .local-economy .local-opportunities {
    color: var(--forest) !important;
}

html[data-theme="dark"] .final-cta__panel {
    background: rgb(7 20 16 / 92%);
    border: 1px solid rgb(255 255 255 / 12%);
    box-shadow: 0 24px 70px rgb(0 0 0 / 34%);
    backdrop-filter: blur(10px);
}

html[data-theme="dark"] .final-cta__button {
    color: #05231d;
    background: var(--forest);
}

html[data-theme="dark"] .admin-flash {
    color: #d8f7ea;
    background: #10241d;
    border-color: #2f604d;
}

html[data-theme="dark"] .form-alert--success,
html[data-theme="dark"] .route-builder-status {
    color: #d8f7ea;
}

html[data-theme="dark"] .ai-disclaimer,
html[data-theme="dark"] .privacy-note {
    color: #d8efe6;
    background: #10241d;
    border-color: #2f604d;
}

html[data-theme="dark"] .ai-disclaimer span {
    color: #05231d;
    background: var(--forest);
}

html[data-theme="dark"] .privacy-note strong {
    color: var(--forest);
}

html[data-theme="dark"] .route-builder-loading__panel,
html[data-theme="dark"] .route-builder-result {
    color: var(--ink);
    background: #101c18;
    border-color: var(--line);
}

html[data-theme="dark"] .route-builder-error {
    color: #ffd6cc;
    background: #2a1412;
    border-color: #703027;
}

html[data-theme="dark"] .route-builder-empty-state {
    background: linear-gradient(135deg, #16251f, #101c18);
    border-color: rgba(237, 151, 111, 0.28);
}

html[data-theme="dark"] .route-builder-followup {
    background:
        radial-gradient(circle at top right, rgba(237, 151, 111, 0.16), transparent 34%),
        linear-gradient(135deg, #16251f, #101c18);
    border-color: rgba(216, 247, 234, 0.14);
    box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

html[data-theme="dark"] .route-builder-followup h2 {
    color: var(--ink);
}

html[data-theme="dark"] .route-builder-followup p:not(.eyebrow) {
    color: var(--muted);
}

html[data-theme="dark"] .route-builder-time-option {
    background: #0c1612;
    border-color: rgba(216, 247, 234, 0.2);
    color: var(--ink);
}

html[data-theme="dark"] .route-builder-time-option:hover,
html[data-theme="dark"] .route-builder-time-option:focus-visible {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #130c09;
}

html[data-theme="dark"] .route-builder-suggestions,
html[data-theme="dark"] .route-builder-alternative {
    background: #101c18;
    border-color: var(--line);
}

html[data-theme="dark"] .route-builder-suggestions ul,
html[data-theme="dark"] .route-builder-alternative h3,
html[data-theme="dark"] .route-builder-alternative a {
    color: var(--ink);
}

html[data-theme="dark"] .route-map-container {
    background: #0c1612;
}

html[data-theme="dark"] .leaflet-tile {
    filter: brightness(0.72) saturate(0.78) contrast(1.08);
}

.high-contrast {
    --forest: #000000;
    --forest-dark: #000000;
    --terracotta: #ffea00;
    --ink: #000000;
    --muted: #000000;
    --linen: #ffffff;
    --line: #000000;
}

.high-contrast * {
    border-color: #000000 !important;
}

.high-contrast .hero__visual img {
    filter: grayscale(1) contrast(1.25);
}

@media (max-width: 1199.98px) {
    .navbar-nav {
        gap: 1.45rem;
    }

    .hero {
        grid-template-columns: 52% 48%;
    }

    .hero__visual {
        margin-left: -4rem;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 5vw, 4.3rem);
    }

    .route-search {
        flex-direction: column;
    }

    .route-search__button {
        align-self: flex-start;
    }

    .experience-card {
        right: 1.5rem;
        width: min(420px, calc(100% - 5rem));
    }

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

    .discovery-item:nth-child(2)::after {
        display: none;
    }

    .adaptive-route__grid {
        grid-template-columns: 42% 58%;
    }

    .route-summary {
        top: 3%;
        right: 2%;
    }

    .rain-card {
        right: 2%;
        width: 205px;
    }

    .confidence-grid article {
        padding-inline: 1.15rem;
    }

    .site-footer__grid {
        gap: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 76px;
    }

    .navbar-collapse {
        padding: 1rem 0 1.5rem;
    }

    .navigation-actions {
        align-items: stretch;
        margin-bottom: 0.75rem;
        flex-direction: column;
    }

    .route-cta,
    .manager-link {
        width: 100%;
    }

    .navbar-nav {
        gap: 0;
        margin-bottom: 1rem;
    }

    .manager-link {
        width: 100%;
    }

    .link-card-grid,
    .catalog-grid,
    .admin-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .route-builder-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .route-builder-alternatives__grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        grid-template-columns: 1fr;
    }

    .hero__copy-inner {
        max-width: 820px;
        padding-block: 3rem;
    }

    .hero__visual {
        height: 430px;
        min-height: 430px;
        margin-left: 0;
        clip-path: none;
    }

    .experience-card {
        width: min(470px, calc(100% - 3rem));
    }

    .trust-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2)::after {
        display: none;
    }

    .places-grid {
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .place-card--viewpoint {
        grid-column: 2;
        grid-row: 1;
    }

    .place-card--market {
        grid-column: 1 / -1;
    }

    .place-card--market img {
        height: 300px;
    }

    .adaptive-route__grid,
    .local-economy {
        grid-template-columns: 1fr;
    }

    .local-economy {
        height: auto;
        overflow: visible;
    }

    .adaptive-route__copy {
        padding-right: 0;
    }

    .route-map {
        min-height: 600px;
    }

    .confidence-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 0;
    }

    .confidence-grid article:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .local-economy__copy {
        justify-content: flex-start;
    }

    .local-economy__copy > div {
        width: 100%;
        max-width: 760px;
    }

    .local-economy__image img {
        height: 420px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .accessibility-bar__content {
        align-items: flex-start;
        padding-block: 0.75rem;
        flex-direction: column;
    }

    .locale-tools {
        display: none;
    }

    .link-card-grid,
    .catalog-grid,
    .admin-module-grid {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar,
    .inner-footer__content,
    .inner-footer__bottom,
    .admin-placeholder {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-builder-steps {
        grid-template-columns: 1fr;
    }

    .inner-footer__content nav {
        grid-template-columns: 1fr;
    }
    .accessibility-bar__content {
        gap: 0.75rem;
        align-items: flex-start;
        padding-block: 0.65rem;
        overflow-x: auto;
    }

    .accessibility-tools,
    .locale-tools {
        gap: 0.85rem;
    }

    .utility-button--accessibility span:last-child,
    .locale-tools .utility-divider,
    .locale-tools .utility-button:last-child span:nth-child(2) {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 12vw, 3.65rem);
    }

    .hero__description {
        margin-bottom: 2rem;
    }

    .route-search__field,
    .route-search__button {
        width: 100%;
    }

    .route-search__button {
        align-self: stretch;
    }

    .hero__visual {
        height: 360px;
        min-height: 360px;
    }

    .experience-card {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: auto;
    }

    .trust-strip__grid {
        grid-template-columns: 1fr;
        padding-block: 0.65rem;
    }

    .trust-item {
        justify-content: flex-start;
        min-height: 64px;
        padding: 0.75rem 1rem;
    }

    .trust-item::after {
        right: 1rem !important;
        bottom: 0 !important;
        left: 1rem;
        top: auto !important;
        width: auto !important;
        height: 1px;
    }

    .trust-item:last-child::after {
        display: none;
    }

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

    .discovery-item,
    .discovery-item:not(:first-child) {
        padding: 1.1rem 0;
    }

    .discovery-item::after {
        right: 0 !important;
        bottom: 0 !important;
        left: 0;
        top: auto !important;
        display: block !important;
        width: auto !important;
        height: 1px;
    }

    .discovery-item:last-child::after {
        display: none !important;
    }

    .highlights-heading,
    .confidence-heading {
        gap: 1.5rem;
        align-items: flex-start;
        flex-direction: column;
    }

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

    .place-card--viewpoint,
    .place-card--market {
        grid-column: 1;
        grid-row: auto;
    }

    .place-card img,
    .place-card--market img {
        height: 260px;
    }

    .adaptive-route__copy {
        padding-block: 3.5rem;
    }

    .adaptive-route h2 {
        font-size: 2.75rem;
    }

    .route-map {
        min-height: 620px;
        margin-inline: -1.25rem;
    }

    .route-map__path {
        inset: 8% 15% 8% 0;
        width: 78%;
    }

    .route-point--one {
        left: 21%;
    }

    .route-point--two {
        left: 39%;
    }

    .route-summary {
        display: none;
    }

    .rain-card {
        right: 1rem;
        bottom: 1.5rem;
        width: 210px;
    }

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

    .confidence-grid article,
    .confidence-grid article:nth-child(3) {
        padding: 0 0 1.5rem;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .local-economy__copy {
        padding-inline: 1.25rem;
    }

    .local-economy__image img {
        height: 320px;
    }

    .final-cta__content {
        align-items: stretch;
        padding: 1.25rem;
    }

    .final-cta__panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .site-footer__bottom {
        gap: 1rem;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.route-map-container {
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #eceeea;
}

.route-map-container--large {
    min-height: 560px;
}

.route-result-map {
    position: sticky;
    top: 7rem;
    align-self: start;
}

.route-map-marker-wrapper {
    background: transparent;
    border: 0;
}

.route-map-marker {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 3px solid #fff;
    border-radius: 50%;

    background: #153b2e;
    color: #fff;

    font-size: 0.85rem;
    font-weight: 700;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.18);
}

.route-map-marker--kept {
    background: #153b2e;
}

.route-map-marker--added {
    background: #c17134;
}

.route-map-marker--removed {
    background: #7d817d;
    opacity: 0.8;
}

.route-map-popup {
    min-width: 175px;

    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.route-map-popup strong {
    font-size: 0.95rem;
}

.route-map-popup span {
    color: #52615a;
}

.route-map-popup small {
    color: #777;
}

.route-map-empty {
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    color: #666;
    text-align: center;
}

.adaptation-map-section {
    margin-top: 5rem;
}

.adaptation-map-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 2rem;
}

.adaptation-map-heading h2 {
    margin:
        0.4rem 0
        0.75rem;
}

.route-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.route-map-legend span {
    display: flex;
    align-items: center;
    gap: 0.45rem;

    font-size: 0.85rem;
}

.route-map-legend__dot {
    width: 10px;
    height: 10px;

    display: inline-block;

    border-radius: 50%;
}

.route-map-legend__dot--kept {
    background: #153b2e;
}

.route-map-legend__dot--added {
    background: #c17134;
}

.route-map-legend__dot--removed {
    background: #7d817d;
}

@media (max-width: 992px) {
    .route-result-map {
        position: static;
    }

    .route-map-container,
    .route-map-container--large {
        min-height: 420px;
    }

    .adaptation-map-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .route-map-container,
    .route-map-container--large {
        min-height: 360px;
        border-radius: 1rem;
    }
}

/* =========================================
   Localização atual do visitante
========================================= */

.route-map-user-location {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.route-map-user-location__pulse {
    position: absolute;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        rgba(36, 103, 194, 0.16);

    animation:
        route-location-pulse
        2.2s
        ease-out
        infinite;
}

.route-map-user-location__point {
    position: relative;

    width: 16px;
    height: 16px;

    border: 4px solid #fff;

    border-radius: 50%;

    background: #2467c2;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.28);
}

@keyframes route-location-pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    70% {
        transform: scale(1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.route-map-wrapper {
    width: 100%;
}

.route-map-location-warning {
    display: flex;
    align-items: flex-start;

    gap: 0.75rem;

    margin-top: 1rem;
    padding: 1rem 1.1rem;

    border-radius: 0.8rem;

    background: #f5f3ed;

    color: #4f5853;
}

.route-map-location-warning[hidden] {
    display: none;
}

.route-map-location-warning > span {
    font-size: 1.3rem;
}

.route-map-location-warning strong {
    display: block;

    margin-bottom: 0.2rem;

    color: #153b2e;
}

.route-map-location-warning p {
    margin: 0;

    font-size: 0.85rem;
}


/* ==============================
   Erro completo do mapa
============================== */

.route-map-fallback {
    min-height: 360px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 1rem;

    padding: 3rem;

    border-radius: 1.25rem;

    background: #f3f5f3;

    text-align: center;
}

.route-map-fallback[hidden] {
    display: none;
}

.route-map-fallback__icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e1e7e3;

    color: #153b2e;

    font-size: 1.5rem;
}

.route-map-fallback h3 {
    margin: 0.25rem 0 0.5rem;

    color: #153b2e;
}

.route-map-fallback p {
    max-width: 32rem;

    margin: 0;

    color: #657069;
}

.route-builder-error {
    display: flex;
    align-items: flex-start;

    gap: 0.85rem;

    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;

    border-radius: 0.9rem;

    background: #f7eeee;

    color: #613c3c;
}

.route-builder-error__icon {
    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ead4d4;

    font-weight: 700;
}

.route-builder-error strong {
    display: block;

    margin-bottom: 0.25rem;
}

.route-builder-error p {
    margin: 0;
}

.route-builder-error__list {
    display: grid;
    gap: 0.25rem;
    margin: 0.35rem 0 0 1.1rem;
    padding: 0;
}

.field-error {
    margin: -0.35rem 0 0;
    color: #9d3122;
    font-size: 0.92rem;
    font-weight: 700;
}

.route-builder-card textarea[aria-invalid="true"] {
    border-color: #c75b3a;
    box-shadow: 0 0 0 3px rgba(199, 91, 58, 0.14);
}

.route-builder-empty-state {
    display: grid;
    gap: 1.1rem;
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(199, 91, 58, 0.28);
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #fff8f2, #f5eee5);
    box-shadow: 0 18px 45px rgb(0 0 0 / 6%);
}

.route-builder-empty-state .eyebrow {
    margin-bottom: -0.35rem;
}

.route-builder-empty-state h2 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 400;
    line-height: 1.08;
}

.route-builder-empty-state p {
    max-width: 48rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.route-builder-suggestions {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-left: 4px solid var(--terracotta);
    background: rgb(255 255 255 / 62%);
}

.route-builder-suggestions strong,
.route-builder-alternatives > strong {
    color: var(--forest);
}

.route-builder-suggestions ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.25rem;
    color: var(--ink);
}

.route-builder-alternatives {
    display: grid;
    gap: 0.85rem;
}

.route-builder-alternatives__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.route-builder-alternative {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
}

.route-builder-alternative img {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: cover;
}

.route-builder-alternative > div {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.route-builder-alternative span {
    color: var(--terracotta);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.route-builder-alternative h3 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.12;
}

.route-builder-alternative p,
.route-builder-alternative small {
    margin: 0;
    color: var(--muted);
}

.route-builder-alternative p {
    line-height: 1.5;
}

.route-builder-alternative a {
    margin-top: 0.35rem;
    color: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.admin-dashboard__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.dashboard-period {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dashboard-period label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-period select {
    min-width: 190px;
    padding: 0.8rem 1rem;
    border: 1px solid #d9dedb;
    border-radius: 0.75rem;
    background: #fff;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
    gap: 1rem;
}

.dashboard-kpi,
.dashboard-panel {
    border: 1px solid #e1e5e2;
    border-radius: 1.25rem;
    background: #fff;
}

.dashboard-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 145px;
    padding: 1.4rem;
}

.dashboard-kpi > span {
    color: #667069;
    font-size: 0.82rem;
}

.dashboard-kpi > strong {
    margin-top: auto;
    color: #153b2e;
    font-size: 2rem;
}

.dashboard-kpi small {
    color: #7b827e;
}

.dashboard-section-heading {
    margin-top: 1rem;
}

.dashboard-two-columns {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 1.25rem;
}

.dashboard-panel {
    padding: 1.6rem;
}

.dashboard-panel h3 {
    margin:
        0.35rem
        0
        1.4rem;
}

.dashboard-ranking {
    margin-bottom: 1rem;
}

.dashboard-ranking > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-progress {
    height: 7px;
    margin-top: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0ee;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #315c4c;
}

.dashboard-map-panel {
    padding: 1rem;
}

.dashboard-map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.4rem 0.4rem 1.2rem;
}

.dashboard-map-filter {
    padding: 0.7rem 1rem;
    border: 1px solid #dce2de;
    border-radius: 999px;
    background: #fff;
    color: #52615a;
    cursor: pointer;
}

.dashboard-map-filter.is-active {
    border-color: #153b2e;
    background: #153b2e;
    color: #fff;
}

.dashboard-heatmap {
    width: 100%;
    min-height: 520px;
    border-radius: 1rem;
    overflow: hidden;
}

.dashboard-top-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style-position: inside;
}

.dashboard-top-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #edf0ee;
}

.dashboard-top-list li:last-child {
    border-bottom: 0;
}

.dashboard-top-list li strong {
    color: #667069;
    font-size: 0.8rem;
    white-space: nowrap;
}

.dashboard-panel--opportunities {
    background: #f6f3eb;
}

.dashboard-opportunities {
    margin-top: 1.4rem;
}

.dashboard-opportunity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom:
        1px solid
        rgba(21, 59, 46, 0.1);
}

.dashboard-opportunity:last-child {
    border-bottom: 0;
}

.dashboard-opportunity div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dashboard-opportunity span {
    color: #757d78;
    font-size: 0.8rem;
}

.dashboard-opportunity > strong {
    color: #153b2e;
    font-size: 1.4rem;
}

.dashboard-empty {
    color: #7b827e;
}

@media (max-width: 1200px) {
    .dashboard-kpis {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 800px) {
    .admin-dashboard__heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .dashboard-two-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-heatmap {
        min-height: 420px;
    }
}

@media (max-width: 520px) {
    .dashboard-kpis {
        grid-template-columns: 1fr;
    }
}

html[data-theme="dark"] body:not(.high-contrast) .route-map-location-warning,
html[data-theme="dark"] body:not(.high-contrast) .route-map-fallback,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-kpi,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-panel {
    color: var(--ink);
    background: #101c18;
    border-color: var(--line);
}

html[data-theme="dark"] body:not(.high-contrast) .route-map-location-warning strong,
html[data-theme="dark"] body:not(.high-contrast) .route-map-fallback h3,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-kpi > strong,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-opportunity > strong {
    color: var(--forest);
}

html[data-theme="dark"] body:not(.high-contrast) .route-map-location-warning,
html[data-theme="dark"] body:not(.high-contrast) .route-map-fallback p,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-kpi > span,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-kpi small,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-opportunity span,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-empty,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-top-list li strong {
    color: var(--muted);
}

html[data-theme="dark"] body:not(.high-contrast) .route-map-fallback__icon,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-map-filter.is-active {
    color: #05231d;
    background: var(--forest);
}

html[data-theme="dark"] body:not(.high-contrast) .dashboard-period select,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-map-filter {
    color: var(--ink);
    background: #0c1612;
    border-color: #385047;
}

html[data-theme="dark"] body:not(.high-contrast) .dashboard-progress {
    background: #20322b;
}

html[data-theme="dark"] body:not(.high-contrast) .dashboard-progress span {
    background: linear-gradient(90deg, var(--forest), #e88a67);
}

html[data-theme="dark"] body:not(.high-contrast) .dashboard-top-list li,
html[data-theme="dark"] body:not(.high-contrast) .dashboard-opportunity {
    border-color: var(--line);
}

html[data-theme="dark"] body:not(.high-contrast) .dashboard-panel--opportunities {
    background:
        radial-gradient(circle at 100% 0%, rgb(232 138 103 / 10%), transparent 36%),
        #121b16;
}
