/* Global search — cinematic hero, mixed results, matching tours/cities language */
.rb-search-page {
  background:
    radial-gradient(ellipse 55% 32% at 100% 8%, rgba(196, 162, 101, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 28% at 0% 42%, rgba(31, 122, 110, 0.08), transparent 50%),
    var(--rb-mist);
}

.rb-search-hero {
  position: relative;
  z-index: 24;
  padding: 128px 0 0;
  overflow: visible;
  min-height: 460px;
  isolation: isolate;
}
.rb-search-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #1a1012;
  z-index: 0;
}
.rb-search-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--rb-hero-focus, center center);
  display: block;
}
.rb-search-hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--rb-mist));
  pointer-events: none;
}
.rb-search-hero__veil,
.rb-search-hero__glow {
  position: absolute;
  pointer-events: none;
}
.rb-search-hero__veil {
  inset: 0;
  z-index: 1;
  background: linear-gradient(108deg, rgba(12, 18, 24, 0.58) 0%, rgba(18, 28, 32, 0.26) 48%, rgba(12, 18, 24, 0.16) 100%);
}
.rb-search-hero__glow {
  inset: auto -10% -20% 35%;
  z-index: 2;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.42), transparent 70%);
  filter: blur(10px);
  animation: rb-search-pulse 7s ease-in-out infinite alternate;
}
@keyframes rb-search-pulse {
  from { opacity: .55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}
.rb-search-hero .container {
  position: relative;
  z-index: 3;
  overflow: visible;
}

.rb-search-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}
.rb-search-crumb a {
  color: #fff !important;
  text-decoration: none !important;
}
.rb-search-crumb a:hover { color: #f3e0b5 !important; }

.rb-search-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 28px;
  margin-bottom: 8px;
}
.rb-search-hero__intro {
  max-width: 680px;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
}
.rb-search-hero__intro::before {
  content: "";
  position: absolute;
  right: -22px;
  top: 38px;
  width: 3px;
  height: 72px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rb-gold), transparent);
}
.rb-search-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.rb-search-hero__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.2vw, 50px);
  font-weight: 900;
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  overflow-wrap: break-word;
}
.rb-search-hero__title em {
  font-style: normal;
  color: #f3e0b5;
}
.rb-search-hero__desc {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
  max-width: 34em;
}
.rb-search-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-search-hero__stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.rb-search-hero__stats strong { font-weight: 900; }

.rb-search-hero__collage {
  position: relative;
  height: 248px;
  margin-bottom: 18px;
}
.rb-search-hero__shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow:
    0 22px 48px rgba(8, 6, 8, 0.38),
    0 0 0 3px rgba(255, 255, 255, 0.18);
  background: #2a181c;
}
.rb-search-hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rb-search-hero__shot figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rb-ink);
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rb-search-hero__shot--1 {
  width: 168px;
  height: 210px;
  right: 118px;
  top: 8px;
  transform: rotate(-9deg);
  z-index: 1;
}
.rb-search-hero__shot--2 {
  width: 176px;
  height: 224px;
  right: 8px;
  top: 0;
  transform: rotate(7deg);
  z-index: 2;
}
.rb-search-hero__shot--3 {
  width: 120px;
  height: 148px;
  right: 148px;
  bottom: 4px;
  transform: rotate(12deg);
  z-index: 0;
}

.rb-page-search {
  margin: 8px 0 0;
  overflow: visible;
}
.rb-page-search a.rb-search__tab {
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.82);
}
.rb-page-search a.rb-search__tab:hover {
  color: #fff;
}
.rb-page-search a.rb-search__tab.is-active {
  color: var(--rb-red);
}
.rb-page-search .rb-search__tab em.rb-page-search__count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(225, 29, 46, 0.12);
  color: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}
