@font-face {
   font-family: 'Inter';
   src: url('/themes/beltelecom/assets/webfonts/iJWKBXyIfDnIV7nBrXw.woff2') format('woff2');
   font-weight: 300 500;
   font-style: normal;
   font-display: swap;
   unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url('/themes/beltelecom/assets/webfonts/iJWKBXyIfDnIV7nFrXyi0A.woff2') format('woff2');
    font-weight: 300 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    src: url('/themes/beltelecom/assets/webfonts/iJWKBXyIfDnIV7nMrXyi0A.woff2') format('woff2');
    font-weight: 300 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Inter';
    src: url('/themes/beltelecom/assets/webfonts/iJWEBXyIfDnIV7nEnX661A.woff2') format('woff2');
    font-weight: 400 500;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url('/themes/beltelecom/assets/webfonts/iJWEBXyIfDnIV7nEnXq61F3f.woff2') format('woff2');
    font-weight: 400 500;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    src: url('/themes/beltelecom/assets/webfonts/iJWEBXyIfDnIV7nEnXO61F3f.woff2') format('woff2');
    font-weight: 400 500;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

       .notification {
            position: fixed;
            top: 150px;
            left: 50px;
            max-width: 400px;
            background: #ffcb1f;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            z-index: 1001;
            font-family: Arial, sans-serif;
            font-size: 14px;
            line-height: 1.4;
            color: #000000;
        }

        .notification.hidden {
            display: none;
        }

        .notification-content {
            margin-right: 30px;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            color: #856404;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s;
        }

        .close-btn:hover {
            background-color: rgba(133, 100, 4, 0.1);
        }

        /* Анимация появления */
        @keyframes slideIn {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .notification {
            animation: slideIn 0.3s ease-out;
        }



/* Leaflet base styles */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane>svg,
.leaflet-pane>canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
   position: absolute;
   left: 0;
   top: 0
}

.leaflet-container {
   overflow: hidden
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
   -webkit-user-drag: none
}

.leaflet-tile::selection {
   background: transparent
}

.leaflet-safari .leaflet-tile {
   image-rendering: -webkit-optimize-contrast
}

.leaflet-safari .leaflet-tile-container {
   width: 1600px;
   height: 1600px;
   -webkit-transform-origin: 0 0;
   transform-origin: 0 0
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
   display: block
}

.leaflet-container .leaflet-overlay-pane svg,
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
   max-width: none !important;
   max-height: none !important
}

.leaflet-container.leaflet-touch-zoom {
   -ms-touch-action: pan-x pan-y;
   touch-action: pan-x pan-y
}

.leaflet-container.leaflet-touch-drag {
   -ms-touch-action: pinch-zoom;
   touch-action: none;
   touch-action: pinch-zoom
}

.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
   -ms-touch-action: none;
   touch-action: none
}

.leaflet-container {
   -webkit-tap-highlight-color: transparent
}

.leaflet-container a {
   -webkit-tap-highlight-color: rgba(51, 181, 229, .4)
}

.leaflet-tile {
   filter: inherit;
   visibility: hidden
}

.leaflet-tile-loaded {
   visibility: inherit
}

.leaflet-zoom-box {
   width: 0;
   height: 0;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
   z-index: 800
}

.leaflet-overlay-pane svg {
   -moz-user-select: none
}

.leaflet-pane {
   z-index: 400
}

.leaflet-tile-pane {
   z-index: 200
}

.leaflet-overlay-pane {
   z-index: 400
}

.leaflet-shadow-pane {
   z-index: 500
}

.leaflet-marker-pane {
   z-index: 600
}

.leaflet-tooltip-pane {
   z-index: 650
}

.leaflet-popup-pane {
   z-index: 700
}

.leaflet-map-pane canvas {
   z-index: 100
}

.leaflet-map-pane svg {
   z-index: 200
}

.leaflet-vml-shape {
   width: 1px;
   height: 1px
}

