.fs-tours {
  --fs-bg: #fff;
  --fs-surface: #f4f7f8;
  --fs-text: #102b35;
  --fs-muted: #627780;
  --fs-accent: #e31e35;
  --fs-border: #d8e1e4;
  position: relative;
  color: var(--fs-text);
  background: var(--fs-bg);
  font-family: inherit;
  color-scheme: light;
}
.fs-tours[data-theme="dark"] {
  --fs-bg: #10252d;
  --fs-surface: #19343e;
  --fs-text: #fff;
  --fs-muted: #b7c7cd;
  --fs-border: #34505a;
  color-scheme: dark;
}

/* The GDS theme toggle controls the whole WordPress page, including the
   shared Elementor header/footer. The attribute only exists on pages that
   render an FS Tours theme root, so unrelated site pages keep their theme. */
html[data-fs-tours-page-theme="dark"] body.elementor-page {
  color: #f4f4f5;
  background: #101114 !important;
  color-scheme: dark;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page > .elementor,
html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header,
html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-footer {
  color: #f4f4f5;
  background-color: #101114 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header .e-con {
  color: #f4f4f5;
  border-color: #3a3b43 !important;
  background-color: #101114 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page :is(.elementor-location-header, .elementor-location-footer) :is(.elementor-section, .e-con),
html[data-fs-tours-page-theme="dark"] body.elementor-page :is(#content, .site-main, .elementor-location-single, .elementor-location-archive) :is(.elementor-section, .e-con) {
  color: #f4f4f5;
  border-color: #3a3b43 !important;
  background-color: #101114 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header .currency-row-block {
  color: #f4f4f5;
  border-color: #3a3b43 !important;
  background-color: #1b1c21 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header .currency-row-block *,
html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header :is(a, p, li, label, strong, small, h1, h2, h3, h4, h5, h6, .elementor-heading-title, .elementor-icon-list-text, .elementor-item, .elementor-sub-item, .e-n-menu-title-text),
html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-footer :is(a, p, li, label, strong, small, h1, h2, h3, h4, h5, h6, .elementor-heading-title, .elementor-icon-list-text, .e-n-menu-title-text) {
  color: #f4f4f5 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header :is(.elementor-nav-menu--dropdown, .sub-menu) {
  border-color: #3a3b43 !important;
  background-color: #1b1c21 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header :is(input, select, textarea, .e-search-input) {
  color: #f4f4f5 !important;
  border-color: #3a3b43 !important;
  background-color: #24252b !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-header :is(input, textarea)::placeholder {
  color: #a6a8b1 !important;
  opacity: 1;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-footer .e-con {
  color: #f4f4f5;
  border-color: #3a3b43 !important;
  background-color: #202126 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-footer .elementor-social-icon {
  color: #f4f4f5 !important;
}

html[data-fs-tours-page-theme="dark"] body.elementor-page .elementor-location-footer .elementor-social-icon svg {
  fill: currentColor !important;
}
.fs-tours *, .fs-tours *::before, .fs-tours *::after { box-sizing: border-box; }
.fs-tours a { color: inherit; text-decoration: none; }
.fs-tours-theme-toggle { position: absolute; z-index: 2; top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; border: 1px solid var(--fs-border); border-radius: 999px; color: var(--fs-text); background: var(--fs-surface); cursor: pointer; }
.fs-tours-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.fs-tours-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--fs-border); border-radius: 1rem; background: var(--fs-surface); }
.fs-tours-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.fs-tours-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.fs-tours-card__image--empty { background: linear-gradient(135deg, #dce7ea, #b9cbd1); }
.fs-tours-card:hover .fs-tours-card__image { transform: scale(1.03); }
.fs-tours-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.25rem; }
.fs-tours-card__meta { margin: 0 0 .5rem; color: var(--fs-muted); font-size: .875rem; }
.fs-tours-card__title { margin: 0 0 .75rem; color: var(--fs-text); font-size: 1.25rem; line-height: 1.25; }
.fs-tours-card__excerpt { flex: 1; margin: 0 0 1rem; color: var(--fs-muted); }
.fs-tours-card__excerpt p { margin: 0; }
.fs-tours-card__excerpt a { color: var(--fs-accent); text-decoration: underline; }
.fs-tours-button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--fs-accent); border-radius: .55rem; color: #fff !important; background: var(--fs-accent); font: inherit; cursor: pointer; }
.fs-tours-button--ghost { color: var(--fs-text) !important; border-color: var(--fs-border); background: transparent; }
.fs-tours-filters { display: grid; grid-template-columns: 1fr 1fr .8fr .8fr .8fr auto auto; gap: .75rem; align-items: end; margin: 0 0 1.5rem; padding: 1rem 4rem 1rem 1rem; border-radius: 1rem; background: var(--fs-surface); }
.fs-tours-filters label { display: grid; gap: .35rem; color: var(--fs-muted); font-size: .82rem; }
.fs-tours-filters input, .fs-tours-filters select { min-width: 0; width: 100%; height: 2.75rem; padding: .55rem .7rem; border: 1px solid var(--fs-border); border-radius: .55rem; color: var(--fs-text); background: var(--fs-bg); }
.fs-tours-status { padding: 1.5rem; border-radius: .75rem; color: var(--fs-muted); background: var(--fs-surface); text-align: center; }
.fs-tours-error { color: #8c1523; background: #fff0f2; }
.fs-tours-pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.fs-tours-pagination button { min-width: 2.5rem; height: 2.5rem; border: 1px solid var(--fs-border); border-radius: .5rem; color: var(--fs-text); background: var(--fs-surface); cursor: pointer; }
.fs-tours-pagination button[aria-current="page"] { color: #fff; border-color: var(--fs-accent); background: var(--fs-accent); }
.fs-tours-destinations__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fs-tours-destination { display: grid; min-height: 9rem; align-content: end; padding: 1.25rem; border: 1px solid var(--fs-border); border-radius: 1rem; background: var(--fs-surface); }
.fs-tours-destination strong { font-size: 1.2rem; }
.fs-tours-destination span { color: var(--fs-muted); }
.fs-tour-detail { max-width: 1100px; margin-inline: auto; padding-bottom: 2rem; }
.fs-tour-detail__image { width: 100%; max-height: 640px; object-fit: cover; border-radius: 1rem; }
.fs-tour-detail__meta { color: var(--fs-muted); }
.fs-tour-detail__content { color: var(--fs-text); line-height: 1.65; }
.fs-tour-detail__cost { font-size: 1.35rem; font-weight: 700; }
@media (max-width: 1024px) {
  .fs-tours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-tours-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-tours-destinations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fs-tours-grid, .fs-tours-filters, .fs-tours-destinations__grid { grid-template-columns: 1fr; }
  .fs-tours-filters { padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) { .fs-tours * { scroll-behavior: auto !important; transition: none !important; } }

/* Инфо-туры: тот же 1170px / 3-column rhythm, что и на странице «Акции».
   Правила меняют только представление существующей таблицы страницы 4473. */
body.page-id-4473 #content .elementor-element-5303f9c .elementor-widget-container {
  color: #333;
  font: 14px/22px "Open Sans", sans-serif;
}

body.page-id-4473 #content .elementor-element-5303f9c .elementor-widget-container > h2 {
  margin: 0 0 20px;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 38px;
}

body.page-id-4473 #content .elementor-element-5303f9c .elementor-widget-container > p,
body.page-id-4473 #content .elementor-element-5303f9c .elementor-widget-container > ul {
  max-width: 1170px;
  overflow-wrap: anywhere;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-tours-filters {
  width: 100%;
  margin: 0 0 28px;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-market-tabs {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  margin: 0 0 48px;
  border-bottom: 1px solid #eceef1;
  scrollbar-width: none;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-market-tabs::-webkit-scrollbar {
  display: none;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-market-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 12px;
  border: 0;
  color: #8f9298;
  background: transparent;
  box-shadow: none;
  outline: 0;
  font: 400 16px/24px "Open Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-market-tabs button[aria-pressed="true"] {
  color: #242424;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-market-tabs button[aria-pressed="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: #111;
  content: "";
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-country-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-country-filters button {
  min-height: 42px;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  color: #202124;
  background: #f5f6f8;
  box-shadow: none;
  outline: 0;
  font: 400 16px/24px "Open Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-market-tabs button:focus,
body.page-id-4473 #content .elementor-element-5303f9c .fs-info-country-filters button:focus {
  box-shadow: none !important;
  outline: 0 !important;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-country-filters button[aria-pressed="true"] {
  color: #fff;
  background: #4f78ef;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-tours-empty {
  margin: 0 0 28px;
  padding: 24px;
  border-radius: 12px;
  color: #666;
  background: #f5f6f8;
  text-align: center;
}

body.page-id-4473 #content .elementor-element-5303f9c .fs-info-tours-empty[hidden],
body.page-id-4473 #content .elementor-element-5303f9c table tr[hidden] {
  display: none !important;
}

.fs-info-tours-widget {
  --fs-info-accent: #ff5200;
  --fs-info-tab-text: #8f9298;
  --fs-info-tab-active-text: #242424;
  --fs-info-pill-bg: #f5f6f8;
  --fs-info-pill-text: #202124;
  --fs-info-market-gap: 34px;
  --fs-info-country-gap: 12px;
  width: 100%;
  margin: 0 0 28px;
  font-family: "Open Sans", sans-serif;
}

/* Structured Info Tours editor widgets. Information, filters and cards can be
   placed in independent Elementor containers and linked by the catalog ID. */
.fs-info-tours-widget {
  max-width: 1170px;
  margin-inline: auto;
  padding: 24px;
  border: 1px solid #e6e8eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(35, 38, 45, .06);
}

.fs-info-filter-group + .fs-info-filter-group { margin-top: 22px; }
.fs-info-filter-heading { display: block; margin: 0 0 10px; color: #202124; font: 700 13px/18px Montserrat, Arial, sans-serif; }
.fs-info-tours-widget .fs-info-market-tabs { gap: var(--fs-info-market-gap); margin: 0; }
.fs-info-tours-widget .fs-info-market-tabs button { padding-bottom: 10px; font: 500 14px/20px Montserrat, Arial, sans-serif; }
.fs-info-tours-widget .fs-info-country-filters { display: flex; flex-wrap: wrap; gap: var(--fs-info-country-gap); }
.fs-info-tours-widget .fs-info-country-filters button {
  min-height: 38px;
  padding: 7px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--fs-info-pill-text);
  background: var(--fs-info-pill-bg);
  font: 500 13px/20px Montserrat, Arial, sans-serif;
  cursor: pointer;
}
.fs-info-tours-widget .fs-info-country-filters button[aria-pressed="true"] { color: #fff; border-color: var(--fs-info-accent); background: var(--fs-info-accent); }

.fs-info-cards-widget { width: 100%; max-width: 1170px; margin-inline: auto; color: #202124; font-family: Montserrat, Arial, sans-serif; }
.fs-info-cards-heading { margin: 0 0 20px; color: #202124 !important; font-size: 28px !important; font-weight: 700 !important; line-height: 36px !important; }
.fs-info-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.fs-info-card { --fs-info-card-color: #2c3e50; position: relative; display: block; min-width: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--fs-info-card-color); aspect-ratio: 376 / 237; cursor: pointer; }
.fs-info-card:focus-visible { outline: 3px solid #ff5200; outline-offset: 3px; }
.fs-info-card[hidden] { display: none !important; }
.fs-info-card__tile { position: absolute; inset: 0; }
.fs-info-card__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Text overlay is always visible on top of the background photo; a slightly stronger
   gradient appears on hover/focus to keep the title legible while the card is active. */
.fs-info-card__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.82) 100%); opacity: 1; transition: background .3s ease; }
.fs-info-card:hover .fs-info-card__overlay,
.fs-info-card:focus-visible .fs-info-card__overlay { background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.50) 45%, rgba(0,0,0,.88) 100%); }
.fs-info-card--no-image .fs-info-card__overlay { justify-content: center; background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.30)); }
.fs-info-card__overlay .fs-info-card__eyebrow { align-self: flex-start; margin-bottom: auto; }
.fs-info-card--no-image .fs-info-card__overlay .fs-info-card__eyebrow { margin-bottom: 12px; }
.fs-info-card__eyebrow,
.fs-info-modal__eyebrow { align-self: flex-start; margin-bottom: 11px; padding: 5px 10px; border-radius: 999px; color: #fff; background: #ff5200; font-size: 10px; font-weight: 800; line-height: 14px; letter-spacing: .02em; text-transform: uppercase; }
.fs-info-card__text { display: -webkit-box; overflow: hidden; margin: 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 6; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.fs-info-card--no-image .fs-info-card__text { text-align: center; }
.fs-info-card dl,
.fs-info-modal dl { display: grid; gap: 0; margin: 0; border-top: 1px solid #eceef1; }
.fs-info-card dl > div,
.fs-info-modal dl > div { display: grid; min-width: 0; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #eceef1; }
.fs-info-card dt,
.fs-info-modal dt { color: #969aa4; font-size: 11px; font-weight: 500; }
.fs-info-card dd,
.fs-info-modal dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #353840; font-size: 12px; font-weight: 650; }
.fs-info-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.fs-info-card--no-image .fs-info-card__more { align-self: center; }
.fs-info-cards-empty { padding: 28px; border: 1px dashed #d9dce1; border-radius: 14px; color: #777c86; background: #f7f8f9; text-align: center; }
.fs-info-cards-empty[hidden] { display: none !important; }

.fs-info-modal[hidden] { display: none !important; }
.fs-info-modal { position: fixed; z-index: 100020; inset: 0; display: grid; padding: 24px; place-items: center; opacity: 0; transition: opacity .2s ease; }
.fs-info-modal.is-open { opacity: 1; }
.fs-info-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.fs-info-modal__dialog { position: relative; z-index: 1; display: block; width: min(760px, 100%); max-height: min(88vh, calc(100vh - 40px)); overflow: auto; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); transform: translateY(14px) scale(.99); transition: transform .22s ease; }
.fs-info-modal.is-open .fs-info-modal__dialog { transform: translateY(0) scale(1); }
.fs-info-modal__close { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid rgba(32, 33, 36, .1); border-radius: 50%; color: #202124; background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(0,0,0,.14); font-size: 25px; line-height: 1; cursor: pointer; }
.fs-info-modal__close:focus-visible { outline: 3px solid #ff5200; outline-offset: 2px; }
.fs-info-modal__image { display: block; width: 100%; height: auto; margin: 0 0 18px; border-radius: 6px; }
.fs-info-modal__content { display: block; padding: 28px 32px 32px; }
.fs-info-modal__title { margin: 0 44px 16px 0; color: #111; font-size: 20px; font-weight: 700; line-height: 1.3; }
.fs-info-modal__summary { margin: 0 0 12px; color: #333; font-size: 14px; line-height: 1.6; }
.fs-info-modal__summary > :first-child { margin-top: 0; }
.fs-info-modal__summary > :last-child { margin-bottom: 0; }
.fs-info-modal__summary p { margin: 0 0 10px; }
.fs-info-modal__summary ul, .fs-info-modal__summary ol { margin: 0 0 10px; padding-left: 20px; }
.fs-info-modal__summary a { color: inherit; text-decoration: underline; }
.fs-info-modal__fact { margin: 0 0 6px; color: #333; font-size: 14px; line-height: 1.55; }
.fs-info-modal__fact strong { color: #111; font-weight: 700; }
.fs-info-modal__details { margin: 14px 0 0; color: #333; font-size: 14px; line-height: 1.6; }
.fs-info-modal__copy { display: inline-block; margin-top: 22px; padding: 12px 18px; border: 1px solid #e2bf00 !important; border-radius: 8px; color: #111 !important; background: #ffd400 !important; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.fs-info-modal__copy:hover { background: #f5cb00 !important; color: #111 !important; }
.fs-info-modal__copy:focus-visible { outline: 3px solid #ff5200; outline-offset: 2px; }
.fs-info-modal__copy.is-copied { background: #dff3d8 !important; border-color: #bfe3b0 !important; color: #1e6b2a !important; }
body.fs-info-modal-open { overflow: hidden; }

html[data-fs-tours-page-theme="dark"] .fs-info-tours-widget { color: #f4f4f5; border-color: #3a3b43; background: #1b1c21; }
html[data-fs-tours-page-theme="dark"] .fs-info-tours-widget {
  --fs-info-tab-text: #b7bac5;
  --fs-info-tab-active-text: #fff;
  --fs-info-pill-bg: #2a2b31;
  --fs-info-pill-text: #f4f4f5;
}
html[data-fs-tours-page-theme="dark"] :is(.fs-info-filter-heading, .fs-info-cards-heading) { color: #f4f4f5 !important; }

/* Theme colors are deliberately scoped to content headings. Elementor theme
   rules must not win, while headings rendered over banner imagery stay white. */
html[data-fs-tours-page-theme="light"] body.page-id-21199 #content .elementor-widget-heading > .elementor-widget-container > .elementor-heading-title,
html[data-fs-tours-page-theme="light"] :is(.fs-gds-main__title, .fs-info-cards-heading, .fs-tours-catalog__head h2) {
  color: #000 !important;
}

html[data-fs-tours-page-theme="dark"] body.page-id-21199 #content .elementor-widget-heading > .elementor-widget-container > .elementor-heading-title,
html[data-fs-tours-page-theme="dark"] :is(.fs-gds-main__title, .fs-info-cards-heading, .fs-tours-catalog__head h2) {
  color: #f4f4f5 !important;
}

body.page-id-4473.fs-info-structured-ready #content .elementor-element-5303f9c table {
  display: none !important;
}

@media (max-width: 900px) { .fs-info-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Elementor flex-контейнер на мобильном схлопывает высоту виджета карточек
   (nested flex + CSS grid внутри), из-за чего сетка выпадает из потока и футер
   налезает поверх карточек. Переводим контейнер-обёртку в блочный поток. */
@media (max-width: 1024px) {
  .e-con-inner:has(> .elementor-widget > .elementor-widget-container > .fs-info-cards-widget),
  .e-con:has(> .e-con-inner > .elementor-widget > .elementor-widget-container > .fs-info-cards-widget) {
    display: block !important;
    height: auto !important;
  }
}
@media (max-width: 640px) {
  .fs-info-tours-widget { padding: 18px; border-radius: 14px; }
  .fs-info-cards-grid { grid-template-columns: 1fr; }
  .fs-info-modal { padding: 12px; }
  .fs-info-modal__dialog { max-height: calc(100vh - 24px); }
  .fs-info-modal__content { padding: 22px 18px 24px; }
  .fs-info-modal__title { margin-right: 40px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-info-card__overlay,
  .fs-info-modal,
  .fs-info-modal__dialog { transition: none !important; }
}

.fs-info-tours-widget .fs-info-market-tabs {
  display: flex;
  gap: var(--fs-info-market-gap);
  overflow-x: auto;
  margin: 0 0 48px;
  border-bottom: 1px solid #eceef1;
  scrollbar-width: none;
}

.fs-info-tours-widget .fs-info-market-tabs::-webkit-scrollbar { display: none; }

.fs-info-tours-widget .fs-info-market-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 12px;
  border: 0;
  color: var(--fs-info-tab-text);
  background: transparent;
  box-shadow: none;
  outline: 0;
  font: 400 16px/24px "Open Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.fs-info-tours-widget .fs-info-market-tabs button[aria-pressed="true"] { color: var(--fs-info-tab-active-text); }
.fs-info-tours-widget .fs-info-market-tabs button[aria-pressed="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: var(--fs-info-tab-active-text);
  content: "";
}

.fs-info-tours-widget .fs-info-country-filters { display: flex; flex-wrap: wrap; gap: var(--fs-info-country-gap); }
.fs-info-tours-widget .fs-info-country-filters button {
  min-height: 42px;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--fs-info-pill-text);
  background: var(--fs-info-pill-bg);
  box-shadow: none;
  outline: 0;
  font: 400 16px/24px "Open Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.fs-info-tours-widget .fs-info-market-tabs button:focus-visible,
.fs-info-tours-widget .fs-info-country-filters button:focus-visible { outline: 2px solid var(--fs-info-accent); outline-offset: 2px; }
.fs-info-tours-widget .fs-info-country-filters button[aria-pressed="true"] { color: #fff; background: var(--fs-info-accent); }
.fs-info-tours-widget .fs-info-tours-empty { margin: 28px 0 0; padding: 24px; border-radius: 12px; color: #666; background: #f5f6f8; text-align: center; }
.fs-info-tours-widget .fs-info-tours-empty[hidden], table[data-fs-info-table-ready="1"] tr[hidden] { display: none !important; }

body.page-id-4473 #content .elementor-element-5303f9c table,
body.page-id-4473 #content .elementor-element-5303f9c tbody {
  display: block;
  width: 100%;
}

body.page-id-4473 #content .elementor-element-5303f9c tbody {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

body.page-id-4473 #content .elementor-element-5303f9c table tr {
  display: flex;
  min-width: 0;
  min-height: 237px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #fff;
}

body.page-id-4473 #content .elementor-element-5303f9c table tr:first-child {
  display: none;
}

body.page-id-4473 #content .elementor-element-5303f9c table tr:has(td[colspan]) {
  min-height: 0;
  grid-column: 1 / -1;
}

body.page-id-4473 #content .elementor-element-5303f9c table td {
  display: grid;
  width: 100% !important;
  min-width: 0;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 16px !important;
  border: 0 !important;
  border-top: 1px solid #ececec !important;
  color: #333;
  background: transparent !important;
  text-align: left !important;
}

body.page-id-4473 #content .elementor-element-5303f9c table td:first-child {
  display: block;
  min-height: 86px;
  padding: 18px 20px !important;
  border-top: 4px solid #ff5200 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

body.page-id-4473 #content .elementor-element-5303f9c table tr:has(td[colspan]) td:first-child {
  min-height: 0;
  padding: 20px !important;
  border-top-width: 1px !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

body.page-id-4473 #content .elementor-element-5303f9c table td::before {
  color: #777;
  font-size: 12px;
  font-weight: 600;
  line-height: 19px;
}

body.page-id-4473 #content .elementor-element-5303f9c table td:nth-child(2)::before { content: "Даты тура"; }
body.page-id-4473 #content .elementor-element-5303f9c table td:nth-child(3)::before { content: "Авиакомпания"; }
body.page-id-4473 #content .elementor-element-5303f9c table td:nth-child(4)::before { content: "Город вылета"; }
body.page-id-4473 #content .elementor-element-5303f9c table td:nth-child(5)::before { content: "Стоимость"; }

body.page-id-4473 #content .elementor-element-5303f9c table td p {
  min-width: 0;
  margin: 0 !important;
  overflow-wrap: anywhere;
  color: inherit;
  text-align: left !important;
}

body.page-id-4473 #content .elementor-element-5303f9c table td p + p {
  margin-top: 8px !important;
  font-size: 13px;
  font-weight: 400;
}

@media (max-width: 1024px) {
  body.page-id-4473 #content .elementor-element-5303f9c tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.page-id-4473 #content .elementor-element-5303f9c .fs-info-market-tabs {
    gap: 24px;
    margin-bottom: 28px;
  }

  body.page-id-4473 #content .elementor-element-5303f9c .fs-info-country-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.page-id-4473 #content .elementor-element-5303f9c .fs-info-country-filters button {
    flex: 0 0 auto;
  }

  .fs-info-tours-widget .fs-info-market-tabs {
    gap: min(var(--fs-info-market-gap), 24px);
    margin-bottom: 28px;
  }

  .fs-info-tours-widget .fs-info-country-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .fs-info-tours-widget .fs-info-country-filters button {
    flex: 0 0 auto;
  }

  body.page-id-4473 #content .elementor-element-5303f9c tbody {
    grid-template-columns: 1fr;
  }

  body.page-id-4473 #content .elementor-element-5303f9c table tr {
    min-height: 0;
  }

  body.page-id-4473 #content .elementor-element-5303f9c table td {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* Final structured-filter overrides intentionally follow the legacy table
   compatibility rules above. */
.fs-info-tours-widget > .fs-info-filter-group .fs-info-market-tabs { margin: 0; }
.fs-info-tours-widget > .fs-info-filter-group .fs-info-market-tabs button { padding-bottom: 10px; font: 500 14px/20px Montserrat, Arial, sans-serif; }
.fs-info-tours-widget > .fs-info-filter-group .fs-info-country-filters button { min-height: 38px; padding: 7px 18px; border: 1px solid transparent; font: 500 13px/20px Montserrat, Arial, sans-serif; }
.fs-info-tours-widget > .fs-info-filter-group .fs-info-country-filters button[aria-pressed="true"] { color: #fff; border-color: var(--fs-info-accent); background: var(--fs-info-accent); }

@media (max-width: 600px) {
  .fs-info-tours-widget > .fs-info-filter-group .fs-info-market-tabs { margin-bottom: 0; }
  .fs-info-tours-widget > .fs-info-filter-group .fs-info-country-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .fs-info-tours-widget > .fs-info-filter-group .fs-info-country-filters button { flex: 0 0 auto; }
}
