:root {
  --primary-color: #4da6ff;
  --secondary-color: #896c82;
  --accent-color: #ff6666;
  --success-color: #007fff;
  --awesome-blue: #a8c7ff;
  --warning-color: #ffc941;
  --text-dark: #404040;
  --text-light: #909090;
  --border-color: #ddd;
  --background-light: #f9f9f9;
  --clear-white: #ffffff;
  --background-overlay: rgba(0, 0, 0, 0.7);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 10px;
  --border-radius-small: 4px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
  --footer-height: 150px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.t-records__overflow-hidden {
  overflow: visible !important;
}

#allrecords ul {
  padding-left: 0 !important;
}

#allrecords a {
  color: white;
}

.idilesom_header_font {
  font-family: "Manrope", Arial, sans-serif !important;
  line-height: normal !important;
}

#idilesom_container {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  width: 100%;
}

#idilesom_outer {
  position: relative;
  display: flex;
  justify-content: center;
  /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
}

#idilesom_wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  gap: 34px;
  background: transparent;
  /*
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  */
  overflow: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#idilesom_map {
  position: sticky;
  top: 0;
  left: 0;
  align-self: flex-start;
  width: 100%;
  /* max-width: 903px; */
  height: 100dvh;
  z-index: 10;
}

#idilesom_logo {
  width: 220px !important;
  height: 40px !important;
  position: absolute !important;
  bottom: 15px !important;
  left: 15px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light) !important;
  text-align: center !important;
  line-height: 40px !important;
  font-size: 14px !important;
  font-family: "Georgia", "Times New Roman", serif !important;
  color: var(--secondary-color) !important;
  z-index: 96 !important;
  border-radius: var(--border-radius-small) !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

#idilesom_logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

#idilesom_list_container {
  flex: 1;
  max-width: 1140px;
  width: 100%;
}

.idilesom_list_header {
  margin: 20px 0 20px 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 600;
}

#idilesom_place_list {
  list-style: none;
  margin: 0;
  padding-bottom: 50px;
}

.container_list {
  display: flex !important;
  align-items: flex-start !important;
  gap: 15px;
}

