﻿:root {
    --prm-clr: #000;
    /* #b7fe77; */
    --prm-clr-highlight: #b7fe77;
    /*#cfff04;*/
    /* neon yellow */
    --prm-clr-tpt: #444;
    /*#b7fe7788; 8/*/
    --prm-font-clr: #000;
    /*#000;*/


    /* --prm-font-clr: #000; */
    --prm-ctrl-bg: #fff;
}

html,
body,
#root {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    height: 100%;
    /* min-height: 100%; */
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: var(--prm-ctrl-bg);

    background-attachment: scroll;
    /* test */
    /*  background-attachment: fixed;*/
    background-repeat: no-repeat;
    background-position: bottom center;
    background-clip: initial;
    background-size: cover;
}

div#root {
    margin: 0;
}


/* .map-container {
  position: relative;
  /* overflow: hidden; * /
}

.maplibregl-map {
  position: relative !important;
} */

/* .map-container {
    flex: 1;
    min-height: 0;
    display: 'flex';
    flex-direction: 'column';
    height: '100vh';
} */

.map-info {
    position: fixed;
    pointer-events: none;
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    max-width: 260px;
    z-index: 10;
    font-size: 13px;
}

.map-info-title {
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.map-info-desc {
    font-style: italic;
    color: #555;
    font-size: 11px;
    margin-bottom: 6px;
    display: block;
}

.map-info-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    float: right;
    margin: 0 0 4px 8px;
}

.map-info-row {
    display: flex;
    gap: 4px;
    margin-top: 3px;
    line-height: 1.4;
}

.map-info-label {
    min-width: 72px;
    color: #666;
    flex-shrink: 0;
}

.map-info-attempts {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #ddd;
}

.map-info-attempt {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.map-info-attempt-date {
    color: #666;
    flex-shrink: 0;
}

.map-info-attempt-athletes {
    text-align: right;
}

.topbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ce1531;
    color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.topbar.hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin: 0 auto;
}

.right-group {
    display: flex;
    align-items: center;
    gap: 16px;
    /* space between cart and menu button */
}

.right-group .mobile-menu-button {
    display: none;
}

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

.header-logo a {
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-family: Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-logo a:hover {
    /* text-decoration: underline; */
    border: solid 1px white;
    border-radius: 4px;
    padding: 3px;

}

.header-logo a svg {
    margin: -3px
}

.header-logo a.link {
    /* text-decoration: none; */
    color: white;
    align-content: center;
}

.header-logo a.link:hover {
    text-decoration: underline, #000;
}

.header-logo a.active-link {
    text-decoration: underline;
}

.mobile-menu,
.filter-menu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1001;
    display: none;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a,
.filter-menu label {
    display: flex;
    color: #000;
    text-decoration: none;
    padding: 8px 0 8px 8px;
}

.mobile-menu a:hover {
    text-decoration: underline;
}


a {
    color: var(--prm-font-clr);
}

a:hover {
    color: var(--prm-clr);
}

.toggle {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0;
}

.toggle-track {
    width: 52px;
    height: 30px;
    background: #bbb;
    border-radius: 999px;
    position: relative;
    transition: background .2s ease;
}

.toggle-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left .2s ease;
}

.toggle.on .toggle-track {
    background: #ce1531;
}

.toggle.on .toggle-thumb {
    left: 25px;
}

.toggle-label {
    font-weight: 600;
}


.pane {
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    vertical-align: central;
    overflow-x: hidden;
}

.pane-center {
    align-items: center;
}


.centered_pane {
    margin: auto;
}

.pane h1 {
    font-family: Verdana, Geneva, Tahoma, sans-serif, sans-serif;
    font-size: 20px;
    color: var(--prm-font-clr);
    display: block;
    border-bottom: solid 1px var(--prm-font-clr);
    font-weight: normal;
    z-index: 100;
}

