/* ── Leaflet map container ─────────────────────────────── */
.company-map-info__map-leaflet {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background-color: #ededed;
}

.company-map-info__map-leaflet .leaflet-tile-pane {
    filter: saturate(1.8) contrast(1.08) brightness(1.02);
}

@media (min-width: 1024px) {
    .company-map-info__map-leaflet {
        min-height: 460px;
    }
}



/* ── Custom teardrop marker ────────────────────────────── */
.cmi-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.cmi-marker {
    position: relative;
    width: 46px;
    height: 55px;
    filter: drop-shadow(0 12px 6px rgba(0, 0, 0, 0.28));
    transition: transform 0.15s ease;
}

.cmi-marker:hover {
    transform: translateY(-3px);
}

.cmi-marker__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cmi-marker__icon {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    object-fit: contain;
    pointer-events: none;
    z-index: 201;
}

/* ── Leaflet popup ─────────────────────────────────────── */
.cmi-leaflet-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 0;
    overflow: hidden;
    min-width: 360px;
}

.cmi-leaflet-popup .leaflet-popup-content {
    margin: 0;
}

.cmi-leaflet-popup .leaflet-popup-tip-container {
    width: 24px;
    height: 12px;
}

.cmi-leaflet-popup .leaflet-popup-tip {
    background: #ffffff;
    box-shadow: none;
}

.cmi-leaflet-popup .leaflet-popup-close-button {
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 22px;
    color: #1b1a19;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.cmi-leaflet-popup .leaflet-popup-close-button:hover {
    opacity: 1;
    color: #e71332;
}

/* ── Popup content ─────────────────────────────────────── */
.cmi-popup {
    padding: 20px 20px 16px;
    font-family: var(--font-body, "Myriad Pro", Arial, sans-serif);
    min-width: 200px;
}

.cmi-popup__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1b1a19;
    margin: 0 0 10px;
    padding-right: 20px;
    line-height: 1.3;
}

.cmi-popup__address {
    font-size: 0.85rem;
    color: #3e3e3e;
    line-height: 1.5;
    margin: 0 0 8px;
}

.cmi-popup__extra {
    font-size: 0.82rem;
    color: #949494;
    line-height: 1.5;
    margin: 0 0 12px;
}

.cmi-popup__actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ebebeb;
}

/* .cmi-popup prefix raises specificity to 0,2,0 — beats Leaflet's .leaflet-container a at 0,1,1 */
.cmi-popup .cmi-popup__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 12px 20px;
    background-color: #ededed;
    color: #1b1a19;
    font-family: var(--font-body, "Myriad Pro", Arial, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.cmi-popup .cmi-popup__btn:hover {
    background-color: #dcdcdc;
    color: #1b1a19;
}

.cmi-popup .cmi-popup__btn i {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
