.toursPageBody {
  margin: 0;
  background: #f3f4f6;
  color: #0f172a;
}

.toursPage {
  --tours-surface: rgba(255, 255, 255, 1);
  --tours-border: rgba(15, 23, 42, 0.12);
  --tours-muted: rgba(15, 23, 42, 0.62);
  --tours-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --tours-radius: 16px;
  --tours-accent: rgba(37, 99, 235, 1);
  --tours-danger: rgba(239, 68, 68, 1);
  --tours-warning: rgba(245, 158, 11, 1);
  min-height: 100dvh;
}

.toursHeader--hero .toursHeader__topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 20px 0 12px;
}

.toursHeader__heroBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.toursHeader__heroBgImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.03) contrast(1.02);
}

.toursHeader__heroOverlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 40% 25%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.42));
}


@media (max-width: 920px) {
  .toursHeader--hero {
    min-height: 400px;
  }

  .toursHeader__heroInner {
    padding-top: 22px;
  }
}

.toursPage__wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 18px 44px;
}

.toursPage__topRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.toursPage__back {
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.85);
  transition: background 180ms ease, transform 180ms ease;
}

.toursPage__back:hover {
  background: rgba(37, 99, 235, 0.08);
}

.toursPage__back:active {
  transform: scale(0.98);
}

.toursPage__back:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.toursPage__categoryRail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.toursPage__categoryRail::-webkit-scrollbar {
  height: 10px;
}

.toursPage__categoryRail::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.14);
  border-radius: 999px;
}

.toursPage__category {
  scroll-snap-align: start;
  min-width: 286px;
  max-width: 286px;
  background: var(--tours-surface);
  border: 1px solid var(--tours-border);
  border-radius: var(--tours-radius);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.toursPage__category:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.toursPage__catAvatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.toursPage__catAvatar img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: cover;
}

.toursPage__catTitle {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
}

.toursPage__catCount {
  margin-top: 4px;
  color: var(--tours-muted);
  font-weight: 600;
  font-size: 14px;
}

.toursPage__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  margin-top: 18px;
  align-items: start;
}

.toursPage__panel {
  background: var(--tours-surface);
  border-radius: var(--tours-radius);
  border: 1px solid var(--tours-border);
  box-shadow: var(--tours-shadow);
}

.toursPage__filters {
  padding: 18px 16px;
}

.toursPage__filtersHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.toursPage__filtersTitle {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.toursPage__reset {
  border: 0;
  background: transparent;
  color: rgba(248, 113, 113, 1);
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
}

.toursPage__reset:hover {
  background: rgba(248, 113, 113, 0.12);
}

.toursPage__reset:focus-visible {
  outline: 3px solid rgba(248, 113, 113, 0.28);
  outline-offset: 2px;
}

.toursPage__field {
  margin-bottom: 16px;
}

.toursPage__label {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.9);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toursPage__labelText {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 20px;
  gap: 8px;
}

.toursPage__labelIcon {
  max-width: 32px;
  max-height: 22px;
  color: rgba(22, 171, 255, 1);
}

.toursPage__guestCaret {
  width: 14px;
  height: 14px;
  color: rgba(15, 23, 42, 0.72);
}

.toursPage__control {
  position: relative;
}

.toursPage__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  padding: 11px 12px 11px 42px;
  font-weight: 600;
  background: rgba(255, 255, 255, 1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.toursPage__input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.toursPage__input:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.toursPage__searchIcon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(15, 23, 42, 0.5);
}

.toursPage__fieldIcon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(15, 23, 42, 0.5);
}

.toursPage__stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(22, 171, 255, 1);
}

.toursPage__star {
  width: 18px;
  height: 18px;
}

.toursPage__star--muted {
  color: rgba(22, 171, 255, 0.22);
}

.toursPage__calendar {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  padding: 12px;
}

.toursPage__calendarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  margin-bottom: 10px;
}

.toursPage__calendarTitle {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.8);
}

.toursPage__calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.toursPage__calendarDow {
  font-size: 11px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.55);
  text-align: center;
  padding: 4px 0;
}

.toursPage__day {
  appearance: none;
  border: 0;
  background: transparent;
  height: 34px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.85);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.toursPage__day:hover {
  background: rgba(37, 99, 235, 0.12);
}

.toursPage__day:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.toursPage__day--muted {
  color: rgba(15, 23, 42, 0.3);
}

