.map-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }

.map-modal-content {
            background-color: #fff;
            margin: 5% auto;
            padding: 10px;
            border: 1px solid #888;
            width: 90%;
            max-width: 600px;
            position: relative;
            border-radius: 8px;
        }

.close-map {
            z-index: 999; /* Вище за leaflet */
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

.close-map:hover {
            color: black;
        }

        #leafletMap {
            width: 100%;
            height: 400px;
        }

.price-label {
    position: relative; /* щоб позиціонувати псевдоелемент */
    background-color: white;
    border: 2px solid orange;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: bold;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* Створюємо хвостик стрілкою */
.price-label::after {
    content: "";
    position: absolute;
    bottom: -8px;  /* розміщення під прямокутником */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white; /* колір фону прямокутника */
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1)); /* тінь хвостика */
    z-index: 1;
}

/* Обводка для хвостика (кордон) */
/* створимо окремий псевдоелемент для обводки хвостика */
.price-label::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid orange; /* колір обводки */
    z-index: 0;
}
.leaflet-popup-content {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #333;
}

 .btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3f51b5;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(63, 81, 181, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
  }

  .btn-map:hover {
    background-color: #303f9f;
    box-shadow: 0 6px 10px rgba(48, 63, 159, 0.6);
  }

  .btn-map:active {
    background-color: #283593;
    box-shadow: 0 3px 5px rgba(40, 53, 147, 0.8);
  }

  .icon-map {
    display: block;
    fill: currentColor;
  }