/* Стили для страницы города с ресторанами */

/* Баннер города */
.city-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/img/wine/bg_msk.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}

.city-hero__overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(55, 69, 44, 0.3);
  z-index: 1;
}

.city-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.city-hero__content h1 {
  font-family: "Wremena", serif;
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.1;
}

.city-hero__content p {
  font-size: 24px;
  margin: 0;
  font-weight: 400;
}

/* Секция со списком ресторанов */
.restaurants-list {
  background-color: #fff;
  padding: 80px 0;
  border-radius: 0 0 40px 40px;
}

/* Фильтры городов */
.city-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.city-filter {
  font-family: "Golos UI", sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid #37452c;
  color: #37452c;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: #fff;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

.city-filter:hover {
  background-color: #37452c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 69, 44, 0.3);
}

.city-filter.active {
  background-color: #37452c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(55, 69, 44, 0.3);
}

.city-filter:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(55, 69, 44, 0.3);
}

.city-filter:focus-visible {
  outline: 3px solid #37452c;
  outline-offset: 3px;
}

/* Сетка карточек ресторанов */
.restaurant-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 40px;
}

/* Карточка ресторана */
.restaurant-card {
  background-color: #fcf9f6;
  border: 1px solid #e2d3c3;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Карточка сетевого ресторана (двойная ширина) */
.restaurant-card--network {
  grid-column: span 2;
}

.restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.restaurant-card__image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #e5e5e5;
  position: relative;
}

.restaurant-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.restaurant-card:hover .restaurant-card__image img {
  transform: scale(1.05);
}

/* Слайдер изображений ресторана */
.restaurant-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.restaurant-slider__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.restaurant-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.restaurant-slider__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.restaurant-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Стрелки навигации */
.restaurant-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #37452c;
  transition: all 0.3s ease;
  z-index: 3;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.restaurant-slider:hover .restaurant-slider__arrow {
  opacity: 1;
}

