/*
 * Simplified Styles for the Tour Viewer Page
 */

body {
    background: #fefefe;
}

.container {
    max-width: 48em;
    margin: 20px auto;
}

.header {
    text-align: left;
    padding: 0;
    margin-bottom: 2em;
}

.header h1 {
    font-size: 2.5em; 
    font-weight: normal;
    color: #111;
}

/* --- NEW: Styles for SVG Category Picker --- */
.picker-container {
    margin-bottom: 2em;
}

#category-picker g {
    cursor: pointer;
}

#category-picker rect {
    fill: #f0f0f0;
    stroke: #ccc;
    stroke-width: 1px;
    transition: all 0.2s ease-in-out;
}

#category-picker text {
    font-family: Verdana, serif;
    font-size: 10px;
    text-anchor: middle;
    fill: #555;
    pointer-events: none; /* Allows clicks to pass through to the rectangle */
}

#category-picker g:hover rect {
    fill: #e9e9e9;
}

/* Style for selected categories */
#category-picker g.selected rect {
    fill: #d4ebf2;
    stroke: #4682b4;
    stroke-width: 2px;
}

#category-picker g.selected text {
    fill: #000;
    font-weight: bold;
}


/* Stats Panel Styles */
.stats {
    padding: 0;
    margin-bottom: 2em;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 5px 10px;
}

.stats .label {
    font-weight: bold;
}

/* Map and Elevation Containers */
.map-container, .elevation-container {
    display: none; 
}

.map-container {
    height: 500px;
    margin-bottom: 2em;
}

#map {
    height: 100%;
    width: 100%;
    border: 1px solid #ccc;
}

.elevation-container {
    height: 240px;
    margin-bottom: 2em;
}

.info-panel {
    padding: 0;
}

.loading, .error {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    color: #dc3545;
    background: #f8d7da;
    border-radius: 6px;
}

/* Photo Gallery Styles */
.photos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1em;
}

.photos-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex: 1 1 200px;
    object-fit: cover;
}