.lvml {
   behavior: url(#default#VML);
   display: inline-block;
   position: absolute
}

.leaflet-control {
   position: relative;
   z-index: 800;
   pointer-events: visiblePainted;
   pointer-events: auto
}

.leaflet-top,
.leaflet-bottom {
   position: absolute;
   z-index: 1000;
   pointer-events: none
}

.leaflet-top {
   top: 0
}

.leaflet-right {
   right: 0
}

.leaflet-bottom {
   bottom: 0
}

.leaflet-left {
   left: 0
}

.leaflet-control {
   float: left;
   clear: both
}

.leaflet-right .leaflet-control {
   float: right
}

.leaflet-top .leaflet-control {
   margin-top: 50px
}

.leaflet-bottom .leaflet-control {
   margin-bottom: 10px
}

.leaflet-left .leaflet-control {
   margin-left: 10px
}

.leaflet-right .leaflet-control {
   margin-right: 10px
}

.leaflet-fade-anim .leaflet-tile {
   will-change: opacity
}

.leaflet-fade-anim .leaflet-popup {
   opacity: 0;
   -webkit-transition: opacity .2s linear;
   -moz-transition: opacity .2s linear;
   transition: opacity .2s linear
}

.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
   opacity: 1
}

.leaflet-zoom-animated {
   -webkit-transform-origin: 0 0;
   -ms-transform-origin: 0 0;
   transform-origin: 0 0
}

.leaflet-zoom-anim .leaflet-zoom-animated {
   will-change: transform
}

.leaflet-zoom-anim .leaflet-zoom-animated {
   -webkit-transition: -webkit-transform .25s cubic-bezier(0, 0, .25, 1);
   -moz-transition: -moz-transform .25s cubic-bezier(0, 0, .25, 1);
   transition: transform .25s cubic-bezier(0, 0, .25, 1)
}

.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
   -webkit-transition: none;
   -moz-transition: none;
   transition: none
}

.leaflet-zoom-anim .leaflet-zoom-hide {
   visibility: hidden
}

.leaflet-interactive {
   cursor: pointer
}

.leaflet-grab {
   cursor: -webkit-grab;
   cursor: -moz-grab;
   cursor: grab
}

.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
   cursor: crosshair
}

.leaflet-popup-pane,
.leaflet-control {
   cursor: auto
}

.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
   cursor: move;
   cursor: -webkit-grabbing;
   cursor: -moz-grabbing;
   cursor: grabbing
}

.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane>svg path,
.leaflet-tile-container {
   pointer-events: none
}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane>svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
   pointer-events: visiblePainted;
   pointer-events: auto
}

.leaflet-container {
   background: #ddd;
   outline: 0
}

.leaflet-container a {
   color: #0078A8
}

.leaflet-container a.leaflet-active {
   outline: 2px solid orange
}

.leaflet-zoom-box {
   border: 2px dotted #38f;
   background: rgba(255, 255, 255, .5)
}

.leaflet-container {
   font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif
}

.leaflet-bar {
   box-shadow: 0 1px 5px rgba(0, 0, 0, .65);
   border-radius: 4px
}

.leaflet-bar a,
.leaflet-bar a:hover {
   background-color: #fff;
   border-bottom: 1px solid #ccc;
   width: 26px;
   height: 26px;
   line-height: 26px;
   display: block;
   text-align: center;
   text-decoration: none;
   color: black
}

.leaflet-bar a,
.leaflet-control-layers-toggle {
   background-position: 50% 50%;
   background-repeat: no-repeat;
   display: block
}

.leaflet-bar a:hover {
   background-color: #f4f4f4
}

.leaflet-bar a:first-child {
   border-top-left-radius: 4px;
   border-top-right-radius: 4px
}

.leaflet-bar a:last-child {
   border-bottom-left-radius: 4px;
   border-bottom-right-radius: 4px;
   border-bottom: none
}

.leaflet-bar a.leaflet-disabled {
   cursor: default;
   background-color: #f4f4f4;
   color: #bbb
}

.leaflet-touch .leaflet-bar a {
   width: 30px;
   height: 30px;
   line-height: 30px
}

.leaflet-touch .leaflet-bar a:first-child {
   border-top-left-radius: 2px;
   border-top-right-radius: 2px
}

.leaflet-touch .leaflet-bar a:last-child {
   border-bottom-left-radius: 2px;
   border-bottom-right-radius: 2px
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
   font: bold 18px 'Lucida Console', Monaco, monospace;
   text-indent: 1px
}

.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
   font-size: 22px
}

.leaflet-control-layers {
   box-shadow: 0 1px 5px rgba(0, 0, 0, .4);
   background: #fff;
   border-radius: 5px
}

.leaflet-control-layers-toggle {
   background-image: url(images/layers.png);
   width: 36px;
   height: 36px
}

.leaflet-retina .leaflet-control-layers-toggle {
   background-image: url(images/layers-2x.png);
   background-size: 26px 26px
}

.leaflet-touch .leaflet-control-layers-toggle {
   width: 44px;
   height: 44px
}

.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
   display: none
}

.leaflet-control-layers-expanded .leaflet-control-layers-list {
   display: block;
   position: relative
}

