/* Загальні стилі */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Заголовок */
.header {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000; /* Завжди над картою */
    background-color: rgba(0, 0, 0, 0.7); /* Напівпрозорий чорний фон */
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header h1 {
    margin: 0;
    font-size: 14px; /* Менший шрифт */
}

/* Стиль для блоку помилок */
.error {
    color: red;
    text-align: center;
    font-size: 1.2em;
    margin-top: 10px;
}

/* Карта */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

/* Стиль маркера */
.count-marker {
    background-color: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.time-marker {
    font-size: 10px;
    font-weight: normal;
    margin-top: 4px;
    color: #f5f5f5;
}

/* Стилі для модального вікна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left; /* Вирівнювання тексту по лівому краю */
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: normal; /* Не жирний текст */
    line-height: 1.2; /* Інтерліньяж 120% */
}

.modal-close {
    margin-top: 10px;
    padding: 5px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-close:hover {
    background-color: #0056b3;
}

.modal-link {
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

.modal-link:hover {
    text-decoration: underline;
}
.feedback-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #2F4F4F; /* Темно-зелений */
    color: white;
    padding: 10px 15px;
    font-size: 12px;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    z-index: 1000; /* Завжди над картою */
}

.feedback-button:hover {
    background-color: #1E3C3C; /* Темніший зелений при наведенні */
}

#status-message {
    margin-top: 10px;
    background-color: #2F4F4F; /* Темно-зелений */
    color: white;
    font-size: 14px;
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
    display: none; /* Початково прихований */
}

#status-message.visible {
    display: block; /* Показуємо елемент */
}
