.loader {
  position: relative;
  width: 100px;
  height: 100px;
  left:50px;
  top:50px;
}

.dot {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #0078d7;
  border-radius: 50%;
  opacity: 0;
  animation: orbit 1.2s linear infinite;
}

/* Распределяем точки равномерно по кругу, но теперь с отрицательными углами */
.dot:nth-child(1) { transform: rotate(0deg) translate(40px); }
.dot:nth-child(2) { transform: rotate(-45deg) translate(40px); }
.dot:nth-child(3) { transform: rotate(-90deg) translate(40px); }
.dot:nth-child(4) { transform: rotate(-135deg) translate(40px); }
.dot:nth-child(5) { transform: rotate(-180deg) translate(40px); }
.dot:nth-child(6) { transform: rotate(-225deg) translate(40px); }
.dot:nth-child(7) { transform: rotate(-270deg) translate(40px); }
.dot:nth-child(8) { transform: rotate(-315deg) translate(40px); }

@keyframes orbit {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.15s;
}
.dot:nth-child(3) {
  animation-delay: 0.3s;
}
.dot:nth-child(4) {
  animation-delay: 0.45s;
}
.dot:nth-child(5) {
  animation-delay: 0.6s;
}
.dot:nth-child(6) {
  animation-delay: 0.75s;
}
.dot:nth-child(7) {
  animation-delay: 0.9s;
}
.dot:nth-child(8) {
  animation-delay: 1.05s;
}




body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.map_full {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.block_upravleniya {
  position: fixed;
  top:100px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.7);
  width: 100px;
}

.info {
  position: fixed;
  bottom:30px;
  z-index: 2;
}

.block_footer {
  position: fixed;
  bottom:0px;
  left: 10px;
  right: 10px;
  z-index: 3;
  background: rgb(255,255,255,0.68);
  padding: 10px 15px;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.3s ease, height 0.3s ease;
  height: auto; /* Изначальная высота */
}
.block_footer.hide {
  transform: translateY(calc(100% - 30px)); /* Уезжает вниз, оставаясь на 30px */
  /*height: 30px; /* Высота, когда блок "сворачивается" */
  /*padding: 5px 15px; /* Уменьшаем padding */
  border-radius: 10px; /* Сохраняем закругление */
}
.block_footer .row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.block_footer .row p {
  margin: 0;
  padding: 0;
  width: 100%;
}
.block_footer .button {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.block_footer .button .icon_but {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  width: 40px;
  height: 40px;
}
.button span {
  color: #999;
}

.hide-show {
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: relative;
  margin: -10px auto 0 auto;

}
.hide-show:before {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  border-radius: 5px;
  background: #999;
  position: absolute;
  top:49%;
}
.modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  width: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  transition: all 0.3s;
  z-index: 2;
  overflow: hidden;

}
.modal.active {
  width: 90vw;
  background: #fff;
  opacity: 1;
  z-index: 3;
}
.modal>div {
  padding: 20px;
}
.modal .closemodal  {
  background: transparent;
  border: none;
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.modal .closemodal:before, .modal .closemodal:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 33px;
  width: 2px;
  background-color: #000000;
}
.modal .closemodal:before {
  transform: rotate(45deg);
}
.modal .closemodal:after {
  transform: rotate(-45deg);
}



#ruler-icon.active {
    border: 2px solid #ff0000;
}
.measurement {
  position: absolute; 
  top: 160px; 
  left: 10px; 
  z-index: 2;
  background: #fff;
  padding: 5px;
  border: 2px solid #ccc;
  border-radius: 4px;
  line-height: 1;
}
.measurement img {
  cursor: pointer; 
  width: 20px;
}
.measurement:hover {
  background: #f4f4f4;
}
#user-info {
  position: absolute;
  top:0;
  left: 60px;
  right: 60px;
  width: fit-content;
  margin: 0 auto;
  z-index: 1;
  background: #fff;
  text-align: center;
  padding: 5px 0 5px 0;
  border-radius: 0 0 10px 10px;
}

.copyk {
  background: url(/icons/icon_copy.png);
  background-repeat: no-repeat;
  background-size: contain;
  border: none;
  text-indent: -9999px;
  height: 20px;
  width: 15px;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
  border-radius:0;
}

.contenthide {
  display: none;
}
.contenthide.active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nomer_point {
  color: #ccc;
  font-size: 12px;
}
.mark_description {
  font-size: 130%;
  margin: 0 0 5px 0;
}
.mark_description h2 {
  margin:5px 0 0 0;
  padding:0;
  font-size: 18px;
}
.mark_coordinats {
  margin: 7px 0 7px 0;
}

