:root {
    --bg: #f7fbff;
    --bg-soft: #eef7ff;
    --bg-panel: rgba(255, 255, 255, 0.97);
    --bg-panel-solid: #ffffff;
    --bg-button: rgba(255, 255, 255, 0.92);
    --bg-button-hover: #ffffff;
    --bg-subtle: rgba(0, 132, 255, 0.08);

    --text: #0b1f35;
    --text-soft: #3b526a;
    --text-muted: #728397;

    --line: rgba(11, 31, 53, 0.12);
    --line-strong: rgba(11, 31, 53, 0.22);

    --accent: #0084ff;
    --accent-soft: rgba(0, 132, 255, 0.12);
    --accent-strong: #0057b8;

    --danger: #ff5a4f;

    --shadow-soft: 0 8px 24px rgba(20, 80, 140, 0.12);
    --shadow-panel: 0 18px 50px rgba(20, 80, 140, 0.20);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --header-height: 82px;
    --footer-height: 44px;
    --intro-height: 112px;

    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --marker-ancient: #ff7a45;
    --marker-vanished: #334155;
    --marker-strange-story: #5b4bff;
    --marker-water-place: #0084ff;
    --marker-landscape: #20b86b;
    --marker-forgotten: #f59e0b;
}

/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
}

body {
    overflow: hidden;
}

body.detail-page {
    overflow: auto;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

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

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.app-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 20px 28px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background:
        radial-gradient(circle at top left, rgba(0, 132, 255, 0.13), transparent 36%),
        linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 20;
}

.detail-header {
    position: sticky;
    top: 0;
}

.brand-block {
    min-width: 0;
}

.brand-kicker {
    margin-bottom: 4px;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#project-title {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

#project-subtitle {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.ghost-button {
    min-height: 38px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: var(--bg-button);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.ghost-button:hover {
    background: var(--bg-panel-solid);
    border-color: rgba(0, 132, 255, 0.42);
    transform: translateY(-1px);
    text-decoration: none;
}

.ghost-button.small {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 0.86rem;
}

.primary-button {
    min-height: 42px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--accent);
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition:
        transform 0.16s ease,
        filter 0.16s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    text-decoration: none;
}

/* ---------------------------------------------------------
   Main layout
--------------------------------------------------------- */

.app-shell {
    height: calc(100vh - var(--header-height) - var(--footer-height));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.intro-panel {
    min-height: var(--intro-height);
    padding: 18px 24px 16px;
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 12;
}

.intro-copy h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

#project-promise {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.45;
}

.content-layout {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 360px minmax(420px, 1fr) 390px;
    overflow: hidden;
}

/* ---------------------------------------------------------
   Experience filter bar
--------------------------------------------------------- */

.experience-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    padding: 3px 0 4px;
    scrollbar-width: thin;
}

.experience-filter-bar::-webkit-scrollbar {
    height: 7px;
}

.experience-filter-bar::-webkit-scrollbar-thumb {
    background: rgba(0, 132, 255, 0.24);
    border-radius: 999px;
}

.experience-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    background: var(--bg-button);
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.experience-button:hover {
    background: var(--bg-panel-solid);
    border-color: rgba(0, 132, 255, 0.36);
    transform: translateY(-1px);
}

.experience-button.active {
    background: var(--accent-soft);
    border-color: rgba(0, 132, 255, 0.48);
    box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.10);
}

.experience-button-symbol {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-soft);
color: var(--accent-strong);
    font-weight: 800;
}

.experience-button-label {
    font-size: 0.92rem;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Side panel
--------------------------------------------------------- */

.side-panel {
    min-width: 0;
    min-height: 0;
    padding: 18px;
    background: var(--bg-panel);
    border-right: 1px solid var(--line);
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
    z-index: 8;
}

.panel-toolbar {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.panel-toolbar h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

#places-count {
    margin: 0;
    font-size: 0.86rem;
}

.search-block,
.filter-row {
    margin-bottom: 13px;
}

.search-block label,
.filter-row label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.search-block input,
.filter-row select {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
}

.search-block input::placeholder {
    color: rgba(79, 73, 63, 0.58);
}

.search-block input:focus,
.filter-row select:focus {
    border-color: rgba(0, 132, 255, 0.64);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12);
}