.rb-page-search .rb-search__tab.is-active em.rb-page-search__count {
  background: var(--rb-red-soft);
  color: var(--rb-red);
}
.rb-page-search .rb-search__field {
  position: relative;
}
.rb-page-search .rb-search__field input[type="search"] {
  padding-left: 42px;
}
.rb-page-search .rb-search__field input[type="search"]::-webkit-search-decoration,
.rb-page-search .rb-search__field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.rb-page-search__clear {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f1eeea;
  color: var(--rb-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rb-page-search__clear:hover {
  background: var(--rb-red-soft);
  color: var(--rb-red);
}
.rb-page-search .rb-cities {
  z-index: 240;
}

.rb-search-body {
  position: relative;
  z-index: 1;
  padding-top: 64px !important;
  padding-bottom: 88px !important;
  background: transparent;
}
.rb-search-body::after { display: none; }

.rb-search-promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 26px;
}
.rb-search-promise {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 20px 20px 20px 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(26, 28, 30, 0.06);
  box-shadow: 0 14px 32px rgba(26, 28, 30, 0.05);
  transition: transform .3s var(--rb-ease), box-shadow .3s ease, border-color .2s ease;
}
.rb-search-promise::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.rb-search-promise:nth-child(1)::before { background: linear-gradient(180deg, var(--rb-gold), #d4b36f); }
.rb-search-promise:nth-child(2)::before { background: linear-gradient(180deg, var(--rb-teal), #3aa394); }
.rb-search-promise:nth-child(3)::before { background: linear-gradient(180deg, var(--rb-sky), #6a93b0); }
.rb-search-promise:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(26, 28, 30, 0.1);
}
.rb-search-promise__ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--rb-gold-soft);
  color: var(--rb-gold-dark);
}
.rb-search-promise:nth-child(2) .rb-search-promise__ico {
  background: var(--rb-teal-soft);
  color: var(--rb-teal-dark);
}
.rb-search-promise:nth-child(3) .rb-search-promise__ico {
  background: var(--rb-sky-soft);
  color: var(--rb-sky);
}
.rb-search-promise__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 900;
  color: var(--rb-ink);
}
.rb-search-promise__copy p {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  color: #8a8c8a;
}

.rb-search-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.rb-search-shortcut {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(26, 28, 30, 0.06);
  box-shadow: 0 12px 28px rgba(26, 28, 30, 0.05);
  text-decoration: none !important;
  color: inherit;
  transition: transform .3s var(--rb-ease), box-shadow .3s ease, border-color .2s ease;
}
.rb-search-shortcut:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.18);
  box-shadow: 0 20px 40px rgba(26, 28, 30, 0.1);
}
.rb-search-shortcut__ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rb-red-soft);
  color: var(--rb-red);
}
.rb-search-shortcut:nth-child(2) .rb-search-shortcut__ico {
  background: var(--rb-gold-soft);
  color: var(--rb-gold-dark);
}
.rb-search-shortcut:nth-child(3) .rb-search-shortcut__ico {
  background: var(--rb-teal-soft);
  color: var(--rb-teal-dark);
}
.rb-search-shortcut:nth-child(4) .rb-search-shortcut__ico {
  background: var(--rb-sky-soft);
  color: var(--rb-sky);
}
.rb-search-shortcut:nth-child(5) .rb-search-shortcut__ico {
  background: #f3eaf6;
  color: #7a4d96;
}
.rb-search-shortcut strong {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--rb-ink);
  line-height: 1.45;
}
.rb-search-shortcut span {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: #8a8c8a;
}

.rb-search-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 28, 30, 0.06);
}
.rb-search-rail__copy {
  flex-shrink: 0;
}
.rb-search-rail__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--rb-ink);
}
.rb-search-rail__copy small {
  color: #8a8c8a;
  font-size: 12px;
  font-weight: 700;
}
.rb-search-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.rb-search-chips::-webkit-scrollbar { display: none; }
.rb-search-chips__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(26, 28, 30, 0.08);
  color: var(--rb-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}
.rb-search-chips__item:hover,
.rb-search-chips__item.is-active {
  background: var(--rb-red);
  color: #fff;
  border-color: transparent;
}
.rb-search-chips__av {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rb-gold-soft);
  color: var(--rb-gold-dark);
  font-size: 12px;
}
.rb-search-chips__item:hover .rb-search-chips__av,
.rb-search-chips__item.is-active .rb-search-chips__av {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.rb-search-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.rb-search-corrected {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--rb-gold-soft);
  color: var(--rb-gold-dark);
  font-size: 13.5px;
  font-weight: 700;
}
.rb-search-corrected b { font-weight: 900; color: var(--rb-ink); }

.rb-search-block {
  margin-bottom: 42px;
}
.rb-search-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.rb-search-block__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rb-search-block__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(196, 162, 101, 0.28);
  color: var(--rb-gold-dark);
  font-size: 13px;
  font-weight: 900;
}
.rb-search-block__eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--rb-gold-dark);
}
.rb-search-block__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  color: var(--rb-ink);
}
.rb-search-block__count {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #8a8c8a;
}
.rb-search-block__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(196, 162, 101, 0.28);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: var(--rb-gold-dark);
  text-decoration: none !important;
  white-space: nowrap;
}
.rb-search-block__more:hover {
  background: var(--rb-red);
  color: #fff;
  border-color: transparent;
}