.idil_cover {
  width: 80px;
  height: 80px;
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

/* .idil_cover:hover {
  transform: scale(1.05);
} */

.idil_title_box {
  flex: 1;
  min-width: 0;
}

.popup_header .idil_title_box {
  display: block !important;
}

.popup_header .idil_title_box .idil_title {
  font-size: 24px;
}

.idil_title {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.idil_cats {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.3;
}

.idil_users_box {
  display: flex;
  align-items: center;
  gap: -8px;
}

.idil_user_photos,
.idil_user_photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.idil_user_photos:hover,
.idil_user_photo:hover {
  transform: scale(1.1);
  z-index: 10;
}

.idil_user_count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 11px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.leaflet-right .leaflet-control {
  display: block !important;
}

.map-icon {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.map-icon:hover {
  transform: scale(1.1);
}

.leaflet-mouse-markers {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  font-size: 11px;
  color: white;
  text-align: center;
  line-height: 36px;
  border: 3px solid white;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.vstavka {
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-icon:hover .leaflet-mouse-markers,
.map-icon.active .leaflet-mouse-markers {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

#idilesom_route_name {
  display: none;
  width: auto;
  max-width: 300px;
  min-height: 36px;
  min-width: 50px;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-radius: var(--border-radius);
  position: absolute;
  z-index: 93;
  top: 0;
  left: 0;
  color: white;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 100;
  border-radius: var(--border-radius);
}

.loader-overlay-block {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 100;
}

.loader_content {
  position: relative;
  opacity: 0;
  display: none;
  gap: 54px;
  max-width: 1290px;
  align-items: center;
  justify-content: space-between;
  font-family: "Manrope", Arial, sans-serif;
}

.loader_text .loader_text_header {
  font-size: 30px;
  font-weight: 700;
  color: rgba(59, 169, 184, 1);
}

.loader_text .loader_text_article {
  background-color: rgba(223, 99, 97, 1);
  border-radius: 11px;
  padding: 10px 19px 10px 19px;
  max-width: 125px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
  margin-top: 26px;
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.loader_text_subtext {
  color: rgba(59, 169, 184, 0.5);
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  text-decoration: none;
}

.loading_text {
  color: gray;
  font-size: 14px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader_text_href {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 265px;
  height: 65px;
  background-color: rgba(55, 171, 187, 1);
  text-decoration: none;
  border-radius: 60px;
  font-size: 19px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1) !important;
  margin-top: 77px;
}

.loader_content img {
  width: 664px;
  max-height: 380px;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#idilesom_popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--background-overlay);
  backdrop-filter: blur(5px);
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 10500;
  animation: fadeIn 0.3s ease-out;
}

.popup_css {
  padding: 30px;
  font-family: "Manrope", Arial, sans-serif;
}

.popup_header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 25px;
  width: 100%;
}

.popup_header .idil_cover {
  width: 100%;
  height: 265px;
  border-radius: 20px;
  flex: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.idilesom_popup_in {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.idilesom_popupBox {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.idilesom_cross {
  position: absolute;
  top: 3px;
  right: 10px;
  width: 25px;
  height: 25px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.idilesom_cross:before {
  content: "×";
  color: white;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  height: 30px;
  top: 50%;
  left: 50%;
  transform: translateY(-55%) translateX(-50%);
}

.idilesom_cross:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.idilesom_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;

  /*-ms-overflow-style: none;
  scrollbar-width: none;*/
}

/*.idilesom_content::-webkit-scrollbar {
    display: none;
}*/

.place_menu {
  margin: 0 15px;
  text-align: center;
  font-size: 12px;
  position: relative;
  transition: var(--transition);
}

.place_menu.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--warning-color);
  border-radius: 2px;
}

.place_menu span,
.place_menu a {
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  height: 100%;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  padding: 0 15px;
  border-radius: var(--border-radius-small);
  transition: var(--transition);
}

.place_menu:hover span,
.place_menu:hover a {
  background: rgba(255, 255, 255, 0.1);
}

.idil_photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.idil_photo {
  transition: var(--transition);
}

.idil_photo:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-light);
}

.nearby-place-card,
.nearby-holder-card {
  transition: var(--transition);
}

.nearby-place-card:hover,
.nearby-holder-card:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-light);
}

.description_map {
  width: 100%;
  height: 300px;
  margin-top: 10px;
  background: #e8f7e8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.idil_description_title {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 15px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary-color);
  margin: 15px 0;
}

.idil_description {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
  background-color: #e0e0e0;
  border-radius: 20px;
  padding: 10px;
}

.idil_comments_block {
  margin-top: 20px;
}

.comment-item {
  padding: 15px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-dark);
}

.comment-date {
  color: var(--text-light);
  font-size: 12px;
}

.comment-text {
  color: var(--text-dark);
  line-height: 1.5;
}

#photo_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-overlay);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#photo_modal_overlay {
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#photo_modal_inner {
  position: relative;
  background: white;
  max-width: 90vw;
  max-height: 85vh;
  padding: 45px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#photo_modal_close {
  position: absolute;
  top: 0;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

#photo_modal_close:hover {
  color: var(--accent-color);
}

#photo_carousel_container {
  width: 70vw;
  height: 60vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#photo_carousel_image {
  max-width: 70vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: #eee;
}

#photo_carousel_controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

#photo_carousel_controls button {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 30px;
  color: white;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
#prev_photo::before {
  content: "‹";
  font-size: 21px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}
#next_photo::before {
  content: "›";
  font-size: 21px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}

#photo_carousel_controls button:hover {
  background: var(--primary-color);
}

.idil_author_desktop {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--awesome-blue);
  border-radius: 20px;
  padding: 10px 10px;
  gap: 10px;
}

.idil_author_desktop .author_avatar {
  border-radius: 50%;
}

.idil_author_desktop .author_details {
  display: flex;
  flex-direction: column;
}

.idil_author_desktop .author_details h6,
.idil_author_desktop .author_details p {
  padding: 0;
  margin: 0;
}
.idil_author_desktop .author_details h6 {
  font-size: 14px;
}
.idil_author_desktop .author_details p {
  font-size: 12px;
}

.idil_video_desktop,
.idil_video_mobile {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.idil_video_desktop iframe,
.idil_video_mobile iframe {
  border-radius: 20px;
  background-color: rgba(59, 169, 184, 1);
  background-size: cover;
}

.idil_video_desktop {
  display: block !important;
}
.idil_video_mobile {
  display: none !important;
}

/* сетка на 3 колонки */
.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0 10px 0 0;
  margin: 0;
}

