/**
 * Map Popup Content Styles
 * Shared styles for Leaflet map popup content (no inline styles)
 */

/* Map popup content container - improved layout */
.map-popup-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 320px;
    margin: 0;
    padding: 0;
}

/* Map popup logo/image - enhanced styling */
.map-popup-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.map-popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Map popup information section - improved spacing */
.map-popup-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Map popup title - purple theme with better contrast */
.map-popup-title {
    font-weight: 600;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #886ab5; /* --theme-primary */
}

/* Map popup location - improved styling */
.map-popup-location {
    color: #ffc107; /* Bootstrap warning color */
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Map popup description - improved readability */
.map-popup-description {
    font-size: 0.875rem;
    margin: 0;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Map popup link button - enhanced with better contrast */
.map-popup-link {
    margin-top: 4px;
}

.map-popup-link .btn {
    white-space: nowrap;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    background-color: #886ab5;
    border-color: #886ab5;
    color: #fff;
    transition: all 0.2s ease;
}

.map-popup-link .btn:hover {
    background-color: #6b4d9a;
    border-color: #6b4d9a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(136, 106, 181, 0.3);
}

.map-popup-link .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(136, 106, 181, 0.3);
}

/* Leaflet popup customization - Enhanced with theme colors and better design */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(136, 106, 181, 0.1);
    border: 1px solid rgba(136, 106, 181, 0.2);
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 14px;
    line-height: 1.4;
}

.leaflet-popup-content p {
    margin: 0;
}

/* Leaflet popup tip - purple theme with better visibility */
.leaflet-popup-tip {
    background: #fff;
    border: 1px solid rgba(136, 106, 181, 0.2);
    border-top: none;
    border-right: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Leaflet popup close button - purple theme with better contrast */
.leaflet-popup-close-button {
    color: rgba(136, 106, 181, 0.8);
    font-size: 20px;
    font-weight: bold;
    padding: 6px 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.leaflet-popup-close-button:hover {
    color: #fff;
    background-color: #886ab5;
    text-decoration: none;
}