.leaflet-control-layers-expanded {
   padding: 6px 10px 6px 6px;
   color: #333;
   background: #fff
}

.leaflet-control-layers-scrollbar {
   overflow-y: scroll;
   overflow-x: hidden;
   padding-right: 5px
}

.leaflet-control-layers-selector {
   margin-top: 2px;
   position: relative;
   top: 1px
}

.leaflet-control-layers label {
   display: block
}

.leaflet-control-layers-separator {
   height: 0;
   border-top: 1px solid #ddd;
   margin: 5px -10px 5px -6px
}

.leaflet-default-icon-path {
   background-image: url(images/marker-icon.png)
}

.leaflet-container .leaflet-control-attribution {
   background: #fff;
   background: rgba(255, 255, 255, .7);
   margin: 0
}

.leaflet-control-attribution,
.leaflet-control-scale-line {
   padding: 0 5px;
   color: #333
}

.leaflet-control-attribution a {
   text-decoration: none
}

.leaflet-control-attribution a:hover {
   text-decoration: underline
}

.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
   font-size: 11px
}

.leaflet-left .leaflet-control-scale {
   margin-left: 5px
}

.leaflet-bottom .leaflet-control-scale {
   margin-bottom: 5px
}

.leaflet-control-scale-line {
   border: 2px solid #777;
   border-top: none;
   line-height: 1.1;
   padding: 2px 5px 1px;
   font-size: 11px;
   white-space: nowrap;
   overflow: hidden;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
   background: #fff;
   background: rgba(255, 255, 255, .5)
}

.leaflet-control-scale-line:not(:first-child) {
   border-top: 2px solid #777;
   border-bottom: none;
   margin-top: -2px
}

.leaflet-control-scale-line:not(:first-child):not(:last-child) {
   border-bottom: 2px solid #777
}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
   box-shadow: none
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
   border: 2px solid rgba(0, 0, 0, .2);
   background-clip: padding-box
}

.leaflet-popup {
   position: absolute;
   text-align: center;
   margin-bottom: 20px
}

.leaflet-popup-content-wrapper {
   padding: 1px;
   text-align: left;
   border-radius: 12px
}

.leaflet-popup-content {
   margin: 13px 19px;
   line-height: 1.4
}

.leaflet-popup-content p {
   margin: 18px 0
}

.leaflet-popup-tip-container {
   width: 40px;
   height: 20px;
   position: absolute;
   left: 50%;
   margin-left: -20px;
   overflow: hidden;
   pointer-events: none
}

.leaflet-popup-tip {
   width: 17px;
   height: 17px;
   padding: 1px;
   margin: -10px auto 0;
   -webkit-transform: rotate(45deg);
   -moz-transform: rotate(45deg);
   -ms-transform: rotate(45deg);
   transform: rotate(45deg)
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
   background: white;
   color: #333;
   box-shadow: 0 3px 14px rgba(0, 0, 0, .4)
}

.leaflet-container a.leaflet-popup-close-button {
   position: absolute;
   top: 0;
   right: 0;
   padding: 4px 4px 0 0;
   border: none;
   text-align: center;
   width: 18px;
   height: 14px;
   font: 16px/14px Tahoma, Verdana, sans-serif;
   color: #c3c3c3;
   text-decoration: none;
   font-weight: bold;
   background: transparent
}

.leaflet-container a.leaflet-popup-close-button:hover {
   color: #999
}

.leaflet-popup-scrolled {
   overflow: auto;
   border-bottom: 1px solid #ddd;
   border-top: 1px solid #ddd
}

.leaflet-oldie .leaflet-popup-content-wrapper {
   zoom: 1
}

.leaflet-oldie .leaflet-popup-tip {
   width: 24px;
   margin: 0 auto;
   -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)";
   filter: progid:DXImageTransform.Microsoft.Matrix(M11=.70710678, M12=.70710678, M21=-.70710678, M22=.70710678)
}

.leaflet-oldie .leaflet-popup-tip-container {
   margin-top: -1px
}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
   border: 1px solid #999
}

.leaflet-div-icon {
   background: #fff;
   border: 1px solid #666
}

.leaflet-tooltip {
   position: absolute;
   padding: 6px;
   background-color: #fff;
   border: 1px solid #fff;
   border-radius: 3px;
   color: #222;
   white-space: nowrap;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
   pointer-events: none;
   box-shadow: 0 1px 3px rgba(0, 0, 0, .4)
}