.places-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.place-card {
    padding: 13px 13px 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.place-card:hover {
    background: var(--bg-panel-solid);
    border-color: rgba(0, 132, 255, 0.36);
    transform: translateY(-1px);
}

.place-card.active {
    background: var(--accent-soft);
    border-color: rgba(0, 132, 255, 0.54);
}

.place-card-title {
    margin: 0 0 6px;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 800;
}

.place-card-meta {
    margin: 0 0 7px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.place-card-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.42;
}

/* ---------------------------------------------------------
   Map
--------------------------------------------------------- */

.map-section {
    min-width: 0;
    min-height: 0;
    height: 100%;
    position: relative;
    background: #dff1ff;
    overflow: hidden;
}

#map,
.map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    z-index: 1;
}

.map-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 9px 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-size: 0.84rem;
    z-index: 500;
    pointer-events: none;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    background: #dff1ff;
    font-family: var(--font-main);
}

.leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.84) !important;
    color: var(--text-muted) !important;
}

/* ---------------------------------------------------------
   Markers
--------------------------------------------------------- */

.custom-marker {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 2px rgba(47, 39, 28, 0.18),
        0 8px 18px rgba(47, 39, 28, 0.24);
    transform: translateZ(0);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.custom-marker:hover {
    transform: scale(1.14);
    filter: brightness(1.08);
    box-shadow:
        0 0 0 3px rgba(0, 132, 255, 0.22),
        0 10px 24px rgba(47, 39, 28, 0.28);
}

.marker-ancient {
    background: var(--marker-ancient);
}

.marker-vanished {
    background: var(--marker-vanished);
}

.marker-strange-story {
    background: var(--marker-strange-story);
}

.marker-water-place {
    background: var(--marker-water-place);
}

.marker-landscape {
    background: var(--marker-landscape);
}

.marker-forgotten {
    background: var(--marker-forgotten);
}

.marker-default {
    background: #7f7565;
}

.marker-sacred {
    background: #ffd43b;
    color: #111111;
}

.marker-special-nature {
    background: var(--marker-landscape);
    color: #111111;
}

/* ---------------------------------------------------------
   Preview panel
--------------------------------------------------------- */

.preview-panel {
    min-width: 0;
    min-height: 0;
    padding: 20px;
    background: var(--bg-panel);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
    z-index: 8;
}

.empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-soft);
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 28px;
background: var(--bg-subtle);
}

.empty-state h2 {
    margin-bottom: 8px;
    color: var(--text);
}