.rb-search-grid {
  display: grid;
  gap: 18px;
}
.rb-search-grid--tours,
.rb-search-grid--hotels,
.rb-search-grid--articles,
.rb-search-grid--terminals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rb-search-grid--cities {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
}
.rb-search-grid--cities .rb-city-card {
  min-height: 210px;
}
.rb-search-grid--tours .rb-tour-card,
.rb-search-grid--hotels .rb-hotel-card,
.rb-search-grid--articles .rb-article-card,
.rb-search-grid--terminals .rb-terminal-card {
  height: 100%;
}

.rb-search-companies {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(26, 28, 30, 0.06);
}
.rb-search-companies h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: var(--rb-ink);
}
.rb-search-companies__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rb-search-empty {
  margin: 0 0 28px;
  padding: 56px 24px;
  text-align: center;
  background: #fff;
  border-radius: 22px;
  border: 1px dashed #e4dfde;
}
.rb-search-empty strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--rb-ink);
}
.rb-search-empty p {
  margin: 8px 0 18px;
  font-weight: 650;
  color: #8a8c8a;
}
.rb-search-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.rb-search-empty a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--rb-red);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
.rb-search-empty a.is-ghost {
  background: #fff;
  color: var(--rb-ink) !important;
  border: 1px solid rgba(26, 28, 30, 0.1);
}
.rb-search-empty__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.rb-search-empty__chips a {
  height: 36px;
  padding: 0 14px;
  background: var(--rb-gold-soft);
  color: var(--rb-gold-dark) !important;
}

@media (max-width: 1199px) {
  .rb-search-hero__top { grid-template-columns: minmax(0, 1fr) 260px; }
  .rb-search-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-search-grid--cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-search-hero__shot--3 { display: none; }
}
@media (max-width: 991px) {
  .rb-search-hero {
    padding-top: 108px;
    min-height: 0;
  }
  .rb-search-hero__top {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rb-search-hero__collage { display: none; }
  .rb-search-hero__intro::before { display: none; }
  .rb-search-promises,
  .rb-search-grid--tours,
  .rb-search-grid--hotels,
  .rb-search-grid--articles,
  .rb-search-grid--terminals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rb-search-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-search-grid--cities { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .rb-search-companies__grid { grid-template-columns: 1fr; }
  .rb-page-search .rb-search__tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex-wrap: unset;
    width: 100%;
    overflow: visible;
    gap: 4px;
  }
  .rb-page-search .rb-search__tab {
    flex: none;
    flex-direction: row;
    justify-content: center;
    padding: 9px 8px;
    font-size: 12.5px;
    gap: 5px;
  }
  .rb-search-rail {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 767px) {
  .rb-search-hero { padding-top: 132px; }
  .rb-search-hero__veil {
    background: linear-gradient(180deg, rgba(12, 18, 24, 0.5) 0%, rgba(12, 18, 24, 0.66) 100%);
  }
  .rb-search-hero__intro { max-width: 100%; }
  .rb-search-hero__title { font-size: 24px; line-height: 1.35; }
  .rb-search-hero__desc { font-size: 13.5px; }
  .rb-page-search .rb-search__tab-ico { display: none; }
  .rb-page-search .rb-search__tab em.rb-page-search__count { display: none !important; }
  .rb-page-search .rb-search__tab { padding: 8px 6px; font-size: 12.5px; }
  .rb-page-search .rb-search__field { padding: 10px 14px 8px; }
  .rb-search-body {
    padding-top: 36px !important;
    padding-bottom: 56px !important;
  }
  .rb-search-promises {
    grid-template-columns: 1fr;
  }
  .rb-search-promise { min-height: 0; }
  .rb-search-shortcuts { grid-template-columns: 1fr 1fr; }
  .rb-search-shortcut { min-height: 132px; }
  .rb-search-grid--tours,
  .rb-search-grid--hotels,
  .rb-search-grid--articles,
  .rb-search-grid--terminals,
  .rb-search-grid--cities {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .rb-search-grid--cities .rb-city-card { min-height: 210px; }
  .rb-search-block__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .rb-search-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .rb-search-page .rb-city-card__body em { display: none; }
}
@media (max-width: 575px) {
  .rb-search-shortcuts { grid-template-columns: 1fr; }
  .rb-search-shortcut { min-height: 0; flex-direction: row; align-items: center; }
  .rb-search-shortcut span { margin-top: 0; }
  .rb-search-hero__stats { display: none; }
  .rb-search-hero__desc { display: none; }
  .rb-search-page .rb-page-search .rb-search__tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .rb-search-page .rb-page-search .rb-search__tab em.rb-page-search__count {
    display: none !important;
  }
}
