/* Кнопки */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--forest-green);
  color: white;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn:hover {
  background: #2d6b30;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60,141,64,0.3);
}
.btn--terracotta { background: var(--terracotta); }
.btn--terracotta:hover { background: #c06a3f; }
.btn--small { padding: 8px 16px; font-size: 14px; }

/* Адаптив для кнопок */
@media (max-width: 768px) {
  .btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Карточки */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 20px;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow-y: auto;
}
.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.close {
  color: #999;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.05);
}
.close:hover {
  color: var(--dark-text);
  background: rgba(0,0,0,0.1);
  transform: rotate(90deg);
}

/* Адаптив для модальных окон */
@media (max-width: 768px) {
  .modal-content {
    width: 100vw !important;
    min-width: unset;
    max-width: 100vw;
    left: 0;
    margin: 0;
    padding: 18px 4vw 18px 4vw;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 99vh;
  }

  /* Override for message modal - keep it centered on mobile */
  #message-modal .modal-content {
    width: 90vw !important;
    max-width: 400px !important;
    margin: 30vh auto !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    position: relative;
    transform: none;
  }

  .close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .modal-content {
    padding: 9px 0 9px 0;
    border-radius: 7px 7px 0 0;
  }
  .camp-modal-content {
    max-height: 60vh;
  }
  #camp-reviews {
    max-height: 110px;
  }
}

@media (max-width: 375px) {
  .camp-modal-content {
    max-height: 45vh;
  }
  #camp-reviews {
    max-height: 70px;
  }
}

@media (max-width: 340px) {
  .camp-modal-content {
    font-size: 12px;
    max-height: 30vh;
  }
  .modal-content {
    padding: 2px 0;
  }
}

/* Auth box */
.auth-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 450px;
  margin: 0 auto;
  overflow-y: auto;
  max-height: 90vh;
}
.auth-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-box .btn--primary {
  width: 100%;
  max-width: 280px;
  margin: 10px auto 0;
  display: block;
}

/* Адаптив для auth-box */
@media (max-width: 768px) {
  .auth-box {
    padding: 20px;
    width: 95%;
    max-height: 85vh;
  }
  .auth-box h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
}
@media (max-width: 480px) {
  .auth-box {
    padding: 15px;
  }
  .auth-box h2 {
    font-size: 20px;
  }
}

/* Логотип в модальных окнах */
.auth-box .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest-green);
}
.auth-box .logo-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.auth-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark-text);
  font-size: 28px;
  font-weight: 700;
}
.auth-link {
  text-align: center;
  margin-top: 25px;
  color: var(--light-text);
  font-size: 15px;
}
.auth-link a {
  color: var(--forest-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.auth-link a:hover {
  color: #2d6b30;
  text-decoration: underline;
}

/* Адаптив для auth-link */
@media (max-width: 480px) {
  .auth-link {
    margin-top: 15px;
    font-size: 14px;
  }
}

/* Формы */
.form-group {
  margin-bottom: 24px;
  width: 100%;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-text);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E8E8E8;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  transition: all 0.3s ease;
  background: #fafafa;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest-green);
  background: white;
  box-shadow: 0 0 0 3px rgba(60,141,64,0.1);
  transform: translateY(-1px);
}

/* Адаптив для форм */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 16px;
  }
  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Checkbox группа */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}
.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Back button */
.back-button {
  background: var(--forest-green);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 20px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}
.back-button:hover {
  background: #2d6b30;
}

