/* === Переменные и базовые стили из DLE (visitabay) === */
:root {
  --color-primary: #0a0a0a;
  --color-secondary: #404040;
  --color-accent: #b6b6b7;
  --color-white: #fefefe;
  --color-bg-light: #f5f5f5;
  --color-bg-white: #ffffff;
  --radius: 10px;
  --bg: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Geologica', sans-serif;
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  scroll-behavior: smooth;
}

@media (max-width: 860px) {
  body {
    background: #f5f5f5;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Отступ между header и контентом */
.wrapper > header + section,
.wrapper > header + .container {
  margin-top: 24px;
}

/* Главная (index): .wrapper имеет id="content" для лоадера; animation.css задаёт #content { text-align: center } и тянет меню/поиск к центру. На /hotel/ шапка без этого — выравниваем явно. */
#content.wrapper > header,
.wrapper#content > header {
  text-align: left;
}

/* === Header и меню из DLE (visitabay) === */
header {
  position: relative;
  max-width: 1440px;
  width: calc(100% - 10px);
  margin: 20px auto 0;
  background: #f5f5f5;
  border-radius: 10px;
  color: #B6B6B7;
  transition: top 0.3s;
  z-index: 5;
  box-shadow: 0px 0px 15px rgba(56, 152, 226, 0.3);
}

@media (max-width: 860px) {
  header {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 15px 0;
  }
}

header .container {
  display: flex;
  align-items: center;
  grid-gap: 60px;
  padding: 15px 40px;
}

@media (max-width: 860px) {
  header .container {
    grid-gap: 20px;
    padding: 0 20px;
  }
}

header .container > div {
  width: 100%;
}

.header-logo {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  color: #0A0A0A;
}

@media (max-width: 860px) {
  .header-logo {
    font-size: 14px;
  }
}

header a {
  color: #B6B6B7;
}
header a:hover {
  color: #3898e2;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-gap: 40px;
  font-size: 14px;
  border-bottom: 2px solid #B6B6B7;
  padding-bottom: 10px;
}

.header-top:hover > span {
  color: #3898e2;
}

@media (max-width: 860px) {
  .header-top {
    font-size: 10px;
    grid-gap: 10px;
    border: none;
    padding-bottom: 0;
    justify-content: center;
  }
}

.header-top > .right {
  display: inline-block;
  margin-left: auto;
}

@media (max-width: 860px) {
  .header-top > .right {
    display: none;
  }
}

.header-lang {
  position: relative;
}

@media (max-width: 860px) {
  .header-lang {
    display: none;
  }
}

.header-lang > span {
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

.header-lang > div {
  position: absolute;
  width: max-content;
  top: 100%;
  right: 0;
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgb(0 0 0 / 10%);
  border-radius: 10px;
  padding: 3px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 6;
}

.header-lang:hover > div {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.header-lang > div > a {
  display: flex;
  align-items: center;
  grid-gap: 10px;
  padding: 5px 20px;
  border-radius: var(--radius);
}

.header-lang > div > a:hover {
  background: var(--bg);
}

.header-menu {
  position: relative;
}

@media (max-width: 860px) {
  .header-menu {
    display: none;
  }
}

.header-menu > span {
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

.header-menu:hover > span {
  color: #3898e2;
}

.header-menu > div {
  position: absolute;
  width: max-content;
  top: 100%;
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgb(0 0 0 / 10%);
  border-radius: 10px;
  padding: 5px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 6;
}

.header-menu:hover > div {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.header-menu > div > a {
  display: flex;
  align-items: center;
  grid-gap: 10px;
  padding: 5px 20px;
  border-radius: var(--radius);
}

.header-menu > div > a:hover {
  background: var(--bg);
}

.header-bottom {
  display: flex;
  align-items: center;
  grid-gap: 40px;
  font-size: 16px;
  color: #0A0A0A;
}

@media (max-width: 860px) {
  .header-bottom {
    display: none;
  }
}

.header-bottom a {
  color: #0A0A0A;
}

.header-search {
  display: flex;
  align-items: center;
  grid-gap: 10px;
  background: #fff;
  border-radius: 50px;
  padding: 8px 15px;
  margin-left: auto;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .header-search {
    display: none;
  }
}

.header-search img {
  width: 24px;
  height: 24px;
}

.header-search input {
  width: 100px;
  padding: 0;
  border-radius: 0;
}

.header-search input::placeholder {
  color: #000;
  font-weight: 500;
}

.header-soc {
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

@media (max-width: 860px) {
  .header-soc {
    display: none;
  }
}

.header-soc > a,
.header-soc > a > img {
  display: inline-block;
  width: 25px;
  height: 25px;
}

/* Страница гостиниц: контент, сайдбар, список — повышенная специфичность */
section.hotels-page .hotels-page-content {
  margin-top: 20px;
}
section.hotels-page .hotels-page-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #404040;
  margin: 0 0 20px;
}
section.hotels-page .hotels-page-layout {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
section.hotels-page .hotels-page-sidebar {
  flex: 0 0 320px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 24px 24px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
}
section.hotels-page .hotels-page-sidebar h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #0a0a0a;
}
section.hotels-page .hotels-page-sidebar ul {
  list-style: disc;
  padding-left: 18px;
  margin: 0 0 16px;
}
section.hotels-page .hotels-page-sidebar li + li {
  margin-top: 6px;
}
section.hotels-page .hotels-page-note {
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  margin: 0;
}
section.hotels-page .hotels-page-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 992px) {
  section.hotels-page .hotels-page-layout {
    flex-direction: column;
  }
  section.hotels-page .hotels-page-sidebar {
    flex: 1 1 auto;
  }
  section.hotels-page .hotels-page-list {
    grid-template-columns: 1fr;
  }
}

/* Карусель картинок в hero на главной */
section.hotels-page .hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  height: 240px;
}
section.hotels-page .hero-carousel-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
section.hotels-page .hero-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
section.hotels-page .hero-carousel-img.active {
  opacity: 1;
  z-index: 0;
}
section.hotels-page .hero-carousel-prev,
section.hotels-page .hero-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
section.hotels-page .hero-carousel-prev:hover,
section.hotels-page .hero-carousel-next:hover {
  background: rgba(0, 0, 0, 0.75);
}
section.hotels-page .hero-carousel-prev { left: 16px; }
section.hotels-page .hero-carousel-next { right: 16px; }
section.hotels-page .hero-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
  justify-content: center;
}
section.hotels-page .hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
section.hotels-page .hero-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
section.hotels-page .hero-carousel-dot.active {
  background: #fff;
}
section.hotels-page .hero-carousel .hero-title-fullstory {
  z-index: 1;
  pointer-events: none;
}

/* Карточки гостиниц: гарантированное отображение фона и фото (z-index чтобы фото не уходило за фон) */
section.hotels-page .hotel-card-h {
  min-height: 280px;
  position: relative;
  isolation: isolate;
}
section.hotels-page .hotel-card-h .hotel-card-h__bg-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  background: #2a2a2a;
}
section.hotels-page .hotel-card-h .hotel-card-h__bg-wrap img,
section.hotels-page .hotel-card-h .hotel-card-h__img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
section.hotels-page .hotel-card-h .hotel-card-h__content {
  z-index: 1 !important;
  /* position оставляем как в visitabay: absolute; bottom: 26px; left/right */
}
section.hotels-page .hotel-card-h::before {
  z-index: 0.5 !important; /* поверх фото, под текст */
}

/* Карусель изображений в карточках гостиниц на главной */
section.hotels-page .hotel-card-h__bg-wrap--carousel {
  position: relative;
  overflow: hidden;
}
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-img.active {
  opacity: 1;
  z-index: 0;
}
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-prev,
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-prev:hover,
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-next:hover {
  background: rgba(0, 0, 0, 0.7);
}
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-prev { left: 8px; }
section.hotels-page .hotel-card-h__bg-wrap--carousel .hotel-card-carousel-next { right: 8px; }

/* Название и цена гостиницы на главной — белый шрифт */
section.hotels-page .hotel-card-h__info h3,
section.hotels-page .hotel-card-h__price,
section.hotels-page .hotel-card-h__price strong {
  color: #fff;
}
.hotel-card-rating {
  display: inline-flex;
  gap: 2px;
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 4px;
}
.hotel-card-star {
  color: rgba(255, 255, 255, 0.45);
}
.hotel-card-star.is-filled {
  color: #e6b800;
}

/* Кнопка «Показать на карте» в сайдбаре */
.home-map-in-sidebar {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}
.home-map-btn {
  display: inline-block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #1a5fb4;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.home-map-btn:hover {
  background: #155a9e;
}

/* Модальное окно с картой */
.home-map-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.home-map-modal--open {
  opacity: 1;
  visibility: visible;
}
.home-map-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.home-map-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.home-map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}
.home-map-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}
.home-map-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #666;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.home-map-modal-close:hover {
  color: #1a1a1a;
  background: #f0f0f0;
}
.home-map-modal-map {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  flex: 1;
}
.home-map-modal-map.leaflet-container {
  font: inherit;
}

