/* MotoRoute Native – Styles (v17.8.0) */

/* ====================================================================
   BAM THEME FIX: Zwingt Text, Listen und Boxen auf die gleiche Linie
   ==================================================================== */
#motoroute-app-root {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Setzt das Padding für alle direkten Text-Elemente (Absätze, Listen, etc.) im Container */
#motoroute-app-root > p,
#motoroute-app-root > ul,
#motoroute-app-root > ol,
#motoroute-app-root > h1,
#motoroute-app-root > h2,
#motoroute-app-root > h3,
#motoroute-app-root > h4,
#motoroute-app-root > div:not(.motoroute-panel):not(.motoroute-planner) {
    padding-left: 20px !important; /* Passe diesen Wert an, falls dein Theme mehr oder weniger nutzt */
    padding-right: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Die Karte und die Panels sollen bündig mit den Text-Elementen abschließen */
.motoroute-panel,
.motoroute-readonly-details,
.motoroute-quick-controls {
    margin-left: 20px !important; /* Gleicher Wert wie oben */
    margin-right: 20px !important;
    width: calc(100% - 40px) !important; /* Zieht das Padding ab, damit nichts überläuft */
    box-sizing: border-box;
}

/* ==================================================================== */

.motoroute-planner { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1c1917; margin: 15px 0; }
.motoroute-panel { background: #ffffff; border: 1px solid #e7e5e4; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.motoroute-panel-map { padding: 0; overflow: hidden; position: relative; }
.motoroute-panel-map #motoroute-map { display: block; }

.motoroute-tour-hero { margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: #f5f5f4; }
.motoroute-tour-hero-img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }

/* Fortschrittsanzeige – erscheint erst nach 800 ms, siehe JS */
.motoroute-progress-bar {
    background: linear-gradient(90deg, #fef3c7, #fde68a, #fef3c7);
    border-bottom: 1px solid #f59e0b;
    padding: 10px 14px;
    position: relative;
    z-index: 10;
}
.motoroute-progress-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.motoroute-progress-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #f59e0b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: motoroute-spin 0.9s linear infinite;
    flex-shrink: 0;
}
@keyframes motoroute-spin {
    to { transform: rotate(360deg); }
}
.motoroute-progress-text {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    line-height: 1.3;
}

.motoroute-map-toolbar {
    position: absolute; top: 10px; right: 10px; z-index: 900;
    display: flex; gap: 6px; flex-wrap: wrap;
    max-width: calc(100% - 20px);
    justify-content: flex-end;
}
.motoroute-tool {
    background-color: #ffffff; background-image: none; color: #1c1917;
    border: 1px solid #d6d3d1; border-radius: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 700; line-height: 1.2;
    letter-spacing: 0.3px; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    white-space: nowrap; min-height: 34px;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.motoroute-tool:hover { background-color: #fef3c7; border-color: #f59e0b; color: #92400e; }
.motoroute-tool.is-active { background-color: #b45309; border-color: #92400e; color: #ffffff; }
.motoroute-tool.is-active:hover { background-color: #92400e; }
.motoroute-tool:focus,
.motoroute-tool:active {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
    outline: none;
}
.motoroute-tool.is-active:focus,
.motoroute-tool.is-active:active {
    background-color: #92400e;
    color: #ffffff;
    border-color: #78350f;
    outline: none;
}
.motoroute-tool-icon { font-size: 16px; line-height: 1; }
.motoroute-tool-label { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 700px) {
    .motoroute-tool-label { display: none; }
    .motoroute-tool { padding: 8px 10px; }
}

/* Dropdown-Menü für Radius (5/10/15 km) */
.motoroute-tool-dropdown { position: relative; display: inline-block; }
.motoroute-tool-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #ffffff;
    border: 1px solid #d6d3d1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 100px;
    overflow: hidden;
}
.motoroute-tool-menu.is-open { display: block; }
.motoroute-tool-menu button {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #f5f5f4;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #1c1917;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.motoroute-tool-menu button:last-child { border-bottom: none; }
.motoroute-tool-menu button:hover { background: #fef3c7; color: #92400e; }

.motoroute-map-hint { font-size: 12px; color: #78716c; padding: 6px 12px; background: #fafaf9; border-top: 1px solid #e7e5e4; margin: 0; }
.motoroute-map-hint a { color: #b45309; text-decoration: underline; }

/* NEU: Quick Controls als Flexbox für perfekte horizontale Ausrichtung */
.motoroute-quick-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.motoroute-quick-controls .motoroute-form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}
.motoroute-quick-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #44403c;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}
.motoroute-quick-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b45309;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* Die günstigste Tankstelle wird durch margin-left: auto ganz nach rechts gedrückt */
.motoroute-quick-cheapest {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.motoroute-cheapest-fuel-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #065f46;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.motoroute-cheapest-fuel-icon {
    font-size: 16px;
    line-height: 1;
}
.motoroute-cheapest-fuel-label {
    font-weight: 600;
}
.motoroute-cheapest-fuel-name {
    font-weight: 700;
}
.motoroute-cheapest-fuel-price {
    font-weight: 800;
    color: #059669;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
}
.motoroute-cheapest-fuel-add {
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.motoroute-cheapest-fuel-add:hover {
    background: #047857;
}
.motoroute-cheapest-fuel-none {
    background: #fafaf9;
    border-color: #e7e5e4;
    color: #78716c;
}

/* Auf schmalen Bildschirmen brechen die Elemente sauber um */
@media (max-width: 900px) {
    .motoroute-quick-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .motoroute-quick-cheapest {
        margin-left: 0;
        width: 100%;
    }
}

.motoroute-heading { margin: 0 0 12px 0; font-size: 18px; font-weight: 700; color: #b45309; }
.motoroute-form-group { margin-bottom: 14px; }
.motoroute-form-group label { display: block; font-size: 13px; font-weight: 600; color: #44403c; margin-bottom: 4px; }

.motoroute-input { width: 100%; padding: 8px 10px; border: 1px solid #d6d3d1; border-radius: 8px; font-size: 14px; background: #fafaf9; color: #1c1917; box-sizing: border-box; }
.motoroute-input:focus { outline: none; border-color: #d97706; background: #ffffff; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }

.motoroute-hint { font-size: 12px; color: #78716c; margin: 4px 0 0; font-weight: 400; }

.motoroute-stop {
    display: flex; gap: 6px; margin-bottom: 6px; align-items: center;
    padding: 6px; border-radius: 8px;
    background: #fafaf9; border: 1px solid #e7e5e4;
}
.motoroute-stop:hover { background: #f5f5f4; }
.motoroute-stop.dragover { background: #fef3c7; border-color: #f59e0b; }
.motoroute-stop.dragging { opacity: 0.4; }
.motoroute-stop-active { background: #fef3c7; border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3); }
.motoroute-stop .motoroute-stop-input { flex: 1; cursor: text; }

.motoroute-stop-grip {
    cursor: grab; font-size: 18px; color: #78716c;
    padding: 4px 10px; user-select: none;
    background: #f0efee; border-radius: 6px;
    border: 1px solid #d6d3d1;
    line-height: 1;
}
.motoroute-stop-grip:hover { background: #e7e5e4; color: #b45309; }
.motoroute-stop-grip:active { cursor: grabbing; }

.motoroute-stop-arrows { display: inline-flex; flex-direction: column; gap: 0; }
.motoroute-arrow {
    background: transparent; border: none; color: #57534e;
    cursor: pointer; font-size: 13px; padding: 1px 8px; line-height: 1.1;
    font-weight: 700; border-radius: 4px;
}
.motoroute-arrow:hover { color: #b45309; background: #fef3c7; }
.motoroute-arrow:focus,
.motoroute-arrow:active { color: #b45309; background: #fef3c7; outline: none; }

.motoroute-remove-stop {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #991b1b !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 8px 12px !important;
    min-width: 36px !important;
    height: 36px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}
.motoroute-remove-stop:hover,
.motoroute-remove-stop:focus,
.motoroute-remove-stop:active {
    background: #b91c1c !important;
    color: #ffffff !important;
    outline: none !important;
    transform: scale(1.05);
}

.motoroute-btn { display: inline-block; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease; margin-right: 6px; margin-bottom: 6px; }
.motoroute-btn-primary { background: #b45309; color: #ffffff; border-color: #92400e; }
.motoroute-btn-primary:hover { background: #92400e; }
.motoroute-btn-primary:focus,
.motoroute-btn-primary:active { background: #92400e; color: #ffffff; outline: none; }
.motoroute-btn-primary:disabled { background: #d6d3d1; border-color: #a8a29e; color: #78716c; cursor: not-allowed; }
.motoroute-btn-secondary { background: #f5f5f4; color: #1c1917; border-color: #d6d3d1; }
.motoroute-btn-secondary:hover { background: #e7e5e4; }
.motoroute-btn-secondary:focus,
.motoroute-btn-secondary:active { background: #e7e5e4; color: #1c1917; outline: none; }
.motoroute-btn-small { padding: 6px 10px; font-size: 14px; }

.motoroute-status { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px; min-height: 18px; background: #fafaf9; border: 1px solid #e7e5e4; color: #44403c; transition: background 0.2s, border-color 0.2s; }
.motoroute-status-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.motoroute-status-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.motoroute-status-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.motoroute-status-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.motoroute-weather { margin-top: 10px; margin-bottom: 16px; padding: 14px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; font-size: 13px; color: #1e40af; }
.motoroute-weather:empty { display: none; }

.motoroute-alternatives { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.motoroute-alt-btn { background: #ffffff; border: 1px solid #e7e5e4; border-left: 4px solid #b45309; border-radius: 8px; padding: 8px 12px; font-size: 12px; cursor: pointer; text-align: left; transition: all 0.15s; line-height: 1.3; color: #1c1917; }
.motoroute-alt-btn:hover { background: #fafaf9; transform: translateY(-1px); }
.motoroute-alt-btn:focus,
.motoroute-alt-btn:active { background: #fafaf9; color: #1c1917; outline: none; }
.motoroute-alt-btn.is-active { background: #fef3c7; border-color: #f59e0b; }
.motoroute-alt-btn.is-active:focus,
.motoroute-alt-btn.is-active:active { background: #fef3c7; color: #1c1917; outline: none; }

.motoroute-member-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.motoroute-member-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d97706;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35), 0 0 0 2px #ffffff;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    position: relative;
}
.motoroute-member-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4), 0 0 0 2px #ffffff;
    z-index: 999;
}
.motoroute-member-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.motoroute-member-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    z-index: -1;
}

.motoroute-optimal-meeting-wrap {
    background: transparent !important;
    border: none !important;
}

.motoroute-optimal-meeting-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #dc2626;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35), 0 0 0 2px #ffffff;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}
.motoroute-optimal-meeting-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
    background: #dc2626;
    border-radius: 50%;
}
.motoroute-optimal-meeting-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #dc2626;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    z-index: -1;
}

.motoroute-member-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1c1917;
    min-width: 200px;
}
.motoroute-member-popup-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.motoroute-member-popup-head img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d97706;
    background: #ffffff;
    flex-shrink: 0;
}
.motoroute-member-popup-name {
    font-size: 15px;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.2;
}
.motoroute-member-popup-name a {
    color: #b45309;
    text-decoration: none;
}
.motoroute-member-popup-name a:hover {
    text-decoration: underline;
}
.motoroute-member-popup-role {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.motoroute-member-popup-bike {
    font-size: 12px;
    color: #44403c;
    background: #fafaf9;
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid #f5f5f4;
}

.motoroute-poi-popup,
.motoroute-fuel-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1c1917;
    min-width: 200px;
}
.motoroute-poi-popup-title,
.motoroute-fuel-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.2;
    margin-bottom: 4px;
}
.motoroute-poi-popup-type,
.motoroute-fuel-popup-brand {
    font-size: 12px;
    color: #78716c;
    margin-bottom: 8px;
}
.motoroute-popup-add-btn {
    display: inline-block;
    width: 100%;
    padding: 8px 10px;
    background: #b45309;
    color: #ffffff;
    border: 1px solid #92400e;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    margin-top: 6px;
}
.motoroute-popup-add-btn:hover { background: #92400e; }
.motoroute-popup-add-btn:focus,
.motoroute-popup-add-btn:active { background: #92400e; color: #ffffff; outline: none; }
.motoroute-popup-hint { font-size: 12px; color: #78716c; margin-top: 8px; }
.motoroute-popup-hint a { color: #b45309; text-decoration: underline; }

.motoroute-fuel-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px solid #f5f5f4;
}
.motoroute-fuel-price-row:last-of-type { border-bottom: none; }
.motoroute-fuel-price-label {
    color: #57534e;
    font-weight: 600;
}
.motoroute-fuel-price-value {
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}
.motoroute-fuel-price-value.green {
    background: #dcfce7;
    color: #166534;
}
.motoroute-fuel-price-value.yellow {
    background: #fef3c7;
    color: #92400e;
}
.motoroute-fuel-price-value.red {
    background: #fee2e2;
    color: #991b1b;
}
.motoroute-fuel-price-missing {
    font-size: 12px;
    color: #78716c;
    font-style: italic;
    padding: 4px 0;
}

.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { margin: 12px 14px; line-height: 1.4; }

.motoroute-poi-icon { font-size: 18px; text-shadow: 0 0 3px #fff; }

.motoroute-fuel-icon {
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: #ffffff;
    color: #1c1917;
}
.motoroute-fuel-icon-default {
    background: #ffffff;
    border-color: #d6d3d1;
}
.motoroute-fuel-icon-green {
    background: #22c55e;
    border-color: #15803d;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.motoroute-fuel-icon-yellow {
    background: #facc15;
    border-color: #ca8a04;
    color: #1c1917;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
}
.motoroute-fuel-icon-red {
    background: #ef4444;
    border-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* NEU: Günstigste Tankstelle (muss NACH den anderen stehen und !important nutzen) */
.motoroute-fuel-icon-cheapest {
    background: #22c55e !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.9), 0 0 0 2px #ffffff !important;
    transform: scale(1.15);
    z-index: 1000 !important;
}

.motoroute-participants-grid { margin-top: 10px; }
.motoroute-participants-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.motoroute-participant-card { background: #ffffff; border: 1px solid #e7e5e4; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.15s, box-shadow 0.15s; }
.motoroute-participant-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.motoroute-participant-card-avatar-wrap { position: relative; background: linear-gradient(135deg, #fafaf9, #f5f5f4); display: flex; justify-content: center; padding: 16px 8px 8px; }
.motoroute-participant-card-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #d97706; background: #ffffff; }
.motoroute-participant-card-distance { position: absolute; top: 8px; right: 8px; background: #d97706; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; }
.motoroute-participant-card-body { padding: 10px 12px 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.motoroute-participant-card-name { font-size: 16px; font-weight: 700; color: #b45309; }
.motoroute-participant-card-role { font-size: 13px; color: #78716c; }
.motoroute-participant-card-bike { font-size: 12px; color: #44403c; background: #f5f5f4; border-radius: 6px; padding: 3px 6px; display: inline-block; margin: 0 auto; }
.motoroute-participant-card-address { font-size: 11px; color: #78716c; margin-top: 6px; background: #fafaf9; padding: 6px 8px; border-radius: 6px; text-align: left; line-height: 1.3; }
.motoroute-participant-card-role-select { margin-top: 6px; }
.motoroute-role-select { font-size: 12px; padding: 3px 6px; border-radius: 6px; border: 1px solid #d6d3d1; background: #fff; }
.motoroute-role-tourguide { border-color: #10b981; border-width: 2px; }
.motoroute-role-besenwagen { border-color: #ef4444; border-width: 2px; }

.motoroute-participant { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e7e5e4; border-radius: 10px; margin-bottom: 8px; background: #fafaf9; }
.motoroute-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #d97706; }
.motoroute-avatar-small { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #d97706; }

.motoroute-guest-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}
.motoroute-guest-cta {
    display: inline-block;
    margin-top: 6px;
    background: #2563eb;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.motoroute-guest-cta:hover { background: #1d4ed8; }

.motoroute-guest-join-wrap {
    margin-top: 14px;
    padding: 14px 16px;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
}
.motoroute-guest-join-wrap h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #b45309;
}
.motoroute-guest-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.motoroute-guest-form label {
    font-size: 13px;
    font-weight: 600;
    color: #44403c;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.motoroute-guest-privacy {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 8px !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 1.4;
    color: #57534e !important;
}
.motoroute-guest-privacy input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #b45309;
    flex-shrink: 0;
}
.motoroute-guest-privacy a { color: #b45309; text-decoration: underline; }
.motoroute-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.motoroute-guest-success {
    padding: 14px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #065f46;
    font-size: 14px;
    line-height: 1.5;
}

.motoroute-guest-requests-box {
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
}
.motoroute-guest-requests-box h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #92400e;
    font-weight: 700;
}
.motoroute-guest-request-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.motoroute-guest-request-row:last-child { margin-bottom: 0; }
.motoroute-guest-request-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 200px;
}
.motoroute-guest-request-info strong {
    font-size: 14px;
    color: #1c1917;
}
.motoroute-guest-request-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.motoroute-guest-request-actions .motoroute-btn {
    margin: 0;
}

.motoroute-contributions { margin-top: 24px; padding: 16px; background: #fff; border: 1px solid #e7e5e4; border-radius: 12px; }
.motoroute-contribution { display: flex; gap: 12px; padding: 10px; border-bottom: 1px solid #f5f5f4; }
.motoroute-contribution:last-child { border-bottom: none; }
.motoroute-contribution-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f5f5f4; }
.motoroute-contribution-form label { font-size: 13px; font-weight: 600; color: #44403c; }

.motoroute-ratings { margin-top: 24px; padding: 16px; background: #fff; border: 1px solid #e7e5e4; border-radius: 12px; }
.motoroute-avg { background: #fef3c7; color: #92400e; font-size: 13px; padding: 3px 8px; border-radius: 6px; margin-left: 6px; }
.motoroute-stars { color: #f59e0b; font-size: 18px; margin-left: 6px; }
.motoroute-rating-row { padding: 8px 0; border-bottom: 1px solid #f5f5f4; }
.motoroute-rating-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f5f5f4; }

.motoroute-directory { margin: 20px 0; }
.motoroute-directory-filter { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px; background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 10px; margin-bottom: 16px; align-items: end; }
.motoroute-directory-filter label { font-size: 12px; font-weight: 600; color: #44403c; display: flex; flex-direction: column; gap: 4px; }
.motoroute-directory-filter select, .motoroute-directory-filter input { padding: 6px 8px; border: 1px solid #d6d3d1; border-radius: 6px; font-size: 13px; }
.motoroute-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.motoroute-directory-card { background: #fff; border: 1px solid #e7e5e4; border-radius: 10px; text-decoration: none; color: inherit; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.motoroute-directory-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.motoroute-directory-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.motoroute-directory-body { padding: 10px 12px; }
.motoroute-directory-title { font-weight: 700; font-size: 15px; color: #1c1917; margin-bottom: 4px; }
.motoroute-directory-meta { font-size: 12px; color: #78716c; }

.motoroute-overview { margin: 20px 0; }
.motoroute-overview-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 2px solid #e7e5e4; }
.motoroute-overview-tab { background: transparent; border: none; padding: 10px 16px; font-size: 14px; font-weight: 600; color: #78716c; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
.motoroute-overview-tab:hover { background-color: #EEEEEE !important; color: #000000 !important; }
.motoroute-overview-tab:focus,
.motoroute-overview-tab:active { color: #b45309; outline: none; }
.motoroute-overview-tab.is-active { background-color: #8a6d4b !important; color: #ffffff !important; border-bottom-color: #8a6d4b !important; border-radius: 4px !important; }
.motoroute-overview-panel { display: none; }
.motoroute-overview-panel.is-active { display: block; }
.motoroute-overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.motoroute-overview-card { background: #fff; border: 1px solid #e7e5e4; border-radius: 12px; text-decoration: none; color: inherit; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; }
.motoroute-overview-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.motoroute-overview-img-wrap { position: relative; height: 160px; background: #f5f5f4; overflow: hidden; }
.motoroute-overview-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.motoroute-overview-badge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; color: #fff; }
.motoroute-overview-badge.is-ridden { background: #059669; }
.motoroute-overview-badge.is-planned { background: #b45309; }
.motoroute-overview-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.motoroute-overview-title { font-size: 16px; font-weight: 700; color: #1c1917; line-height: 1.3; }
.motoroute-overview-meta { font-size: 12px; color: #78716c; line-height: 1.5; }

.motoroute-frontend-editor { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; border: 1px solid #e7e5e4; border-radius: 12px; margin: 20px 0; }
.motoroute-frontend-editor label { font-size: 13px; font-weight: 600; color: #44403c; }

.motoroute-notice { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 10px 0; }
.motoroute-notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.motoroute-actions { display: flex; flex-wrap: wrap; gap: 0; margin-top: 10px; }
.motorrad-tour-report-box { background: #fff; border: 1px solid #e5dfd0; border-left: 4px solid #b45309; border-radius: 10px; padding: 20px; margin: 15px 0; }

.motoroute-alternatives-under-map {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 16px;
}
.motoroute-alternatives-under-map:empty { display: none; }

.motoroute-debug {
    margin-top: 12px;
    padding: 12px 14px;
    background: #1c1917;
    color: #fbbf24;
    border: 1px solid #44403c;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}
.motoroute-debug strong {
    color: #f59e0b;
    display: block;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .motoroute-guest-request-row {
        flex-direction: column;
        align-items: stretch;
    }
    .motoroute-guest-request-actions {
        justify-content: stretch;
    }
    .motoroute-guest-request-actions .motoroute-btn {
        flex: 1;
    }
}
/* Tankstellen-Cluster */
.motoroute-fuel-cluster-icon {
    background: #44403c;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.motoroute-fuel-cluster-icon:hover {
    background: #1c1917;
    transform: scale(1.1);
    transition: transform 0.15s;
}
.motoroute-cluster-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1c1917;
    max-height: 200px;
    overflow-y: auto;
}
.motoroute-cluster-popup h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #b45309;
}
.motoroute-cluster-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.motoroute-cluster-popup li {
    border-bottom: 1px solid #f5f5f4;
    padding: 4px 0;
}
.motoroute-cluster-popup li:last-child {
    border-bottom: none;
}
.motoroute-cluster-popup a {
    text-decoration: none;
    color: #1c1917;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.motoroute-cluster-popup a:hover {
    color: #b45309;
    background: #fafaf9;
}
.motoroute-cluster-price {
    font-weight: 700;
    color: #059669;
}

/* NEU: Sternförmige POI-Cluster */
.marker-cluster-poi {
    background-color: rgba(245, 158, 11, 0.2) !important;
    border-radius: 20px;
}
.marker-cluster-poi div {
    background-color: #f59e0b;
    color: #000000 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) !important;
}
/* Motoroute POI Cluster (Sternform) */
.motoroute-poi-cluster-wrap {
    background: transparent !important;
    border: none !important;
}

/* ====================================================================
   NEU: Touren-Tagebuch (BuddyPress-Profil)
   Stil bleibt konsistent zum Rest (warme Brauntöne, Karten wie .motoroute-panel)
   ==================================================================== */

/* Container */
.motoroute-diary { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1c1917; }
.motoroute-fuel-diary { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1c1917; }

/* Header-Balken (Avatar + Titel) */
.motoroute-diary-header {
    background: linear-gradient(135deg, #1c1917, #292524);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 5px solid #d97706;
}
.motoroute-diary-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    object-fit: cover;
    background: #ffffff;
    flex-shrink: 0;
}
.motoroute-diary-eyebrow {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.motoroute-diary-title {
    margin: 4px 0 0 0;
    font-size: 24px;
    color: #ffffff;
    line-height: 1.2;
}
.motoroute-diary-admin-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
}

/* Statistik-Box */
.motoroute-diary-stats {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.motoroute-diary-stats-title {
    margin: 0 0 14px 0;
    font-size: 16px;
    font-weight: 700;
    color: #b45309;
}
.motoroute-diary-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.motoroute-stat-box {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.motoroute-stat-box-wide {
    grid-column: span 2;
}
.motoroute-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #b45309;
    line-height: 1.2;
    word-break: break-word;
}
.motoroute-stat-label {
    font-size: 12px;
    color: #78716c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Tour-Block */
.motoroute-diary-tour {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.motoroute-diary-tour-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f4;
}
.motoroute-diary-tour-title {
    font-size: 16px;
    font-weight: 700;
    color: #b45309;
    text-decoration: none;
    display: inline-block;
}
.motoroute-diary-tour-title:hover { text-decoration: underline; }
.motoroute-diary-tour-meta {
    display: block;
    font-size: 12px;
    color: #78716c;
    margin-top: 4px;
    line-height: 1.5;
}
.motoroute-diary-tour-status { flex-shrink: 0; }

/* Badges (Lock/Entwurf) */
.motoroute-badge-locked {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.motoroute-badge-draft {
    display: inline-block;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Summen-Zeile pro Tour */
.motoroute-diary-tour-summary {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}
.motoroute-diary-tour-summary strong { color: #78350f; }

/* Formular pro Tour */
.motoroute-diary-tour-form { margin-top: 8px; }

/* Tankstopp-Block */
.motoroute-diary-entry {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.motoroute-diary-entry-new {
    background: #ffffff;
    border: 2px dashed #d6d3d1;
}
.motoroute-diary-entry-new:focus-within {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Eingabezeilen */
.motoroute-diary-entry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
}
.motoroute-diary-entry-row:last-child { margin-bottom: 0; }
.motoroute-diary-entry-row > label {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #44403c;
    margin: 0;
}
.motoroute-diary-entry-row > label .motoroute-input {
    font-weight: 400;
}
.motoroute-diary-entry-row .motoroute-btn {
    margin: 0;
    flex-shrink: 0;
}
.motoroute-diary-entry-row .motoroute-hint {
    flex-basis: 100%;
    margin: 0;
}

/* Lock-Zeile */
.motoroute-diary-lock-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f4;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.motoroute-diary-lock-row .motoroute-hint { margin: 0; }

/* ====================================================================
   NEU: Tanktagebuch (eigener Tab)
   ==================================================================== */

.motoroute-fuel-diary { margin-top: 10px; }

.motoroute-fuel-diary-new {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.motoroute-fuel-diary-new h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: #b45309;
}

/* Tabelle im Tanktagebuch */
.motoroute-fuel-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
}
.motoroute-fuel-table thead {
    background: #f5f5f4;
}
.motoroute-fuel-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #44403c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e7e5e4;
    white-space: nowrap;
}
.motoroute-fuel-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f5f5f4;
    color: #1c1917;
    vertical-align: middle;
}
.motoroute-fuel-table tbody tr:last-child td {
    border-bottom: none;
}
.motoroute-fuel-table tbody tr:nth-child(even) {
    background: #fafaf9;
}
.motoroute-fuel-table tbody tr:hover {
    background: #fef3c7;
}
.motoroute-fuel-table .button,
.motoroute-fuel-table .motoroute-btn {
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
}

/* ====================================================================
   NEU: Responsive-Anpassungen für Tagebuch / Tanktagebuch
   ==================================================================== */

@media (max-width: 700px) {
    .motoroute-diary-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .motoroute-diary-title { font-size: 20px; }
    .motoroute-diary-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .motoroute-stat-box-wide { grid-column: span 1; }
    .motoroute-diary-tour-head { flex-direction: column; }
    .motoroute-diary-tour-status { align-self: flex-start; }
    .motoroute-diary-entry-row > label {
        flex: 1 1 100%;
    }
    .motoroute-fuel-table thead { display: none; }
    .motoroute-fuel-table,
    .motoroute-fuel-table tbody,
    .motoroute-fuel-table tr,
    .motoroute-fuel-table td {
        display: block;
        width: 100%;
    }
    .motoroute-fuel-table tr {
        margin-bottom: 10px;
        border-bottom: 2px solid #e7e5e4;
        padding-bottom: 8px;
    }
    .motoroute-fuel-table tbody tr:nth-child(even) { background: transparent; }
    .motoroute-fuel-table td {
        border-bottom: none;
        padding: 4px 8px;
        text-align: left;
    }
    .motoroute-fuel-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #78716c;
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }
}