/**
 * Workshops Map Styles
 */

/* Map container */
#workshops-map {
    width: 100%;
    height: 420px;
    background: #e5e7eb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Responsive height */
@media (max-width: 768px) {
    #workshops-map {
        height: 320px;
    }
}

/* Custom maroon marker */
.workshop-marker-icon {
    background: transparent !important;
    border: none !important;
}

.workshop-marker-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #8a0f0f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaflet-marker-icon:hover .workshop-marker-circle {
    width: 20px;
    height: 20px;
    border-width: 3px;
    margin-left: -2px;
    margin-top: -2px;
    box-shadow: 0 3px 6px rgba(138, 15, 15, 0.4);
}

/* Marker cluster styles */
.workshop-cluster {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #8a0f0f !important;
    border-radius: 50% !important;
}

.workshop-cluster div {
    background-color: rgba(138, 15, 15, 0.8) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    margin-left: 2px !important;
    margin-top: 2px !important;
}

.workshop-cluster-small {
    width: 40px !important;
    height: 40px !important;
}

.workshop-cluster-medium {
    width: 50px !important;
    height: 50px !important;
}

.workshop-cluster-medium div {
    width: 46px !important;
    height: 46px !important;
    line-height: 46px !important;
    font-size: 16px !important;
}

.workshop-cluster-large {
    width: 60px !important;
    height: 60px !important;
}

.workshop-cluster-large div {
    width: 56px !important;
    height: 56px !important;
    line-height: 56px !important;
    font-size: 18px !important;
}

/* Popup styles */
.workshop-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.workshop-popup .leaflet-popup-content {
    margin: 0;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.workshop-popup-content {
    min-width: 200px;
    max-width: 300px;
}

.workshop-popup-location {
    display: block;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.workshop-popup-count {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.workshop-popup-events {
    max-height: 300px;
    overflow-y: auto;
}

.workshop-popup-event {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.workshop-popup-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.workshop-popup-year {
    color: #8a0f0f;
    font-weight: 600;
    font-size: 0.875rem;
}

.workshop-popup-title {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.25rem;
}

.workshop-popup-type {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

.workshop-popup-institution {
    color: #6b7280;
    font-size: 0.8rem;
}

.workshop-popup-strength {
    color: #6b7280;
    font-size: 0.8rem;
}

.workshop-popup-link {
    color: #8a0f0f;
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: inline-block;
}

.workshop-popup-link:hover {
    text-decoration: underline;
}

.workshop-popup-more {
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Focus styles for accessibility */
.leaflet-marker-icon:focus {
    outline: 2px solid #8a0f0f;
    outline-offset: 3px;
}

.workshop-cluster:focus {
    outline: 2px solid #8a0f0f;
    outline-offset: 3px;
}