/* Popup при клике на отметку на карте */
.home-map-popup {
  padding: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
}
.home-map-popup-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.home-map-popup-address,
.home-map-popup-price {
  margin: 0 0 8px 0;
  color: #555;
  font-size: 13px;
}
.home-map-popup-price {
  font-weight: 500;
  color: #1a5fb4;
}
.home-map-popup-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1a5fb4;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.home-map-popup-btn:hover {
  background: #155a9e;
  color: #fff;
}
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.leaflet-popup-content {
  margin: 12px 14px 14px;
  min-width: 180px;
}

.wrapper section a { color: #1a5fb4; text-decoration: none; }
.wrapper section a:hover { text-decoration: underline; }

/* Блок удобств на странице гостиницы */
.hotels-amenities {
  margin-top: 40px;
  margin-bottom: 40px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 24px 28px;
}
.hotels-amenities h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hotels-amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  font-size: 14px;
}
.hotels-amenities-list li::before {
  content: "•";
  display: inline-block;
  margin-right: 6px;
  color: #3898e2;
}

/* Правая колонка: основная информация + бронирование (как на основной странице) */
.hotels-single-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hotels-single-booking {
  margin-top: 0;
  background-color: #f5f5f5;
  padding: 20px 24px;
  border-radius: 16px;
}
.hotels-single-booking h3 { margin-bottom: 10px; font-size: 16px; color: #0a0a0a; }
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booking-form label { display: block; font-size: 12px; margin-bottom: 0; color: #404040; }
.booking-form input, .booking-form textarea {
  width: 100%;
  padding: 5px 8px;
  margin-top: 2px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
.booking-form textarea { min-height: 40px; resize: vertical; }
.booking-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-submit {
  padding: 10px 20px;
  background: #1a5fb4 !important;
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 10px;
  transition: background 0.2s ease;
}
.booking-submit:hover { background: #155a9e !important; color: #fff !important; }

/* Отступы между блоками «Удобства», «Как добраться» и «Ближайшие гостиницы» */
.contacts-info_item {
  margin: 40px 0;
}
.vis-blog {
  margin-top: 40px;
}

/* Раздел отзывов на странице гостиницы */
.hotel-reviews-section {
  margin-top: 48px;
  margin-bottom: 40px;
}
.hotel-reviews-section .contacts-title {
  margin-bottom: 24px;
}
.hotel-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.hotel-review-card {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid #e8e8e8;
}
.hotel-review-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 10px;
}
.hotel-review-author {
  font-weight: 600;
  font-size: 1rem;
  color: #0a0a0a;
}
.hotel-review-rating {
  display: inline-flex;
  gap: 2px;
  font-size: 1.1rem;
  line-height: 1;
}
.hotel-review-rating .hotel-review-star {
  color: #ddd;
}
.hotel-review-rating .hotel-review-star.is-filled {
  color: #b8860b;
}
.hotel-review-form-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hotel-review-form-rating-label {
  font-size: 0.9rem;
  color: #404040;
}
.hotel-review-stars-select {
  display: inline-flex;
  gap: 4px;
}
.hotel-review-star-btn {
  padding: 4px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.hotel-review-star-btn:hover {
  transform: scale(1.1);
}
.hotel-review-star-btn.is-hover,
.hotel-review-star-btn.is-selected {
  color: #b8860b;
}
.hotel-review-date {
  font-size: 0.875rem;
  color: #666;
  margin-left: auto;
}
.hotel-review-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #404040;
}
.hotel-reviews-empty {
  margin: 0 0 24px 0;
  color: #666;
  font-size: 0.95rem;
}
.hotel-review-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}
.hotel-review-form-title {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.hotel-review-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #404040;
}
.hotel-review-form input[type="text"],
.hotel-review-form input[type="number"],
.hotel-review-form textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
.hotel-review-form textarea {
  resize: vertical;
  min-height: 80px;
}
.hotel-review-form .promo-button {
  background: var(--color-primary, #0a0a0a);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.hotel-review-form .promo-button:hover {
  background: #333;
  color: #fff;
}
.hotel-review-form-message {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
}
.hotel-review-form-message.success {
  color: #0d6e0d;
}
.hotel-review-form-message.error {
  color: #b00;
  font-weight: 500;
}

/* Ближайшие гостиницы — в один ряд */
.related-hotels-one-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1200px) {
  .related-hotels-one-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .related-hotels-one-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.booking-message { margin: 6px 0 0; font-size: 12px; }
.booking-message.success { color: #0a0; }
.booking-message.error { color: #c00; }

/* Админ: статусы бронирований */
.booking-status { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.booking-status-pending { background: #fff3cd; color: #856404; }
.booking-status-confirmed { background: #d4edda; color: #155724; }
.booking-status-cancelled { background: #f8d7da; color: #721c24; }
.btn-booking-status { padding: 4px 10px; margin-right: 6px; font-size: 12px; cursor: pointer; }
.btn-booking-status.btn-cancel { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer как в DLE — чёрный шрифт */
#footer-section {
  margin-top: 52px;
}
#footer-section .site-footer,
#footer-section .footer-logo,
#footer-section .footer-contact-info,
#footer-section .footer-contact-info span,
#footer-section .footer-contact-info a,
#footer-section .contact-item,
#footer-section .footer-address {
  color: #000;
}
#footer-section .footer-contact-info a:hover {
  color: #333;
}
.site-footer .container.footer-container {
  background-color: #f5f5f5;
  padding: 51px 0;
  min-height: 241px;
  border-radius: 10px;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(56, 152, 226, 0.3);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-left: 35px;
}
.footer-logo {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: 500;
  font-size: 20px;
  color: #000;
}
.footer-contact-info a {
  color: #000;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #000;
}
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-right: 35px;
}
.footer-address {
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 22px;
  margin-left: 35px;
  max-width: 263px;
  color: #000;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 35px;
}
.social-icons img {
  width: 25px;
  height: 25px;
}
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
  .footer-right {
    align-items: flex-start;
  }
  .footer-address {
    text-align: left;
  }
}

/* Front */
.front-page { min-height: 100vh; }
.site-header {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.site-header h1 { margin: 0; font-size: 1.5rem; }
.admin-link { font-size: 0.9rem; }
.hotels-list { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-img {
  height: 180px;
  background: #e0e0e0 center/cover;
}
.card-body { padding: 1.25rem; }
.card-body h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card-body .location { margin: 0; color: #666; font-size: 0.9rem; }
.card-body .price { margin: 0.5rem 0 0; font-weight: 600; color: #1a5fb4; }
.hotel-detail { max-width: 800px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.hotel-hero {
  height: 280px;
  background: #c0c0c0 center/cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.hotel-hero h1 { margin: 0; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); font-size: 1.75rem; }

/* Верх страницы гостиницы: слева — фото + миниатюры, справа — основная информация */
.hotel-top-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}
.hotel-top-left {
  min-width: 0;
}
.hotel-top-left .story-hero {
  position: relative;
  height: 320px;
  margin-bottom: 0;
}
.hotel-hero-zoom-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.hotel-hero-zoom-trigger .hotels-single-hero-img {
  position: absolute;
  inset: 0;
}
.hotel-hero-zoom-trigger:focus {
  outline: 2px solid #3898e2;
  outline-offset: 2px;
}
.hotel-top-left .hotels-single-hero-img,
.hotel-top-left .hotels-single-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.hotel-hero-zoom-trigger .hotels-single-hero-img,
.hotel-hero-zoom-trigger .hotels-single-hero-img img {
  pointer-events: none;
}
.hotel-top-left .hotel-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
}
.hotel-gallery-thumbs-single {
  display: none;
}
.hotel-top-left .hotel-gallery-thumb img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  display: block;
}
.hotel-top-right {
  position: sticky;
  top: 24px;
}
.hotel-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 8px;
}
.hotel-name-top {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #0a0a0a;
  margin: 0;
}
.hotel-page-rating {
  display: inline-flex;
  gap: 2px;
  font-size: 1.25rem;
  line-height: 1;
}
.hotel-page-rating .hotel-review-star {
  color: #ddd;
}
.hotel-page-rating .hotel-review-star.is-filled {
  color: #b8860b;
}
.hotel-tag-top {
  font-size: 14px;
  color: #404040;
  margin: 0 0 20px;
}
.hotels-single-info-top {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
}
.hotels-single-info-top h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #0a0a0a;
}
.hotels-single-info-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hotels-single-info-top li + li {
  margin-top: 10px;
}
.hotels-single-info-top li span:first-child {
  font-weight: 600;
  color: #0a0a0a;
}
.hotel-rooms-prices {
  margin-top: 6px;
  padding-left: 0;
  list-style: none;
}
.hotel-rooms-prices li {
  margin-top: 4px;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}
.hotel-rooms-prices li:last-child { border-bottom: none; }
.hotel-room-item { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eee; }
.hotel-room-item:first-child { margin-top: 4px; padding-top: 4px; border-top: none; }
.hotel-room-info { margin-bottom: 6px; }
.hotel-room-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hotel-room-photo-link { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0; }
.hotel-room-photo-link img { width: 72px; height: 72px; object-fit: cover; display: block; }
.hotel-room-photo-link:hover { border-color: #1a5fb4; }
.hotels-single-info-top a {
  color: #3898e2;
}
.hotels-single-info-top a:hover {
  text-decoration: underline;
}

/* Секция номеров — современные карточки («Наличие мест») */
.hotel-rooms-bcom--modern {
  --hrm-radius: 18px;
  --hrm-radius-sm: 12px;
  --hrm-accent: #2563eb;
  --hrm-accent-2: #4f46e5;
  --hrm-text: #0f172a;
  --hrm-muted: #64748b;
  --hrm-border: rgba(15, 23, 42, 0.08);
  --hrm-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 24px -8px rgba(15, 23, 42, 0.12);
  --hrm-shadow-hover: 0 8px 16px -4px rgba(15, 23, 42, 0.1), 0 20px 40px -12px rgba(37, 99, 235, 0.18);
  margin-top: 2.25rem;
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--hrm-border);
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(37, 99, 235, 0.06), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 28%);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__table,
.hotel-rooms-bcom--modern .hotel-rooms-bcom__intro {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.hotel-rooms-bcom__intro {
  margin-bottom: 1.35rem;
  text-align: center;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__h2.contacts-title {
  margin: 0 0 0.6rem 0;
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--hrm-text);
  font-family: "Geologica", system-ui, sans-serif;
}
.hotel-rooms-bcom__h2-accent {
  width: 3rem;
  height: 4px;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hrm-accent-2), var(--hrm-accent));
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__sub {
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hrm-muted);
  max-width: 34rem;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__table {
  border: none;
  background: transparent;
  overflow: visible;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__thead {
  display: none;
}
.hotel-rooms-bcom__th--narrow {
  text-align: right;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__tbody {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hrm-border);
  border-radius: var(--hrm-radius);
  box-shadow: var(--hrm-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__row:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--hrm-shadow-hover);
}
.hotel-rooms-bcom__roomcell {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.15rem;
  min-width: 0;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__roomcell {
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  padding: 1rem 1rem 0.65rem;
}
.hotel-rooms-bcom__photo {
  flex: 0 0 auto;
  width: 136px;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__photo {
  width: 100%;
  margin-bottom: 0.85rem;
}
.hotel-rooms-bcom__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
  cursor: zoom-in;
  border-radius: var(--hrm-radius-sm, 12px);
  overflow: hidden;
  font: inherit;
  line-height: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__zoom:focus-visible {
  outline: 2px solid var(--hrm-accent);
  outline-offset: 3px;
}
.hotel-rooms-bcom__hero-img {
  display: block;
  width: 136px;
  height: 102px;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.35s ease;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 200px;
  object-fit: cover;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__row:hover .hotel-rooms-bcom__hero-img {
  transform: scale(1.03);
}
.hotel-rooms-bcom__badge-pics {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 9px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hotel-rooms-bcom__detail {
  flex: 1;
  min-width: 0;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__name {
  margin: 0 0 0.45rem 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--hrm-text);
  font-family: "Geologica", system-ui, sans-serif;
}
.hotel-rooms-bcom__fact {
  margin: 0 0 0.55rem 0;
  font-size: 0.875rem;
  line-height: 1.35;
}
.hotel-rooms-bcom__chip {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hrm-muted, #64748b);
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.hotel-rooms-bcom__minis {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hotel-rooms-bcom__mini {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  font: inherit;
  line-height: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hotel-rooms-bcom__mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hotel-rooms-bcom__mini:hover {
  border-color: rgba(37, 99, 235, 0.35);
}
.hotel-rooms-bcom__mini:focus-visible {
  outline: 2px solid var(--hrm-accent, #2563eb);
  outline-offset: 2px;
}
.hotel-rooms-bcom__mini.is-active {
  border-color: var(--hrm-accent, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.hotel-rooms-bcom__pricecell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  text-align: right;
  min-width: 0;
  gap: 0.85rem;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__pricecell {
  margin-top: auto;
  text-align: left;
  padding: 1rem 1rem 1.1rem;
  gap: 0.75rem;
  border-top: 1px solid var(--hrm-border);
}
.hotel-rooms-bcom__pricebox {
  padding: 0.75rem 1rem;
  border-radius: var(--hrm-radius-sm, 12px);
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--hrm-border, rgba(15, 23, 42, 0.08));
}
.hotel-rooms-bcom__p-label {
  margin: 0 0 0.15rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hrm-muted, #64748b);
}
.hotel-rooms-bcom__p-amount {
  margin: 0;
  font-size: 0.95rem;
  color: var(--hrm-text, #0f172a);
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem 0.4rem;
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__p-amount {
  justify-content: flex-start;
}
.hotel-rooms-bcom__p-from {
  font-size: 0.85rem;
  color: var(--hrm-muted, #64748b);
}
.hotel-rooms-bcom__p-sum {
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--hrm-text, #0f172a);
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__p-sum {
  font-size: 1.28rem;
}
.hotel-rooms-bcom__p-muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hrm-muted, #64748b);
  line-height: 1.4;
}
.hotel-rooms-bcom__reserve {
  display: block;
  width: 100%;
  max-width: 240px;
  margin-left: auto;
  box-sizing: border-box;
  padding: 0.68rem 1.1rem;
  background: linear-gradient(135deg, var(--hrm-accent-2, #4f46e5) 0%, var(--hrm-accent, #2563eb) 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  border-radius: var(--hrm-radius-sm, 12px);
  text-decoration: none;
  text-align: center;
  border: none;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.45);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.hotel-rooms-bcom__reserve-text {
  display: inline-block;
}
.hotel-rooms-bcom__reserve:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -4px rgba(37, 99, 235, 0.5);
}
.hotel-rooms-bcom__reserve:active {
  transform: translateY(0);
}
.hotel-rooms-bcom--modern .hotel-rooms-bcom__reserve {
  max-width: none;
  margin-left: 0;
}
@media (max-width: 1100px) {
  .hotel-rooms-bcom--modern .hotel-rooms-bcom__tbody {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .hotel-rooms-bcom--modern .hotel-rooms-bcom__tbody {
    grid-template-columns: 1fr;
  }
  .hotel-rooms-bcom--modern .hotel-rooms-bcom__hero-img {
    max-height: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 992px) {
  .hotel-top-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hotel-top-right {
    position: static;
  }
  .hotel-top-left .story-hero {
    height: 280px;
  }
}

/* Лайтбокс: увеличенное фото по клику */
.hotel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.hotel-lightbox.hotel-lightbox-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hotel-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.hotel-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotel-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.hotel-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.hotel-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hotel-lightbox-prev,
.hotel-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotel-lightbox-prev:hover,
.hotel-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}
.hotel-lightbox-prev {
  left: 20px;
}
.hotel-lightbox-next {
  right: 20px;
}
.hotel-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  border-radius: 20px;
}

.hotel-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; padding: 0 0 0.5rem; }
.hotel-gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.hotel-gallery-thumb img { width: 64px; height: 48px; object-fit: cover; display: block; }
.hotel-gallery-thumb:hover, .hotel-gallery-thumb.active { border-color: #1a5fb4; }
.hotel-info { background: #fff; border-radius: 12px; padding: 1.5rem 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.info-list { display: grid; gap: 0.5rem 1rem; }
.info-list dt { font-weight: 600; color: #555; }
.info-list dd { margin: 0; }
.description { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.description h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.description p { margin: 0 0 0.75rem; line-height: 1.6; }
.error { color: #c00; margin: 1rem 0; }
.success { color: #0a0; margin: 1rem 0; }

/* Admin */
.admin-page { min-height: 100vh; background: #e8e8e8; }
.login-box {
  max-width: 360px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.login-box h1 { margin: 0 0 1.5rem; font-size: 1.25rem; }
.login-box label { display: block; margin-bottom: 1rem; }
.login-box input { width: 100%; padding: 0.5rem 0.75rem; margin-top: 0.25rem; border: 1px solid #ccc; border-radius: 6px; }
.login-box button { width: 100%; padding: 0.65rem; margin-top: 0.5rem; background: #1a5fb4; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 1rem; }
.login-box button:hover { background: #155a9e; }
.admin-header {
  background: #2d2d2d;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-header h1 { margin: 0; font-size: 1.25rem; }
.admin-header a { color: #8ff; }
.admin-main { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.admin-notice { background: #e8f4fd; border: 1px solid #1a5fb4; border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.admin-notice a { color: #1a5fb4; font-weight: 600; }
.admin-notice a:hover { text-decoration: underline; }
.btn { display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; margin-right: 0.5rem; }
.btn-primary { background: #1a5fb4; color: #fff; border: 0; }
.btn-primary:hover { background: #155a9e; text-decoration: none; }
.btn-secondary { background: #666; color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: #f8f8f8; font-weight: 600; }
.admin-table a { margin-right: 0.75rem; }
.btn-delete { background: none; border: 0; color: #c00; cursor: pointer; padding: 0; font-size: inherit; }
.btn-delete:hover { text-decoration: underline; }
.hotel-form { max-width: 560px; background: #fff; padding: 1.5rem 2rem; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.hotel-form label:not(.amenity-cb) { display: block; margin-bottom: 1rem; }
/* Чекбоксы удобств: не на всю ширину (иначе «пропадают» подписи) */
.hotel-form label.amenity-cb {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.55rem;
  font-weight: normal;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.hotel-form input:not([type="checkbox"]):not([type="radio"]),
.hotel-form textarea,
.hotel-form select { width: 100%; padding: 0.5rem 0.75rem; margin-top: 0.25rem; border: 1px solid #ccc; border-radius: 6px; font: inherit; background: #fff; }
.hotel-form label.amenity-cb input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  align-self: flex-start;
}
.hotel-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; padding-right: 2rem; }
.hotel-form textarea { min-height: 120px; resize: vertical; }
.hotel-form-location-label { display: flex; flex-direction: column; gap: 0.25rem; }
.hotel-form-location-select { max-width: 100%; font-weight: 500; color: #1a1a1a; transition: border-color 0.2s, box-shadow 0.2s; }
.hotel-form-location-select:hover { border-color: #999; }
.hotel-form-location-select:focus { outline: none; border-color: #1a5fb4; box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.2); }
/* --- Номера и цены (карточки) --- */
.hotel-rooms-fieldset {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafbfc;
}
.hotel-rooms-fieldset legend {
  padding: 0 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
}
.hotel-rooms-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.hotel-rooms-list {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hotel-room-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.hotel-room-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hotel-room-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: linear-gradient(to bottom, #f8f9fa, #f1f3f5);
  border-bottom: 1px solid #e5e7eb;
}
.hotel-room-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}
.hotel-room-card .btn-remove-room {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.hotel-room-card .btn-remove-room:hover {
  background: #fee2e2;
  color: #dc2626;
}
.hotel-room-card-body {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
}
@media (max-width: 640px) {
  .hotel-room-card-body { grid-template-columns: 1fr; }
}
.room-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.room-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
  display: block;
}
.hotel-room-card .room-name,
.hotel-room-card .room-price {
  padding: 0.5rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hotel-room-card .room-name:focus,
.hotel-room-card .room-price:focus {
  outline: none;
  border-color: #1a5fb4;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.15);
}
.room-images-cell {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}
.room-images-cell .room-label {
  margin-bottom: 0.5rem;
}
.room-images-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 56px;
}
.room-image-item {
  position: relative;
  display: inline-block;
}
.room-image-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
  background: #f3f4f6;
}
.room-image-item .room-image-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.15s;
}
.room-image-item .room-image-remove:hover {
  background: #b91c1c;
  transform: scale(1.08);
}
.room-images-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}
@media (max-width: 520px) {
  .room-images-add { flex-wrap: wrap; }
}
.room-file-wrap {
  position: relative;
  display: inline-block;
}
.room-file-wrap .room-image-file {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.room-file-btn {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.room-file-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #1f2937;
}
.room-url-divider {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}
.room-images-add .room-image-url {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.room-images-add .room-image-url:focus {
  outline: none;
  border-color: #1a5fb4;
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.12);
}
.room-images-add .room-image-add-url-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: #1a5fb4;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}
.room-images-add .room-image-add-url-btn:hover {
  background: #155a9e;
}
.room-images-add .room-image-add-url-btn:active {
  transform: scale(0.98);
}
.btn-add-room {
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: #1a5fb4;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
  box-shadow: 0 1px 2px rgba(26, 95, 180, 0.2);
}
.btn-add-room:hover {
  background: #155a9e;
}
.btn-add-room:active {
  transform: scale(0.98);
}
.hotel-form-compact .hotel-rooms-fieldset { margin-top: 0.75rem; padding: 1rem; }
.hotel-form-compact .hotel-rooms-fieldset legend { font-size: 0.95rem; }
.hotel-amenities-fieldset { margin-top: 1.5rem; padding: 1rem; border: 1px solid #e0e0e0; border-radius: 8px; }
.hotel-amenities-fieldset legend { padding: 0 8px; font-weight: 600; }
.amenities-fieldset-legend { font-size: 0.92rem; line-height: 1.35; font-weight: 600; }
.amenities-legend-trilingual { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.amen-legend-line { display: block; line-height: 1.35; }
.amen-legend-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #6b7280;
  vertical-align: 1px;
}
.amen-legend-line:nth-child(1) .amen-legend-tag { background: #0d6efd; }
.amen-legend-line:nth-child(2) .amen-legend-tag { background: #dc2626; }
.amen-legend-line:nth-child(3) .amen-legend-tag { background: #059669; }
.amenities-hint-trilingual { margin: 0 0 0.5rem; }
.amenities-hint-trilingual p {
  font-size: 0.76rem;
  color: #555;
  line-height: 1.4;
  margin: 0 0 0.35rem;
}
.amenities-hint-trilingual p:last-child { margin-bottom: 0; }
.amenities-checkboxes { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 18px; }
.amenities-checkboxes li { margin: 0; min-width: 0; }
.amenity-cb-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.amenity-cb-line { display: block; line-height: 1.35; }
.amenity-cb-kk { font-weight: 600; font-size: 0.88rem; color: #1a1a1a; }
.amenity-cb-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #0d6efd;
  vertical-align: 1px;
}
.amenity-cb-sub { font-size: 0.74rem; color: #5a5a5a; }
.amenity-cb-tag { color: #888; font-weight: 600; font-size: 0.68rem; margin-right: 4px; }
.amenity-cb-dot { margin: 0 4px; color: #aaa; }
.amenities-lang-hint { font-size: 0.78rem; color: #666; margin: 0 0 0.35rem; line-height: 1.4; }
.hotel-form-compact.hotel-form-dense .amenity-cb-kk { font-size: 0.82rem; }
.hotel-form-compact.hotel-form-dense .amenity-cb-sub { font-size: 0.7rem; }
.hotel-form-compact.hotel-form-dense .amenities-lang-hint { font-size: 0.72rem; margin-bottom: 0.25rem; }
.form-actions { margin-top: 1.5rem; }
.form-actions button { padding: 0.5rem 1.25rem; background: #1a5fb4; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 1rem; }
.form-actions button:hover { background: #155a9e; }

/* Компактная форма добавления/редактирования — умещается на один экран */
.admin-form-main { padding: 0.75rem 1.5rem 1rem; max-width: 900px; }
.hotel-form-compact { max-width: 100%; padding: 1rem 1.25rem; }
.hotel-form-compact .hotel-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin-bottom: 0.5rem; }
.hotel-form-compact .hotel-form-fields label { margin-bottom: 0.5rem; font-size: 0.9rem; }
.hotel-form-compact .hotel-form-fields input,
.hotel-form-compact .hotel-form-fields select { padding: 0.35rem 0.5rem; font-size: 0.9rem; }
.hotel-form-compact .hotel-form-fields .hotel-form-location-select { padding-right: 1.75rem; background-position: right 0.4rem center; }
.hotel-form-compact .hotel-form-desc { margin-bottom: 0.5rem; font-size: 0.9rem; }
.hotel-form-compact .hotel-form-desc textarea { min-height: 52px; padding: 0.35rem 0.5rem; font-size: 0.9rem; resize: vertical; }
.hotel-form-compact .hotel-amenities-fieldset { margin-top: 0.75rem; padding: 0.5rem 0.75rem; }
.hotel-form-compact .hotel-amenities-fieldset legend { font-size: 0.9rem; }
.hotel-form-compact .amenities-checkboxes { margin-top: 0.35rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; font-size: 0.85rem; }
.hotel-form-compact .form-actions { margin-top: 0.75rem; }

/* Плотная сетка: гостиница add/edit на :4000/admin/hotels */
.hotel-admin-form-dense {
  padding: 0.45rem 0.85rem 0.65rem;
  max-width: 1040px;
}
.hotel-form-dense.hotel-form-compact {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
}
.hotel-form-compact.hotel-form-dense .hotel-form-fields {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem 0.75rem;
  margin-bottom: 0.35rem;
}
.hotel-form-compact.hotel-form-dense .hotel-form-fields > label:nth-child(1) { grid-column: 1 / -1; }
.hotel-form-compact.hotel-form-dense .hotel-form-fields > label:nth-child(5) { grid-column: 1 / -1; }
.hotel-form-compact.hotel-form-dense .hotel-form-fields label { margin-bottom: 0.35rem; font-size: 0.82rem; }
.hotel-form-compact.hotel-form-dense .hotel-form-fields input,
.hotel-form-compact.hotel-form-dense .hotel-form-fields select {
  padding: 0.28rem 0.45rem;
  font-size: 0.82rem;
}
.hotel-form-compact.hotel-form-dense .hotel-form-fields .hotel-form-location-select {
  padding-right: 1.5rem;
}
.hotel-form-compact.hotel-form-dense .hotel-form-desc { margin-bottom: 0.35rem; font-size: 0.82rem; }
.hotel-form-compact.hotel-form-dense .hotel-form-desc textarea {
  min-height: 44px;
  padding: 0.28rem 0.45rem;
  font-size: 0.82rem;
}
.hotel-i18n-fieldset--dense {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.45rem 0.65rem 0.55rem;
  margin: 0.45rem 0;
}
.hotel-i18n-fieldset--dense legend {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 6px;
}
.hotel-i18n-legend-hint {
  font-weight: 400;
  color: #888;
  font-size: 0.75rem;
}
.hotel-i18n-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
@media (max-width: 720px) {
  .hotel-i18n-cols { grid-template-columns: 1fr; }
}
.hotel-i18n-col-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
.hotel-i18n-col label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}
.hotel-i18n-col input,
.hotel-i18n-col textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.28rem 0.45rem;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font: inherit;
  background: #fff;
}
.hotel-i18n-col textarea { min-height: 42px; resize: vertical; }
.hotel-legacy-i18n-details {
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  margin: 0.35rem 0;
  font-size: 0.8rem;
}
.hotel-legacy-i18n-details summary { cursor: pointer; font-weight: 600; }
.hotel-legacy-i18n-pre {
  white-space: pre-wrap;
  font-size: 11px;
  background: #f9f9f9;
  padding: 6px;
  border-radius: 4px;
  margin: 6px 0 0;
}
.hotel-form-compact.hotel-form-dense .hotel-rooms-fieldset { margin-top: 0.45rem; padding: 0.55rem 0.65rem; }
.hotel-form-compact.hotel-form-dense .hotel-rooms-fieldset legend { font-size: 0.82rem; }
.hotel-form-compact.hotel-form-dense .hotel-rooms-hint { font-size: 0.78rem; margin-bottom: 0.4rem; }
.hotel-form-compact.hotel-form-dense .hotel-rooms-list { gap: 0.5rem; margin-bottom: 0.5rem; }
.hotel-form-compact.hotel-form-dense .hotel-room-card-header { padding: 0.35rem 0.65rem; }
.hotel-form-compact.hotel-form-dense .hotel-room-card-title { font-size: 0.82rem; }
.hotel-form-compact.hotel-form-dense .hotel-room-card-body {
  padding: 0.55rem 0.65rem;
  gap: 0.4rem 0.65rem;
}
.hotel-form-compact.hotel-form-dense .room-label { font-size: 0.72rem; }
.hotel-form-compact.hotel-form-dense .hotel-room-card .room-name,
.hotel-form-compact.hotel-form-dense .hotel-room-card .room-price {
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
}
.hotel-form-compact.hotel-form-dense .image-list { margin: 0.35rem 0; gap: 6px; }
.hotel-form-compact.hotel-form-dense .image-item img { width: 64px; height: 46px; }
.hotel-form-compact.hotel-form-dense .hotel-amenities-fieldset { margin-top: 0.45rem; padding: 0.4rem 0.55rem; }
.hotel-form-compact.hotel-form-dense .hotel-amenities-fieldset legend { font-size: 0.82rem; }
.hotel-form-compact.hotel-form-dense .amenities-checkboxes {
  margin-top: 0.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 10px;
  font-size: 0.78rem;
}
.hotel-form-compact.hotel-form-dense .form-actions { margin-top: 0.5rem; }
.hotel-form-compact.hotel-form-dense .form-actions button,
.hotel-form-compact.hotel-form-dense .form-actions .btn-secondary { padding: 0.38rem 0.85rem; font-size: 0.88rem; }
.hotel-form-compact.hotel-form-dense .btn-add-room { padding: 0.38rem 0.75rem; font-size: 0.82rem; }
@media (max-width: 768px) {
  .hotel-form-compact.hotel-form-dense .hotel-form-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hotel-form-compact.hotel-form-dense .hotel-form-fields { grid-template-columns: 1fr; }
  .hotel-form-compact.hotel-form-dense .hotel-form-fields > label:nth-child(1),
  .hotel-form-compact.hotel-form-dense .hotel-form-fields > label:nth-child(5) { grid-column: 1; }
}

.admin-header.compact { padding: 0.5rem 1rem; }
.admin-header.compact h1 { font-size: 1.1rem; }
.admin-page.admin-form-page .admin-header { padding: 0.5rem 1rem; }
.admin-page.admin-form-page .admin-header h1 { font-size: 1.1rem; }
.hotel-form-image-label { grid-column: 1 / -1; }
.hotel-form-image-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.hotel-form-image-row input[type="file"] { font-size: 0.85rem; }
.image-upload-hint { font-size: 0.8rem; color: #666; }
.image-preview-wrap { display: inline-block; margin-top: 0.35rem; }
.image-preview-wrap img { max-width: 120px; max-height: 80px; object-fit: contain; border-radius: 6px; border: 1px solid #ddd; }
.image-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5rem 0; min-height: 0; }
.image-item { position: relative; display: inline-block; }
.image-item img { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; display: block; }
.image-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0; line-height: 1; font-size: 16px; border-radius: 50%; background: #c00; color: #fff; border: 0; cursor: pointer; }
.image-remove:hover { background: #a00; }
.image-add-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.image-add-row input[type="file"] { font-size: 0.85rem; }
.image-add-row input[type="text"] { flex: 1; min-width: 120px; padding: 0.35rem 0.5rem; font-size: 0.9rem; }
.image-add-row button { padding: 0.35rem 0.6rem; font-size: 0.85rem; cursor: pointer; }
.image-count-hint { font-size: 0.8rem; color: #666; margin-left: 6px; }
