/* screens.css */

/* === Лендинг === */
.screen--landing {
  background: linear-gradient(135deg, rgba(60,141,64,0.1) 0%, rgba(91,188,235,0.1) 100%);
  position: relative;
  overflow: hidden;
  background-size: cover;
}
.screen--landing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(245,241,235,0.85) 0%, rgba(245,241,235,0.85) 100%);
  pointer-events: none;
}
.screen--landing > * { 
  position: relative; 
  z-index: 2; 
}

/* Header лендинга */
.screen--landing .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
}

.screen--landing .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest-green);
  cursor: pointer;
}

.screen--landing .header-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.screen--landing .nav-link {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.screen--landing .nav-link:hover {
  color: var(--forest-green);
}

/* Mobile burger menu button - hidden on desktop */
.landing-mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--forest-green);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 24px;
  color: var(--forest-green);
  cursor: pointer;
  transition: all 0.3s ease;
}

.landing-mobile-menu-toggle:hover {
  background: var(--forest-green);
  color: white;
}

/* Mobile sidebar menu */
.landing-mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  display: none;
}

.landing-mobile-sidebar.active {
  display: block;
}

.landing-mobile-sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.landing-mobile-sidebar-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.landing-mobile-sidebar.active .landing-mobile-sidebar-content {
  transform: translateX(0);
}

.landing-mobile-sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: var(--dark-text);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.landing-mobile-sidebar-close:hover {
  background: var(--light-bg);
  color: var(--forest-green);
}

.landing-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
}

.landing-mobile-nav-link {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  transition: color 0.3s;
}

.landing-mobile-nav-link:hover {
  color: var(--forest-green);
}

/* Hero секция */
.screen--landing .hero {
  text-align: center;
  padding: 80px 60px 60px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.screen--landing .hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.screen--landing .subtitle {
  font-size: 24px;
  color: var(--light-text);
  margin-bottom: 40px;
  font-weight: 500;
}

/* Features */
.screen--landing .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.screen--landing .feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.screen--landing .feature-card:hover {
  transform: translateY(-5px);
}

.screen--landing .feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.screen--landing .feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--dark-text);
}

.screen--landing .feature-card p {
  color: var(--light-text);
  line-height: 1.6;
}

/* About Section */
.screen--landing .about-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 50px 60px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.screen--landing .about-section h2 {
  font-size: 42px;
  margin-bottom: 30px;
  color: var(--forest-green);
  text-align: center;
  font-weight: 700;
}

.screen--landing .about-content {
  line-height: 1.8;
  color: var(--dark-text);
  font-size: 17px;
}

.screen--landing .about-content p {
  margin-bottom: 20px;
}

.screen--landing .about-content strong {
  color: var(--forest-green);
  font-weight: 600;
}

.screen--landing .about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.screen--landing .about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: rgba(60,141,64,0.05);
  border-radius: 16px;
  transition: all 0.3s;
}

.screen--landing .about-feature-item:hover {
  background: rgba(60,141,64,0.1);
  transform: translateX(5px);
}

.screen--landing .about-feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.screen--landing .about-feature-text {
  flex: 1;
}

.screen--landing .about-feature-text strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.screen--landing .about-feature-text p {
  margin: 0;
  font-size: 15px;
  color: var(--light-text);
}

/* Contacts Section */
.screen--landing .contacts-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 50px 60px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.screen--landing .contacts-section h2 {
  font-size: 42px;
  margin-bottom: 30px;
  color: var(--forest-green);
  text-align: center;
  font-weight: 700;
}

.screen--landing .contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.screen--landing .contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px;
  background: rgba(60,141,64,0.05);
  border-radius: 16px;
  transition: all 0.3s;
}

.screen--landing .contact-item:hover {
  background: rgba(60,141,64,0.1);
  transform: translateY(-3px);
}

.screen--landing .contact-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.screen--landing .contact-details {
  flex: 1;
}

.screen--landing .contact-details strong {
  display: block;
  margin-bottom: 5px;
  color: var(--forest-green);
  font-size: 16px;
}

.screen--landing .contact-details p {
  margin: 0;
  color: var(--light-text);
  font-size: 15px;
}

.screen--landing .contact-details a {
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.3s;
}

.screen--landing .contact-details a:hover {
  color: var(--forest-green);
}

.screen--landing .contact-form {
  margin-top: 40px;
}

.screen--landing .contact-form h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--dark-text);
}