.pane h2 {
    font-family: Verdana, Geneva, Tahoma, sans-serif, sans-serif;
    font-size: 18px;
    color: var(--prm-font-clr);
    display: block;
    border-bottom: solid 1px var(--prm-font-clr);
    font-weight: normal;
}

.pane p.h2 {
    border-bottom: solid 1px var(--prm-font-clr);

}

.container {
    /* width: 100%; */
    margin: auto 20px;
    color: var(--prm-font-clr);
    font-family: Verdana;
}

.left_right_container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    color: var(--prm-font-clr);
    font-family: Verdana;
}

.left,
.right {
    width: 48%;
    padding: 10px;
    box-sizing: border-box;
}

.left {
    padding-right: 1rem;
}

.right {
    padding-left: 1rem;
}

.container table {
    width: 100%;
}

.menu {
    width: 100%;
    height: 87px;
    line-height: 87px;
    background: linear-gradient(to bottom, #3a3a3a, #030303);
    text-align: center;
    position: fixed;
    bottom: 0;
    border-top: solid var(--prm-clr) 1px;
    box-shadow: 0 -4px 8px rgba(207, 255, 4, 0.2);
}

input,
button,
textarea {
    font-family: Verdana;
    font-size: 16px;
    display: block;
}

textarea {
    height: 100px;
    width: 100%;
}

.text_pane {
    font-family: Verdana;
    font-weight: bold;
    font-variant: uppercase;
    /*small-caps; */
    color: var(--prm-font-clr);
    width: 300px;
}


.note {
    font-size: 0.9em;
    color: #666;
}

.form-group {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group label {
    width: 110px;
    text-align: left;
}

.form-group input,
.form-group select {
    flex-grow: 1;
    padding: 8px;
    font-size: 16px;
}

button {
    font-size: 14px;
    font-family: Impact;
    text-transform: uppercase;
    background: var(--prm-font-clr);
    color: var(--prm-ctrl-bg);
    border: solid 1px;
    border-radius: 4px;
    padding: 4px 10px;
}

.form-group button.add {
    font-size: 20px;
    font-family: Impact;
    text-transform: uppercase;
    background: var(--prm-font-clr);
    color: var(--prm-ctrl-bg);
    border: solid 1px;
    border-radius: 4px;
    padding: 8px 15px;
    margin: 0px;
}

.form-group button.add:hover {
    box-shadow: 0 -4px 4px rgba(207, 255, 4, 0.2);
}

label {
    font-family: Verdana;
    font-weight: bold;
    font-variant: uppercase;
    width: 300px;
    min-width: 300px;
    margin: 20px 20px 10px 0;
    display: flex;
    /*small-caps; */
    color: var(--prm-font-clr);
}


.product-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    color: var(--prm-font-clr);
    z-index: 1000;
}

.product-popup-wrapper {
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
}

.product-popup-scrolling {
    position: absolute;
    top: 20%;
    left: 50%;
    height: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    color: var(--prm-font-clr);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.popup-buttons button {
    margin: 0.5rem;
}

.size-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 250px;
    border: 2px solid var(--prm-font-clr);
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    text-align: center;
}

.size-table thead th {
    background: var(--prm-ctrl-bg);
    color: var(--prm-font-clr);
    padding: 8px;
    font-weight: bold;
}

.size-table tbody td {
    padding: 8px;
    border-top: 1px solid var(--prm-font-clr);
}

.size-table tbody tr:nth-child(even) {
    background: #f0f0f0;
    color: #444;
}

.size-table tbody tr:nth-child(odd) {
    background: #444;
    color: #f0f0f0;
}

.size-table tbody td:first-child {
    background: var(--prm-ctrl-bg);
    /* color: #ffd700; yellow text */
    color: var(--prm-font-clr);
    font-weight: bold;
    width: 50px;
}

.mobile-menu-button,
.filter-button {
    border-radius: 4px;
    padding: 4px;
}


.mobile-menu-button:hover,
.filter-button:hover {
    border: solid 1px var(--prm-ctrl-bg);
    cursor: pointer;
}


.mobile-menu-button svg,
.filter-button svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-button svg {
    stroke: white;
    /* fvar(--prm-clr); */
    stroke-width: 7;
    stroke-linecap: round;
}

.filter-button svg {
    stroke: white;
    /* fvar(--prm-clr); */
    stroke-width: 2;
    stroke-linecap: round;
    display: flex;
}

/* ── Athlete profile photo ───────────────────────────────── */

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0.5rem;
}

