
  
  .nade-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  

  
  .back-button {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    height: 3rem;
  }
  
  .back-button svg {
    margin-right: 8px;
  }
  
  .back-button:hover {
    color: var(--color-primary);
  }
  
.back-button span {
  display: none;
}

  /* Node title */
  .nade-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
  }
  
  /* Layout container for desktop two-column layout */
  .nade-layout-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Media tabs */
  .nade-media-container {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .nade-media-tabs {
    display: flex;
    background-color: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
  }
  
  .tab-button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--color-text);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
  }
  
  .tab-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .tab-button.active {
    background-color: var(--color-primary);
    color: white;
  }
  
  .nade-media-content {
    position: relative;
    min-height: 300px;
  }
  
  .tab-content {
    display: none;
    width: 100%;
    height: 100%;
  }
  
  .tab-content.active {
    display: block;
  }
  
/* Контейнер для скриншота с прицелом */
.screenshot-wrapper {
  position: relative; /* Обязательно для позиционирования дочерних элементов */
  width: 100%;
  height: 100%;
  line-height: 0; /* Убирает лишние отступы под изображением */
}

/* Контейнер для SVG-прицела */
.crosshair-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Для точного центрирования самого SVG */
  width: 43px;
  height: 44px;
  z-index: 5;
  pointer-events: none;
}

.crosshair-overlay svg path {
  fill: #fff;
  stroke: #000;
  stroke-width: 1px;
  stroke-miterlimit: 10;
}

/* --- Стили для зума скриншота --- */

.screenshot-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-wrapper img {
  transform-origin: center; /* Масштабирование от центра */
  transition: transform 0.2s ease-out;
  will-change: transform;
  max-width: 100%;
  max-height: 100%;
}

/* Контейнер для кнопок "+" и "-" */
.zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 5px;
}

/* Стили для самих кнопок зума */
.zoom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;
}

.zoom-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Курсоры для панорамирования */
.screenshot-wrapper.is-zoomed {
  cursor: grab;
}

.screenshot-wrapper.is-panning {
  cursor: grabbing;
}

  /* Make sure maps in tabs have proper height */
  #map-content {
    min-height: 300px;
  }
  
  #map-content .geolocation-map-container,
  #map-content .field--name-field-map-coordinates,
  #map-content iframe,
  #map-content .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
  }
  
  /* Video and image sizing */
  .tab-content video,
  .tab-content img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .empty-tab-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--color-text-secondary);
  }
  
  /* Action buttons */
  .nade-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    max-width: 800px;
  }
  
  .action-button, .bookmark-flag a, .flag-report a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    background-color: transparent;
    border: 1px solid var(--color-stroke);
    border-radius: 8px;
    color: var(--color-text);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    height: 100%;
  }
  
  .action-button svg {
    margin-right: 8px;
  }
  
  .action-button:hover {
    background-color: var(--color-primary);
  }
  

  /* Override flag module styles to match our design */

  
  .bookmark-flag a:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 1px solid var(--color-stroke);
  }


  .try-in-game-container {
    position: relative;
  }
  
  .console-tooltip {
    display: none; /* Изначально скрыта */
    position: absolute;
    bottom: calc(100% + 10px); /* Располагаем над кнопкой с отступом 10px */
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 300px;
    max-width: 90vw;
    background-color: var(--color-card-bg);
    color: var(--color-text);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
    text-align: left;
  }
  
  .console-tooltip.is-visible {
    display: block; /* Класс для отображения подсказки */
  }
  
  .console-tooltip p {
    margin: 0 0 10px 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
  }
  
  .console-tooltip pre {
    margin: 0;
    padding: 0;
    background: none;
    font-family: monospace, 'Courier New', Courier;
    white-space: pre-wrap; /* Позволяет переносить длинные строки */
    color: var(--color-text);
    font-size: 1rem;
  }

  .action-button.try-in-game.is-copied {
    position: relative;
    color: transparent; /* Делаем оригинальный текст прозрачным */
  }
  
  /* ...скрываем иконку (SVG) внутри кнопки */
  .action-button.try-in-game.is-copied svg {
    visibility: hidden;
  }
  
  /* ...и показываем новый текст "Copied!" через псевдоэлемент */
  .action-button.try-in-game.is-copied::after {
    content: 'Copied!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text); /* Возвращаем видимый цвет для нового текста */
    white-space: nowrap;
  }
  
  /* Nade info section */
  .nade-info-section {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .info-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--color-text);
  }
  
  .info-value {
    font-weight: normal;
    color: var(--color-text-secondary);
  }
  
  .nade-team {
    display: flex;
    align-items: center;
    gap: 0.5em;
  }


  .info-team {
    display: block;
    width: 32px;
    height: 32px;
    background: left top no-repeat;
    background-size: cover;
  }

  .info-team-7 {
    background-image: url(../../images/t.png);
  }
  
  .info-team-8 {
    background-image: url(../../images/ct.png);
  }

  /* Technique and Movement buttons */
  .technique-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .technique-btn {
    display: block;
    height: 40px;
    width: 200px;
    background: left top no-repeat;
  }

  .technique-btn-9 {
    background-image: url(../../images/tech/left.png);
  }

  .technique-btn-10 {
    background-image: url(../../images/tech/right.png);
  } 

  .technique-btn-11 {
    background-image: url(../../images/tech/lr.png);
  }

  .movement-btn {
    display: block;
    height: 40px;
    width: 200px;
    background: left top no-repeat;
    filter: invert(1);
  }
  
  .movement-btn-14 {
    background-image: url(../../images/move/run.png);
  }
  
  .movement-btn-17 {
    background-image: url(../../images/move/s+r.png);
  }
  
  .movement-btn-16 {
    background-image: url(../../images/move/s+w.png);
  }
  
  .movement-btn-13 {
    background-image: url(../../images/move/space.png);
  }
  
  .movement-btn-15 {
    background-image: url(../../images/move/walk.png);
  }
  
  /* Flight time */
  .flight-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
  }
  
  /* Description */
  .nade-description {
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
  }
  
  .field--name-field-nade-description {
    color: var(--color-text-secondary);
    line-height: 1.5;
  }
  
  /* Meta info (date, author) */
  .nade-meta {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
  }
  
  /* Similar grenades section */
  .similar-grenades-section {
    margin-top: 20px;
  }
  
  .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--color-text);
  }
  
  /* Desktop styles */
  @media (min-width: 768px) {

  
    .nade-title {
      font-size: 2rem;
    }
    
    /* Create two-column layout on desktop */
    .nade-layout-container {
      flex-direction: row;
      align-items: flex-start;
    }
    
    .nade-left-column {
      flex: 1;
      width: 65%;
    }
    
    .nade-right-column {
      width: 35%;
      max-width: 350px;
    }
    
    /* Action buttons for desktop stay as 2 columns */
    .nade-actions {
      grid-template-columns: 1fr 1fr;
    }
  

  
    .nade-media-content {
      min-height: 400px;
    }
  
    .tab-button {
      padding: 15px;
    }
  
    .nade-info-section {
      padding: 20px;
      height: 100%;
    }
    
    /* Map tab content on desktop */
    #map-content,
    #map-content .geolocation-map-container,
    #map-content .field--name-field-map-coordinates,
    #map-content iframe,
    #map-content .leaflet-container {
      min-height: 400px;
    }
  }
  
  /* Larger desktop */
  @media (min-width: 1200px) {
    .nade-left-column {
      width: 70%;
    }
    
    .nade-right-column {
      width: 30%;
      max-width: 380px;
    }
    
    /* Action buttons on larger screens - 4 in a row */
    .nade-actions {
      grid-template-columns: repeat(4, 1fr);
    }
    
    .bookmark-flag {
      grid-column: auto;
    }
  }