.place-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.2s ease;
  font-family: "Manrope", Arial, sans-serif;
  margin-top: 14px;
}
/* Пешее - Пешком, Водное - По воде */
/* Зимнее, Арктическое */
.place-card:hover {
  transform: translateY(-4px);
}

/* фото */
.photo-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 0;
  padding-top: 117.11%;
  border-radius: 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* кнопки типов */
.type-btns {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.type-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

iframe {
  width: 100% !important;
  height: 402px;
}

.ymaps-2-1-79-listbox__list > ymaps:nth-child(4),
.ymaps-2-1-79-listbox__list > ymaps:nth-child(5) {
  display: none !important;
}

/* текст */
.info {
  width: 100%;
}

.place-title {
  font-weight: 700;
  font-size: 21px;
  margin-top: 14px;
}

.place-features {
  font-size: 14px;
  color: rgba(83, 90, 102, 1);
}

.filters-bar {
  margin: 24px 0 27px 0;
  display: flex;
  flex-flow: row wrap;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 0 10px 0 0;
}
.filters-container {
  display: inline-flex;
  overflow: hidden;
  font-family: sans-serif;
  border-radius: 12px;
  background: rgba(255, 255, 255, 1);
  height: 46px;
}
.filter-btn {
  width: 64px;
  padding: 13px 20px;
  /* border-radius: 12px; */
  color: rgba(83, 90, 102, 1);
  border: none;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.filter-btn.active {
  background: rgba(55, 171, 187, 1);
  color: #fff;
}
/* --- Стили для выпадающих фильтров --- */
.dropdowns-wrapper {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.dropdown-filter {
  position: relative;
  display: inline-block;
}
.dropdown-btn {
  padding: 13px 13px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sort-btn {
  padding: 13px 13px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sort-btn.active {
  background: rgba(55, 171, 187, 1);
  color: #fff;
}
.dropdown-btn:hover {
  background: #f5f5f5;
}
.dropdown-btn:focus {
  outline: none;
}
.dropdown-btn.active {
  background: rgba(55, 171, 187, 1);
  color: #fff;
}
/* Выпадающий список */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-width: 220px;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
}
/* .dropdown-filter:nth-child(3) .dropdown-content {
  right: 0 !important;
  left: unset !important;
}
.dropdown-filter:last-child .dropdown-content {
  right: 0 !important;
  left: unset !important;
} */
.dropdown-content.columns-2 {
  columns: 2;
  column-gap: 16px;
  width: 280px; /* 2 колонки + отступ */
}
/* === Две колонки через flex (для Длина/Время) === */
.dropdown-content.columns-flex {
  gap: 16px;
  min-width: 320px;
  padding: 12px;
}
.dropdown-content.columns-flex > .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Элементы выпадающего списка */
.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s, color 0.2s;
  break-inside: avoid; /* чтобы элемент не разрывался между колонками */
}
.dropdown-item:hover {
  background-color: #f5f5f5;
  color: #000;
  border-radius: 12px;
}
.dropdown-item.active {
  border-radius: 12px;
  background-color: rgba(55, 171, 187, 1);
  color: #fff;
  font-weight: 600;
}
/* Показываем dropdown при наведении или клике (JS управляет display: block) */
.dropdown-content.show {
  display: block;
}

/* ТАБСЫ */
.place-tabs {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}
.tab-btn {
  padding: 10px 18px;
  background: #f7f7f7;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  transition: all 0.2s;
}
.tab-btn:hover {
  background: #e0e0e0;
}
.tab-btn.active {
  background: #37abbb;
  color: #fff;
}
.tab-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tab-content[style*="display: flex"] {
  opacity: 1;
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.photo-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.2s;
}
.photo-thumb:hover {
  transform: scale(1.05);
}
.download-option:hover {
  opacity: 0.9;
}

/* Скачать ТАБС */
.download-tab-header {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  margin-top: 52px;
  gap: 12px;
}
.download-tab-header img {
  width: 73px;
  height: 73px;
}
.download-tab-header p {
  font-size: 16px;
  font-weight: 500;
  color: #2e3542;
}
.download_tab_btn {
  width: 100%;
  height: 65px;
  padding: 12px;
  background: rgba(59, 169, 184, 1);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 19px;
  font-weight: 600;
  margin-top: 24px;
  cursor: pointer;
  font-family: "Onest", Arial, sans-serif;
  transition: var(--transition);
}
.download-tab-notes {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 16px;
  font-family: "Manrope", Arial, sans-serif;
  gap: 12px;
}
.download-tab-notes > * {
  flex: 1;
  min-width: 0;
}
.download-tab-notes .install,
.download-tab-notes .download,
.download-tab-notes .use {
  flex: 1;
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f7f7f7;
  border-radius: 12px;
  text-align: center;
  text-wrap: wrap;
  padding: 0 10px;
  height: 200px;
}
.download-tab-notes .install h3,
.download-tab-notes .download h3,
.download-tab-notes .use h3 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background-color: #3ba9b8;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
}
.download-tab-notes .install p,
.download-tab-notes .download p,
.download-tab-notes .use p {
  font-size: 16px;
  font-weight: 500;
  color: #2e3542;
}

/* place 1 */
.idil_photos_layout {
  display: flex;
  gap: 12px;
  margin-top: 38px;
  width: 100%;
  max-height: 328px;
  margin: 38px auto 0;
}
.photo_left {
  flex: 1;
  min-width: 0; /* важно — позволяет сжиматься */
  aspect-ratio: 4/3; /* фиксируем пропорции */
  background-size: cover;
  background-position: center;
  border-radius: 20px;
}
.photo_right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 258px;
  min-width: 0; /* важно — позволяет сжиматься */
}
.photo_right .idil_photo {
  flex: 1;
  min-height: 0; /* важно — позволяет сжиматься */
  aspect-ratio: 3/4; /* пропорции как у правых фото (высота > ширина) */
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: relative;
}
.with-dots .dots {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: white;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.download_btn {
  width: 100%;
  padding: 12px;
  background: rgba(59, 169, 184, 1);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 19px;
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
  font-family: "Onest", Arial, sans-serif;
  transition: var(--transition);
  height: 65px;
}

.download_btn:hover {
  transform: scale(1.01);
}

.stats_wrapper {
  display: flex;
  flex-flow: column;
}
.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 38px;
  font-family: "Manrope", Arial, sans-serif;
}
.stats > div {
  text-align: center;
  flex: 1;
}
.stat_num {
  font-size: 78px;
  font-weight: 700;
  color: rgba(46, 53, 66, 1);
}
.stat_label {
  font-size: 17px;
  font-weight: 600;
  color: rgba(46, 53, 66, 1);
}
.stats_wrapper .additional {
  display: flex;
  justify-content: space-around;
  margin-top: 38px;
  font-family: "Manrope", Arial, sans-serif;
}
.stats_wrapper .additional > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  flex: 1;
}
.stats_wrapper .additional .stat_additional_num {
  font-size: 28px;
  font-weight: 700;
  color: rgba(46, 53, 66, 1);
}
.stats_wrapper .additional .colorize {
  font-weight: 600 !important;
  font-size: 16px !important;
  color: rgba(4, 130, 148, 1) !important;
}
.stats_wrapper .additional .stat_additional_label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(123, 127, 135, 1);
}
.unit {
  font-size: 16px;
  font-weight: 600;
}
.copy-coords {
  cursor: pointer;
  user-select: none;
  position: relative;
}
/* Подсказка при наведении */
.copy-coords::after {
  content: "Копировать";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.copy-coords:hover::after {
  opacity: 1;
}

.author_card {
  display: flex;
  align-items: center;
  background: linear-gradient(
    to right,
    rgba(4, 130, 148, 1),
    rgba(13, 83, 105, 1)
  );
  padding: 10px;
  border-radius: 20px;
  height: 130px;
  margin-top: 44px;
}
.author_avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin-left: 44px;
}
.author_info {
  display: flex;
  flex-direction: column;
  margin-left: 40px;
  font-family: "Manrope", Arial, sans-serif;
}
.author_role {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.author_name {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
}

.description-wrapper {
  font-family: "Manrope", Arial, sans-serif;
  column-count: 1;
  column-gap: 30px;
  margin-top: 16px;
  text-align: justify;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.description-wrapper.collapsed {
  max-height: 220px; /* ~10 строк по ~22px */
  position: relative;
}

.description-wrapper.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.description_columns div p,
.description_columns div h3,
.description_columns div ul,
.description_columns div ol,
.description_columns div br {
  break-inside: avoid;
  margin-bottom: 1em;
}

.toggle-description {
  background: none;
  outline: none;
  appearance: none;
  color: rgba(59, 169, 184, 1);
  font-size: 16px;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 500;
}

.idil_landmarks {
  margin-bottom: 30px;
}

#idilesom_place_info {
  flex: 1;
  max-width: 916px;
  padding-right: 61px;
}

.goback {
  text-decoration: none;
  color: rgba(59, 169, 184, 1) !important;
  cursor: pointer;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}
.goback:hover {
  transform: scale(1.01);
}

#allrecords ul {
  padding-left: 0 !important;
}

