/* Popups POI Leaflet — mise en page unifiée (avec / sans photo) */

.custom-leaflet-popup a.leaflet-popup-close-button {
    z-index: 20;
    color: #64748b !important;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    padding: 0;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.125rem;
}

.custom-leaflet-popup a.leaflet-popup-close-button:hover {
    color: #1b4332 !important;
    background: #fff;
}

.poi-popup {
    position: relative;
    overflow: hidden;
    width: 16rem;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.poi-popup__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--poi-accent, #1b4332);
    border-radius: 12px 0 0 12px;
    pointer-events: none;
    z-index: 1;
}

.poi-popup__header {
    position: relative;
    padding: 1rem 1rem 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, #fff 55%);
    border-bottom: 1px solid rgba(167, 243, 208, 0.35);
}

.poi-popup__header-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.poi-popup__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(167, 243, 208, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
}

.poi-popup__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.poi-popup__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: rgba(4, 120, 87, 0.75);
}

.poi-popup__meta {
    min-width: 0;
    flex: 1;
}

.poi-popup__badge {
    display: inline-block;
    margin-bottom: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #064e3b;
    background: #fff;
    border-radius: 9999px;
    border: 1px solid rgba(167, 243, 208, 0.7);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.poi-popup__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1b2e1b;
}

.poi-popup__photo {
    position: relative;
    width: 100%;
    height: 9rem;
    overflow: hidden;
    background: #f1f5f9;
    border-top: 1px solid rgba(167, 243, 208, 0.25);
    border-bottom: 1px solid rgba(167, 243, 208, 0.25);
}

.poi-popup__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poi-popup__body {
    padding: 0.75rem 1rem 0.875rem 1.25rem;
}

.poi-popup__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

.poi-popup__desc--placeholder {
    font-size: 12px;
    font-style: italic;
    color: #94a3b8;
}

.poi-popup__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.poi-popup__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1b2e1b;
    background: #d1fae5;
    border-radius: 9999px;
}

.poi-popup__tag img {
    width: 0.75rem;
    height: 0.75rem;
    object-fit: contain;
}