.view-similar-nades .node {
  background: var(--color-card-bg);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column-reverse;
}

/* Modal styles */
.nade-similar-positions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.similar-nades-button-wrapper .action-button {
  width: auto;
  justify-content: space-between; /* Распределяет место: текст слева, иконка справа */
  padding: 12px 16px;
  background-color: var(--color-primary); /* Оранжевый фон */
  color: var(--color-text); /* Белый текст */
  border: none;
  border-radius: 12px; /* Более скругленные углы */
  font-weight: 500;
}

.similar-nades-button-wrapper .action-button:hover {
  opacity: 0.9;
  background-color: var(--color-primary); /* Убираем изменение фона при наведении */
}

.similar-nades-button-wrapper .action-button svg {
  margin-right: 0; /* Убираем старый отступ */
  margin-left: 8px; /* Добавляем отступ слева от иконки */
  stroke: white; /* Делаем иконку белой */
  width: 20px;
  height: 20px;
}

.nade-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nade-modal.is-visible {
  display: block;
  opacity: 1;
}

.nade-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.nade-modal-content {
  position: relative;
  background-color: var(--color-menu-bg);
  margin: 5vh auto;
  padding: 20px;
  border: 1px solid var(--color-border);
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.nade-modal.is-visible .nade-modal-content {
  transform: translateY(0);
}

.nade-modal-content .section-title,
.nade-modal-content h2 {
  margin-top: 0;
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.nade-modal-close {
  color: var(--color-text-secondary);
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.nade-modal-close:hover,
.nade-modal-close:focus {
  color: var(--color-text);
  text-decoration: none;
}

body.modal-open {
  overflow: hidden;
}

/* Styling for the current nade block in the modal */
body.modal-open .current-nade-wrapper {
  margin-bottom: 2rem;
  /* Опционально: можно ограничить ширину, чтобы выглядело как один элемент сетки */
  max-width: 320px; 
}

/* Styling for the current nade card */
body.modal-open .is-current-nade {
  background: var(--color-menu-bg);
  padding: 1rem;
  border-radius: 10px;
  outline-offset: 2px;
}

body.modal-open .is-current-nade .node,
body.modal-open .is-current-nade .node a {
  cursor: default;
  pointer-events: none; /* Полностью отключает клики */
}

body.modal-open .is-current-nade .node:hover {
  transform: none; /* Убираем эффект "подъема" при наведении */
  box-shadow: none;
}

/* Скрываем заголовок View внутри модального окна, т.к. у окна уже есть свой */
.nade-modal-content .view-similar-nades > h2 {
    display: none;
}

.views-view-responsive-grid__item .node--type-nade article {
  display: flex;
  flex-direction: column-reverse;
}