.restaurant-slider__arrow:hover {
  background-color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.restaurant-slider__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.restaurant-slider__arrow--prev {
  left: 12px;
}

.restaurant-slider__arrow--next {
  right: 12px;
}

/* Индикаторы (точки) */
.restaurant-slider__nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.restaurant-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.restaurant-slider__dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.restaurant-slider__dot--active {
  background-color: #fff;
  width: 24px;
  border-radius: 4px;
}

.restaurant-card__content {
  padding: 30px;
}

.restaurant-card__title {
  font-family: "Wremena", serif;
  font-size: 28px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.restaurant-card__description {
  font-family: "Golos UI", sans-serif;
  font-size: 16px;
  color: #666;
  margin: 0 0 20px 0;
}

.restaurant-card__info {
  margin-bottom: 25px;
}

.restaurant-card__address {
  font-family: "Golos UI", sans-serif;
  font-size: 16px;
  color: #1e1e1e;
  margin-bottom: 15px;
}

.restaurant-card__address strong {
  font-weight: 600;
}

.restaurant-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.restaurant-card__hours,
.restaurant-card__phone {
  font-family: "Golos UI", sans-serif;
  font-size: 14px;
  color: #1e1e1e;
  line-height: 1.5;
}

.restaurant-card__hours strong,
.restaurant-card__phone strong {
  font-weight: 600;
}

.restaurant-card__actions {
  display: flex;
  gap: 15px;
}

/* Кнопки */
.btn {
  font-family: "Golos UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.btn--outline {
  background-color: transparent;
  border-color: #37452c;
  color: #37452c;
}

.btn--outline:hover {
  background-color: #37452c;
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline:focus-visible {
  outline: 3px solid #37452c;
  outline-offset: 3px;
}

.btn--primary {
  background-color: #37452c;
  color: #fff;
  border-color: #37452c;
}

.btn--primary:hover {
  background-color: #2d3824;
  border-color: #2d3824;
  transform: translateY(-2px);
}

.btn--primary:focus-visible {
  outline: 3px solid #37452c;
  outline-offset: 3px;
}

.btn--primary:active,
.btn--outline:active {
  transform: translateY(0);
}

/* Footer дополнительные стили */
.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.footer__left .copy {
  margin: 0;
  font-size: 14px;
}

.footer__right {
  display: flex;
  gap: 30px;
}

.footer__right a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer__right a:hover {
  opacity: 0.7;
}

.footer__right a:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Средние экраны (до 1200px) */
@media screen and (max-width: 1200px) {
  .restaurant-cards {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
  }
}

/* Планшеты (до 992px) */
@media screen and (max-width: 992px) {
  .city-hero {
    height: 350px;
  }

  .city-hero__content h1 {
    font-size: 48px;
  }

  .city-hero__content p {
    font-size: 20px;
  }

  .restaurants-list {
    padding: 60px 0;
  }

  .city-filters {
    margin-bottom: 40px;
    gap: 15px;
  }

  .city-filter {
    font-size: 16px;
    padding: 10px 24px;
  }

  .restaurant-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* На планшетах сетевые рестораны занимают всю ширину (так как сетка в 1 столбец) */
  .restaurant-card--network {
    grid-column: span 1;
  }

  .restaurant-card__image {
    height: 240px;
  }

  .restaurant-card__content {
    padding: 25px;
  }

  .restaurant-card__title {
    font-size: 24px;
  }
}

/* Планшеты вертикально (до 768px) */
@media screen and (max-width: 768px) {
  /* Бургер-меню видимость */
  .burger-menu {
    display: flex !important;
  }

  .city-hero {
    height: 300px;
  }

  .city-hero__content h1 {
    font-size: 36px;
  }

  .city-hero__content p {
    font-size: 18px;
  }

  .restaurants-list {
    padding: 40px 0;
  }

  .city-filters {
    gap: 10px;
    margin-bottom: 30px;
  }

  .city-filter {
    font-size: 14px;
    padding: 8px 20px;
  }

  .restaurant-cards {
    gap: 25px;
  }

  .restaurant-card__image {
    height: 220px;
  }

  .restaurant-card__content {
    padding: 20px;
  }

  .restaurant-card__title {
    font-size: 22px;
  }

  .restaurant-card__details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .restaurant-card__actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer__content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .footer__right {
    flex-direction: column;
    gap: 15px;
  }

  footer {
    height: auto;
    min-height: 120px;
  }
}

/* Мобильные (до 576px) */
@media screen and (max-width: 576px) {
  .city-hero {
    height: 250px;
  }

  .city-hero__content h1 {
    font-size: 28px;
    padding: 0 15px;
  }

  .city-hero__content p {
    font-size: 16px;
  }

  .restaurants-list {
    padding: 30px 0;
  }

  .city-filters {
    gap: 8px;
  }

  .city-filter {
    font-size: 13px;
    padding: 7px 16px;
  }

  .restaurant-cards {
    gap: 20px;
  }

  .restaurant-card__image {
    height: 200px;
  }

  .restaurant-card__content {
    padding: 20px;
  }

  .restaurant-card__title {
    font-size: 20px;
  }

  .restaurant-card__description {
    font-size: 14px;
  }

  .restaurant-card__address,
  .restaurant-card__hours,
  .restaurant-card__phone {
    font-size: 13px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* Слайдер на мобильных */
  .restaurant-slider__arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
    opacity: 1;
  }

  .restaurant-slider__arrow--prev {
    left: 8px;
  }

  .restaurant-slider__arrow--next {
    right: 8px;
  }

  .restaurant-slider__nav {
    bottom: 10px;
    gap: 6px;
  }

  .restaurant-slider__dot {
    width: 7px;
    height: 7px;
  }

  .restaurant-slider__dot--active {
    width: 20px;
  }
}

/* Очень маленькие экраны (до 375px) */
@media screen and (max-width: 375px) {
  .city-hero__content h1 {
    font-size: 24px;
  }

  .restaurant-card__title {
    font-size: 18px;
  }
  
  .restaurant-card__content {
    padding: 15px;
  }
  
  .btn {
    font-size: 13px;
    padding: 9px 16px;
  }
}

/* Сообщение когда нет ресторанов */
.text-center {
  text-align: center;
  padding: 60px 20px;
  font-family: "Golos UI", sans-serif;
  font-size: 18px;
  color: #666;
}
