#map 
{
width: 100%; 
height: 97vh; /*630px;
padding-top: 32px;*/
margin-left: 0!important; /*auto;*/
margin-right: 0!important;  /*auto;*/
border:none!important;
}

@media (max-width: 1024px) {
#map 
{height: 100dvh!important}
}

p {
  font-size: 16px;
}
 @font-face {
              font-family: UltimaPro; /* Имя шрифта */
              src: url(fonts/UltimaPro.ttf); /* Путь к файлу со шрифтом */
             }

.leaflet-popup-content-wrapper {
  background:#fff;
  color:#3f0083;
  font-size:16px;
  line-height:24px;
  max-height: 660px;
  /*max-height: 100vh;*/
  margin-bottom: 0px;/*10*/
  
  
  
  display: flex;
  width: 100%; 
  }

.leaflet-popup-content {

    max-height: 420px;
    overflow: auto;
    margin-bottom: 10px;
    width: 760px!important; /*/////////////////////////////// 860px //////////////////////////////////////////////////////*/
    border-radius: 2px;
	
/*	height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #f0f2f5;
      margin: 0;
      padding: 20px;
      box-sizing: border-box;*/
	
    }
.custom-popup {
    max-height: 420px;
    box-shadow: none;
    margin-bottom: 0px;/*10*/
    }
	
@media (max-width: 1024px) {	
.leaflet-popup-content {
    width: 100%!important; 
    }
}
	
	
	
.leaflet-popup-tip-container {display:none;}  /*////////////////убираем хвостик///////////////*/
	
	
	
	
	
/* DEEP SEEK variant
	
	===== Родитель ===== */
    .parent {
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #f0f2f5;
      margin: 0;
      padding: 20px;
      box-sizing: border-box;
    }

    /* ===== Карточка ===== */
    .card {
     /*  */position: relative;         
      display: flex;
      flex-direction: column;
      /*background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);*/
      overflow: auto;  /*---------------------------------------------hidden;----------------------------------------------*/
      padding: 8px;
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      min-height: 380px;
      gap: 24px;
    }

    /* ===== Кнопка закрытия ===== */
    .card__close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      background: #ffffff;
      border-radius: 50%;
      box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      z-index: 10;
      border: none;
      font-size: 20px;
      line-height: 1;
      color: #333;
      text-decoration: none;
    }

    .card__close:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .card__close:active {
      transform: scale(0.95);
    }

    /* ===== Изображение ===== */
    .card__image {
      width: 100%;
      aspect-ratio: 1 / 1;
      /*background: #d9e2ec;*/
      border-radius: 12px;
      overflow: hidden;
      flex-shrink: 0;
    }

    .card__image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* ===== Текстовая часть ===== */
    .card__content {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .card__title {
      font-size: 1.3rem;
      font-weight: 700;
      margin: 0 0 8px 0;
      color: #1a1a2e;
    }

    .card__text {
      font-size: 1rem;
      line-height: 1.5;
      color: #4a4a6a;
      margin: 0 0 16px 0;
      flex-shrink: 0;
    }

    .card__links {
      margin-top: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .card__links a {
      color: #0066cc;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }

    .card__links a:hover {
      color: #003d99;
      text-decoration: underline;
    }

    /* ====================================================
          ДЕСКТОПНАЯ ВЕРСИЯ (≥ 768px)
       ==================================================== */
    @media (min-width: 768px) {
      .card {
        width: 100%; /*----------------------700px;----------------------------*/
        height: 50%;
        max-height: 90vh;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
      }

      .card__image {
        width: 40%;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
      }

      .card__content {
        flex: 1;
        margin-top: 0;
      }

      /* Крестик остаётся в правом верхнем углу */
      .card__close {
        top: 12px;
        right: 12px;
      }
    }

    /* ===== Мелочи для узких экранов ===== */
    @media (max-width: 480px) {
      .card__title {
        font-size: 1.2rem;
      }
      .card__text {
        font-size: 0.9rem;
      }
      .card__close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 10px;
        right: 10px;
      }
    }