.savecurrentlocation {
    display: block;
    width: max-content;
    padding: 10px 20px;
    margin: 7px 0 7px 0;
    border-radius: 10px;
    border: none;
    background: #fecc00;
    font-size: 16px;
    position: relative;
    top: 0px;
    transition: all 0.3s;
    cursor: pointer;
}
.savecurrentlocation:hover {
  top: -3px;
  background: #ff9c00;
}

.modal-comment {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-comment .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    max-width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
}

.modal-comment .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 0px;
}

.modal-comment .close:hover,
.modal-comment .close:focus {
    color: black;
    text-decoration: none;
}
.modal-comment #save-comment-button,
.modal-comment #alert-ok-button {
  width: max-content;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #fecc00;
  font-size: 16px;
  position: relative;
  top: 0px;
  transition: all 0.3s;
  cursor: pointer;
}
.modal-comment #save-comment-button:hover {
  top: -3px;
  background: #ff9c00;
}
.savetextarea {
  width: 90%;
  max-width: 90%;
}

.but-pwa {
  /*position: absolute;
  bottom: 10px;
  right: 0;
  z-index: 10;*/
}
.online {
  padding: 0 10px 0 10px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.online.off:before {
  content: "";
  display: block;
  position: absolute;
  width: 23px;
  height: 2px;
  background: #ff0000;
  top: 7px;
  left: 8px;
  transform: rotate(-45deg);
}
.save-point {
  margin: 7px 0 0 0;
  padding: 3px 5px;
  background: #ffe95f;
  border: 1px solid #9ca100;
  border-radius: 5px;
}
.antena-link {
  display: inline-block;
  background: url(/icons/icon_antena.png);
  background-repeat: no-repeat;
  background-position: 0px 0px;
  background-size: contain;
  width: 20px;
  height: 20px;
}
.online.off .antena-link {
  opacity: 0.3;
}
.delete-point {
  border: none;
  background: url(/icons/icon-delete.png);
  background-repeat: no-repeat;
  background-position: 0px 0px;
  background-size: contain;
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  text-indent: -9999px;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
  border-radius:0;
}
.edit-desc {
  border: none;
  background: url(/icons/icon-edit.png);
  background-repeat: no-repeat;
  background-position: 0px 0px;
  background-size: contain;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 40px;
  right: 10px;
  text-indent: -9999px;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
  border-radius:0;
}
#search-coordinates-btn {
  background: url(/icons/icon-search.png);
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: center center;
  background-size: 20px 20px;
  padding: 0;
  border: 2px solid #ccc;
  border-radius: 4px;
  line-height: 1;
  text-indent: -9999px;
  width: 34px;
  height: 34px;
}
.download-gpx,
.share-point {
  margin: 3px 0;
  background: #daffda;
  border: 1px solid #a7ffa7;
  border-radius: 3px;
  padding: 3px 7px;
}
.download-gpx {
  margin-top:5px;
}

.direction-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.direction-icon .arrow {
    position: absolute;
    top: 5px;
    left: 9px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 30px solid red; /* Цвет стрелки */
    transform-origin: 50% 15px; /* Точка вращения */*/
    transform: rotate(0deg); /* Начальное направление */
    transition: transform 0.2s ease-out; /* Плавное вращение */
}
/* Фон загрузочного экрана */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none; /* Скрыто по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Центрированное содержимое */
.loading-content {
    text-align: center;
    color: white;
    font-size: 24px;
}

/* Иконка спутника */
.satellite-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: satellite-spin 2s linear infinite;
}

/* Анимация вращения иконки */
@keyframes satellite-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Анимация точек */
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #b4b905;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

.desktop-message {
  color:#333;
}

button {
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #b7b7b7;
    background: #f5f5f5;
    font-size: 14px;
    color: #333;
    box-shadow: 0 0 5px 0px rgb(204 204 204 / 55%);
}
button {
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #b7b7b7;
    background: #f5f5f5;
    font-size: 14px;
    color: #333;
    box-shadow: 0 0 5px 0px rgb(204 204 204 / 55%);
    cursor: pointer;
}
button:hover {
  box-shadow: 0 0 10px 1px rgb(204 204 204 / 55%);
}


@keyframes spin { to { transform: rotate(360deg); } }


/* =========================================
   Модальное окно: Солнце / Луна / Погода
   Файл: astro-modal.css
   ========================================= */

/* 🔹 Оверлей и контейнер */
.astro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.astro-modal.active {
    display: flex;
}

.astro-modal__content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* 🔹 Кнопка закрытия */
.astro-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    background: none;
    border: none;
    padding: 4px;
}

.astro-modal__close:hover {
    color: #000;
}