/* Аватар */
.avatar {
  width: 120px;
  height: 120px;
  background: var(--forest-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

/* Place item */
.place-item {
  padding: 15px;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Навигация */
#main-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  padding: 15px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
#main-nav .btn {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
}

/* Адаптив для навигации */
@media (max-width: 768px) {
  #main-nav {
    padding: 10px;
    gap: 6px;
  }
  #main-nav .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Логотипы */
.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
  transform-origin: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
.hero-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(60, 141, 64, 0.6));
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.hero-logo-container {
  position: relative;
  margin: 0;
  padding: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Большое модальное окно для лагеря */
.camp-modal-fullscreen .modal-content {
  max-width: 95%;
  max-height: 90vh;
  width: 1200px;
  margin: 2% auto;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  animation: modalScaleIn 0.3s ease-out;
}
@keyframes modalScaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Адаптив для большого модального окна */
@media (max-width: 1024px) {
  .camp-modal-fullscreen .modal-content {
    width: 95%;
  }
}
@media (max-width: 768px) {
  .camp-modal-fullscreen .modal-content {
    margin: 1% auto;
    max-height: fit-content;
  }
}

/* Контент модального окна лагеря */
.camp-modal-content {
  display: flex;
  grid-template-columns: 1fr 1fr;
  min-height: auto;
  /* flex-direction: column; */
  max-height: inherit;
  overflow: hidden;
}

/* Адаптив для контента модального окна */
@media (max-width: 1024px) {
  .camp-modal-content {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    max-height: fit-content;
  }
  .camp-gallery-section {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
  }
  .camp-info-section {
    padding: 25px;
  }
  .camp-title {
    font-size: 28px;
  }
}
@media (max-width: 768px) {
  .camp-meta-grid {
    grid-template-columns: 1fr;
  }
  .camp-actions {
    flex-direction: column;
  }
  .camp-gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Левая колонка - галерея */
.camp-gallery-section {
  background: #f8f9fa;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid #e9ecef;
}
.camp-gallery-main {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--sky-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.camp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camp-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.camp-gallery-thumb {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.camp-gallery-thumb:hover {
  border-color: var(--forest-green);
  transform: scale(1.05);
}
.camp-gallery-thumb.active {
  border-color: var(--forest-green);
}
.camp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Правая колонка - информация */
.camp-info-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.camp-header {
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
}
.camp-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 15px;
  line-height: 1.2;
}
.camp-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.camp-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(60,141,64,0.05);
  border-radius: 12px;
  font-size: 14px;
  color: var(--light-text);
}
.camp-meta-item strong {
  color: var(--forest-green);
  font-weight: 600;
}
.camp-description {
  margin-bottom: 30px;
}
.camp-description h3 {
  color: var(--dark-text);
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}
.camp-description-text {
  color: var(--light-text);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
}
.camp-actions {
  margin: 25px 0;
  display: flex;
  gap: 15px;
}
.camp-reviews-section {
  margin-top: 30px;
}
.camp-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.camp-reviews-title {
  color: var(--dark-text);
  font-size: 20px;
  font-weight: 600;
}
.camp-reviews-count {
  color: var(--light-text);
  font-size: 14px;
}
.camp-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Кастомный скроллбар */
.camp-reviews-list::-webkit-scrollbar {
  width: 6px;
}
.camp-reviews-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.camp-reviews-list::-webkit-scrollbar-thumb {
  background: var(--forest-green);
  border-radius: 3px;
}
.camp-reviews-list::-webkit-scrollbar-thumb:hover {
  background: #2d6b30;
}
.review-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}
.review-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.review-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}
.review-author-name {
  font-weight: 600;
  color: var(--dark-text);
}
.review-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 16px;
}
.review-text {
  color: var(--light-text);
  line-height: 1.5;
  margin: 0;
}

/* Полноэкранная галерея */
.fullscreen-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fullscreen-gallery.active {
  display: flex;
  opacity: 1;
}
.fullscreen-gallery-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-gallery-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.fullscreen-gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.fullscreen-gallery-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}
.fullscreen-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 32px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.fullscreen-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}
.fullscreen-gallery-prev {
  left: 30px;
}
.fullscreen-gallery-next {
  right: 30px;
}
.fullscreen-gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Адаптив для полноэкранной галереи */
@media (max-width: 768px) {
  .fullscreen-gallery-nav {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .fullscreen-gallery-prev {
    left: 15px;
  }
  .fullscreen-gallery-next {
    right: 15px;
  }
  .fullscreen-gallery-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

/* Добавьте в конец components.css */
.camp-gallery-main {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.camp-gallery-main:hover {
  transform: scale(1.02);
}
.camp-gallery-main img {
  transition: transform 0.3s ease;
}
.camp-gallery-main:hover img {
  transform: scale(1.05);
}
/* Анимация появления полноэкранной галереи */
@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.fullscreen-gallery.active .fullscreen-gallery-content {
  animation: galleryFadeIn 0.3s ease-out;
}
/* Улучшение для миниатюр */
.camp-gallery-thumb {
  cursor: pointer;
}
.camp-gallery-thumb img {
  transition: transform 0.3s ease;
}
.camp-gallery-thumb:hover img {
  transform: scale(1.1);
}

/* === Стили для профиля и бизнес-профиля === */

/* Контейнер для списка мест */
.saved-places {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Элемент места */
.place-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  margin-bottom: 10px;
  background: white;
  transition: all 0.3s ease;
}

.place-item:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Статистика бизнеса */
.business-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
  padding: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: white;
  min-width: 140px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--forest-green);
}

.stat-label {
  font-size: 14px;
  color: var(--light-text);
  margin-top: 5px;
}

/* Аватар */
.avatar {
  width: 120px;
  height: 120px;
  background: var(--forest-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  margin: 0 auto 20px;
}

/* Заголовки профиля */
.profile-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.profile-header p {
  color: var(--light-text);
  margin-bottom: 5px;
}

/* Кнопка добавления места */
#add-place-btn {
  margin: 20px 0;
  width: auto;
  display: inline-block;
}

/* Секция изображений стоянки */
#camp-images-section {
  margin-top: 30px;
  padding: 20px;
  background: rgba(60,141,64,0.05);
  border-radius: 12px;
}