.idil_landmarks {
  column-count: 2; /* количество колонок – браузер сам распределяет */
  column-gap: 7px;
}

.landmark-card {
  display: inline-flex; /* чтобы корректно работать с column-count */
  gap: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 1);
  border-radius: 14px;
  padding: 12px 16px 12px 10px;
  font-family: "Manrope", Arial, sans-serif;
  margin-top: 7px;
  cursor: pointer;
}

.landmark-index {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
  background-color: rgba(51, 153, 255, 1);
  padding: 12px 12px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50%;
  border: 2px solid white;
}

.landmark-title {
  font-weight: 400;
  font-size: 14px;
  color: rgba(0, 0, 0, 1);
}

.landmark-desc {
  font-size: 12px;
  color: rgba(119, 119, 119, 1);
}

.landmark-coords {
  font-size: 10px;
  color: rgba(188, 188, 188, 1);
  margin-top: 8px;
}

.landmark-card.active {
  background: rgba(59, 169, 184, 1);
  padding: 12px;
}
.landmark-card.active .landmark-title {
  color: rgba(255, 255, 255, 1) !important;
}
.landmark-card.active .landmark-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}
.landmark-card.active .landmark-coords {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ymaps-2-1-79-map ymaps,
.ymaps-2-1-79-map ymaps:after,
.ymaps-2-1-79-map ymaps:before {
  max-width: none;
}

#allrecords ul {
  padding-left: 0 !important;
}