/* 🔹 Заголовок */
.astro-modal__title {
    margin: 0 0 12px;
    font-size: 1.25em;
    font-weight: 600;
}

.astro-modal__header {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.astro-modal__tz {
    background: #e0f7fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-left: 6px;
    white-space: nowrap;
}

/* 🔹 Лоадер */
.astro-modal__loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.astro-modal__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top-color: #ff9800;
    border-radius: 50%;
    animation: astro-spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes astro-spin {
    to { transform: rotate(360deg); }
}

.astro-modal__loading-text {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* 🔹 Результаты */
.astro-modal__results {
    display: none;
}

/* 🔹 Секции (Солнце, Луна, Погода) */
.astro-section {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.astro-section__title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1em;
}

.astro-section--sun {
    background: #fff8e1;
}

.astro-section--sun .astro-section__title {
    color: #e65100;
}

.astro-section--moon {
    background: #e3f2fd;
}

.astro-section--moon .astro-section__title {
    color: #1565c0;
}

.astro-section--weather {
    background: #f1f8e9;
    margin-top: 16px;
}

.astro-section--weather .astro-section__title {
    color: #33691e;
}

/* 🔹 Таблицы данных */
.astro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.astro-table td {
    padding: 4px 0;
}

.astro-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.astro-table td:first-child {
    color: #555;
}

/* 🔹 Цветовые акценты для значений */
.astro-value--green { color: #2e7d32; }
.astro-value--blue { color: #1976d2; }
.astro-value--brown { color: #5d4037; }
.astro-value--gray { color: #757575; }
.astro-value--orange { color: #ef6c00; }
.astro-value--warning { color: #f57f17; }

/* 🔹 Детали погоды (сетка) */
.astro-weather__details {
    font-size: 0.85em;
    color: #555;
    margin-top: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
}
#w-current {
 font-size:1.5em; 
 font-weight:600;  
 margin-bottom:6px;
}
#w-current span {
  font-size:2.5em; 
}

/* 🔹 Прогноз на 10 дней (горизонтальный скролл) */
.astro-forecast {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.astro-forecast::-webkit-scrollbar {
    height: 4px;
}

.astro-forecast::-webkit-scrollbar-track {
    background: transparent;
}

.astro-forecast::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.astro-forecast__day {
    min-width: 70px;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    font-size: 0.8em;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.astro-forecast__date {
    font-weight: 600;
    margin-bottom: 2px;
}

.astro-forecast__icon {
    font-size: 2em;
    margin: 4px 0;
    line-height: 1;
}

.astro-forecast__temp {
    color: #333;
    margin: 2px 0;
}

.astro-forecast__precip {
    color: #1565c0;
    font-size: 0.9em;
}

.astro-forecast__wind {
    color: #5d4037;
    font-size: 0.9em;
}

/* 🔹 Заметки и ошибки */
.astro-modal__note {
    font-size: 0.75em;
    color: #888;
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

.astro-modal__error {
    display: none;
    color: #d32f2f;
    background: #fff0f0;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-top: 10px;
}

.astro-modal__error.active {
    display: block;
}

/* 🔹 Адаптив для мобильных */
@media (max-width: 480px) {
    .astro-modal__content {
        padding: 16px;
        width: 95%;
    }
    
    .astro-weather__details {
        grid-template-columns: 1fr;
    }
    
    .astro-forecast__day {
        min-width: 60px;
        padding: 4px;
    }
    
    .astro-forecast__icon {
        font-size: 2em;
    }
}

/* 🔹 Утилиты */
.hidden { display: none !important; }
.visible { display: block !important; }
.flex-visible { display: flex !important; }


/* 🔹 Блок трендов */
.astro-section--trends {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

/* Цветовые индикаторы статусов */
.trend-status--stable { color: #90a4ae; }  /* серый */
.trend-status--good { color: #43a047; }    /* зелёный */
.trend-status--warning { color: #fb8c00; } /* оранжевый */
.trend-status--bad { color: #e53935; }     /* красный */

/* Анимация стрелок */
.trend-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.trend-arrow.rising { animation: pulse-up 2s infinite; }
.trend-arrow.falling { animation: pulse-down 2s infinite; }

@keyframes pulse-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@keyframes pulse-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}

/* Рекомендации */
#rec-fishing, #rec-hunting {
    font-weight: 500;
    transition: background 0.3s ease;
}
#rec-fishing.good { background: #bbdefb !important; }
#rec-fishing.bad { background: #ffcdd2 !important; }
#rec-hunting.good { background: #c8e6c9 !important; }
#rec-hunting.bad { background: #ffcdd2 !important; }