.home-service-switcher {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: min(418px, 100%);
  margin: 24px auto 0;
  padding: 5px;
  border: 1px solid #dbe4ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px #07182345;
  pointer-events: auto;
}

/* The Russian flight label needs more space on narrow screens. */
.home-service-switcher:lang(ru) {
  grid-template-columns: minmax(0, 1fr) minmax(116px, 1.2fr) minmax(0, 1fr);
}

.home-service-switcher + .search_form { margin-top: 12px; }

.home-service-item {
  position: relative;
  min-width: 0;
}

.home-service-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #363636;
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.home-service-option[aria-current="true"] {
  background: #e7f2ff;
  color: #363636;
}

.home-service-option[aria-disabled="true"] { cursor: default; }
.home-service-option[aria-disabled="true"]:focus-visible {
  background: #f0f5fa;
  outline: 2px solid #176fcb;
  outline-offset: -3px;
}

@media (hover: hover) {
  .home-service-option[aria-disabled="true"]:hover { background: #f0f5fa; }
}

.home-service-option svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #50657c;
}

.home-service-option svg.home-service-hotel-icon {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
  color: #4094fa;
}

.home-service-hint {
  position: absolute;
  inset-block-end: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: #172d43;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 4px 12px #07182338;
}

.home-service-hint::before {
  position: absolute;
  inset: auto 0 -9px;
  height: 9px;
  content: "";
}

.home-service-hint::after {
  position: absolute;
  inset-block-end: -3px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: inherit;
  content: "";
}

@media (min-width: 1101px) and (max-height: 760px) {
  .hero_container:has(.home-service-switcher) {
    height: max(90vh, 610px);
  }
}

@media (max-width: 700px) {
  .home-service-switcher {
    margin-block-start: 18px;
    border-radius: 16px;
  }

  .home-service-switcher + .search_form { margin-top: 10px; }

  .home-service-option {
    gap: 5px;
    min-height: 42px;
    padding-inline: 3px;
    border-radius: 11px;
    font-size: 14px;
  }

  .home-service-option svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

@media (forced-colors: active) {
  .home-service-option[aria-current="true"] {
    outline: 2px solid SelectedItem;
    outline-offset: -3px;
  }
}

/* The desktop search slot matches the circular button width. */
@media (min-width: 1101px) {
  .hero_block > .search_form > .search_inner_button {
    width: 50px;
    margin-inline-end: 0;
  }
}
