/* General styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 20px 0;
}

/* Map styles */
.map-container {
    position: relative;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    background-color: #f8f9fa;
}

/* Province label styles */
.province-label {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
    transition: transform 0.2s ease-in-out;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Province polygon styles */
.leaflet-interactive {
    transition: all 0.3s ease-in-out;
}

.leaflet-interactive:hover {
    stroke-width: 3;
    stroke: #2c3e50;
    stroke-opacity: 0.8;
}

/* Municipal boundary styles */
.municipal-tooltip {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    color: #2c3e50;
    text-align: center;
}

.municipal-tooltip::before {
    border: none;
}

/* Layer control styles */
.leaflet-control-layers {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    background: white !important;
    padding: 10px !important;
}

.leaflet-control-layers-toggle {
    background-color: white;
    width: 36px;
    height: 36px;
}

.leaflet-control-layers-expanded {
    padding: 15px !important;
    min-width: 220px;
}

.leaflet-control-layers-expanded label {
    margin-bottom: 8px;
}

/* Dataset popup styles */
.dataset-popup {
    padding: 8px;
}

.dataset-popup h6 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.dataset-popup p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #34495e;
}

.dataset-popup small {
    color: #7f8c8d;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

/* Zoom control styles */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #2c3e50 !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:first-child {
    border-radius: 4px 4px 0 0 !important;
    border-bottom: 1px solid #eee !important;
}

.leaflet-control-zoom a:last-child {
    border-radius: 0 0 4px 4px !important;
}

/* Search panel styles */
.search-panel {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 15px;
}

/* Results list styles */
#resultsList {
    max-height: 400px;
    overflow-y: auto;
}

.list-group-item {
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
}

/* Modal styles */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.boundary-tooltip {
    background-color: white;
    color: #333333;
    font-family: arial;
    font-size: 12px;
    padding: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* Add this to your existing CSS */
.dataset-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dataset-card:hover {
    background-color: #f8f9fa;
}

.active-dataset {
    border-left: 3px solid #e60000; 
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} 