/* Footer */
.screen--landing .footer {
  background: var(--dark-text);
  color: white;
  padding: 40px 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* === Карта === */
.screen--map {
  height: 100vh !important; /* Full viewport height - navigation overlays */
  min-height: 100vh !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  padding: 0 !important; /* Remove all padding so map takes full screen */
  margin: 0 !important;
}

/* Логотип в сайдбаре карты */
.screen--map .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest-green);
  cursor: pointer;
  margin-bottom: 30px;
}

.screen--map .logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Sidebar - hidden by default on mobile, visible on desktop */
.map-sidebar { 
  width: 320px; 
  background: white; 
  padding: 30px; 
  box-shadow: -2px 0 15px rgba(0,0,0,0.08);
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 200;
  transform: translateX(100%); /* Hidden by default on mobile */
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.map-sidebar:not(.hidden) {
  transform: translateX(0);
}

/* Desktop: sidebar always visible, even with .hidden class */
@media (min-width: 769px) {
  .map-sidebar {
    transform: translateX(0) !important; /* Always visible on desktop */
    top: 60px !important; /* Position below top navigation bar */
    height: calc(100vh - 60px) !important; /* Adjust height to account for top nav */
  }
  
  .map-sidebar.hidden {
    transform: translateX(0) !important; /* Override hidden class on desktop */
  }
  
  /* Map area positioned below top nav and adjusted for sidebar */
.map-area { 
    position: absolute !important;
    top: 60px !important; /* Position below top navigation bar */
    left: 0 !important;
    height: calc(100vh - 60px) !important; /* Adjust height to account for top nav */
    width: calc(100% - 320px) !important; /* Account for sidebar width */
  }
}

.map-area {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-sidebar-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000; /* Higher than sidebar */
  background: white;
  border: 2px solid var(--forest-green);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.map-sidebar-toggle:hover {
  background: var(--forest-green);
  transform: scale(1.05);
}

.map-sidebar-toggle:hover .toggle-icon {
  color: white;
}

.toggle-icon {
  font-size: 18px;
  color: var(--forest-green);
  transition: color 0.3s ease;
}

#map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Desktop: burger hidden, sidebar visible, map adjusted */
@media (min-width: 769px) {
  .map-sidebar-toggle {
    display: none !important;
  }
  
  /* Desktop: sidebar visible by default */
  .map-sidebar {
    transform: translateX(0) !important;
  }
  
  /* Desktop: map area takes remaining space when sidebar is visible */
  .map-area {
    width: calc(100% - 320px); /* Account for sidebar width */
  }
}

.search-box {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E5E5E5;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 30px;
  font-family: 'Manrope', sans-serif;
}

.filter-section h3 {
  margin-bottom: 16px;
  color: var(--dark-text);
  font-size: 18px;
}

.filter-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 12px;
  border: 2px solid #E5E5E5;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
}

.filter-btn.active {
  background: var(--forest-green);
  color: white;
  border-color: var(--forest-green);
}

/* === Профиль === */
.screen--profile .profile-container { 
  max-width: 800px; 
  margin: 0 auto; 
  padding: 60px 20px; 
}

.screen--profile .profile-header {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.screen--profile .saved-places {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.screen--profile .saved-places h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

/* === Бизнес-профиль === */
.screen--business-profile .profile-container { 
  max-width: 800px; 
  margin: 0 auto; 
  padding: 60px 20px; 
}

.screen--business-profile .profile-header {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.business-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
  min-width: 140px;
}

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

.stat-label {
  font-size: 14px;
  color: var(--light-text);
  margin-top: 4px;
}
/*Кнопка Бизнесу 
/* === Бизнес-информация === */
.screen--business {
  background: linear-gradient(135deg, rgba(60,141,64,0.1) 0%, rgba(91,188,235,0.1) 100%);
  min-height: 100vh;
}

.screen--business .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
}

.screen--business .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest-green);
  cursor: pointer;
}

.screen--business .hero {
  text-align: center;
  padding: 30px 20px;
  text-align: center;
}

.screen--business .hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--dark-text);
}

.screen--business .hero .subtitle {
  font-size: 18px;
  color: var(--light-text);
}

.screen--business .about-section {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 40px 60px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.screen--business .about-content {
  line-height: 1.8;
  color: var(--dark-text);
  font-size: 17px;
}

.screen--business .about-content p {
  margin-bottom: 20px;
}

.screen--business .about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.screen--business .about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: rgba(60,141,64,0.05);
  border-radius: 16px;
  transition: all 0.3s;
}

.screen--business .about-feature-item:hover {
  background: rgba(60,141,64,0.1);
  transform: translateX(5px);
}

.screen--business .about-feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.screen--business .about-feature-text {
  flex: 1;
}