.author_konkurs {
  font-size: 13px;
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
  font-family: "Manrope", Arial, sans-serif;
  display: flex;
  flex-flow: column;
  gap: 8px;
  margin-left: 80px;
}

.author_konkurs_label,
.author_konkurs_value {
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
}
.author_konkurs_label {
  font-size: 16px;
}
.author_konkurs_value {
  font-size: 16px;
}

.ttl {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.photo-box {
  background-color: rgba(55, 171, 187, 1);
}

/* по умолчанию показываем desktop-версию */
.map-mobile {
  display: none;
}

#download-instructions-modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.partner-link {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
}
.partner-card-mob {
  display: none;
}

/* --- Стили для предупреждения о безопасности --- */
.safety-warning-container {
    position: relative; /* Контейнер для позиционирования всплывающего окна */
    margin-top: 34px;
    width: 100%;
}

.safety-button {
    /* Используем переменную цвета, если она определена (например, --warning-color) */
    background-color: transparent; 
    color: rgba(25, 79, 158, 1);
    height: 65px;
    border: 1px solid rgba(25, 79, 158, 1);
    border-radius: 16px;
    cursor: pointer;
    font-size: 17px;
    line-height: 134%;
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
    transition: var(--transition, all 0.3s ease);
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-light, 0 2px 8px rgba(0, 0, 0, 0.1));
}