.toursPage__day--selected {
  background: rgba(37, 99, 235, 1);
  color: rgba(255, 255, 255, 1);
}

.toursPage__priceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.toursPage__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: rgba(37, 99, 235, 1);
}

.toursPage__range {
  width: 100%;
  accent-color: rgba(37, 99, 235, 1);
}

.toursPage__checkList {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.toursPage__check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 300;
  font-size: 18px;
  color: rgba(0, 0, 0, 1);
}

.toursPage__check input {
  width: 18px;
  height: 18px;
  accent-color: rgba(37, 99, 235, 1);
}

.toursPage__content {
  padding: 18px 16px 20px;
  position: relative;
}

.toursPage__contentHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toursPage__headline {
  margin: 0;
  font-weight: 900;
  font-size: 26px;
}

.toursPage__sortRow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 700;
}

.toursPage__select {
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 1);
}

.toursPage__select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.toursPage__list {
  display: grid;
  gap: 14px;
}

.toursPage__pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.toursPage__pageBtn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 1);
  color: rgba(0, 0, 0, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.toursPage__pageBtn:hover:not(:disabled) {
  background: rgba(22, 171, 255, 0.12);
  transform: translateY(-1px);
}

.toursPage__pageBtn:active:not(:disabled) {
  transform: translateY(0px);
}

.toursPage__pageBtn:focus-visible {
  outline: 3px solid rgba(22, 171, 255, 0.35);
  outline-offset: 3px;
}

.toursPage__pageBtn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.toursPage__pageBtn--active {
  background: rgba(22, 171, 255, 1);
  border-color: rgba(22, 171, 255, 1);
  color: rgba(255, 255, 255, 1);
}

.toursPage__pageBtn--active:hover:not(:disabled) {
  background: rgba(22, 171, 255, 1);
  transform: none;
}

.toursPage__pageBtn--ellipsis:disabled {
  cursor: default;
  opacity: 1;
}

.toursPage__card {
  display: grid;
  grid-template-columns: 248px 1fr 220px;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 1);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.toursPage__card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.toursPage__media {
  position: relative;
  overflow: hidden;
}

.toursPage__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}

.toursPage__fav {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 1);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.toursPage__fav:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
}

.toursPage__fav:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.toursPage__fav--active {
  color: rgba(239, 68, 68, 1);
}

.toursPage__main {
  padding: 14px 14px 14px 16px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.toursPage__categoryLine {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.78);
  font-size: 13px;
}

.toursPage__title {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.toursPage__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 700;
  font-size: 13px;
}

.toursPage__metaItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toursPage__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.toursPage__tag {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.8);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
}

.toursPage__aside {
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  padding: 14px 14px 14px 16px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 10px;
}

.toursPage__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.toursPage__ratingBadge {
  background: rgba(245, 158, 11, 0.18);
  color: rgba(15, 23, 42, 0.9);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.toursPage__reviews {
  color: rgba(15, 23, 42, 0.55);
  font-weight: 800;
  font-size: 12px;
}

.toursPage__availability {
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(255, 255, 255, 1);
  background: rgba(239, 68, 68, 1);
}

.toursPage__date {
  color: rgba(15, 23, 42, 0.65);
  font-weight: 800;
  font-size: 12px;
}

.toursPage__cta {
  justify-self: end;
  text-decoration: none;
  background: rgba(37, 99, 235, 1);
  color: rgba(255, 255, 255, 1);
  font-weight: 900;
  border-radius: 12px;
  height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.toursPage__cta:hover {
  filter: brightness(1.02);
}

.toursPage__cta:active {
  transform: scale(0.99);
}

.toursPage__cta:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.toursPage__loadingOverlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(243, 244, 246, 0.7);
  backdrop-filter: blur(6px);
  border-radius: var(--tours-radius);
  z-index: 2;
}

.toursPage__spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: rgba(37, 99, 235, 1);
  animation: toursSpin 800ms linear infinite;
}

@keyframes toursSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .toursPage__grid {
    grid-template-columns: 1fr;
  }

  .toursPage__filters {
    order: 2;
  }
}

@media (max-width: 860px) {
  .toursPage__card {
    grid-template-columns: 1fr;
  }

  .toursPage__aside {
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    justify-items: start;
  }

  .toursPage__cta {
    justify-self: start;
  }
}