.profile-header h1 {
    margin: 0;
    border: none;
}

.profile-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .profile-photo {
        float: right;
        margin-left: 12px;
        width: 48px;
        height: 48px;
    }

    .profile-header {
        display: block;
    }
}

.athlete-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.athlete-select-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Onboarding / profile page ───────────────────────────── */

.pending-notice {
    color: #c07000;
    background: #fff8e1;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #c07000;
    margin-bottom: 1rem;
}

.save-success {
    color: green;
    margin-top: 0.5rem;
}

.save-success-inline {
    color: green;
    font-size: 0.9rem;
    align-self: center;
}

.onboarding-participation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

/* Radiobutton-kaart */
.ob-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.ob-option.selected {
    border-color: #2a9d2a;
    background: #f3faf3;
}

.ob-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cirkelcheck voor radioknop */
.ob-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    transition: all 0.15s;
}

.ob-option.selected .ob-circle {
    border-color: #2a9d2a;
    background: #2a9d2a;
    color: #fff;
}

/* Sub-sectie (etappes/overnachtingen) */
.ob-sub {
    margin: 10px 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ob-sub-label {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 2px;
}

/* Dag-kaart voor partial */
.ob-day {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.ob-day.selected {
    border-color: #2a9d2a;
    background: #f3faf3;
}

.ob-day-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Vierkantige checkbox-check */
.ob-square {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    transition: all 0.12s;
}

.ob-day.selected .ob-square,
.ob-overnight.selected .ob-square,
.ob-square.selected {
    border-color: #2a9d2a;
    background: #2a9d2a;
    color: #fff;
}

.ob-square.disabled { opacity: 0.3; cursor: default; }

/* Overnacht-rij (binnen dag-kaart) */
.ob-overnight {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #444;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.ob-overnight.disabled {
    opacity: 0.35;
    cursor: default;
}

.ob-overnight.selected { color: #2a9d2a; font-weight: 500; }

/* Overnacht-rij voor full-participant */
.ob-overnight-full {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    padding: 3px 0;
}

/* ── Wizard ──────────────────────────────────────────────── */

.wizard {
    width: 100%;
    margin-top: 0.5rem;
}

.wizard-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wizard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.2s;
}

.wizard-dot.active { background: #ce1531; }
.wizard-dot.done   { background: #2a9d2a; }

.wizard-step-header {
    margin-bottom: 1.25rem;
}

.wizard-step-title {
    border-bottom: none;
    font-size: 1.15rem;
    margin: 0 0 4px;
    font-weight: 600;
}

.wizard-step-body {
    margin-bottom: 1.5rem;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
}

.wizard-step-label { font-size: 0.85rem; color: #888; }

.wizard-nav-actions {
    display: flex;
    gap: 8px;
}

/* ── Profiel-modus sectie-cards ──────────────────────────── */

.profile-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.5rem;
}

.ob-section-card {
    border: 1px solid #c5d8f5;
    border-radius: 8px;
    overflow: hidden;
}

.ob-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #e8f0fe;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.ob-section-header:hover { background: #dce8fd; }

.ob-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a3a6e;
}

.ob-section-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ob-section-arrow { color: #555; font-size: 0.75rem; }

.ob-section-body {
    padding: 14px 16px;
    background: #fff;
}

/* ── Info-knop ───────────────────────────────────────────── */

.ob-info-wrapper {
    position: relative;
    display: inline-flex;
}

.ob-info-btn {
    background: none;
    border: 1.5px solid #1a3a6e;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    color: #1a3a6e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.ob-info-popup {
    position: absolute;
    right: 0;
    top: 26px;
    background: #fff;
    border: 1px solid #c5d8f5;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #333;
    max-width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    cursor: default;
    -webkit-user-select: text;
    user-select: text;
    line-height: 1.5;
}

.onboarding-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-ghost {
    background: none;
    color: #666;
    border-color: #ccc;
}

/* ── Filter tag chip component ───────────────────────────── */

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 48px;
    margin-bottom: 4px;
    align-content: flex-start;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--prm-font-clr);
    color: var(--prm-ctrl-bg);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 13px;
    font-family: Verdana, sans-serif;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: var(--prm-ctrl-bg);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.filter-tag-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    margin-top: 6px;
}

.filter-tag-input {
    flex: 1;
    padding: 4px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: inline-block;
}

.filter-tag-add {
    padding: 4px 10px;
    font-size: 18px;
    line-height: 1;
}

/* ── Bottom bar ──────────────────────────────────────────── */

.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 28px;
    z-index: 999;
}

.bottombar a {
    color: #aaa;
    text-decoration: none;
    font-size: 11px;
    font-family: Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bottombar a:hover {
    color: #fff;
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 6px 0;
}

.mobile-menu-secondary {
    font-size: 13px;
    color: #888;
}

@media (max-width: 768px) {
    .bottombar {
        display: none;
    }
}

/* ── Athletes leaderboard ────────────────────────────────── */

/* Mobiele sorteer-control: verborgen op desktop */
.leaderboard-mobile-sort {
    display: none;
}

@media (max-width: 768px) {
    .leaderboard-mobile-sort {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 0.5rem;
    }

    .leaderboard-mobile-sort select {
        flex: 1;
        padding: 6px 8px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    /* Verberg alle data-kolommen behalve de gesorteerde */
    .leaderboard .col-eventKm,
    .leaderboard .col-trainingKm,
    .leaderboard .col-donationTotal { display: none; }

    .leaderboard-sort-eventKm     .col-eventKm     { display: table-cell; }
    .leaderboard-sort-trainingKm  .col-trainingKm  { display: table-cell; }
    .leaderboard-sort-donationTotal .col-donationTotal { display: table-cell; }
    /* Bij sorteren op naam: toon evenement km als tweede kolom */
    .leaderboard-sort-name .col-eventKm { display: table-cell; }
}

.leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 14px;
}

.leaderboard th {
    border-bottom: 2px solid var(--prm-font-clr);
    padding: 8px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leaderboard td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.sortable-header {
    cursor: pointer;
    -webkit-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.sortable-header:hover,
.sort-active {
    color: #ce1531;
}

.leaderboard-selected td {
    background: #f5f5f5;
    font-weight: bold;
}

.leaderboard-athlete {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--prm-font-clr);
}

.leaderboard-athlete:hover {
    text-decoration: underline;
}

.leaderboard-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.leaderboard-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Athlete page ────────────────────────────────────────── */

.back-link {
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #555;
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.ap-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.25rem;
}

.ap-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ap-header-info { flex: 1; }

.ap-name {
    margin: 0 0 4px;
    border-bottom: none;
    font-size: 1.3rem;
}

.ap-badge {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.kleurplaat-container {
    margin-top: 1rem;
}

.kleurplaat-svg {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: block;
}

.kleurplaat-stats {
    margin-top: 6px;
}

.athlete-bio {
    margin: 0.5rem 0 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333;
}

.athlete-bio-org-link {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.ap-goal {
    margin-bottom: 1.5rem;
}

.ap-goal-bar-track {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 6px;
}

.ap-goal-bar-fill {
    height: 100%;
    background: var(--prm-clr-highlight, #b7fe77);
    border-radius: 5px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.ap-goal-amounts {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.ap-goal-raised { font-weight: 600; }
.ap-goal-target { color: #666; }

.ap-section { margin-top: 1.75rem; }

.athlete-map {
    width: 100%;
    height: 350px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.ap-activity-type {
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 10px;
    white-space: nowrap;
}
.ap-activity-type.event    { background: #fde; color: #c00; }
.ap-activity-type.training { background: #e8f0fe; color: #336; }

.ap-donations-table td:last-child { text-align: right; font-weight: 600; }

.ap-donation-amount { white-space: nowrap; }

.ap-donate-form {
    margin-top: 1.25rem;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.ap-donate-form h3 { margin: 0 0 0.75rem; font-size: 1rem; }

.ap-donate-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.ap-amount-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.ap-eur {
    padding: 6px 8px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
}

.ap-amount-input {
    flex: 1;
    border-radius: 0 4px 4px 0 !important;
}

.ap-message {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

/* ── Organisation member cards ──────────────────────────── */

.org-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 1.5rem;
}

.org-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 20px 16px;
    overflow: hidden;
}

.org-card-photo {
    float: right;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 12px 16px;
    flex-shrink: 0;
}

.org-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.org-card-name {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.org-card-tags {
    margin: 2px 0 10px 0;
    font-size: 0.85rem;
    color: #555;
}

.org-card-link {
    font-size: 0.875rem;
    color: var(--accent, #e55);
    text-decoration: none;
}

.org-card-link:hover {
    text-decoration: underline;
}

.org-card-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 14px 0 12px;
    clear: both;
}

.org-card-story {
    margin: 0 0 12px 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ── Athletes overview ───────────────────────────────────── */

.athletes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 1rem;
}

.athlete-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--prm-font-clr);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 120px;
    text-align: center;
    font-size: 13px;
}

.athlete-card:hover,
.athlete-card.active {
    border-color: var(--prm-font-clr);
    background: #f8f8f8;
}

.athlete-detail {
    margin-top: 2rem;
    border-top: 2px solid var(--prm-font-clr);
    padding-top: 1.5rem;
}

.athlete-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.athlete-detail-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.athlete-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.athlete-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 1.4em;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 1rem;
}

.activity-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.activity-table td:first-child {
    width: 50%;
}

.detail-filter-bar {
    margin: 0.5rem 0 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #ce1531;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
    display: inline;
}

.activity-table td:nth-child(3),
.activity-table td:nth-child(4) {
    text-align: right;
    white-space: nowrap;
}

.athlete-card-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Terms modal ─────────────────────────────────────────── */

.terms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.terms-modal {
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 100%;
    max-width: 860px;
    margin: 0 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.terms-modal-header h2 {
    margin: 0;
    border: none;
    font-size: 1.1rem;
}

.terms-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.terms-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;

}

.terms-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .terms-overlay { align-items: flex-end; padding: 0; }
    .terms-modal {
        margin: 0;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
    }
}

/* ── Onboarding contact-blok ─────────────────────────────── */

.ob-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ob-contact-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ob-contact-field label {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    min-width: unset;
    width: auto;
}

.ob-required {
    color: #c00;
    margin-left: 4px;
}

.ob-accepted {
    color: #2a9d2a;
    font-weight: 500;
}

/* ── Content highlight ───────────────────────────────────── */

.content-highlight {
    border: 2px solid #2a9d2a;
    border-radius: 8px;
    background: #f3faf3;
    padding: 14px 18px;
    margin: 1rem 0;
    overflow: hidden;
}

.content-highlight h2,
.content-highlight h3 {
    border-bottom: none;
    color: #1e7a1e;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.content-highlight p:last-child {
    margin-bottom: 0;
}

/* ── Content quotes ──────────────────────────────────────── */

.content-quote {
    font-style: italic;
    font-size: 1.1em;
    /* border-left: 4px solid var(--prm-clr-highlight, #b7fe77); */
    padding: 0.6rem 1rem;
    margin: 0.5rem 0 0.5rem 0;
    background: #f5f5f5;
    max-width: 45%;
    border: #888 solid 1px;
    border-radius: 8px;
}

.content-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.85em;
    margin-top: 0.4rem;
    color: #555;
}

.content-quote-left {
    float: left;
    margin-right: 2rem;
    margin-left: 0;
}

.content-quote-right {
    float: right;
    margin-left: 2rem;
    margin-right: 0;
}


@media (max-width: 768px) {
    .content-quote {
        float: none;
        max-width: 100%;
        margin: 0.8rem 0;
    }
}

/* Admin CSS is in admin-page.css */

.variables-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 0.5rem;
}

.variables-table th {
    text-align: left;
    border-bottom: 2px solid var(--prm-font-clr);
    padding: 6px 8px;
    font-size: 13px;
}

.variables-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.variables-table input {
    width: 100%;
    padding: 3px 6px;
    font-size: 14px;
    display: inline-block;
}

.variables-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.variables-new-row td {
    border-bottom: none;
    padding-top: 10px;
}

/* ── Admin tabs ──────────────────────────────────────────── */

.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--prm-font-clr);
    margin-bottom: 1.5rem;
}

.admin-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin-bottom: -2px;
    font-family: Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-tab.active {
    color: var(--prm-font-clr);
    border-bottom-color: var(--prm-font-clr);
    font-weight: bold;
}

/* ── Admin page ──────────────────────────────────────────── */

.admin-athlete-row {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.admin-athlete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-athlete-name {
    font-size: 15px;
}

.badge-pending {
    color: #c07000;
    font-style: normal;
    font-size: 13px;
}

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

.btn-secondary {
    background: none;
    color: var(--prm-font-clr);
    border: 1px solid var(--prm-font-clr);
}

.admin-edit-form {
    margin-top: 8px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-edit-form label {
    margin: 6px 0 2px;
    font-size: 13px;
    min-width: unset;
    width: auto;
}

.admin-edit-form input {
    width: 100%;
    padding: 4px 8px;
    font-size: 14px;
}

/* ── Content management (admin) ──────────────────────────── */

.content-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.content-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.content-list-item code {
    font-size: 13px;
    background: #f0f0f0;
    padding: 1px 5px;
    border-radius: 3px;
}

.content-editor {
    margin-top: 0.5rem;
}

.content-editor-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 1rem;
}

.content-editor-field label {
    margin: 0 0 4px;
    font-size: 12px;
    min-width: unset;
    width: auto;
}

.content-editor-field input {
    width: 100%;
    padding: 4px 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.content-main-body {
    width: 100%;
    min-height: 120px;
    font-family: monospace;
    font-size: 13px;
    padding: 6px;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.content-editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.content-error {
    color: #c00;
    margin-top: 0.5rem;
}

/* ── Paragraph editor ────────────────────────────────────── */

.paragraph-editor {
    margin-bottom: 1rem;
}

.paragraph-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fafafa;
}

.paragraph-controls {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.paragraph-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    align-items: center;
}

.paragraph-level {
    width: 70px;
    padding: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.paragraph-heading {
    flex: 1;
    padding: 4px 8px;
    font-size: 14px;
}

.paragraph-body {
    width: 100%;
    min-height: 80px;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    padding: 6px;
    box-sizing: border-box;
}

.btn-danger {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

@media (max-width: 768px) {
    .content-editor-meta {
        grid-template-columns: 1fr;
    }
}

/* ── Signup / aanmelden page ─────────────────────────────── */

.signup-page {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.signup-steps {
    padding-left: 1.5rem;
    margin: 1rem 0 2rem;
}

.signup-steps li {
    margin-bottom: 1.2rem;
}

.signup-steps p {
    margin: 4px 0 0;
    color: #333;
}

.btn-strava {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--prm-font-clr);
    color: var(--prm-ctrl-bg);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .right-group .mobile-menu-button {
        display: flex;
    }

    .header-logo {
        font-size: 18px;
    }

    .header-logo a {
        font-size: 12px;
    }

    .header-logo a.link {
        display: none;
    }

    .map-info {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        border-radius: 0;
        max-width: none;
        padding: 10px 12px;
    }

    .pane {
        width: 100%;
        max-width: none;
        flex-direction: column;
        padding: 16px 12px;
    }

    .dark_pane {
        padding: 4px;
        border-radius: 0px;
        border-width: 1px 0;
    }

    .left,
    .right {
        width: 100%;
        padding: 5px;

    }

    .top-left-links,
    .menu {
        display: none;
    }

    .left_right_container {
        width: 90%;
        flex-direction: column;
    }

    #cart-link-container {
        /* right: 20px;
        top: 20px; */
        font-size: 12px;
    }

    .cart-link svg {

        width: 24px;
        height: 16px;
    }

    .header-logo a {
        font-size: 0.7em;
    }

    .mobile-menu-button,
    .filter-button {
        width: 24px;
        height: 14px;
        font-size: 24px;
        background: none;
        border: none;
        color: var(--prm-font-clr);
    }

    .mobile-menu-button svg,
    .filter-button svg {
        width: 18px;
        height: 18px;
    }


    .mobile-menu,
    .filter-menu {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        padding: 10px 20px;
    }

    .radio-group label.radio-label {
        width: 36px;
        margin-right: -3px;
    }

    .radio-group input:checked+label.radio-label {
        width: 38px;
    }

    .cart-table-container {
        display: none;
    }

    .cart-summary-card {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        background: #eee;
        color: var(--prm-font-clr);
        border-radius: 3px;
        padding: 1rem;
        margin-top: 1rem;
        /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    }

    .summary-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 0.15em 0;
    }

    .summary-row.total {
        font-weight: bold;
        font-size: 1.1em;
    }

    .cart-summary-card hr {
        border: none;
        border-top: 1px solid #444;
        margin: 0.5em 0;
    }

    .cart-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .cart-card {
        background: #eee;
        color: var(--prm-font-clr);
        border-radius: 3px;
        padding: 1rem;
        /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    }

    .cart-card-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .product-img {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 4px;
    }

    .qty-btn-round {
        padding: 4px;
        /* smaller padding */
        min-width: 28px;
        min-height: 28px;
    }

    /* Optional: reduce font size inside buttons and quantity */
    .cart-table td:nth-child(3) {
        text-align: right;
    }

    .cart-table img {
        max-height: 50px;
        max-width: 50px;
        object-fit: contain;
        vertical-align: middle;
    }

    .cart-item {
        display: block;
        border-bottom: 1px solid #ddd;
        padding: 8px 0;
    }

    .cart-item-details {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .cart-item-img {
        width: 60px;
        height: auto;
        flex-shrink: 0;
    }

    .cart-item-info {
        flex: 1;
        font-size: 14px;
    }

    .cart-item-name {
        font-weight: bold;
        margin-bottom: 2px;
    }

    .cart-item-size {
        color: #666;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .cart-item-qty {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 4px;
    }

    .cart-item-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-price {
        font-weight: bold;
        font-size: 14px;
    }

    .product-name {
        display: inline;
        /* default */
    }

    /* If image present, hide product name */
    td>.product-img+.product-name {
        display: none;
    }

    .form-group button.add {
        font-size: 16px;
        border-radius: 2px;
        padding: 4px 8px;
        margin-left: 15px;
    }

    .product-popup-scrolling {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .product-popup-scrolling .pane {
        margin: 0;
        /*126px auto 0 auto;*/
        margin-bottom: 20px;
        padding: 4px;
        width: 320px;
    }
}