.leaflet-tooltip.leaflet-clickable {
   cursor: pointer;
   pointer-events: auto
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
   position: absolute;
   pointer-events: none;
   border: 6px solid transparent;
   background: transparent;
   content: ""
}

.leaflet-tooltip-bottom {
   margin-top: 6px
}

.leaflet-tooltip-top {
   margin-top: -6px
}

.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
   left: 50%;
   margin-left: -6px
}

.leaflet-tooltip-top:before {
   bottom: 0;
   margin-bottom: -12px;
   border-top-color: #fff
}

.leaflet-tooltip-bottom:before {
   top: 0;
   margin-top: -12px;
   margin-left: -6px;
   border-bottom-color: #fff
}

.leaflet-tooltip-left {
   margin-left: -6px
}

.leaflet-tooltip-right {
   margin-left: 6px
}

.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
   top: 50%;
   margin-top: -6px
}

.leaflet-tooltip-left:before {
   right: 0;
   margin-right: -12px;
   border-left-color: #fff
}

.leaflet-tooltip-right:before {
   left: 0;
   margin-left: -12px;
   border-right-color: #fff
}

/* Custom application styles */
:root {
   --primary-color: #663479;
   --secondary-color: #28a8b7;
   --accent-color: #8e44ad;
   --light-purple: #9b59b6;
   --light-cyan: #5dade2;
   --white: #ffffff;
   --light-gray: #f8f9fa;
   --dark-gray: #2c3e50;
   --shadow: 0 4px 20px rgba(102, 52, 121, 0.15);
   --shadow-hover: 0 8px 30px rgba(102, 52, 121, 0.25);
   --border-radius: 12px;
   --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
   box-sizing: border-box;
}

body {
   width: 100%;
   height: 100vh;
   padding: 0;
   margin: 0;
   font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   font-size: 14px;
   line-height: 1.6;
   background: linear-gradient(135deg, var(--light-gray) 0%, #e8f4f8 100%);
   overflow: hidden;
}

.header {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   z-index: 1000;
   background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
   box-shadow: var(--shadow);
   backdrop-filter: blur(10px);
   border-bottom: 3px solid var(--secondary-color);
}

.header__title {
   text-align: center;
   font-size: 24px;
   font-weight: 500;
   margin: 0;
   padding: 20px 20px 10px 20px;
   color: var(--white);
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
   letter-spacing: 1.0px;
}

.search-container {
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 0 20px 20px 20px;
   gap: 10px;
   position: relative;
   z-index: 1001;
}

.search-input {
   flex: 1;
   max-width: 400px;
   padding: 12px 16px;
   border: 2px solid rgba(255, 255, 255, 0.3);
   border-radius: var(--border-radius);
   background: rgba(255, 255, 255, 0.9);
   color: var(--dark-gray);
   font-size: 14px;
   font-weight: 500;
   transition: var(--transition);
   backdrop-filter: blur(10px);
}

.search-input:focus {
   outline: none;
   border-color: var(--secondary-color);
   background: var(--white);
   box-shadow: 0 0 0 3px rgba(40, 168, 183, 0.2);
}

.search-input::placeholder {
   color: rgba(44, 62, 80, 0.6);
}

.search-button {
   padding: 12px 24px;
   background: var(--secondary-color);
   color: var(--white);
   border: none;
   border-radius: var(--border-radius);
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: var(--transition);
   box-shadow: 0 2px 8px rgba(40, 168, 183, 0.3);
}

.search-button:hover {
   background: var(--light-cyan);
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(40, 168, 183, 0.4);
}

.search-button:active {
   transform: translateY(0);
}

.search-results {
   position: absolute;
   top: 100%;
   /* Позиционируем ниже input */
   left: 50%;
   /* Центрируем по горизонтали */
   transform: translateX(-50%);
   /* Смещаем на половину ширины */
   background: var(--white);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   border: 1px solid rgba(102, 52, 121, 0.1);
   max-height: auto;
   overflow-y: auto;
   z-index: 1001;
   display: none;
   width: 700px;
   /* Фиксированная ширина 600px */
   max-width: 90%;
   /* Для адаптивности на мобильных */
}

.search-result-item {
   padding: 12px 16px;
   cursor: pointer;
   border-bottom: 1px solid rgba(102, 52, 121, 0.1);
   transition: var(--transition);
   font-size: 14px;
   color: var(--dark-gray);
}

.search-result-item:hover {
   background: rgba(40, 168, 183, 0.1);
   color: var(--primary-color);
}

.search-result-item:last-child {
   border-bottom: none;
}

.search-loading {
   padding: 12px 16px;
   text-align: center;
   color: var(--primary-color);
   font-style: italic;
}

.search-error {
   padding: 12px 16px;
   text-align: center;
   color: #e74c3c;
   font-weight: 500;
}

.description {
   position: absolute;
   bottom: 20px;
   right: 20px;
   z-index: 1000;
   width: 250px;
   padding: 20px;
   background: rgba(255, 255, 255, 0.95);
   backdrop-filter: blur(15px);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   border: 1px solid rgba(102, 52, 121, 0.1);
   font-size: 14px;
   transition: var(--transition);
}

.description:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-hover);
}