.preview-card-clean {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.preview-card-clean .preview-image {
    width: 100%;
    height: 210px;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
}

.preview-card-body {
    padding: 18px;
}

.preview-kicker {
    margin-bottom: 7px;
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preview-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.preview-card-body .preview-title {
    margin-bottom: 10px;
}

.preview-meta {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: var(--text);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.preview-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    margin: 0 0 14px;
    background: var(--bg-subtle);
}

.preview-image-block {
    margin: 0;
}

.preview-image-credit {
    margin: 0.35rem 0 0;
    padding: 0 0.15rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.35;
}

.preview-image-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.preview-section {
    margin: 16px 0;
}

.preview-card-body .preview-section {
    margin: 15px 0;
}

.preview-section h3 {
    margin-bottom: 7px;
    color: var(--accent-strong);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.preview-card-body .preview-section h3 {
    font-size: 0.78rem;
}

.preview-section p {
    color: var(--text-soft);
    line-height: 1.55;
}

.preview-card-body .preview-section p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.52;
}

.preview-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Detail page
--------------------------------------------------------- */

.detail-shell {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    padding: 34px 24px 56px;
    background:
        radial-gradient(circle at top right, rgba(0, 132, 255, 0.11), transparent 34%),
        radial-gradient(circle at top left, rgba(32, 184, 107, 0.10), transparent 38%),
        var(--bg);
}

.detail-content {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.detail-loading,
.detail-error {
    padding: 34px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
}

.detail-loading h2,
.detail-error h1 {
    margin-bottom: 10px;
}

.detail-loading p,
.detail-error p {
    color: var(--text-soft);
    line-height: 1.6;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.detail-hero-text {
    padding: 34px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
}

.detail-kicker {
    margin-bottom: 10px;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.detail-title {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.detail-summary {
    margin: 0 0 20px;
    max-width: 760px;
    color: var(--text-soft);
    font-size: 1.04rem;
    line-height: 1.66;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-image-block {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-panel);
}

.detail-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 560px;
    display: block;
    object-fit: cover;
    background: var(--bg-subtle);
}

.detail-image-caption {
    padding: 13px 15px 15px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    border-top: 1px solid var(--line);
}

.image-credit {
    display: block;
    margin-top: 6px;
}

.detail-image-placeholder {
    min-height: 360px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-panel);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-section {
    margin-bottom: 20px;
    padding: 28px 30px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.detail-section h2 {
    margin-bottom: 14px;
    color: var(--accent-strong);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-section p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.78;
}

.detail-section p:last-child {
    margin-bottom: 0;
}

.long-summary-section p {
    font-size: 1.02rem;
}

.detail-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-card {
    padding: 22px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.detail-card h2 {
    margin-bottom: 14px;
    color: var(--accent-strong);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-facts {
    margin: 0;
}

.detail-facts div {
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.detail-facts div:first-child {
    border-top: 0;
    padding-top: 0;
}

.detail-facts div:last-child {
    padding-bottom: 0;
}

.detail-facts dt {
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.detail-facts dd {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.45;
}

.detail-link-button {
    margin-top: 16px;
    min-height: 38px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: var(--bg-button);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
}

.detail-link-button:hover {
    background: var(--bg-panel-solid);
    text-decoration: none;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    color: var(--text-soft);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.source-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.source-list li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.source-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.source-list li:last-child {
    padding-bottom: 0;
}

.source-list a {
    display: block;
    margin-bottom: 5px;
    font-weight: 800;
}

.source-list span {
    display: block;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.source-list small {
    display: inline-flex;
    margin-top: 7px;
    padding: 3px 7px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.72rem;
}

/* ---------------------------------------------------------
   Seasonal highlights
--------------------------------------------------------- */

.seasonal-highlights {
    position: relative;
    overflow: hidden;
    background: var(--bg-panel);
}

.seasonal-highlights::before {
    display: none;
}

.seasonal-highlights__header {
    position: relative;
    z-index: 1;
}

.seasonal-highlights__header h2 {
    margin-bottom: 8px;
    color: var(--accent-strong);
}

.seasonal-highlights__header p {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

.seasonal-month-filter {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 18px;
}

.seasonal-month-button {
    min-height: 29px;
    padding: 5px 9px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1;
    box-shadow: none;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}

.seasonal-month-button:hover {
    background: var(--bg-panel-solid);
    border-color: rgba(0, 132, 255, 0.36);
    color: var(--text);
}

.seasonal-month-button.active {
    background: rgba(0, 132, 255, 0.11);
    border-color: rgba(0, 132, 255, 0.38);
    color: var(--accent-strong);
    box-shadow: none;
}
.seasonal-highlight-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.seasonal-highlight-card {
    position: relative;
    min-height: 122px;
    padding: 16px 18px 15px;
    background:
        linear-gradient(180deg, #ffffff 0%, rgba(247, 251, 255, 0.72) 100%);
    border: 1px solid rgba(11, 31, 53, 0.11);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 26px rgba(20, 80, 140, 0.08);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.seasonal-highlight-card:hover {
    border-color: rgba(0, 132, 255, 0.30);
    box-shadow: 0 14px 32px rgba(20, 80, 140, 0.13);
    transform: translateY(-1px);
}



.seasonal-highlight-card[hidden] {
    display: none !important;
}

.seasonal-highlight-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.seasonal-highlight-card__heading {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.seasonal-highlight-card__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: block;
    object-fit: contain;
    opacity: 0.82;
}

.seasonal-highlight-card__text {
    min-width: 0;
}

.seasonal-highlight-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.015em;
}

.seasonal-highlight-card__meta {
    flex: 0 0 auto;
    margin: 1px 0 0;
    padding: 3px 7px 2px;
    color: var(--text-muted);
    background: rgba(0, 132, 255, 0.045);
    border: 1px solid rgba(11, 31, 53, 0.09);
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}


.seasonal-highlight-card__note {
    margin: 11px 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.62;
}

.seasonal-highlight-card [hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .seasonal-highlight-list {
        grid-template-columns: 1fr;
    }

    .seasonal-month-filter {
        flex-wrap: nowrap;
        margin-right: -20px;
        margin-left: -20px;
        padding: 0 20px 5px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .seasonal-month-filter::-webkit-scrollbar {
        height: 7px;
    }

    .seasonal-month-filter::-webkit-scrollbar-thumb {
        background: rgba(0, 132, 255, 0.22);
        border-radius: 999px;
    }

    .seasonal-month-button {
        flex: 0 0 auto;
    }

    .seasonal-highlight-card {
        min-height: 0;
        padding: 15px;
    }

    .seasonal-highlight-card__top {
        gap: 10px;
    }
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.app-footer {
    height: var(--footer-height);
    min-height: var(--footer-height);
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(360px, auto) minmax(260px, 1fr);
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    background: #eef7ff;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.app-footer p {
    margin: 0;
}

.footer-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--text-soft);
    font-weight: 700;
    white-space: nowrap;
}

.footer-footsteps {
    width: 24px;
    height: auto;
    flex: 0 0 auto;
    display: block;
    opacity: 0.72;
}

.footer-links {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    white-space: nowrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.footer-contact-text {
    justify-self: end;
    margin-right: 72px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.footer-contact-icon {
    font-size: 0.92rem;
    line-height: 1;
    opacity: 0.82;
}

.footer-contact-text:hover {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.footer-contact-text:hover .footer-contact-icon {
    opacity: 1;
}


/* ---------------------------------------------------------
   Utility / loading / errors
--------------------------------------------------------- */

.hidden {
    display: none !important;
}

.loading-message,
.error-message,
.no-results {
    padding: 14px;
    color: var(--text-soft);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    line-height: 1.45;
}

.error-message {
    color: #7e2d1b;
    border-color: rgba(166, 83, 61, 0.38);
    background: rgba(166, 83, 61, 0.10);
}

/* ---------------------------------------------------------
   Places panel
--------------------------------------------------------- */

.places-panel {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 800;
    width: min(340px, calc(100vw - 2rem));
    max-height: 42vh;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-panel);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.places-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.places-panel h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

#visiblePlaceCount {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.places-search-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.places-search-input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.65rem 0.85rem;
    background: var(--bg-panel-solid);
    color: var(--text);
    font: inherit;
    outline: none;
}

.places-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.places-results-hint {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.places-results-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    max-height: 22vh;
    overflow-y: auto;
}

.places-result-button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.35);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.places-result-button:hover,
.places-result-button:focus {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.places-result-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.places-result-meta {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ---------------------------------------------------------
   Welcome modal
--------------------------------------------------------- */

.welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.welcome-modal.is-hidden {
    display: none;
}

.welcome-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.16), transparent 38%),
        rgba(16, 22, 25, 0.68);
    backdrop-filter: blur(3px);
}

.welcome-modal__panel {
    position: relative;
    width: min(680px, 100%);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    padding: 30px 34px 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.welcome-modal__panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(0, 132, 255, 0.10);
    border-radius: 16px;
    pointer-events: none;
}

.welcome-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(32, 40, 38, 0.08);
    color: #202826;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.welcome-modal__close:hover {
    background: rgba(32, 40, 38, 0.16);
}

.welcome-modal__eyebrow {
    margin: 0 0 8px;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-modal h1 {
    margin: 0 42px 16px 0;
    color: var(--accent-strong);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.04;
}

.welcome-modal p {
    margin: 0 0 15px;
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.62;
}

.welcome-modal__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.welcome-modal__button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 132, 255, 0.24);
}

.welcome-modal__button:hover {
    background: var(--accent-strong);
}

.welcome-modal__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4c544f;
    font-size: 0.92rem;
    cursor: pointer;
}

.welcome-modal__remember input {
    width: 16px;
    height: 16px;
}

.welcome-help-button {
    position: fixed;
    right: 18px;
    bottom: 6px;
    z-index: 1200;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

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

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1180px) {
    .content-layout {
        grid-template-columns: 320px minmax(360px, 1fr) 340px;
    }

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

@media (max-width: 980px) {
    body {
        overflow: auto;
    }

    .app-shell {
        height: auto;
        min-height: calc(100vh - var(--header-height) - var(--footer-height));
        overflow: visible;
    }

    .intro-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .content-layout {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .side-panel,
    .preview-panel {
        border: 0;
        border-bottom: 1px solid var(--line);
        max-height: none;
    }

    .map-section {
        min-height: 520px;
        height: 520px;
        order: 2;
    }

    #map,
    .map {
        min-height: 520px;
        height: 520px;
    }

    .side-panel {
        order: 1;
    }

    .preview-panel {
        order: 3;
    }

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

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

    .detail-aside {
        position: static;
    }

    .detail-image {
        height: auto;
        min-height: 0;
        max-height: none;
    }
}

@media (max-width: 760px) {
    .places-panel {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        max-height: 36vh;
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: auto;
    }

    .app-header {
        height: auto;
        min-height: 0;
        padding: 18px;
        align-items: flex-start;
    }

    .header-actions {
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    #project-title {
        font-size: 1.65rem;
    }

    #project-subtitle {
        font-size: 0.9rem;
    }

    .intro-panel {
        padding: 16px;
    }

    .side-panel,
    .preview-panel {
        padding: 16px;
    }

    .map-section {
        min-height: 460px;
        height: 460px;
    }

    #map,
    .map {
        min-height: 460px;
        height: 460px;
    }

    .experience-button {
        min-height: 38px;
        padding: 8px 12px;
    }

    .experience-button-label {
        font-size: 0.86rem;
    }

    .detail-shell {
        padding: 20px 14px 38px;
    }

    .detail-hero-text,
    .detail-section,
    .detail-card,
    .detail-loading,
    .detail-error {
        padding: 20px;
    }

    .detail-title {
        font-size: 2.1rem;
        line-height: 1;
    }

    .detail-summary,
    .detail-section p {
        font-size: 0.92rem;
    }
}

@media (max-width: 640px) {
    .welcome-modal {
        padding: 14px;
        align-items: flex-end;
    }

    .welcome-modal__panel {
        max-height: 82vh;
        border-radius: 24px 24px 18px 18px;
        padding: 22px 20px 20px;
    }

    .welcome-modal h1 {
        margin-right: 36px;
    }

    .welcome-modal p {
        font-size: 0.96rem;
    }

    .welcome-modal__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .welcome-modal__button {
        width: 100%;
    }

    .welcome-help-button {
        right: 14px;
        bottom: 7px;
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }
}

/* ---------------------------------------------------------
   ROUTES BUTTON IN HEADER — PRIMARY CTA
--------------------------------------------------------- */

.routes-header-button {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 58px;
    padding: 11px 44px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
background: linear-gradient(135deg, #18b86f 0%, #0f9f5f 100%);    color: #ffffff;
   box-shadow:
    0 14px 34px rgba(18, 150, 90, 0.28),
    0 0 0 4px rgba(24, 184, 111, 0.16);
    cursor: pointer;
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.routes-header-button__badge {
    position: absolute;
    top: 6px;
    right: 10px;
    padding: 3px 6px 2px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}
.routes-header-button::after {
    content: "→";
    position: absolute;
    right: 17px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.routes-header-button:hover {
    border-color: rgba(255, 255, 255, 0.72);
    background: linear-gradient(135deg, #22c978 0%, #0fa968 100%);    box-shadow:
        0 18px 42px rgba(20, 80, 140, 0.30),
        0 0 0 5px rgba(0, 132, 255, 0.18);
    transform: translateY(-2px);
}

.routes-header-button:active {
    transform: translateY(0);
}

.routes-header-button__label {
    padding-right: 22px;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
}

.routes-header-button__sub {
    margin-top: 5px;
    padding-right: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* ---------------------------------------------------------
   ROUTES OVERLAY PANEL
--------------------------------------------------------- */

.routes-overlay {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: none;
}

body.routes-panel-open .routes-overlay {
    display: block;
}

.routes-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 53, 0.28);
    backdrop-filter: blur(2px);
}

.routes-panel {
    position: absolute;
    top: calc(var(--header-height) + 16px);
    right: 18px;
    bottom: calc(var(--footer-height) + 16px);
    width: min(430px, calc(100vw - 36px));
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(20, 80, 140, 0.26);
}

.routes-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.routes-panel__eyebrow {
    margin: 0 0 5px;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.routes-panel h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.routes-panel__close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-subtle);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.routes-panel__close:hover {
    background: rgba(0, 132, 255, 0.14);
}

.routes-panel__intro {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.5;
}

.routes-list {
    display: grid;
    gap: 12px;
}

.routes-loading,
.routes-error {
    margin: 0;
    padding: 14px;
    color: var(--text-soft);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    line-height: 1.45;
}

/* ---------------------------------------------------------
   ROUTE CARDS
--------------------------------------------------------- */

.route-card {
    position: relative;
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 14px 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(20, 80, 140, 0.09);
    text-align: left;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.route-card:hover {
    border-color: rgba(0, 132, 255, 0.32);
    box-shadow: 0 14px 34px rgba(20, 80, 140, 0.14);
    transform: translateY(-1px);
}

.route-card__cover {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 126px;
    margin: 0;
    overflow: hidden;
    align-self: start;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    box-shadow: 0 8px 18px rgba(20, 80, 140, 0.12);
}

.route-card__cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    object-fit: cover;
}

.route-card__kicker,
.route-card__title,
.route-card__subtitle {
    grid-column: 2;
}

.route-card__kicker {
    margin: 0 0 3px;
    color: var(--accent-strong);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.route-card__title {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.12;
    font-weight: 900;
}

.route-card__subtitle {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.42;
}

.route-card__summary,
.route-card__meta,
.route-card__actions {
    grid-column: 1 / -1;
}

.route-card__summary {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

.route-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.route-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 800;
}

.route-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}

.route-card__button,
.route-card__link {
    min-height: 38px;
    width: 100%;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.route-card__button {
    border: 0;
    background: var(--accent);
    color: #ffffff;
}

.route-card__button:hover {
    background: var(--accent-strong);
}

.route-card__link {
    border: 1px solid var(--line-strong);
    background: var(--bg-button);
    color: var(--text);
}

.route-card__link:hover {
    background: #ffffff;
    text-decoration: none;
}

@media (max-width: 680px) {
    .routes-panel {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: 78vh;
        padding: 18px;
        border-radius: 22px;
    }

    .route-card:has(.route-card__cover) {
        grid-template-columns: 106px minmax(0, 1fr);
        gap: 12px;
        padding: 13px;
    }

    .route-card__cover {
        width: 106px;
        border-radius: 12px;
    }

    .route-card__summary {
        font-size: 0.8rem;
    }

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

.route-card.is-active {
    border-color: rgba(0, 132, 255, 0.60);
    box-shadow:
        0 16px 38px rgba(20, 80, 140, 0.18),
        0 0 0 3px var(--accent-soft);
}

.route-card.is-active::before {
    content: "Actieve route";
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   ROUTE NUMBER MARKERS
--------------------------------------------------------- */

.custom-marker.route-number-marker {
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    font-size: 0.86rem;
    font-weight: 950;
    box-shadow:
        0 0 0 3px rgba(0, 132, 255, 0.28),
        0 10px 24px rgba(16, 32, 28, 0.34);
}

.custom-marker.route-number-marker:hover {
    transform: scale(1.12);
    filter: brightness(1.04);
    box-shadow:
        0 0 0 4px rgba(0, 132, 255, 0.34),
        0 14px 30px rgba(16, 32, 28, 0.42);
}

/* ---------------------------------------------------------
   ACTIVE ROUTE BAR
--------------------------------------------------------- */

.active-route-bar {
    position: fixed;
    left: 50%;
    top: calc(var(--header-height) + 12px);
    z-index: 3600;
    width: min(760px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

body.route-active .active-route-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.active-route-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background:
        radial-gradient(circle at top left, rgba(0, 132, 255, 0.14), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 238, 0.98));
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(16, 32, 28, 0.22);
    backdrop-filter: blur(8px);
}

.active-route-bar__eyebrow {
    margin: 0 0 3px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.active-route-bar h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.15;
}

.active-route-bar__meta {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.active-route-bar__close {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(0, 132, 255, 0.36);
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 132, 255, 0.22);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.active-route-bar__close:hover {
    background: var(--accent-strong);
    box-shadow: 0 14px 30px rgba(0, 132, 255, 0.34);
    transform: translateY(-1px);
}

.active-route-bar__close:active {
    transform: translateY(0);
}

@media (max-width: 680px) {
    .active-route-bar {
        top: calc(var(--header-height) + 8px);
        width: calc(100vw - 20px);
    }

    .active-route-bar__content {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 13px;
        border-radius: 18px;
    }

    .active-route-bar__close {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   ROUTE STOP RESULTS
--------------------------------------------------------- */

.places-result-button--route-stop {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-color: rgba(0, 132, 255, 0.38);
    background:
        radial-gradient(circle at top left, rgba(0, 132, 255, 0.10), transparent 44%),
        rgba(255, 255, 255, 0.96);
}

.places-result-route-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1;
    box-shadow:
        0 0 0 3px rgba(0, 132, 255, 0.22),
        0 8px 18px rgba(16, 32, 28, 0.18);
}

.places-result-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

/* ---------------------------------------------------------
HARD FIX — GEEN TEKSTSELECTIE OP SITE
--------------------------------------------------------- */

html,
body,
#map,
.map-panel,
.place-popup,
.detail-page,
.detail-content,
.detail-header,
.detail-meta,
.detail-section,
.entry-detail,
.info-panel,
.sidebar,
.category-panel,
.leaflet-container,
.leaflet-popup,
.leaflet-tooltip {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button,
a,
input,
textarea,
select {
    -webkit-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(20, 80, 140, 0.08);
}

.language-toggle__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.language-toggle__button:hover {
    background: rgba(0, 132, 255, 0.10);
    transform: translateY(-1px);
}

.language-toggle__button.active {
    background: var(--accent);
    box-shadow: 0 5px 14px rgba(0, 132, 255, 0.28);
}

.language-toggle__flag {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
}

/* ---------------------------------------------------------
   MOBILE-FIRST KAARTAPP — BOTTOM SHEETS
--------------------------------------------------------- */

.mobile-filter-toggle,
.preview-mobile-close {
    display: none;
}

@media (max-width: 760px) {
    :root {
        --header-height: 64px;
        --footer-height: 0px;
        --intro-height: auto;
    }

    html,
    body {
        height: 100%;
        overflow: hidden;
        background: var(--bg);
    }

    body {
        min-height: 100dvh;
    }

    .app-header {
        position: fixed;
        inset: 0 0 auto 0;
        height: var(--header-height);
        min-height: var(--header-height);
        padding: 9px 12px;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(20, 80, 140, 0.12);
        backdrop-filter: blur(12px);
        z-index: 1800;
    }

    .brand-block {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-kicker,
    #project-subtitle {
        display: none;
    }

    #project-title {
        max-width: 100%;
        font-size: 1.15rem;
        line-height: 1.05;
        letter-spacing: -0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 7px;
    }

    .routes-header-button {
        min-height: 38px;
        padding: 8px 34px 8px 11px;
        border-radius: 999px;
        background: var(--accent);
        border-color: transparent;
        box-shadow: 0 8px 20px rgba(0, 132, 255, 0.24);
    }

    .routes-header-button__badge,
    .routes-header-button__sub {
        display: none;
    }

    .routes-header-button__label {
        padding-right: 0;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .routes-header-button::after {
        right: 12px;
        bottom: 8px;
        color: #ffffff;
        font-size: 1rem;
    }

    .language-toggle {
        padding: 0.12rem;
        gap: 0.15rem;
        box-shadow: none;
    }

    .language-toggle__button {
        width: 1.72rem;
        height: 1.72rem;
    }

    .app-shell {
        height: 100dvh;
        min-height: 0;
        padding-top: var(--header-height);
        overflow: hidden;
    }

    .content-layout {
        position: relative;
        display: block;
        width: 100%;
        height: calc(100dvh - var(--header-height));
        overflow: hidden;
    }

    .side-panel {
        display: none;
    }

    .map-section {
        position: absolute;
        inset: 0;
        width: 100%;
        height: auto;
        min-height: 0;
        order: initial;
    }

    #map,
    .map {
        height: 100%;
        min-height: 0;
    }

    .map-status {
        left: 12px;
        right: 12px;
        bottom: 92px;
        max-width: none;
        font-size: 0.78rem;
        text-align: center;
    }

    .intro-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 1500;
        display: block;
        min-height: 0;
        max-height: min(72vh, 520px);
        padding: 12px;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 26px;
        box-shadow: 0 -16px 48px rgba(20, 80, 140, 0.22);
        transform: translateY(calc(100% - 74px));
        transition: transform 220ms ease;
        backdrop-filter: blur(14px);
    }

    .intro-panel.is-open {
        transform: translateY(0);
    }

    .intro-panel::before {
        content: "";
        display: block;
        width: 44px;
        height: 5px;
        margin: 0 auto 10px;
        border-radius: 999px;
        background: rgba(11, 31, 53, 0.18);
    }

    .intro-copy {
        display: none;
    }

    .mobile-filter-toggle {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        border: 0;
        border-radius: 18px;
        background: var(--accent);
        color: #ffffff;
        box-shadow: 0 10px 26px rgba(0, 132, 255, 0.22);
        text-align: left;
        font-weight: 900;
    }

    .mobile-filter-toggle::after {
        content: "⌃";
        flex: 0 0 auto;
        font-size: 1.1rem;
        line-height: 1;
        transition: transform 180ms ease;
    }

    .intro-panel.is-open .mobile-filter-toggle::after {
        transform: rotate(180deg);
    }

    .mobile-filter-toggle__hint {
        margin-left: auto;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.72rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .experience-filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        max-height: none;
        margin-top: 12px;
        padding: 0 0 2px;
        overflow: visible;
    }

    .experience-button {
        min-height: 48px;
        width: 100%;
        justify-content: flex-start;
        padding: 10px 11px;
        border-radius: 17px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(20, 80, 140, 0.09);
    }

    .experience-button.active {
        background: var(--accent-soft);
        border-color: rgba(0, 132, 255, 0.44);
        box-shadow:
            0 8px 20px rgba(20, 80, 140, 0.10),
            0 0 0 2px rgba(0, 132, 255, 0.10);
    }

    .experience-button-symbol {
        width: 26px;
        height: 26px;
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    .experience-button-label {
        min-width: 0;
        font-size: 0.82rem;
        line-height: 1.12;
        white-space: normal;
    }

    .preview-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 1450;
        min-height: 0;
        max-height: min(76vh, 610px);
        padding: 0;
        overflow-y: auto;
        border: 0;
        border-radius: 26px;
        background: transparent;
        box-shadow: 0 -18px 54px rgba(20, 80, 140, 0.24);
        transform: translateY(calc(100% + 24px));
        transition: transform 230ms ease;
    }

    body.place-preview-open .preview-panel {
        transform: translateY(0);
    }

    .preview-panel .empty-state {
        display: none;
    }

    .preview-card-clean {
        position: relative;
        border-radius: 26px;
        box-shadow: none;
        overflow: hidden;
    }

    .preview-mobile-close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: var(--text);
        font-size: 1.45rem;
        line-height: 1;
        box-shadow: 0 8px 22px rgba(11, 31, 53, 0.16);
    }

    .preview-card-clean .preview-image {
        height: 170px;
    }

    .preview-card-body {
        padding: 16px;
    }

    .preview-title {
        font-size: 1.22rem;
    }

    .preview-section {
        margin: 12px 0;
    }

    .preview-section p {
        font-size: 0.88rem;
        line-height: 1.48;
    }

    .preview-actions {
        position: sticky;
        bottom: 0;
        margin: 14px -16px -16px;
        padding: 12px 16px 16px;
        background: linear-gradient(to top, #ffffff 72%, rgba(255, 255, 255, 0));
    }

    .preview-actions .primary-button {
        width: 100%;
        min-height: 46px;
    }

    .leaflet-control-zoom {
        margin-top: 76px !important;
    }

    .leaflet-bottom {
        bottom: 86px;
    }

    body.place-preview-open .leaflet-bottom {
        bottom: 18px;
    }

    .welcome-help-button {
        right: 14px;
        bottom: 88px;
        background: var(--accent);
        box-shadow: 0 8px 20px rgba(0, 132, 255, 0.24);
    }

    body.place-preview-open .welcome-help-button {
        display: none;
    }

    .custom-marker {
        width: 26px;
        height: 26px;
        font-size: 13px;
        border-width: 2px;
    }

    .leaflet-marker-icon {
        touch-action: manipulation;
    }

    body.place-preview-open .intro-panel {
        pointer-events: none;
        transform: translateY(calc(100% + 24px));
    }

    body.place-preview-open .preview-panel {
        pointer-events: auto;
    }

    .preview-card-clean::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        z-index: 2;
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(11, 31, 53, 0.22);
        transform: translateX(-50%);
    }

    .preview-actions .primary-button {
        box-shadow: 0 10px 24px rgba(0, 132, 255, 0.24);
    }

    .app-footer {
        display: none;
    }

    
}

@media (max-width: 760px) {
    :root {
        --footer-height: auto;
    }

    .app-footer {
        height: auto;
        min-height: 0;
        padding: 10px 12px;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand contact"
            "links links";
        gap: 8px 12px;
        font-size: 0.76rem;
    }

    .footer-brand {
        grid-area: brand;
    }

    .footer-brand p {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-links {
        grid-area: links;
        justify-content: flex-start;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .footer-links a {
        flex: 0 0 auto;
        font-size: 0.74rem;
    }

    .footer-contact {
        grid-area: contact;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 760px) {
    :root {
        --footer-height: auto;
    }

    .app-footer {
        height: auto;
        min-height: 0;
        padding: 10px 12px;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand contact"
            "links links";
        gap: 8px 12px;
        font-size: 0.76rem;
    }

    .footer-brand {
        grid-area: brand;
    }

    .footer-brand p {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-links {
        grid-area: links;
        justify-content: flex-start;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .footer-links a {
        flex: 0 0 auto;
        font-size: 0.74rem;
    }

    .footer-contact {
        grid-area: contact;
        width: 30px;
        height: 30px;
    }
}

/* Tijdelijk: routegidsen nog niet te koop */
.route-card__meta span:last-child {
    display: none;
}

.route-card__link {
    display: none;
}

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