.safety-popup {
    /* Скрыто по умолчанию и позиционировано абсолютно */
    display: block; 
    position: absolute;
    z-index: 1000;
    width: 100%;
    padding: 25px;
    max-width: 90vw;
    background-color: var(--clear-white, #ffffff);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 16px;
    box-shadow: 0 4px 16px 2px rgba(0, 0, 0, 0.15);
    
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    
    /* Скрытие и плавная анимация */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Назначаем начальное смещение, которое будет управлять закрытием */
    left: 50%;
    transform: translate(-50%, 0); /* Начальное состояние (закрыто) */
}

/* Класс для отображения окна */
.safety-popup.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Позиционирование - СВЕРХУ (визуально СНИЗУ кнопки) */
.safety-popup.top {
    bottom: calc(100% + 10px); 
    top: auto; /* Важно, чтобы избежать конфликтов */
    /* Смещение при открытии: с 10px вниз к 0px */
    transform: translate(-50%, 10px); 
}

.safety-popup.visible.top {
    /* Конечное состояние при открытии СВЕРХУ */
    transform: translate(-50%, 0);
}

/* Позиционирование - СНИЗУ (визуально СВЕРХУ кнопки) */
.safety-popup.bottom {
    top: calc(100% + 10px); 
    bottom: auto; /* Важно, чтобы избежать конфликтов */
    /* Смещение при открытии: с -10px вверх к 0px */
    transform: translate(-50%, -10px);
}

.safety-popup.visible.bottom {
    /* Конечное состояние при открытии СНИЗУ */
    transform: translate(-50%, 0);
}

.safety-popup.closing.top {
    /* Применяем обратный transform для анимации закрытия вверх */
    transform: translate(-50%, 10px);
}

.safety-popup.closing.bottom {
    /* Применяем обратный transform для анимации закрытия вниз */
    transform: translate(-50%, -10px);
}

.safety-popup h1 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
}
.safety-popup p {
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: var(--text-dark, #404040);
    font-size: 14px;
}

.safety-popup a {
    color: var(--primary-color, #4da6ff);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all; /* Для корректного переноса длинной ссылки */
}

@media (max-width: 768px) {
  .partner-link {
    max-width: unset;
  }
  .partner-card-mob {
    display: block;
  }
  .partner-card-desk {
    display: none;
  }
  .stats_wrapper .additional > div {
    width: calc(100vw / 4);
    flex: unset;
  }
  .stats_wrapper .additional {
    flex-flow: row wrap;
    gap: 15px;
    justify-content: center;
  }
  #tab-buddies,
  #tab-to-start {
    height: 70vh !important;
  }
  .partner-link div {
    padding: 60px 0 !important;
  }
  .download-tab-notes {
    flex-flow: column;
  }
  .map-desktop {
    display: none; /* скрыть карту сбоку */
  }
  .map-mobile {
    display: block; /* показать карту под фотками */
  }
  .ymaps-2-1-79-map {
    border-radius: 20px !important;
    overflow: hidden;
  }

  .landmark-card.active {
    padding: 12px;
  }

  /* Сброс скруглений для всех внутренних элементов */
  .ymaps-2-1-79-map *,
  .ymaps-2-1-79-map ymaps,
  .ymaps-2-1-79-map ymaps::before,
  .ymaps-2-1-79-map ymaps::after {
    border-radius: 0 !important;
  }

  #idilesom_place_info {
    padding: 0 20px 0 20px;
    overflow-x: hidden;
  }

  #idilesom_place_info h2:first-child {
    font-size: 32px !important;
    line-height: 40px;
  }

  .place_info_header {
    font-size: 24px !important;
  }

  .photo_left {
    width: 180px !important;
  }

  .author_avatar {
    margin-left: 0;
  }

  .stat_num {
    font-size: 52px;
  }
  .author_konkurs {
    margin-left: 0;
    margin-top: 4px;
  }
  .author_card {
    height: auto;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px;
  }
  .author_avatar {
    width: 54px !important;
    height: 54px !important;
  }
  .author_info {
    margin-left: 0;
  }

  iframe {
    height: 350px;
    overflow-y: hidden;
  }

  .with-dots .dots {
    font-size: 14px;
  }

  .idil_landmarks {
    column-count: 1; /* количество колонок – браузер сам распределяет */
  }

  .landmark-card {
    padding: 12px 0;
  }

  .description_columns div {
    column-count: 1;
  }

  .places-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .photo-box {
    max-width: unset;
  }
  .info {
    width: 100%;
  }
  /* .place-card {
    align-items: flex-start;
  } */

  .photo-box {
    height: 264px;
    padding: 0;
  }

  .loader_content {
    flex-direction: column;
    position: relative;
    gap: 54px;
    max-width: 95vw;
    align-items: center;
    justify-content: space-between;
    font-family: "Manrope", Arial, sans-serif;
    text-align: center;
  }

  .popup_header {
    gap: 10px;
  }

  .idilesom_popup_in {
    margin-top: 30px;
  }
  #photo_modal_inner {
    margin-top: 30px;
  }

  .idilesom_cross {
    top: 15px;
    right: 15px;
  }

  .loader_text .loader_text_header {
    text-align: center;
    margin-top: 125px;
  }

  .loader_text .loader_text_article {
    margin: 24px auto;
  }

  .loader_text_subtext {
    text-align: center;
    margin: 12px 0;
  }

  .loader_text_href {
    margin: 14px auto;
  }

  .loader_content img {
    max-width: 300px;
    height: auto;
  }

  #idilesom_wrapper {
    flex-direction: column;
    margin-top: var(--header-height);
    gap: 10px;
    margin-top: 0;
  }

  #idilesom_map {
    position: relative;
    width: 100vw;
    height: 400px;
    z-index: auto;
    padding: 10px 10px 0 10px;
  }

  #idilesom_list_container {
    min-height: calc(100vh - 400px);
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
    max-width: 100%;
  }

  .idilesom_list_header {
    margin: 20px 0 20px 0;
  }

  #idilesom_place_list li {
    padding: 0;
  }

  .container_list {
    flex-direction: row;
    gap: 10px;
  }

  .idil_title {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .idil_cats {
    font-size: 11px;
  }

  .idil_user_photos,
  .idil_user_photo {
    width: 28px;
    height: 28px;
  }

  .idil_user_count {
    width: 28px;
    height: 28px;
    font-size: 10px;
    line-height: 28px;
  }

  #idilesom_logo {
    width: 160px !important;
    height: 30px !important;
    bottom: 10px !important;
    left: 10px !important;
    font-size: 12px !important;
    line-height: 30px !important;
  }

  .idilesom_popupBox {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 20px;
  }

  .popup_css {
    padding: 0;
  }

  .idil_info_container {
    flex-direction: column;
    align-items: flex-start;
  }

  .idil_content {
    width: 100%;
    box-sizing: border-box;
  }

  .idil_photos {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    touch-action: pan-x;
    overscroll-behavior-y: none;
    max-width: 100%;
    width: 100%;

    -ms-overflow-style: none;
    scrollbar-width: none;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .idil_photos::-webkit-scrollbar {
    display: none;
  }

  .idil_photo {
    flex: 1;
    scroll-snap-align: start;
  }

  .description_map {
    width: 100%;
    height: 350px;
    border-radius: 20px;
  }

  .idil_video {
    width: 100%;
    height: 350px;
  }

  .popup_header {
    width: 100%;
    flex-direction: column;
  }

  .popup_header .idil_cover {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    border-radius: 20px;
    flex: unset;
  }
  .popup_header .idil_title_box {
    display: none !important;
  }
  .popup_header .idil_cover .idil_title_box_mobile {
    display: block !important;
    padding: 5px 20px;
    color: var(--clear-white);
  }

  .popup_header .idil_cover .idil_title,
  .popup_header .idil_cover .idil_cats,
  .popup_header .idil_cover .idil_users_box {
    width: 100%;
    color: var(--clear-white);
  }

  .popup_header .idil_title_box_mobile .idil_title {
    font-size: 16px;
    font-weight: 700;
  }

  .idil_author_desktop {
    display: none;
  }

  .popup_header .idil_author_mobile {
    display: flex !important;
    align-items: center;
    width: 100%;
    background-color: var(--awesome-blue);
    border-radius: 20px;
    padding: 10px 10px;
    gap: 15px;
  }

  .popup_header .idil_author_mobile .author_avatar {
    border-radius: 50%;
  }

  .popup_header .idil_author_mobile .author_details {
    display: flex;
    flex-direction: column;
  }

  .popup_header .idil_author_mobile .author_details h6,
  .popup_header .idil_author_mobile .author_details p {
    padding: 0;
    margin: 0;
  }
  .popup_header .idil_author_mobile .author_details h6 {
    font-size: 14px;
  }
  .popup_header .idil_author_mobile .author_details p {
    font-size: 12px;
  }

  #idilesom_outer {
    overflow-x: hidden;
  }

  #photo_carousel_container {
    width: 100vw;
    height: 65vh;
  }

  #photo_carousel_image {
    max-width: 85vw;
    max-height: 70vh;
  }

  #photo_carousel_controls {
    top: 104%;
    justify-content: center;
    gap: 50px;
  }

  .idilesom_content {
    padding: 10px;
    gap: 10px;
  }

  .idil_description_title {
    margin-top: 15px;
    padding-bottom: 10px;
  }

  .idil_description {
    background-color: #e0e0e0;
    border-radius: 20px;
    padding: 10px;
  }

  .nearby-places-grid {
    grid-auto-flow: column;
    padding: 20px 0;
    overflow-x: auto;
  }

  .place-near-header {
    font-size: 24px !important;
  }

  .idil_video_desktop {
    display: none !important;
  }
  .idil_video_mobile {
    display: flex !important;
  }

  .download-tab-notes .install,
  .download-tab-notes .download,
  .download-tab-notes .use {
    padding: 10px 10px;
  }

  .stats > div {
    text-align: center;
    flex: 1;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
  }
}
