/* Custom Leaflet Popup Styles - Conectadas en eme */

/* Main popup container */
.leaflet-popup-content-wrapper {
    background: #F4F2FF;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(88, 48, 90, 0.15);
    border: 2px solid #FFCBC8;
    padding: 0;
    overflow: hidden;
}

/* Popup content area */
.leaflet-popup-content {
    margin: 0;
    padding: 20px;
    min-width: 240px;
}

/* Popup tip/arrow */
.leaflet-popup-tip-container {
    margin-top: -2px;
}

.leaflet-popup-tip {
    background: #F4F2FF;
    border: 2px solid #FFCBC8;
    border-top: none;
    border-left: none;
    box-shadow: 0 4px 8px rgba(88, 48, 90, 0.1);
}

/* Close button */
.leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #58305A !important;
    background: #FFCBC8 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.leaflet-popup-close-button:hover {
    background: #58305A !important;
    color: #F4F2FF !important;
    transform: rotate(90deg);
}

/* Custom popup content styles */
.popup-card {
    min-width: 220px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FFCBC8;
}

.popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFCBC8, #B5A264);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #58305A;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.popup-name {
    margin: 0;
    color: #58305A;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.popup-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.popup-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #58305A;
}

.popup-info-item i {
    color: #B5A264;
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.popup-info-item strong {
    color: #58305A;
    font-weight: 600;
}

.popup-info-item span {
    color: #58305A;
    opacity: 0.85;
}

.popup-category {
    background: rgba(181, 162, 100, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-category i {
    color: #B5A264;
}

.popup-category span {
    font-size: 13px;
    color: #58305A;
    font-weight: 500;
}

.popup-social {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(88, 48, 90, 0.1);
    justify-content: center;
}

.popup-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.popup-social a.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.popup-social a.facebook {
    background: #1877F2;
    color: white;
}

.popup-social a.linkedin {
    background: #0A66C2;
    color: white;
}

.popup-social a.website {
    background: #B5A264;
    color: white;
}

.popup-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(88, 48, 90, 0.25);
}

/* Animation for popup entrance */
.leaflet-popup {
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate3d(var(--popup-x, 0), calc(var(--popup-y, 0) + 10px), 0) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate3d(var(--popup-x, 0), var(--popup-y, 0), 0) scale(1);
    }
}