.seasrep-map-container {
    position: relative;
    width: 100%;
    height: 800px;
}

#map {
    height: 100%;
    width: 100%;
    position: absolute;
    cursor: pointer;
    background-color: #ffffff;
}

/* Hide attribution */
.leaflet-control-attribution {
    display: none;
}

/* Custom map tiles style */
.leaflet-tile-pane {
    opacity: 0.9;
}

/* Province tooltip */
.province-tooltip {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Province path hover effect */
.province-path {
    transition: all 0.2s ease;
}

/* Disable transitions during zoom to prevent lag */
.leaflet-zoom-anim .province-path,
.zooming .province-path {
    transition: none !important;
}

/* Additional performance optimizations */
.leaflet-container .leaflet-overlay-pane svg {
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}

.leaflet-container .leaflet-overlay-pane path {
    pointer-events: auto;
}

#sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.org-list {
    list-style: none;
    padding: 0;
}

.org-item {
    padding: 15px;
    margin: 10px 0;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.org-item:hover {
    background: #e0e0e0;
}

.org-list-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.org-list-name {
    flex: 1;
    font-weight: 500;
}

#province-title {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.org-details {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.org-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.org-photos {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.contact-info, .activities, .photo-gallery {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-person {
    margin: 15px 0;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.social-links {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.social-link:hover {
    background: #2980b9;
}

.back-button {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.back-button:hover {
    background: #34495e;
}

h3, h4 {
    color: #2c3e50;
    margin-top: 20px;
}

.org-profile {
    margin: 20px 0;
    line-height: 1.6;
}

.region-label span {
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
    text-shadow: 0 0 4px #fff, 0 0 2px #fff;
    pointer-events: none;
    white-space: nowrap;
}

.hidden-label {
    display: none !important;
}

/* Loading overlay for map container */
.seasrep-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
}

.seasrep-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: seasrep-spin 1s linear infinite;
}

.seasrep-loading-text {
    color: #2c3e50;
    font-weight: 500;
}

@keyframes seasrep-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: 50%;
        top: 50%;
        right: 0;
        border-radius: 20px 20px 0 0;
    }
    .org-logo {
        max-width: 150px;
    }
}

/* Pulse animation for highlighted organizations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
} 