#camp-images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#camp-images-container img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--forest-green);
}

/* Адаптив для профиля */
@media (max-width: 768px) {
  .saved-places {
    padding: 15px;
  }
  
  .place-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }
  
  .business-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-card {
    width: 100%;
    max-width: 200px;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  
  .profile-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .saved-places {
    padding: 10px;
  }
  
  .place-item {
    padding: 12px;
  }
  
  .stat-card {
    min-width: 120px;
    padding: 12px;
  }
  
  .stat-value {
    font-size: 20px;
  }
}

/* В components.css - добавить в конец файла */

/* Попап на карте */
.map-popup-content {
  padding: var(--space-sm);
  min-width: 200px;
}

.map-popup-content strong {
  color: var(--dark-text);
  font-size: 14px;
  display: block;
  margin-bottom: var(--space-xs);
}

.map-popup-content .btn {
  margin-top: var(--space-sm);
  width: 100%;
}

/* Адаптивные элементы управления Leaflet */
.leaflet-top,
.leaflet-bottom {
  z-index: 400;
}

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

.leaflet-bar {
  border-radius: var(--radius-md);
}

/* Адаптивность для контейнера добавления места */
#add-place-map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--light-gray);
  margin-bottom: var(--space-md);
}

/* УТИЛИТЫ ДЛЯ КАРТЫ */
.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  color: var(--light-text);
}

.map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee;
  color: #c33;
  padding: var(--space-md);
  text-align: center;
}

.map-loader {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--forest-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}/* В components.css - добавить в конец файла */

/* Попап на карте */
.map-popup-content {
  padding: var(--space-sm);
  min-width: 200px;
}
.map-popup-content strong {
  color: var(--dark-text);
  font-size: 14px;
  display: block;
  margin-bottom: var(--space-xs);
}

.map-popup-content .btn {
  margin-top: var(--space-sm);
  width: 100%;
}

/* Адаптивные элементы управления Leaflet */
.leaflet-top,
.leaflet-bottom {
  z-index: 400;
}
.leaflet-control-zoom a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 18px;
}

.leaflet-bar {
  border-radius: var(--radius-md);
}

/* Адаптивность для контейнера добавления места */
#add-place-map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--light-gray);
  margin-bottom: var(--space-md);
}

/* УТИЛИТЫ ДЛЯ КАРТЫ */
.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  color: var(--light-text);
}

.map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee;
  color: #c33;
  padding: var(--space-md);
  text-align: center;
}

.map-loader {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--forest-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ ========== */

.bottom-navigation-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 5000 !important;
  border-top: 1.5px solid #e2e8f0;
  box-shadow: 0 -3px 18px rgba(60,141,64,0.08);
}
.bottom-nav-item.active,
.bottom-nav-item:active {
  background: var(--forest-green, #28803a);
  color: #fff !important;
  border-radius: 14px;
  box-shadow: 0 0 0 2.5px #37d07133;
  font-weight: 700;
  border: 2.5px solid #197e38BB;
  transition: background 0.15s, color 0.15s;
}
.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-label {
  color: #fff !important;
  font-weight: 800;
}
.bottom-nav-item {
  position: relative;
}

/* Hide bottom navigation on desktop, show on mobile */
@media (min-width: 769px) {
  .bottom-navigation-bar {
    display: none !important;
  }
}

/* ========== ВЕРХНЯЯ ПАНЕЛЬ НАВИГАЦИИ (DESKTOP) ========== */

.top-navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none; /* Hidden by default, shown on desktop */
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--light-gray);
}

.top-nav-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 8px;
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.top-nav-item:hover {
  background: rgba(60, 141, 64, 0.1);
  color: var(--forest-green);
}

.top-nav-item.active {
  background: var(--forest-green);
  color: white;
}

.top-nav-item.active:hover {
  background: #2d6b30;
}

/* Show top navigation on desktop */
@media (min-width: 769px) {
  .bottom-navigation-bar {
    display: none;
  }

  .top-navigation-bar {
    display: flex;
  }
}

#bottom-nav-menu {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  gap: 2px;
  padding: 0 4px;
}

