:root {
  --primary-color: #0073e6;
  --secondary-color: #ff6600;
  --background-color: #f9f9f9;
  --card-bg: #ffffff;
  --text-color: #333;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: 0.3s ease;
}

/* ====== ОБЩИЕ СТИЛИ ====== */

body {
  font-family: Verdana, Geneva, Kalimati, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}


header {
    background-color: #ffffff;
    text-align: center;
}

hr {
  border: none;         /* Убираем стандартную рамку */
  height: 1px;          /* Толщина линии */
  background-color: #ccc; /* Цвет линии */
  margin: 30px 0;       /* Отступы сверху и снизу */
}

h1 {
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #222; /* тёмно-серый, мягче чем чёрный */
}

h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #222;
  display: inline-block;             /* чтобы линия шла только под текстом */
  padding-bottom: 1px;               /* отступ под текстом до линии */
  border-bottom: 1px solid rgb(0 0 0 / 20%); /* чёрная полупрозрачная линия */
}
	

/* Сообщения об ошибках и успехе */
.error {
  color: red;
  text-align: center;
  font-weight: bold;
}
.success {
  color: green;
  text-align: center;
  font-weight: bold;
}

/* ====== КОНТЕЙНЕР ====== */
.container {
  max-width: 1100px; /* Можно менять под свои нужды */
  margin: 0 auto;
  padding: 0 20px;
}

.review_container {
  max-width: 1300px; /* Можно менять под свои нужды */
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== НАВИГАЦИЯ (АДАПТИВНАЯ) ====== */
nav {
    background-color: #333;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Логотип слева, ссылки справа */
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 15px;
}

/* Логотип */
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Контейнер ссылок */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fbfbfb;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.nav-links a:hover {
    background-color: #ff6600;
    transform: scale(1.1);
}

@media (max-width: 767px) {
  .fancybox__thumbs {
    display: none !important;
  }
}

/* Для кнопки "Добавить сауну" */
.nav-links a[href="/register.php"]::before {
    content: "\f067"; /* Unicode для иконки plus */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* Для кнопки "Войти" */
.nav-links a[href="/login.php"]::before {
    content: "\f2f6"; /* Unicode для иконки sign-in-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* Для кнопки "Личный кабинет" */
.nav-links a[href="/dashboard.php"]::before {
    content: "\f007"; /* Unicode для иконки user */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* Для кнопки "Выход" */
.nav-links a[href="/logout.php"]::before {
    content: "\f2f5"; /* Unicode для иконки sign-out-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .nav-links {
        flex-direction: column;
    }
}

/* ====== КАТЕГОРИИ (МЕНЮ) ====== */
.category-nav {
    background-color: #fff; /* или другой цвет */
}

/* Список верхнего уровня */
.category-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 15px 0;
    justify-content: center;
    gap: 15px;
    background-size: cover;
	background-color: #f6f6f6;
	box-shadow: 0 3px 15px -4px #959595;
}

/* Каждый пункт меню */
.category-item {
    position: relative; /* нужно для позиционирования выпадающего меню */
}

/* Ссылки-кнопки (как "чипсы") */
.category-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #f9f9f9;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

/* Иконка стрелочки, если нужна */
.arrow-icon {
    transition: transform 0.3s;
}

/* Hover-эффект для кнопки */
.category-button:hover {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* Когда родитель .dropdown в состоянии active, можно крутить стрелку */
.dropdown.active .arrow-icon {
    transform: rotate(180deg);
}



/* Контейнер отдельного отзыва */
.review {
  border: 1px solid #ccc;       /* Серый бордер вокруг */
  border-radius: 4px;           /* Скругленные углы */
  background-color: #f9f9f9;    /* Лёгкий фон */
  padding: 15px;
  margin-bottom: 20px;
  color: #555;
  border-left: solid 3px #ff66004f;
}

/* Заголовок внутри отзыва (имя и дата/время) */
.review-header {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #333;
}

/* Дата и время: сделаем чуть светлее и поменьше шрифт */
.review-date {
  font-size: 0.9em;
  color: #666;
  margin-left: 5px;
}

/* Текст отзыва */
.review-text {
  margin: 0;
  color: #555;
  line-height: 1.4;
}



/* Стили для секции добавления отзыва */
#add-review {
  margin-top: 30px;
  background-color: var(--card-bg, #fff);  /* если переменная не определена – белый фон */
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius, 8px);
  box-shadow: var(--shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
  font-family: Arial, sans-serif;
}

/* Заголовок формы */
#add-review h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--text-color, #333);
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* Общие стили для элементов формы внутри секции */
#add-review form div {
  margin-bottom: 15px;
}

/* Стили для подписей (label) */
#add-review label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color, #333);
}

/* Стили для текстовых полей и textarea */
#add-review input[type="text"],
#add-review input[type="email"],
#add-review textarea,
#add-review select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius, 8px);
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

#add-review input[type="text"]:focus,
#add-review input[type="email"]:focus,
#add-review textarea:focus,
#add-review select:focus {
  border-color: var(--primary-color, #0073e6);
  outline: none;
}

/* Кнопка отправки */
#add-review button[type="submit"] {
  display: inline-block;
  background-color: #f37021;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: var(--border-radius, 8px);
  cursor: pointer;
  transition: background-color var(--transition, 0.3s ease);
}

#add-review button[type="submit"]:hover {
  background-color: #e55a00;
}



/* отзывы звездочки */


.review-rating .star {
  font-size: 20px;
  color: gold;
  margin-right: 2px;
}

.review-rating .star.empty {
  color: #ccc; /* Пустые звёзды серые */
}




/* Выпадающее меню */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px); /* немного ниже кнопки */
    left: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 999;
    border-radius: 8px;
}

