

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#map {
    width: 100vw; 
    height: 100vh; 
}
.bg-image-vertical {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    }
    
    @media (min-width: 1025px) {
    .h-custom-2 {
        height: 100%;
    }
}

.btn-light {
    color: #850e71;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.bbox-form {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 5px #999;
    padding: 10px 10px;
    font-size: 12px;
    position: absolute;
    top: 1px;
    right: 3px;
    transform: translateX(-17%);
    width: 185px;
    z-index: 1000;
}

.hidden {
    display: none;
}

.leaflet-control-bbox {
    position: relative;
}

/*Datasource form*/
.datasource-form {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    border: 1px solid #777;
    width: 270px;
    position: absolute;
    transform: translateX(-100%);
    font-family: Arial, sans-serif;
}
.hidden { display: none; }

/* Data_source layer control button */

.leaflet-control-datasource {
	border: 2px solid #777;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    width: 36px;
    height: 36px;
    line-height: 36px;
}

.leaflet-control-datasource-button {
    background: rgba(255, 255, 255, 0.8);
    width: 34px;
    height: 34px;
}

.leaflet-control-datasource-button img {
    width: 32px; 
    height: 32px;
    margin-left: 1px;
    margin-top: 1px;
} 

.leaflet-control-datasource-button:hover,
.leaflet-control-datasource-button:focus {
    background-color: #f4f4f4;
}

.leaflet-control-datasource-button:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: none;
}
.leaflet-control-datasource-button:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom: none;
}
.datasource-label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}


  /* Кнопка формы */
.datasource-button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    background: #0078d4; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.datasource-button:hover {
    background: #005fa3; 
}

.datasource-button:active {
    transform: scale(0.98); 
}

.datasource-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
/* Стили для уведомления о загрузке */
#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 10000;
    display: none;
}

#loading-indicator::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Стили для меток судов c бэкграундом */
/* .plain-text-label {
    background: rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    border-radius: 3px !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 2px 6px !important;
    text-shadow: 2px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
} */

/* Стили для меток судов - только текст */
.plain-text-label {
    background: transparent !important; /* прозрачный фон */
    border: none !important; /* границы не нужны */
    border-radius: 0 !important; 
    color: white !important; /* Цвет текста */
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 2px 6px !important; /* Можно оставить или уменьшить, если не нужен отступ вокруг "невидимой" метки */
    
    /* эффект черной окантовки через тени*/
    text-shadow:
        -1px -1px 0 #000,  /* Верх-лево */
         1px -1px 0 #000,  /* Верх-право */
        -1px  1px 0 #000,  /* Низ-лево */
         1px  1px 0 #000,  /* Низ-право */
        -1px  0   0 #000,  /* Лево */
         1px  0   0 #000,  /* Право */
         0   -1px 0 #000,  /* Верх */
         0    1px 0 #000;  /* Низ */
         /* Тень для размытия */
         /* Например: 0 0 2px #000; */

    box-shadow: none !important; /* Убираем тень от блока метки */
    white-space: nowrap !important;
    pointer-events: none !important; /* Оставляем, чтобы метка не мешала взаимодействию с картой */
}

.plain-text-label::before {
    display: none !important; /* убирает стандартный "хвостик" метки */
}


/* Стили для попапов судов */
.vessel-popup .leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

.vessel-popup .leaflet-popup-content img {
    border-radius: 4px;
    margin-bottom: 8px;
}

.vessel-popup .leaflet-popup-content a {
    color: #0078A8;
    text-decoration: none;
}

.vessel-popup .leaflet-popup-content a:hover {
    text-decoration: underline;
}


/* Анимация для маркеров судов */
.leaflet-marker-icon {
    transition: opacity 0.3s ease-in-out;
}

/* Стили для треков судов */
.vessel-track-line {
    stroke-dasharray: 5, 5;
    animation: dash 1s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}