/* FINAL CLEANED STYLESHEET (v123): Unify description text styles */

/* --- Typography & Basic Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Roboto+Condensed:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 { font-family: 'Fjalla One', sans-serif; }
body, p, span, a, div, label, input, button, select { font-family: 'Roboto Condensed', sans-serif; }

body, html {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent body scroll */
}

/* --- Header & Sidenav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    box-sizing: border-box; 
    z-index: 1000;
}

.sidenav { 
    height: 100%; 
    width: 0; 
    position: fixed; 
    z-index: 1001; 
    top: 0; 
    right: 0; 
    background-color: #fff; 
    overflow-y: auto; 
    overflow-x: hidden; 
    transition: 0.5s; 
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    padding-top: 30px;
    box-sizing: border-box;
}
.sidenav.open { width: 350px; }
.sidenav .close-btn { position: absolute; top: 15px; right: 25px; font-size: 36px; }

/* --- Map Container --- */
#map { 
    position: absolute; 
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0; 
    z-index: 1;
}

/* --- SPLIT MAP CONTROLS --- */
.map-controls-left,
.map-controls-right {
    position: absolute;
    top: 80px;      
    z-index: 10;    
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-controls-left {
    left: 20px;
    align-items: center; /* Center the items horizontally */
}

.map-controls-right {
    right: 20px;
    align-items: center; /* Center the items horizontally */
}

.map-controls-left button,
.map-controls-right button {
    background-color: #323232;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #ffffff;
    font-size: 24px;
    transition: background-color 0.2s, box-shadow 0.2s;
    touch-action: manipulation; /* Prevent double-tap-to-zoom on buttons */
}

/* Set font-family only for Material Icons buttons */
.map-controls-left button.material-icons,
.map-controls-right button.material-icons {
    font-family: 'Material Icons';
}

.map-controls-left button:hover,
.map-controls-right button:hover {
    background-color: #424242;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* --- Compass Specific Styles --- */
#reset-north-button {
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s linear;
}

/* --- Zoom Level Display --- */
#zoom-level-display {
    background-color: rgba(50, 50, 50, 0.8);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    min-width: 30px;
    box-sizing: border-box;
    height: 30px; /* Explicit height */
    display: flex; /* Flexbox for centering */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
}

/* --- Language Switcher --- */
.custom-select-wrapper { position: relative; width: 140px; user-select: none; }
.custom-select-options { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #fff; border: 1px solid #ccc; border-top: none; border-radius: 0 0 4px 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 1001; }
.custom-select-options.show { display: block; }


/* --- Other Styles --- */
.logo-link { display: flex; align-items: center; height: 100%; }
#bikenavi-logo { height: 40px; width: auto; }
.menu-button { font-size: 24px; background: none; border: none; cursor: pointer; color: #000; }
.custom-select { display: flex; align-items: center; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; background-color: #fff; cursor: pointer; }
.flag-icon { width: 20px; height: 15px; margin-right: 10px; border: 1px solid #eee; }
.custom-arrow.material-icons { font-size: 24px; color: #555; transition: transform 0.3s; }
.custom-select-wrapper.open .custom-arrow { transform: rotate(180deg); }
.language-option { display: flex; align-items: center; padding: 10px 12px; text-decoration: none; color: #333; font-size: 14px; transition: background-color 0.2s; }
.language-option:hover { background-color: #f5f5f5; }
.language-option.active { background-color: #e9f5ff; font-weight: bold; }
.sidenav a { padding: 8px 8px 8px 32px; text-decoration: none; font-size: 25px; color: #818181; display: block; transition: 0.3s; }
.sidenav a:hover { color: #f1f1f1; }
.info-box { padding: 15px 24px; border-bottom: 1px solid #e0e0e0; }
.info-title { font-family: 'Fjalla One', sans-serif; font-size: 24px; color: #333; margin: 0 0 10px 0; }
.info-text, p[data-translation-key="legendBasicDescription"] { font-family: 'Roboto Condensed', sans-serif; font-size: 15px; line-height: 1.5; color: #555; margin: 0; }
.map-selection { padding: 20px 24px; border-bottom: 1px solid #e0e0e0 !important; }
.map-selection h3, .tab-panel h3 { font-size: 18px; color: #333; margin-top: 0; margin-bottom: 15px; }
.radio-button-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 15px; }
.material-radio { display: block; position: relative; padding-left: 35px; cursor: pointer; font-size: 16px; user-select: none; line-height: 22px; margin: 0; }
.material-radio input { position: absolute; opacity: 0; cursor: pointer; }
.radio-checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background-color: #fff; border: 2px solid #555; border-radius: 50%; transition: all 0.2s; }
.material-radio:hover input ~ .radio-checkmark { background-color: #f5f5f5; }
.material-radio input:checked ~ .radio-checkmark { border-color: #1a73e8; }
.radio-checkmark:after { content: ""; position: absolute; display: none; }
.material-radio input:checked ~ .radio-checkmark:after { display: block; top: 50%; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #1a73e8; transform: translate(-50%, -50%) scale(0); transition: transform 0.2s; }
.material-radio input:checked ~ .radio-checkmark:after { transform: translate(-50%, -50%) scale(1); }
.tab-container { margin-top: 15px;}
.tab-buttons { display: flex; padding: 0; padding-bottom: 20px; border-bottom: none; }
.tab-button { font-family: 'Roboto Condensed', sans-serif; flex: 1; padding: 15px 10px; background-color: #f9f9f9; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-size: 14px; font-weight: 700; color: #555; transition: all 0.3s ease; text-align: center; }
.tab-button.active { color: #1a73e8; background-color: #fff; border-bottom: 3px solid #1a73e8; }
.tab-button:hover { background-color: #efefef; }
.tab-content { padding: 0; }
.tab-panel { display: none; padding: 0px 0; }
.tab-panel.active { display: block; }
.legend, .location-legend-content { padding: 0; }
.legend h3 { border-top: 1px solid #ddd; padding-top: 15px; margin-top: 15px; }
#legend-basic h3:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legend-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 15px; align-items: center; }
.legend-item { display: contents; }
.legend-color { width: 30px; height: 10px; border-radius: 2px; }
.legend-name { font-weight: bold; font-size: 15px; }
.legend-description { grid-column: 2; font-size: 15px; line-height: 1.5; color: #555; margin-top: 0; }
#legend-outdoor ul { padding-left: 20px; margin: 10px 0; }
#legend-outdoor li { margin-bottom: 8px; line-height: 1.4; }
#legend-outdoor p strong { font-weight: bold; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.location-item { display: flex; align-items: center; font-size: 14px; }
.location-icon { width: 20px; height: 20px; margin-right: 10px; }
