/* ── TOP BANNER ─────────────────────────────────────── */
.top-banner {
  background: #1e2d3d;
  padding: 7px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  width: 100%;
}

.top-banner__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-banner__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-banner__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.top-banner__item i {
  color: #e05c2e;
  font-size: 14px;
}

a.top-banner__item:hover { color: #fff; }

.top-banner__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-banner__social {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}
.top-banner__social:hover { color: #fff; }

.top-banner__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 4px 10px;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.top-banner__cta:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ── NAV ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

/* Logo */
.nav__logo a {
  display: flex;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--primary-color);
}

/* Search */
.search-wrapper {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 340px;
  min-width: 200px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #EDEEF0;
  border-radius: 50px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: #333;
}

.search-bar input::placeholder {
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-bar img {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.suggestions li a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  text-decoration: none;
  color: #111;
  font-size: 13px;
}

.suggestions li a:hover,
.suggestions li.active a {
  background: #f2f2f2;
}

/* Book button */
.nav__btns {
  flex-shrink: 0;
}

.nav__btns button {
  background-color: var(--primary-color-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

/* Mobile burger */
.nav__menu__btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  flex-shrink: 0;
}

/* Mobile search */
.search-wrapper-mbl {
  display: none;
}

/* ── DESKTOP (> 768px) ──────────────────────────────── */
@media (width > 768px) {
  .nav__menu__btn { display: none; }
  .search-wrapper-mbl { display: none; }

  .nav__links {
    position: static;
    flex-direction: row;
    background: transparent;
    transform: none !important;
  }

  .nav__links li:last-child { display: none; } /* скрываем BOOK TRIP — есть кнопка */
}

/* ── TABLET (768px — 1000px) ────────────────────────── */
@media (width >= 768px) and (width < 1000px) {
  .search-wrapper {
    max-width: 180px;
    min-width: 120px;
  }

  .nav__links { gap: 1rem; font-size: 12px; }
  .nav__btns button { padding: 8px 12px; font-size: 12px; }
}

/* ── MOBILE (≤ 768px) ───────────────────────────────── */
@media (width <= 768px) {
  /* Banner — только телефон и соцсети */
  .top-banner__contacts .top-banner__item:nth-child(2),
  .top-banner__contacts .top-banner__item:nth-child(3) {
    display: none;
  }
  .top-banner__cta { display: none; }

  /* Nav */
  nav { height: 60px; }

  .nav__inner {
    padding: 0 16px;
    gap: 10px;
  }

  .search-wrapper { display: none; }
  .nav__btns { display: none; }
  .nav__menu__btn { display: block; }

  /* Mobile search в header */
  .search-wrapper-mbl {
    display: flex;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 4;
  }

  .search-wrapper-mbl .search-bar {
    width: 100%;
  }

  /* Dropdown меню */
  .nav__links {
    position: fixed;
    left: 0;
    width: 100%;
    /* height: calc(100vh - 60px); */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: #fff;
    padding: 0;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links li {
    width: 100%;
    border-bottom: 1px solid #EBE6DE;
  }

  .nav__links li a {
    display: block;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-dark);
  }

  .nav__links li:last-child {
    display: block; /* BOOK TRIP показываем на мобиле */
  }
}

/* ── VERY SMALL (< 400px) ───────────────────────────── */
@media (width < 400px) {
  .search-wrapper-mbl .search-bar {
    max-width: 140px;
  }
}

/* ── IMAGE VIEWER ───────────────────────────────────── */
.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.image-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.viewer-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}