/* Отображаем при .active у родителя */
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap; /* чтобы не ломало текст по строкам */
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
}


/* Медиазапрос для экранов до 768px */
@media (max-width: 768px) {
    /* Навигация */
    .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .nav-links a {
        padding: 12px 20px;
        font-size: 18px;
    }

    /* Фильтр-бар */
    .filter-bar,
    .filter-bar-horizontal {
        padding: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-group,
    .filter-group-horizontal {
        margin: 8px 0;
        font-size: 16px;
    }
    
    /* Контейнер для саун */
    .sauna-list {
        padding: 25px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .sauna-item {
        width: 95%;
        max-width: 400px;
    }
    
    .sauna-content h2 {
        font-size: 20px;
    }
    
    .details-btn {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    /* Меню категорий */
    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 50px; /* Фиксированная высота для всех кнопок */
        padding: 10px 18px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .dropdown-content {
        min-width: 180px;
    }
    
    .dropdown-content li a {
        padding: 10px 15px;
        font-size: 16px;
    }
}


/* Медиазапрос для экранов до 480px */
@media (max-width: 480px) {
    header {
        padding: 0px;
    }
    
    .nav-links a {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .sauna-list {
        padding: 15px;
        gap: 15px;
    }
    
    .sauna-item {
        width: 98%;
        max-width: none;
    }
    
    .sauna-content h2 {
        font-size: 18px;
    }
    
    .details-btn {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .category-button {
        padding: 8px 14px;
        font-size: 15px;
    }
    
    .dropdown-content li a {
        padding: 8px 12px;
        font-size: 15px;
    }
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
}

.search-input-wrapper input[type="text"] {
    width: 260px;
    padding: 6px 40px 6px 10px; /* Отступ справа для кнопки с иконкой */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    outline: none;
}

.search-input-wrapper input[type="text"]:focus {
    background-color: #f5f5f5;
}

.search-input-wrapper button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px; /* Размер эмодзи */
    line-height: 1;
    color: #333;
}

.search-input-wrapper button:hover {
    color: #555;
}

/* ====== ДВЕ КОЛОНКИ (ЧАСТО ДЛЯ ДЕТАЛЬНОЙ СТРАНИЦЫ) ====== */
.content-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.left-col {
  flex: 0 0 50%;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  background-color: #f7f7f7;
}

.right-col {
  flex: 0 0 50%;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  background-color: #f7f7f7;
}

.left-col h2,
.right-col h2 {
  font-size: 18px;
  margin-bottom: 25px;
  color: #000000bd;
}

.right-col p {
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ====== ГАЛЕРЕЯ ЗАЛОВ (140×140) ====== */
.hall .gallery {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-start;
}

.hall .gallery-item {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hall .gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ====== БЛОК ЗАЛОВ ====== */
.halls-block {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.halls-block h2 {
  font-size: 24px;
  color: #444;
  margin-bottom: 15px;
}

.hall {
  border: 1px solid #eee;
  border-radius: 6px;
  background-color: #fafafa;
  padding: 15px;
  margin-bottom: 15px;
}

.hall button {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition);
  margin-bottom: 10px;
}

.hall button:hover {
  background-color: #e55a00;
}

.hall-detail {
  display: none;
  margin-top: 10px;
  background-color: var(--card-bg);
  border-radius: 6px;
  border: 1px solid #eee;
  padding: 15px;
}

.hall-detail h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.hall-detail p {
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ====== СПИСОК САУН (КАРТОЧКИ НА ГЛАВНОЙ / КАТАЛОГЕ) ====== */
.sauna-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Расстояние между карточками */
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  line-height: 1.4;
  font-size: 14px;
}

.sauna-item {
  width: 300px; /* Фиксированная ширина карточки */
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.sauna-item:hover {
  transform: translateY(-2px);
}

/* Превью-изображение (фото) */
.sauna-item img.thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Контейнер для текстового контента внутри карточки */
.sauna-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sauna-content h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #333;
}

.sauna-desc {
  margin: 0 0 10px;
  color: #555;
  line-height: 1.4;
}

.sauna-address {
  margin: 0 0 15px;
  color: #777;
  font-size: 14px;
}

/* Кнопка «Подробнее» */
.details-btn {
  margin-top: auto;
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--secondary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  transition: background-color var(--transition);
}

.details-btn:hover {
  background-color: #e55a00;
}



/* Секция “Похожие сауны и бани” */
#similar-saunas {
  margin-top: 40px;
}

/* Список карточек — сетка на 4 колонки */
#similar-saunas .sauna-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Карточка */
#similar-saunas .sauna-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
#similar-saunas .sauna-item:hover {
  transform: translateY(-4px);
}

/* Изображение */
#similar-saunas .thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Контент карточки */
#similar-saunas .sauna-content {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Заголовок */
#similar-saunas .sauna-content h2 {
  font-size: 18px;
  margin: 0 0 8px;
  cursor: pointer;
}
#similar-saunas .sauna-content h2:hover {
  text-decoration: underline;
}

/* Параграфы */
#similar-saunas .sauna-content p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Кнопка “Подробнее” */
#similar-saunas .sauna-content .details-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #f37021;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color .2s;
}
#similar-saunas .sauna-content .details-btn:hover {
  background-color: #e65500;
}

