/* 
    styles_wikidata.css
    Styling for the Stanford Public Art Map with Wikidata integration
    This stylesheet supports the split-screen layout with map on left and Wikidata panel on right
*/

/* Base styles for HTML and body elements */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Main container that creates the split-screen layout using flexbox */
#container {
    display: flex;
    height: calc(100% - 80px);
}

/* Left side: map wrapper takes up 50% of the width */
#mapWrapper {
    width: 50%;
    height: 100%;
}

/* Leaflet map container takes full size of its parent wrapper */
.leaflet-container {
    height: 100%;
    width: 100%;
}

/* Right side: Wikidata information panel takes up 50% of the width */
#wikidata-panel {
    width: 50%;
    height: 100%;
    overflow-y: auto;          /* Allow vertical scrolling if content exceeds height */
    padding: 20px;
    background-color: #f5f5f5; /* Light gray background */
    border-left: 2px solid #ddd; /* Visual separator from map */
    box-sizing: border-box;    /* Include padding in width calculation */
}

/* Container for Wikidata content with white background and subtle shadow */
.wikidata-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styling for Wikidata images - constrain size and add spacing */
.wikidata-image {
    max-width: 100%;
    max-height: 300px;
    margin: 10px 0;
    border-radius: 5px;
}

/* Main title/label for the artwork from Wikidata */
.wikidata-label {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

/* Description text from Wikidata with improved readability */
.wikidata-description {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

/* Container for individual properties (artist, date, material, etc.) */
.wikidata-property {
    margin: 10px 0;
    font-size: 13px;
}

/* Labels for property names (e.g., "Artist:", "Date:", "Material:") */
.wikidata-property-label {
    font-weight: bold;
    color: #333;
}

/* Styling for external links to Wikidata */
.wikidata-link {
    color: #0066cc;
    text-decoration: none;
}

/* Hover state for links - add underline on hover */
.wikidata-link:hover {
    text-decoration: underline;
}

/* Message shown when no artwork is selected */
#no-selection {
    color: #999;
    text-align: center;
    padding-top: 50px;
}
