        /* --- Reset Styles (Crucial for iOS Safari) --- */
        input,
        textarea,
        select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            border-radius: 0;
            margin: 0;
            padding: 0;
            border: none;
            outline: none;
            font-family: inherit;
            font-size: inherit;
            background-color: transparent;
            box-sizing: border-box;
            /*-webkit-box-sizing: border-box;*/
            /*-moz-box-sizing: border-box;*/
        }

        #search-box {
            text-align: center;
        }

        #coordinate-toggle {
            text-align: left;
        }

        #grid-toggle {
            text-align: left;
        }

        #coordinate-toggle,
        #grid-toggle {
            display: flex; /* Включаем флексбоксы */
            align-items: center; /* Выравниваем элементы по вертикали */
        }

        #coordinate-toggle label,
        #grid-toggle label {
            margin-left: 10px; /* Добавляем отступ слева от текста */
        }

        /* Placeholder Styles */
        ::-webkit-input-placeholder {
            color: #999;
            opacity: 1;
        }
        ::-moz-placeholder {
            color: #999;
            opacity: 1;
        }
        :-ms-input-placeholder {
            color: #999;
        }
        :-moz-placeholder {
            color: #999;
            opacity: 1;
        }


        /* --- Your Existing Styles (with Adaptations) --- */
        body, html {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: 'Arial', sans-serif; /* Consistent font */
        }

        #map {
            height: 100vh;
            width: 100vw;
        }

        .hidden {
            display: none;
        }

        .reg_custom-text {
            display: block;
            position: absolute;
            top: 3%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: black;
            z-index: 1001;
        }

        .reg_custom-text h1 {
            white-space: nowrap;
            background: white;
            color: darkgreen;
        }

        .home-button {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: darkgreen;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            font-size: 16px;
            cursor: pointer;
            border-radius: 5px;
            border: none;
            z-index: 1111;
        }

        .home-button:hover {
            background-color: forestgreen;
            margin-right: 5px; /* Consider removing this, it might cause layout shifts */
        }

        #coordinate-toggle,
        #grid-toggle {
            position: absolute;
            left: 7px;
            background: white;
            padding: 5px;
            border-radius: 4px;
            box-shadow: 0 1px 5px rgba(0,0,0,0.65);
            z-index: 1000;
        }

        #coordinate-toggle {
          top: 54px;
        }

        #grid-toggle {
            top: 100px;
        }


        .myCluster .myClusterIcon {
            background: url("../../new_public/regions/data/images/point-8iHXUfO.svg") no-repeat center center;
            background-size: cover;
            width: 50px;
            height: 65px;
            color: black;
            text-align: center;
            font-weight: bold;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 33px;
            padding-right: 1px;
        }

        #open-form-button {
            position: absolute;
            top: 150px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 5px;
            min-width: 190px;
            text-align: center;
            text-decoration: none;
            padding: 7px 17px;
            border: none;
            color: white;
            background-color: darkgreen;
            z-index: 1000;
        }

        #open-form-button:hover {
            background-color: forestgreen;
             /* Consider removing padding changes on hover for better UX */
            padding: 7px 23px;
        }

        .popup-form {
            display: none; /* Hidden by default */
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 999; /* Lower than form-container */
            overflow: auto; /* Enable scrolling if content overflows */
        }

        .form-container {
            background-color: white;
            width: 80%; /* Responsive width */
            max-width: 300px; /* Maximum width */
            margin: 100px auto;
            padding: 20px;
            position: relative;
            z-index: 1000; /* Above the popup-form overlay */
            border-radius: 10px; /* Consistent rounded corners */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }


        #popup-form.active + .content-behind {
            pointer-events: none;
        }

        .close-button {
            font-size: 30px;
            color: red;
            position: absolute;
            top: 1px;
            right: 1px;
            cursor: pointer;
            z-index: 1001;
            background: none; /* Remove default button styles */
            border: none; /* Remove default button styles */
            padding: 0;     /* Remove default button styles */
        }
        .close-button:hover,
        .close-button:focus{
           color: darkred;
        }


        .menu-icon span {
            z-index: 1111;
            color: darkgreen;
            display: inline-block;
            width: 50px;
            text-align: center;
        }

        .menu-icon span:hover {
             /* Consider removing margin changes on hover for better UX */
            margin-right: 5px;
        }

        #sendvich {
            display: none;
            z-index: 1111;
        }

        #menu-items {
            display: none;
        }

        #menu-items.active {
            display: block;
            position: absolute;
            background-color: white;
            top: 50px;
            left: 0;
            width: 100%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        /* --- Form Styles (After Reset) --- */
        #data-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #333; /* Consistent color */
        }

        #data-form input[type="text"],
        #data-form input[type="tel"],
        #data-form input[type="email"],
        #data-form input[type="number"],
        #data-form textarea {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 16px;
        }

        #data-form textarea {
            height: 80px;  /*Appropriate textarea height */
            resize: vertical;
        }

        #data-form input[type="submit"] {
            background-color: #4CAF50;
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        #data-form input[type="submit"]:hover {
            background-color: #45a049;
        }


        /* Tooltip Styles */
        [data-tooltip] {
            position: relative;
        }

        [data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px;
            border-radius: 5px;
            white-space: nowrap;
            display: none;
            z-index: 1001;
        }

        [data-tooltip]:hover::after {
            display: block;
        }


        input[type="checkbox"] {
            -webkit-appearance: checkbox; /* для WebKit браузеров */
            -moz-appearance: checkbox;  /* для Firefox */
        }

        #coordinate-toggle input[type="checkbox"]:checked + label,
        #grid-toggle input[type="checkbox"]:checked + label {
            /*background-color: green;*/
            font-weight: bold;
        }

        .segment {
            padding: 8px 15px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            border-radius: 5px;
            transition: background 0.3s, color 0.3s;
        }

        /* Активная кнопка */
        .segment.active {
            background: #007bff; /* Насыщенный синий */
            color: white;
        }

        /* Неактивные кнопки */
        .segment.disabled {
            background: #BBBBBB; /* Светло-серый */
            color: #333333; /* Тёмный текст */
            cursor: not-allowed;
            opacity: 0.8;
        }

        /* Создаём псевдоэлемент для подсказки */
        .segment[data-tooltip] {
            position: relative;
        }

        /* Общие стили для tooltip */
        .segment[data-tooltip] {
            position: relative;
        }

        /* Показываем tooltip при наведении */
        .segment[data-tooltip]:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: -35px; /* Размещаем под кнопкой */
            left: 0.1%;
            transform: translateX(-50%); /* Центрируем */
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 6px 22px;
            border-radius: 5px;
            font-size: 12px;
            white-space: normal; /* Позволяет перенос текста */
            z-index: 9999;
            opacity: 1;
            visibility: visible;
            transition: opacity 0.2s ease-in-out;
            width: max-content; /* Автоматическая ширина */
            max-width: 200px; /* Ограничиваем максимальную ширину */
            text-align: center;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        }

        /* По умолчанию tooltip скрыт */
        .segment[data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: -35px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 6px 12px;
            border-radius: 5px;
            font-size: 12px;
            white-space: normal;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease-in-out;
            width: max-content;
            max-width: 200px;
            text-align: center;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        }


        @media screen and (min-width: 901px) {
            #menu-items {
                display: block;
                pointer-events: auto;
            }
            #sendvich {
                display: none;
            }
        }

        #menu-items {
            display: block;
        }

        #search {
            z-index: 1111;
        }

        #custom-tooltip {
            position: absolute;
            display: none;
            background-color: #ffcc00;
            color: #000;
            border-radius: 5px;
            padding: 5px;
            font-size: 12px;
            border: 1px solid #ccc;
        }


        /* Modal Styles */
        .modal_after {
            display: none; /* Hidden by default */
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        #myModal_after {
            display: none;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        .modal_after-content {
            position: relative;
            background-color: #fff;
            margin: 10% auto;
            padding: 20px;
            border: 1px solid #888;
            text-align: center;
            width: 80%;  /* Responsive width */
            max-width: 300px; /* Max width */
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            z-index: 1001;
        }

        .close_after {
            color: red;
            position: absolute;
            top: 0;
            right: 10px;
            font-size: 25px;
            font-weight: bold;
            background: none; /* Remove default button styles */
            border: none; /* Remove default button styles */
            padding: 0;     /* Remove default button styles */
        }

        .close_after:hover,
        .close_after:focus {
            color: darkred;
            text-decoration: none;
            cursor: pointer;
        }


        #search-button:hover {
            background: green; /* Более темный синий при наведении */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Добавляем немного объема */
        }

        #map { min-height: 500px; }
        .no-wrap { white-space: nowrap; }
        .loader {
            display: none;
            position: fixed;
            z-index: 9999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.7) url(' ../../../assets/images/loader.svg') no-repeat center center;
            background-size: 60px 60px;
        }

        /* Media Queries */
        @media screen and (max-width: 900px) {
            .reg_custom-text {
                font-size: 90%;
            }

            .menu-icon.active span{
                color: white;
            }

            #sendvich.active:hover{
                background-color: forestgreen;
            }

            #sendvich:hover{
                border: 2px solid darkgreen; /* Combined border properties */
            }

            #sendvich {
                display: block;
            }

            #menu-items {
                display: none;
            }

            .home-button {
                padding: 5px 10px;
                font-size: 12px;
            }
        }

      /* Media Queries for smaller screens */
      @media only screen and (min-width: 481px) and (max-width: 768px) {

          .segment {
              background: gray; /* Серый по умолчанию */
              color: white;
              cursor: pointer;
              border: none;
              padding: 5px 10px;
              margin: 2px;
              transition: background 0.3s;
          }

          .segment.active {
              background: lightblue; /* Светло-голубой для активных кнопок */
              color: black;
          }

          .segment.disabled {
              background: darkgray; /* Тёмно-серый для отключённых */
              color: white;
              cursor: not-allowed;
              opacity: 0.6;
          }


          .home-button{
              max-width: 40%;
              padding: 5px 10px;
              font-size: 10px;
          }

          .reg_custom-text {
              font-size: 70%;
          }
          .reg_custom-text h1 {
              /*padding-top: 25px;*/
              white-space: normal;
          }
      }

      @media only screen and (max-width: 480px) {


          .segment {
              background: gray; /* Серый по умолчанию */
              color: white;
              cursor: pointer;
              border: none;
              padding: 5px 10px;
              margin: 2px;
              transition: background 0.3s;
          }

          .segment.active {
              background: lightblue; /* Светло-голубой для активных кнопок */
              color: black;
          }

          .segment.disabled {
              background: darkgray; /* Тёмно-серый для отключённых */
              color: white;
              cursor: not-allowed;
              opacity: 0.6;
          }


          .home-button{
              max-width: 30%;
              font-size: 0;
          }
          .home-button::after {
              content: 'მთავარი';
              font-size: 10px;
          }
          .reg_custom-text {
              font-size: 60%;
          }
          .reg_custom-text h1 {
              white-space: normal;
          }

      }
      @media screen and (max-width: 340px) {

          .home-button{
              padding: 2px;
          }
      }

        /* General Hover Styles (more specific, less likely to conflict)*/
        #search-box:hover, #show-coordinates:hover, #show-grid:hover, #search:hover,
        #coordinate-toggle:hover, #grid-toggle:hover, #search-button:hover,
        #open-form-button:hover, .my_hover:hover {
            cursor: pointer;
        }
        

/* Курсор на карте региона: обычная стрелка; рука «хватаю» — только пока карту тянут; палец — над точками с данными */
.leaflet-container,
.leaflet-grab { cursor: default; }
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-container { cursor: grabbing; }
.leaflet-marker-icon.leaflet-interactive { cursor: pointer; }
.click-hint.leaflet-tooltip {
    font: 600 0.95rem/1.2 system-ui, sans-serif;
    color: #1f3a12;
    background: #fff8d6;
    border: 2px solid #4a7a2a;
    border-radius: 0.4rem;
    padding: 0.3rem 0.6rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