/* Адаптивная сетка */
@media (max-width: 1024px) {
  #similar-saunas .sauna-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #similar-saunas .sauna-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  #similar-saunas .sauna-list {
    grid-template-columns: 1fr;
  }
}



/* ====== ФУТЕР ====== */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  width: 100%;
  margin-top: 30px; /* Отступ сверху */
}

footer p {
  margin: 0;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* Ссылка на метро */
.metro-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.metro-link:hover {
  color: #005bb5;
  text-decoration: underline;
}

/* ====== МЕДИАЗАПРОСЫ ====== */

/* Экран до 768px (планшеты) */
@media (max-width: 768px) {
  .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
	
	.nav-container form.search-form {
        order: 3;
        margin-top: 10px; /* Отступ сверху, чтобы отделить от навигационных ссылок */
    }
	
	.search-input-wrapper {
        width: 100%;
        max-width: 300px;
    }
    .search-input-wrapper input[type="text"] {
        width: 100%;
    }

  .nav-links {
    flex-direction: column;
  }

  /* Перестановка колонок для мобильных устройств */
  .content-row {
    flex-direction: column;
  }

  .left-col,
  .right-col {
    flex: 1 1 100%;
  }



  /* Список саун: одна колонка */
  .sauna-list {
    padding: 20px;
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .sauna-item {
    width: 90%;
    max-width: 400px;
  }
  
  .sauna-content h2 {
    font-size: 20px;
  }
  
  .details-btn {
    padding: 10px 15px;
    font-size: 16px;
  }
}

/* Экран до 480px (смартфоны) */
@media (max-width: 480px) {

  .nav-links a {
    padding: 10px 15px;
    font-size: 16px;
  }

  /* Ещё уменьшаем отступы */
  .sauna-list {
    padding: 15px;
    gap: 15px;
  }

  .sauna-item {
    width: 95%;
    max-width: none;
  }

  .sauna-content h2 {
    font-size: 18px;
  }

  .details-btn {
    padding: 10px 12px;
    font-size: 15px;
  }

  /* Кнопки категорий */
  .category-button {
    padding: 8px 14px;
    font-size: 15px;
  }

  .dropdown-content li a {
    padding: 8px 12px;
    font-size: 15px;
  }

  /* Галерея зала (мобильная адаптация) */
  .hall .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }

  .hall .gallery-item {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
  }
}

/* ====== ГАЛЕРЕЯ: первое фото 2×2 квадрата, остальные 180×180 ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 180px);
  grid-auto-rows: 180px;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.gallery a:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #ddd;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

/* ====== КНОПКИ ЗАЛОВ (hall-tab) ====== */
.hall-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.hall-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  background-color: #fff;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.hall-tab__name {
  font-size: 16px;
  font-weight: 600;
}

.hall-tab__price {
  font-size: 16px;
  font-weight: 700;
}

/* При наведении и в активном состоянии — оранжевая заливка */
.hall-tab:hover,
.hall-tab.active {
  background-color: var(--secondary-color);
  color: #fff;
}

.hall-tab.active {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}

@media (max-width: 480px) {
  /* Кнопки зала – выстраиваем их в столбик и растягиваем по ширине */
  .hall-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 0 10px; /* отступы по бокам */
  }

  .hall-tab {
    width: 100%;
    justify-content: center; /* или space-between, если нужно сохранить отступ между элементами */
    box-sizing: border-box;
  }
  
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 150px); /* вместо 180px — 150px */
  grid-auto-rows: 150px;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.gallery a:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  #yandex-map {
    height: 200px;
  }
}










	