.description__title {
   font-size: 16px;
   font-weight: 600;
   color: var(--primary-color);
   margin: 0 0 15px 0;
   text-align: center;
   border-bottom: 2px solid var(--secondary-color);
   padding-bottom: 8px;
}

.description__list {
   display: flex;
   flex-direction: column;
   list-style: none;
   padding: 0;
   margin: 0;
}

.description__item {
   display: flex;
   align-items: center;
   margin-bottom: 12px;
   padding: 8px;
   border-radius: 8px;
   transition: var(--transition);
}

.description__item:hover {
   background: rgba(40, 168, 183, 0.1);
}

.description__item--adsl {
   margin-bottom: 0;
}

.description__circle {
   display: inline-block;
   width: 16px;
   height: 16px;
   margin-right: 12px;
   border-radius: 50%;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
   transition: var(--transition);
}

.description__item:hover .description__circle {
   transform: scale(1.1);
}

.circle--xpon {
   /* background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-cyan) 100%); */
   background: linear-gradient(135deg, #663479 0%, #9b59b6 100%);
}

.circle--xponnew {
   
     background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.circle--adsl {
 background: linear-gradient(135deg, #3198A3 0%, #63c6d0 100%);
}

.description__text {
   font-weight: 500;
   color: var(--dark-gray);
}

.display {
   position: absolute;
   top: 150px;
   right: 20px;
   z-index: 999;
   width: 200px;
   padding: 20px;
   background: rgba(255, 255, 255, 0.95);
   backdrop-filter: blur(15px);
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   border: 1px solid rgba(102, 52, 121, 0.1);
   font-size: 14px;
   transition: var(--transition);
}

.display:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-hover);
}

.display__title {
   font-size: 16px;
   font-weight: 600;
   color: var(--primary-color);
   margin: 0 0 15px 0;
   text-align: center;
   border-bottom: 2px solid var(--secondary-color);
   padding-bottom: 8px;
}

.display__list {
   display: flex;
   flex-direction: column;
   list-style: none;
   padding: 0;
   margin: 0;
}

.display__item {
   display: flex;
   align-items: center;
   margin-bottom: 12px;
   padding: 8px;
   border-radius: 8px;
   transition: var(--transition);
}

.display__item:hover {
   background: rgba(40, 168, 183, 0.1);
}

.display__item--adsl {
   margin-bottom: 0;
}

.display__checkbox {
   margin-right: 12px;
   width: 18px;
   height: 18px;
   accent-color: var(--secondary-color);
   cursor: pointer;
   transition: var(--transition);
}

.display__checkbox:hover {
   transform: scale(1.1);
}

.display__label {
   font-weight: 500;
   color: var(--dark-gray);
   cursor: pointer;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
   transition: var(--transition);
}

.display__label:hover {
   color: var(--primary-color);
}

/* Стилизация чекбоксов */
.display__checkbox {
   appearance: none;
   width: 18px;
   height: 18px;
   border: 2px solid var(--secondary-color);
   border-radius: 4px;
   background: var(--white);
   position: relative;
   cursor: pointer;
   transition: var(--transition);
}

.display__checkbox:checked {
   background: var(--secondary-color);
   border-color: var(--secondary-color);
}

.display__checkbox:checked::after {
   content: '✓';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: var(--white);
   font-weight: bold;
   font-size: 12px;
}

.display__checkbox:focus {
   outline: 2px solid var(--light-cyan);
   outline-offset: 2px;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) and (min-width: 769px) {
   .header__title {
      font-size: 22px;
      padding: 18px 18px 8px 18px;
   }

   .search-container {
      padding: 0 18px 18px 18px;
      gap: 12px;
   }

   .search-input {
      max-width: 350px;
      padding: 11px 15px;
      font-size: 14px;
   }

   .search-button {
      padding: 11px 22px;
      font-size: 14px;
   }

   .description {
      width: 180px;
      padding: 18px;
      bottom: 15px;
      right: 15px;
   }

   .display {
      width: 180px;
      padding: 18px;
      top: 120px;
      right: 15px;
   }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
   .header__title {
      font-size: 20px;
      padding: 15px 15px 5px 15px;
   }

   .search-container {
      flex-direction: column;
      padding: 0 15px 15px 15px;
      gap: 8px;
   }

   .search-input {
      max-width: 100%;
      padding: 10px 14px;
      font-size: 13px;
   }

   .search-button {
      padding: 10px 20px;
      font-size: 13px;
      width: 100%;
   }

   .search-results {
      width: 90%;
      /* На мобильных занимает 90% ширины */
      left: 5%;
      /* Центрируем с отступом */
      transform: translateX(0);
      /* Убираем transform */
   }

   .description {
      width: 160px;
      padding: 15px;
      bottom: 10px;
      right: 10px;
   }

   .display {
      width: 160px;
      padding: 15px;
      top: 110px;
      right: 10px;
   }

   .description__title,
   .display__title {
      font-size: 14px;
   }
}

/* Адаптивность для маленьких мобильных устройств */
@media (max-width: 576px) {
   .header__title {
      font-size: 18px;
      padding: 12px 12px 5px 12px;
   }

   .search-container {
      padding: 0 12px 12px 12px;
   }

   .search-input {
      padding: 8px 12px;
      font-size: 12px;
   }

   .search-button {
      padding: 8px 16px;
      font-size: 12px;
   }

   .search-results {
      left: 12px;
      right: 12px;
   }

   .description {
      width: 140px;
      padding: 12px;
      font-size: 12px;
   }

   .display {
      width: 140px;
      padding: 12px;
      font-size: 12px;
      top: 100px;
   }

   .description__circle {
      width: 12px;
      height: 12px;
      margin-right: 8px;
   }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
   .header__title {
      font-size: 16px;
      padding: 10px 10px 3px 10px;
   }

   .search-container {
      padding: 0 10px 10px 10px;
   }

   .search-input {
      width: 400px;
      padding: 7px 10px;
      font-size: 11px;
   }

   .search-button {
      padding: 7px 14px;
      font-size: 11px;
   }

   .search-results {
      width: 95%;
      /* На очень маленьких экранах занимает 95% */
      left: 2.5%;
      /* Центрируем с отступом */
      transform: translateX(0);
      /* Убираем transform */
   }

   .description {
      width: 120px;
      padding: 10px;
      font-size: 11px;
      bottom: 5px;
      right: 5px;
   }

   .display {
      width: 120px;
      padding: 10px;
      font-size: 11px;
      top: 120px;
      right: 5px;
   }

   .description__title,
   .display__title {
      font-size: 12px;
   }

   .description__circle {
      width: 10px;
      height: 10px;
      margin-right: 6px;
   }

   .description__text,
   .display__label {
      font-size: 10px;
   }
}

/* Адаптивность для ландшафтной ориентации мобильных */
@media (max-width: 768px) and (orientation: landscape) {
   .header__title {
      font-size: 16px;
      padding: 8px 15px 3px 15px;
   }

   .search-container {
      flex-direction: row;
      padding: 0 15px 8px 15px;
      gap: 8px;
   }

   .search-input {
      max-width: 200px;
      padding: 8px 12px;
      font-size: 12px;
   }

   .search-button {
      padding: 8px 16px;
      font-size: 12px;
      width: auto;
   }

   .description {
      width: 140px;
      padding: 10px;
      bottom: 5px;
      right: 5px;
   }

   .display {
      width: 140px;
      padding: 10px;
      top: 80px;
      right: 5px;
   }
}

/* Стили для карты */
.leaflet-control-container .leaflet-top.leaflet-left {
   margin-top: 100px;
}

/* Оптимизация для сенсорных устройств */
@media (hover: none) and (pointer: coarse) {

   .search-button:hover,
   .description:hover,
   .display:hover,
   .search-result-item:hover,
   .display__checkbox:hover,
   .display__label:hover {
      transform: none;
      box-shadow: var(--shadow);
   }

   .search-button:active {
      transform: scale(0.95);
   }

   .search-result-item:active {
      background: rgba(40, 168, 183, 0.2);
   }

   .display__checkbox:active {
      transform: scale(0.9);
   }
}

/* Улучшение для мобильных устройств */
@media (max-width: 768px) {
   .leaflet-control-container .leaflet-top.leaflet-left {
      margin-top: 120px;
   }

   .leaflet-control-zoom {
      border-radius: 8px !important;
   }

   .leaflet-control-zoom a {
      width: 40px !important;
      height: 40px !important;
      line-height: 40px !important;
      font-size: 18px !important;
   }
}

@media (max-width: 480px) {
   .leaflet-control-container .leaflet-top.leaflet-left {
      margin-top: 100px;
   }

   .leaflet-control-zoom a {
      width: 35px !important;
      height: 35px !important;
      line-height: 35px !important;
      font-size: 16px !important;
   }
}

.leaflet-control-zoom {
   border-radius: var(--border-radius) !important;
   box-shadow: var(--shadow) !important;
   border: 1px solid rgba(102, 52, 121, 0.1) !important;
}

.leaflet-control-zoom a {
   background: rgba(255, 255, 255, 0.95) !important;
   backdrop-filter: blur(10px) !important;
   color: var(--primary-color) !important;
   font-weight: 600 !important;
   transition: var(--transition) !important;
}

.leaflet-control-zoom a:hover {
   background: var(--secondary-color) !important;
   color: var(--white) !important;
   transform: scale(1.05) !important;
}

/* Стили для popup */
.leaflet-popup-content-wrapper {
   border-radius: 12px !important;
   box-shadow: 0 8px 32px rgba(102, 52, 121, 0.2) !important;
   border: 1px solid rgba(102, 52, 121, 0.1) !important;
   overflow: hidden !important;
   max-width: 90vw !important;
   /* Ограничение максимальной ширины */
   position: relative !important;
   /* Для правильного позиционирования кнопки закрытия */
}

.leaflet-popup-content {
   margin: 0 !important;
   padding: 0 !important;
   line-height: 1.4 !important;
   width: auto !important;
   /* Автоматическая ширина */
   max-width: 500px !important;
   /* Максимальная ширина контента */
}

/* Специфичные стили для таблиц в popup */
.leaflet-popup-content table {
   width: 100% !important;
   table-layout: auto !important;
   /* Автоматическое распределение ширины */
}

.leaflet-popup-content th,
.leaflet-popup-content td {
   word-wrap: break-word !important;
   /* Перенос длинных слов */
   overflow-wrap: break-word !important;
}

/* Специальные стили для столбцов таблицы */
.leaflet-popup-content th:nth-child(1),
.leaflet-popup-content td:nth-child(1) {
   width: 1% !important;
   /* Минимальная ширина для первого столбца (тип подключения) */
   white-space: nowrap !important;
}

.leaflet-popup-content th:nth-child(2),
.leaflet-popup-content td:nth-child(2) {
   width: 60% !important;
   /* Больше места для адреса */
}

.leaflet-popup-content th:nth-child(3),
.leaflet-popup-content td:nth-child(3) {
   width: 1% !important;
   /* Минимальная ширина для даты */
   white-space: nowrap !important;
}

/* Центрирование спиннера */
.leaflet-popup-content .leaflet-popup-loading {
   display: flex !important;
   justify-content: center !important;
   align-items: center !important;
   min-height: 100px !important;
}

/* Анимация спиннера */
@keyframes spin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

.leaflet-popup-spinner {
   width: 40px;
   height: 40px;
   border: 4px solid #f3f3f3;
   border-top: 4px solid #663479;
   border-radius: 50%;
   animation: spin 1s linear infinite;
   margin: 0 auto;
   display: block;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
   .leaflet-popup-content-wrapper {
      max-width: 95vw !important;
   }

   .leaflet-popup-content {
      max-width: 300px !important;
   }

   .leaflet-popup-content table {
      font-size: 12px !important;
   }

   .leaflet-popup-content th,
   .leaflet-popup-content td {
      padding: 4px 6px !important;
   }
}

.leaflet-popup-tip {
   background: white !important;
   border: 1px solid rgba(102, 52, 121, 0.1) !important;
}

.leaflet-popup-close-button {
   color: white !important;
   font-size: 18px !important;
   font-weight: bold !important;
   background: rgba(102, 52, 121, 0.2) !important;
   /* Фиксируем цвет фона */
   border-radius: 50% !important;
   width: 24px !important;
   height: 24px !important;
   line-height: 24px !important;
   /* Центрируем по вертикали */
   text-align: center !important;
   transition: all 0.3s ease !important;
   position: absolute !important;
   top: 8px !important;
   right: 8px !important;
   margin: 0 !important;
   padding: 0 !important;
   text-decoration: none !important;
   display: flex !important;
   align-items: center !important;
   justify-content: center !important;
}

.leaflet-popup-close-button:hover {
   background: rgba(102, 52, 121, 0.4) !important;
   transform: scale(1.1) !important;
   color: white !important;
}

/* Убираем стандартные стили Leaflet */
.leaflet-container a.leaflet-popup-close-button {
   padding: 0 !important;
   border: none !important;
}

/* Стили для кастомного popup */
.custom-popup .leaflet-popup-content-wrapper {
   border-radius: 8px !important;
   overflow: hidden !important;
}

.custom-popup .leaflet-popup-tip {
   background: #663479 !important;
}

.custom-popup .leaflet-popup-content {
   margin: 10px !important;
   line-height: 1.4 !important;
}

/* Стили для контейнера балуна Leaflet - УВЕЛИЧИВАЕМ ШИРИНУ */
.searchIcon-custom-popup-container {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 10px;
    min-width: 250px; /* Минимальная ширина */
    max-width: 300px; /* Максимальная ширина */
}

/* Стили для стрелочки балуна */
.leaflet-popup-tip {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Внутреннее содержимое балуна */
.searchIcon-custom-popup {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: -5px -10px; /* Компенсируем стандартные отступы Leaflet */
}

/* Заголовок балуна */
.searchIcon-popup-header {
    background: linear-gradient(135deg, #4A90E2 0%, #2A70C2 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap; /* Заголовок в одну строку */
}

/* Основное содержимое балуна - ДОБАВЛЯЕМ ПЕРЕНОС ТЕКСТА */
.searchIcon-popup-content {
    padding: 15px;
    background: white;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word; /* Перенос длинных слов */
    overflow-wrap: break-word; /* Современный аналог */
    hyphens: auto; /* Переносы слов (если поддерживается) */
    text-align: left;
}

/* Увеличиваем максимальную ширину для больших экранов */
@media (min-width: 768px) {
    .searchIcon-custom-popup-container {
        max-width: 350px;
    }
}

/* Альтернативный вариант: Автоподстройка ширины */
.searchIcon-custom-popup-container {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 10px;
    min-width: 200px; /* Минимальная ширина */
    max-width: 350px; /* Максимальная ширина */
    width: auto !important; /* Автоматическая ширина */
}

/* Если нужно ограничить высоту и добавить прокрутку */
.searchIcon-popup-content {
    padding: 15px;
    background: white;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
    /* Убираем фиксированную ширину у контента */
    width: auto;
    max-width: none;
    /* Опционально: ограничиваем высоту и добавляем прокрутку */
    /* max-height: 150px; */
    /* overflow-y: auto; */
}



.search-custom-popup-container .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
    border: 1px solid #e3e8f2;
    min-width: 320px;
    max-width: 400px;
}

.search-custom-popup-container .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: 100% !important;
}

.search-custom-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.4;
    width: 100%;
}

