/**
 * File: assets/sb-map.css
 * Purpose: Styles for speaker location maps
 */

/* Map container */
.sb-speaker-map {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Map notice when no speakers found */
.sb-map-notice {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    color: #6c757d;
    margin: 20px 0;
}

/* Popup content */
.sb-map-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0;
    display: flex;
    gap: 12px;
    min-width: 280px;
}

.sb-map-image {
    flex-shrink: 0;
}

.sb-map-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.sb-map-content {
    flex: 1;
    min-width: 0;
}

.sb-map-speaker-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.sb-map-speaker-name a {
    color: #0073aa;
    text-decoration: none;
}

.sb-map-speaker-name a:hover {
    color: #005177;
    text-decoration: underline;
}

.sb-map-headline {
    margin: 4px 0;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
}

.sb-map-organization {
    margin: 4px 0;
    font-size: 13px;
    color: #777;
    line-height: 1.3;
}

.sb-map-topics {
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

.sb-map-topics strong {
    color: #333;
    font-weight: 600;
}

.sb-map-profile-link {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.sb-map-button {
    display: inline-block;
    padding: 6px 14px;
    background-color: #0073aa;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sb-map-button:hover {
    background-color: #005177;
    text-decoration: none;
}

/* Custom Leaflet popup styling */
.sb-map-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.sb-map-leaflet-popup .leaflet-popup-content {
    margin: 15px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sb-speaker-map {
        height: 400px !important;
    }

    .sb-map-popup {
        flex-direction: column;
        min-width: 240px;
    }

    .sb-map-image img {
        width: 100%;
        height: auto;
        max-height: 150px;
    }

    .sb-map-speaker-name {
        font-size: 15px;
    }

    .sb-map-headline,
    .sb-map-organization {
        font-size: 12px;
    }

    .sb-map-topics {
        font-size: 11px;
    }
}

/* Ensure map is visible and properly sized */
.sb-speaker-map .leaflet-container {
    height: 100%;
    width: 100%;
}