.bottom-nav-item {
  position: relative;
  flex: 1;
  max-width: 80px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  color: var(--light-text);
  font-size: 20px;
  text-decoration: none;
  min-height: 50px;
  border-radius: 8px;
  margin: 5px;
  padding: 8px 4px;
}

.bottom-nav-item:hover {
  background: rgba(60, 141, 64, 0.1);
  color: var(--forest-green);
  transform: translateY(-2px);
}

.bottom-nav-item.active {
  background: var(--forest-green);
  color: white;
  box-shadow: 0 2px 8px rgba(60, 141, 64, 0.3);
}

.bottom-nav-item.active:hover {
  background: #2d6b30;
}

.bottom-nav-label {
  font-size: 10px;
  margin-top: 2px;
  font-weight: 500;
  text-align: center;
  line-height: 1;
}

.bottom-nav-item.active .bottom-nav-label {
  color: white;
}

/* Основной контент - без отступа для наложения навигации */
#app-content {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Map screen should fill the entire viewport */
#app-content .screen--map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

/* Адаптивные стили для нижней навигации */
@media (max-width: 768px) {
  .bottom-navigation-bar {
    height: 65px;
  }

  /* Removed padding for overlay navigation */

  .bottom-nav-item {
    font-size: 18px;
    min-height: 45px;
  }

  .bottom-nav-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .bottom-navigation-bar {
    height: 60px;
  }

  /* Removed padding for overlay navigation */

  .bottom-nav-item {
    font-size: 16px;
    min-height: 40px;
  }

  .bottom-nav-label {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .bottom-navigation-bar {
    height: 55px;
  }

  /* Removed padding for overlay navigation */

  .bottom-nav-item {
    font-size: 14px;
    min-height: 35px;
  }

  .bottom-nav-label {
    font-size: 7px;
  }
}

/* ----------- FLEXIBLE CAMP DETAIL PAGE ----------- */

@media (max-width: 1024px) {
  .camp-details {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}
@media (max-width: 900px) {
  .screen--camp-detail, .camp-details, .camp-info {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    cursor: grab;
    max-height: 90vh !important;
  }
  .camp-details {
    min-height: 65vh;
    max-height: 93vh;
  }
  .camp-gallery {
    max-height: 280px;
    min-height: 140px;
    height: 32vw;
    margin-bottom: 18px;
  }
  .camp-meta span {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
  }
  .camp-meta {
    margin-bottom: 14px;
  }
  #camp-reviews {
    max-height: 120px;
    overflow-y: auto;
  }
  .btn#want-to-visit-btn {
    margin-bottom: 10px !important;
  }
}
@media (max-width: 900px) {
  .camp-info {
    min-height: 280px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible !important;
  }
  .camp-actions {
    flex-direction: column !important;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px !important;
    z-index: 10 !important;
  }
  .camp-actions .btn,
  .camp-actions button {
    width: 100%;
    min-width: 0 !important;
    font-size: 18px;
    padding: 15px 0;
    margin: 0;
    flex: 0 0 auto !important;
    box-sizing: border-box;
    z-index: 10;
  }
  .camp-gallery {
    min-height: 100px;
    max-height: 240px;
    margin-bottom: 10px;
  }
  .camp-reviews {
    margin-bottom: 12px;
  }
  #camp-reviews {
    max-height: 110px;
    overflow-y: auto;
    margin-bottom: 12px;
  }
}
@media (max-width: 768px) {
  .screen--camp-detail {
    padding: 1vw 0 70px 0 !important;
    min-height: 100vh;
  }
  .camp-details {
    display: flex;
    flex-direction: column;
    width: 100vw;
    min-width: unset;
    max-width: 100vw;
    gap: 0;
  }
  .camp-gallery {
    width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
  .camp-info {
    padding: 12px 2vw 20px 2vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100vw;
    box-sizing: border-box;
    min-height: auto;
    overflow-x: auto;
  }
  .camp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
  }
  .camp-meta span {
    font-size: 15px !important;
    flex: 1 1 40%;
  }
  #camp-reviews {
    max-height: 130px;
    overflow-y: auto;
    margin-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .camp-meta {
    flex-direction: column;
    font-size: 14px !important;
    gap: 8px 0;
  }
  .camp-info {
    padding: 6px 1vw 10px 1vw !important;
  }
  #camp-reviews {
    max-height: 70px;
  }
}
@media (max-width: 375px) {
  .camp-info {
    font-size: 13px !important;
    padding: 2px 0 0 0 !important;
  }
  #camp-reviews {
    max-height: 42px;
  }
}