.search-popup-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.search-popup-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.search-popup-icon svg {
    width: 22px;
    height: 22px;
}

.search-popup-title {
    flex: 1;
    min-width: 0; /* Предотвращает переполнение */
}

.search-popup-title h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.2;
}

.search-precision {
    display: inline-block;
    font-size: 12px;
    color: #4a5568;
    background: #e6fffa;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #81e6d9;
}

.search-popup-content {
    padding: 20px;
}

.search-address-main {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
    line-height: 1.3;
}

.search-address-details {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 16px;
}

.address-component {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 0;
}

.address-component:last-child {
    margin-bottom: 0;
}

.address-type {
    color: #718096;
    font-weight: 500;
    font-size: 13px;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.address-name {
    color: #2d3748;
    font-weight: 500;
    word-wrap: break-word;
}

.search-coordinates {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4a5568;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
}

.search-coordinates svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.search-popup-actions {
    padding: 0 20px 20px;
    text-align: center;
}

.search-copy-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.search-copy-btn:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.search-copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(74, 144, 226, 0.2);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .search-custom-popup-container .leaflet-popup-content-wrapper {
        margin: 15px;
        min-width: 280px;
        max-width: 320px;
    }
    
    .search-popup-header {
        padding: 16px;
    }
    
    .search-popup-content {
        padding: 16px;
    }
    
    .search-popup-actions {
        padding: 0 16px 16px;
    }
    
    .address-component {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 8px;
    }
    
    .address-type {
        text-align: left;
        min-width: auto;
        font-size: 12px;
    }
    
    .search-popup-title h3 {
        font-size: 16px;
    }
    
    .search-address-main {
        font-size: 15px;
        padding: 10px;
    }
}

/* Для очень длинных адресов */
.search-address-main,
.address-name {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}