.screen--business .about-feature-text strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.screen--business .about-feature-text p {
  margin: 0;
  font-size: 15px;
  color: var(--light-text);
}

.screen--business .footer {
  background: var(--dark-text);
  color: white;
  padding: 40px 60px;
  text-align: center;
}

/* Адаптив для страницы бизнесу */
@media (max-width: 768px) {
  .screen--business .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .screen--business .about-section {
    padding: 30px 20px;
    margin: 40px 10px;
  }
  
  .screen--business .about-features {
    grid-template-columns: 1fr;
  }
  
  .screen--business .about-feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* === Детали места === */
.screen--place-detail {
  min-height: 100vh;
  background: var(--white);
  padding: 20px;
}

.place-details {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Галерея */
.place-gallery {
  margin-bottom: 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gallery-wrapper {
  width: 100%;
  height: 300px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: white;
  overflow-x: auto;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.gallery-thumbs img.active {
  border-color: var(--forest-green);
}

.place-info {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.place-info h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.place-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--light-text);
}

/* Отзывы */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

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

.review-header {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 600;
}

.review-rating {
  color: var(--terracotta);
}

.review-text {
  color: var(--dark-text);
  line-height: 1.6;
}

/* Стили для формы добавления отзыва */
.add-review-form {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.form-header h4 {
  margin: 0;
  color: #333;
}

.close-form-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-form-btn:hover {
  background: #e9ecef;
  color: #333;
}

.camp-reviews-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#add-review-btn {
  white-space: nowrap;
}

/* Стили для звезд рейтинга */
.rating-stars {
  display: flex;
  gap: 5px;
  font-size: 28px;
  cursor: pointer;
  margin: 10px 0;
}

.rating-stars .star {
  color: #ccc;
  transition: color 0.2s;
}

.rating-stars .star:hover,
.rating-stars .star.active {
  color: #ffc107;
}

.rating-stars .star:hover ~ .star {
  color: #ccc;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#submit-review-btn {
  flex: 1;
}

#cancel-review-btn {
  flex: 1;
}

/* Стили для новых отзывов */
.review-card.new-review {
  border: 2px solid #4CAF50;
  background: #f8fff8;
}

.review-date {
  color: #666;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.no-reviews-message {
  text-align: center;
  padding: 30px;
  color: #666;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

.no-reviews-message p {
  margin: 0;
  font-size: 16px;
}

/* === Адаптив === */
@media (max-width: 1024px) {
  .screen--landing .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
  }

  .screen--landing .about-features {
    grid-template-columns: 1fr;
  }

  .screen--landing .contact-info {
    grid-template-columns: 1fr;
  }

  .map-sidebar {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .screen--landing .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
  }

  /* Hide desktop navigation on mobile */
  .screen--landing .header-nav {
    display: none !important;
  }
  
  /* Show burger menu button on mobile */
  .landing-mobile-menu-toggle {
    display: block !important;
  }

  .screen--landing .hero {
    padding: 50px 20px;
  }

  .screen--landing .hero h1 {
    font-size: 32px;
  }

  .screen--landing .subtitle {
    font-size: 18px;
  }

  .screen--landing .features {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .screen--landing .about-section, 
  .screen--landing .contacts-section {
    padding: 30px 20px;
    margin: 40px 10px;
  }

  .screen--landing .about-section h2,
  .screen--landing .contacts-section h2 {
    font-size: 28px;
  }

  .screen--map {
    height: 100vh !important; /* Full viewport height on mobile */
    min-height: 100vh !important;
    padding: 0 !important;
  }

  /* Mobile: sidebar styling */
  .map-sidebar {
    width: 280px;
  }

  .map-sidebar:not(.hidden) {
    z-index: 1000; /* Higher when visible */
  }
  
  /* Mobile: burger button visible */
  .map-sidebar-toggle {
    display: flex !important;
  }

  .map-area {
    width: 100%;
    height: 100%;
  }

  .filter-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .place-info {
    padding: 20px;
  }

  .profile-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .screen--landing .hero h1 {
    font-size: 26px;
  }

  .screen--landing .subtitle {
    font-size: 16px;
  }

  .screen--landing .feature-card {
    padding: 20px;
  }

  .screen--landing .logo {
    font-size: 18px;
  }

  .screen--map {
    height: 100vh !important; /* Full viewport height on mobile */
    min-height: 100vh !important;
    padding: 0 !important;
  }

  .map-sidebar {
    width: 260px;
  }

  .filter-buttons {
    grid-template-columns: 1fr;
  }

  .about-feature-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-icon {
    margin-bottom: 10px;
  }

  .place-meta {
    flex-direction: column;
    gap: 10px;
  }
}