  /* ===== PATHREST TOURS RESULTS: HIDE UNTIL SEARCH ===== */

  .uc-searched_results,
  .uc-parentblock,
  .uc-hiddenbutton {
    display: none !important;
  }

  .uc-searched_results.uc-search-visible {
    display: block !important;
  }

  .uc-parentblock.uc-search-visible {
    display: flex !important;
  }

  .uc-hiddenbutton.uc-search-visible {
    display: block !important;
  }

  /*
    Шаблонная карточка изначально скрыта JS-ом,
    но при отрисовке получает .uc-search-visible.
  */
  .uc-childblock {
    display: none !important;
  }

  .uc-childblock.uc-search-visible {
    display: flex !important;
  }

  /*
    Внутренний пустой .t396 у parentblock мешает как flex-элемент.
  */
  .uc-parentblock > .t396 {
    display: none !important;
  }

  /* ===== GRID EXACTLY LIKE OLD PROJECT ===== */

  .uc-parentblock {
    flex-wrap: wrap;
    width: 86%;
    margin: 0 auto;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
  }

  .uc-childblock {
    flex: 1 1 calc(25% - 30px);
    display: flex;
    margin: 30px;
    height: auto;
    max-width: 447px;
    box-sizing: border-box;
  }

  .uc-childblock .t396 {
    width: 100%;
  }

  .uc-childblock .t396__artboard {
    margin-left: auto;
    margin-right: auto;
  }

  @media (max-width: 2210px) {
    .uc-parentblock {
      width: 96%;
    }
  }

  @media (max-width: 1980px) {
    .uc-parentblock {
      width: 80%;
      margin: 0 auto;
    }

    .uc-childblock {
      flex-basis: calc(33.3% - 30px);
    }
  }

  @media (max-width: 1917px) {
    .uc-parentblock {
      width: 84%;
    }

    .uc-childblock {
      max-width: 397px;
    }
  }

  @media (max-width: 1780px) {
    .uc-parentblock {
      width: 83%;
    }
  }

  @media (max-width: 1677px) {
    .uc-parentblock {
      width: 86%;
    }

    .uc-childblock {
      max-width: 342px;
    }
  }

  @media (max-width: 1540px) {
    .uc-parentblock {
      width: 85%;
    }
  }

  @media (max-width: 1437px) {
    .uc-parentblock {
      width: 86%;
    }

    .uc-childblock {
      max-width: 318px;
    }
  }

  @media (max-width: 1331px) {
    .uc-childblock {
      max-width: 303px;
    }
  }

  @media (max-width: 1277px) {
    .uc-childblock {
      flex: 1 1 calc(50% - 30px);
      max-width: 333px;
    }
  }

  @media (max-width: 1180px) {
    .uc-parentblock {
      width: 84%;
    }
  }

  @media (max-width: 1050px) {
    .uc-parentblock {
      width: 83%;
    }
  }

  @media (max-width: 979px) {
    .uc-parentblock {
      width: 98%;
    }

    .uc-childblock {
      max-width: 304px;
    }
  }

  @media (max-width: 765px) {
    .uc-parentblock {
      width: 100%;
      justify-content: center;
    }

    .uc-childblock {
      flex: 1 1 100%;
      max-width: 100%;
      margin: 15px auto;
    }
  }

  /* ===== CARD EXTRAS ===== */

  .uc-childblock .details,
  .uc-childblock .details .tn-atom,
  .uc-childblock .main_photo,
  .uc-childblock .main_photo .tn-atom {
    cursor: pointer !important;
  }

  .uc-childblock .main_photo .tn-atom__img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .uc-childblock.pathrest-tour-card--no-photo .main_photo .tn-atom {
    background: linear-gradient(135deg, rgba(0,108,131,0.16), rgba(255,139,33,0.12));
  }

  .uc-childblock.pathrest-tour-card--no-photo .main_photo .tn-atom__img {
    display: none !important;
  }

   /* ===== TOUR LANGUAGE PILL LIKE MEALTYPE ===== */

  /*
    Сам Zero-элемент делаем эластичным:
    левая позиция остаётся от Tilda,
    ширина становится по содержимому и растёт вправо.
  */
  .uc-parentblock .t396__elem.tour_language {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
  }

  /*
    Плашка языка тура — как mealtype из другого проекта.
  */
  .uc-parentblock .t396__elem.tour_language .tn-atom {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    box-sizing: border-box;

    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(0, 107, 129, 0.96) !important;

    color: #ffffff !important;
    font-family: "Arian AMU Serif", "Times New Roman", serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;

    cursor: default;
  }

  /*
    Убираем фиксированную ширину, которую Tilda может навесить на внутренности.
  */
  .uc-parentblock .t396__elem.tour_language .tn-atom > * {
    width: auto !important;
    max-width: none !important;
  }

  @media (max-width: 1677px) {
    .uc-parentblock .t396__elem.tour_language .tn-atom {
      padding: 6px 16px;
      font-size: 13px;
    }
  }

  @media (max-width: 1437px) {
    .uc-parentblock .t396__elem.tour_language .tn-atom {
      padding: 6px 14px;
      font-size: 12px;
    }
  }

  @media (max-width: 979px) {
    .uc-parentblock .t396__elem.tour_language .tn-atom {
      padding: 5px 12px;
      font-size: 11px;
    }
  }

  @media (max-width: 765px) {
    .uc-parentblock .t396__elem.tour_language .tn-atom {
      padding: 6px 14px;
      font-size: 12px;
    }
  }

  @media (max-width: 409px) {
    .uc-parentblock .t396__elem.tour_language .tn-atom {
      padding: 5px 12px;
      font-size: 11px;
    }
  }


  /* =========================================================
     TOUR PARTNER — LOGO ONLY + NAME TOOLTIP
     Элемент Zero Block: .tour_partner

     На карточке постоянно виден только логотип.
     Название партнёра появляется:
     - при наведении мышью;
     - при фокусе с клавиатуры;
     - при касании на мобильном устройстве.
     ========================================================= */

  /*
    Положение, координаты и выравнивание элемента .tour_partner
    полностью задаются в настройках Zero Block в Tilda.

    Здесь нет top, left, right, bottom, margin, transform,
    flex-выравнивания или других правил размещения элемента.
  */
  .uc-childblock .tour_partner {
    overflow: visible !important;
    pointer-events: none !important;
  }

  /*
    Оставлены только визуальные сбросы исходного shape:
    прозрачный фон, отсутствие рамки и возможность показать tooltip.
    Эти правила не меняют положение элемента на карточке.
  */
  .uc-childblock .tour_partner .tn-atom {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    overflow: visible !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #2a6583 !important;
    pointer-events: none !important;
  }

  .uc-childblock .tour_partner.pathrest-tour-partner--empty {
    display: none !important;
  }

  /*
    Логотип — единственная интерактивная область.
    Поэтому подсказка не появляется при наведении на пустую
    ширину исходного shape-элемента.
  */
  .uc-childblock .pathrest-tour-partner__logo {
    position: relative;
    z-index: 8;

    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;

    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;

    border: 1px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    color: #2a6583;
    box-shadow: 0 0 0 1px rgba(42, 101, 131, 0.05);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;

    cursor: help;
    pointer-events: auto;
    outline: none;

    transition:
      transform 0.18s ease,
      filter 0.18s ease;
  }

  .uc-childblock .pathrest-tour-partner__logo:hover,
  .uc-childblock .pathrest-tour-partner__logo:focus,
  .uc-childblock .pathrest-tour-partner__logo:focus-visible {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 5px 9px rgba(42, 101, 131, 0.18));
  }

  .uc-childblock .pathrest-tour-partner__logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;

    border: 0;
    border-radius: 50%;
    background: transparent;

    object-fit: contain;
    object-position: center center;
  }

  /*
    Если логотип отсутствует или не загрузился,
    остаются инициалы в лёгком круге.
  */
  .uc-childblock .pathrest-tour-partner__initials {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;

    border: 1px solid rgba(42, 101, 131, 0.20);
    border-radius: 50%;
    background: rgba(245, 253, 255, 0.92);
    color: #2a6583;
  }

  /*
    Название больше не занимает место на карточке.
    Правило также скрывает старый элемент, если браузер
    временно показывает карточку из кэша.
  */
  .uc-childblock .pathrest-tour-partner__name {
    display: none !important;
  }

  /*
    Всплывающая подсказка с названием партнёра.

    Логотип расположен в правой части карточки, поэтому
    правый край подсказки привязан к правому краю логотипа.
    Вся плашка раскрывается влево и не выходит за карточку.
  */
  .uc-childblock
  .pathrest-tour-partner__logo[data-partner-name]:not([data-partner-name=""])::before {
    content: "";

    position: absolute;
    left: auto;
    right: 10px;
    top: calc(100% + 6px);
    z-index: 10001;

    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 7px solid #f5fdff;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);

    transition:
      opacity 0.16s ease,
      visibility 0.16s ease,
      transform 0.16s ease;
  }

  .uc-childblock
  .pathrest-tour-partner__logo[data-partner-name]:not([data-partner-name=""])::after {
    content: attr(data-partner-name);

    position: absolute;
    left: auto;
    right: -2px;
    top: calc(100% + 13px);
    z-index: 10000;

    width: max-content;
    min-width: 90px;
    max-width: min(250px, calc(100vw - 34px));
    padding: 9px 13px;
    box-sizing: border-box;

    border: 1px solid rgba(42, 101, 131, 0.24);
    border-radius: 12px;
    background: #f5fdff;
    box-shadow: 0 8px 22px rgba(42, 101, 131, 0.18);

    color: #2a6583;
    font-family: "Arian AMU Serif", "Times New Roman", serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);

    transition:
      opacity 0.16s ease,
      visibility 0.16s ease,
      transform 0.16s ease;
  }

  /*
    Подсказка открывается:
    - обычным наведением;
    - классом .is-tooltip-open после клика/касания.

    Фокус сам по себе больше не удерживает подсказку открытой.
  */
  .uc-childblock
  .pathrest-tour-partner__logo[data-partner-name]:not([data-partner-name=""]):hover::before,
  .uc-childblock
  .pathrest-tour-partner__logo[data-partner-name]:not([data-partner-name=""]):hover::after,
  .uc-childblock
  .pathrest-tour-partner__logo.is-tooltip-open[data-partner-name]:not([data-partner-name=""])::before,
  .uc-childblock
  .pathrest-tour-partner__logo.is-tooltip-open[data-partner-name]:not([data-partner-name=""])::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  @media (max-width: 1677px) {
    .uc-childblock .pathrest-tour-partner__logo {
      flex-basis: 38px;
      width: 38px;
      height: 38px;
      min-width: 38px;
      min-height: 38px;
      font-size: 11px;
    }

    .uc-childblock
    .pathrest-tour-partner__logo[data-partner-name]:not([data-partner-name=""])::after {
      font-size: 12px;
    }
  }

  @media (max-width: 979px) {
    .uc-childblock .pathrest-tour-partner__logo {
      flex-basis: 34px;
      width: 34px;
      height: 34px;
      min-width: 34px;
      min-height: 34px;
      font-size: 10px;
    }

    .uc-childblock
    .pathrest-tour-partner__logo[data-partner-name]:not([data-partner-name=""])::after {
      padding: 8px 11px;
      font-size: 11px;
    }
  }

  @media (max-width: 765px) {
    .uc-childblock .pathrest-tour-partner__logo {
      flex-basis: 46px;
      width: 46px;
      height: 46px;
      min-width: 46px;
      min-height: 46px;
      font-size: 12px;
    }

    .uc-childblock
    .pathrest-tour-partner__logo[data-partner-name]:not([data-partner-name=""])::after {
      min-width: 110px;
      max-width: min(230px, calc(100vw - 30px));
      padding: 9px 12px;
      font-size: 12px;
    }
  }

  @media (max-width: 409px) {
    .uc-childblock .pathrest-tour-partner__logo {
      flex-basis: 40px;
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      font-size: 11px;
    }
  }

  .uc-hiddenbutton {
    margin-top: 10px;
    margin-bottom: 30px;
  }

  .uc-hiddenbutton .t400__submit,
  .uc-hiddenbutton .t-submit {
    cursor: pointer !important;
  }

  .pathrest-tours-empty {
    width: 100%;
    margin: 20px auto 30px;
    padding: 24px 20px;
    border: 1px solid rgba(0, 108, 131, 0.25);
    border-radius: 18px;
    background: rgba(245, 253, 255, 0.95);
    color: #2a6583;
    font-family: "Arian AMU Serif", "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
  }

  @media (max-width: 381px) {
    .pathrest-tours-empty {
      font-size: 15px;
      padding: 18px 14px;
    }
  }
  
   /* =========================================================
     FINAL FIX — REMOVE COMMON BORDER ON MOBILE
     ========================================================= */

  @media (max-width: 766px) {
    #allrecords .intours-offer-plan {
      border: none !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      width: 90% !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  }

  @media (max-width: 382px) {
    #allrecords .intours-offer-plan {
      border: none !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      width: 90% !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  }


/* ==========================================================
   PATHREST SERVER TOUR CARD — PRODUCTION

   Production server-rendered tour cards.

   Tilda Zero Block dimensions reproduced with native HTML/CSS.
   Existing PATHREST class/data contracts intentionally retained.
   ========================================================== */

/*
  Keep the existing responsive grid rules for .uc-parentblock /
  .uc-childblock, but the card itself no longer contains T396.
*/
.uc-childblock.pathrest-tour-card--server {
  position: relative;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

.pathrest-tour-card--server .pathrest-tour-card__canvas {
  --pc-card-w: 438px;
  --pc-card-h: 485px;

  --pc-photo-top: 0px;
  --pc-photo-h: 241px;

  --pc-blue-top: 233px;
  --pc-blue-h: 119px;

  --pc-title-x: 8px;
  --pc-title-top: 241px;
  --pc-title-w: 416px;
  --pc-title-h: 53px;
  --pc-title-fs: 17px;

  --pc-subtitle-x: 11px;
  --pc-subtitle-top: 301px;
  --pc-subtitle-w: 416px;
  --pc-subtitle-h: 42px;
  --pc-subtitle-fs: 14px;

  --pc-date-x: 18px;
  --pc-date-top: 360px;
  --pc-date-w: 272px;
  --pc-date-h: 28px;
  --pc-date-fs: 18px;

  --pc-duration-x: 17px;
  --pc-duration-top: 388px;
  --pc-duration-w: 364px;
  --pc-duration-h: 41px;
  --pc-duration-fs: 18px;

  --pc-code-x: 290.5px;
  --pc-code-top: 362px;
  --pc-code-w: 131px;
  --pc-code-h: 23px;
  --pc-code-fs: 15px;

  --pc-price-x: 270.5px;
  --pc-price-top: 434px;
  --pc-price-w: 151px;
  --pc-price-h: 28px;
  --pc-price-fs: 18px;

  --pc-button-x: 17.5px;
  --pc-button-top: 429px;
  --pc-button-w: 213px;
  --pc-button-h: 40px;
  --pc-button-fs: 13px;

  --pc-lang-x: 0px;
  --pc-lang-top: 0px;

  --pc-partner-x: 382.5px;
  --pc-partner-top: 10px;
  --pc-partner-size: 35px;

  position: relative;

  width: var(--pc-card-w);
  height: var(--pc-card-h);

  max-width: 100%;

  flex: 0 0 auto;

  overflow: visible;

  border-radius: 15px;

  background: #ffffff;

  box-shadow:
    0 0 5px 0 rgba(0, 108, 131, 0.70);

  box-sizing: border-box;
}


/* ===== FULL CARD CLICK TARGET ===== */

.pathrest-tour-card--server .pathrest-tour-card__hitarea {
  position: absolute;
  inset: 0;

  z-index: 4;

  display: block;

  border-radius: 15px;

  background: transparent;

  cursor: pointer;
}


/* ===== MAIN PHOTO ===== */

.pathrest-tour-card--server .pathrest-tour-card__photo {
  position: absolute;

  z-index: 1;

  left: 0;
  top: var(--pc-photo-top);

  width: 100%;
  height: var(--pc-photo-h);

  overflow: hidden;

  border-radius: 15px 15px 0 0;
}

.pathrest-tour-card--server .pathrest-tour-card__photo .tn-atom {
  display: block;

  width: 100%;
  height: 100%;
}

.pathrest-tour-card--server .pathrest-tour-card__photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  border-radius: 15px 15px 0 0;
}

.pathrest-tour-card--server.pathrest-tour-card--no-photo
.pathrest-tour-card__photo {
  background:
    linear-gradient(
      135deg,
      rgba(0, 108, 131, 0.16),
      rgba(255, 139, 33, 0.12)
    );
}


/* ===== BLUE TITLE AREA ===== */

.pathrest-tour-card--server .pathrest-tour-card__blue-band {
  position: absolute;

  z-index: 2;

  left: 0;
  top: var(--pc-blue-top);

  width: 100%;
  height: var(--pc-blue-h);

  background: #2a6583;

  pointer-events: none;
}


/* ===== COMMON TEXT ===== */

.pathrest-tour-card--server
.pathrest-tour-card__title,

.pathrest-tour-card--server
.pathrest-tour-card__subtitle,

.pathrest-tour-card--server
.pathrest-tour-card__date,

.pathrest-tour-card--server
.pathrest-tour-card__duration,

.pathrest-tour-card--server
.pathrest-tour-card__code,

.pathrest-tour-card--server
.pathrest-tour-card__price {
  position: absolute;

  z-index: 3;

  box-sizing: border-box;

  pointer-events: none;
}

.pathrest-tour-card--server
.pathrest-tour-card__title
.tn-atom,

.pathrest-tour-card--server
.pathrest-tour-card__subtitle
.tn-atom,

.pathrest-tour-card--server
.pathrest-tour-card__date
.tn-atom,

.pathrest-tour-card--server
.pathrest-tour-card__duration
.tn-atom,

.pathrest-tour-card--server
.pathrest-tour-card__code
.tn-atom,

.pathrest-tour-card--server
.pathrest-tour-card__price
.tn-atom {
  width: 100%;
  height: 100%;

  box-sizing: border-box;

  font-family:
    var(--t-headline-font, Arial, sans-serif);
}


/* ===== TITLE ===== */

.pathrest-tour-card--server .pathrest-tour-card__title {
  left: var(--pc-title-x);
  top: var(--pc-title-top);

  width: var(--pc-title-w);
  height: var(--pc-title-h);
}

.pathrest-tour-card--server
.pathrest-tour-card__title
.tn-atom {
  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 0 4px;

  color: #ffffff;

  text-align: center;

  font-size: var(--pc-title-fs);
  font-weight: 700;
  line-height: 1.55;

  text-transform: uppercase;
}


/* ===== SUBTITLE ===== */

.pathrest-tour-card--server .pathrest-tour-card__subtitle {
  left: var(--pc-subtitle-x);
  top: var(--pc-subtitle-top);

  width: var(--pc-subtitle-w);
  height: var(--pc-subtitle-h);
}

.pathrest-tour-card--server
.pathrest-tour-card__subtitle
.tn-atom {
  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 0 3px;

  color: #ffffff;

  text-align: center;

  font-size: var(--pc-subtitle-fs);
  font-weight: 400;
  line-height: 1.55;
}


/* ===== DATE ===== */

.pathrest-tour-card--server .pathrest-tour-card__date {
  left: var(--pc-date-x);
  top: var(--pc-date-top);

  width: var(--pc-date-w);
  height: var(--pc-date-h);
}

.pathrest-tour-card--server
.pathrest-tour-card__date
.tn-atom {
  display: flex;

  align-items: center;

  color: #2a6583;

  font-size: var(--pc-date-fs);
  font-weight: 700;
  line-height: 1.55;
}


/* ===== DURATION ===== */

.pathrest-tour-card--server .pathrest-tour-card__duration {
  left: var(--pc-duration-x);
  top: var(--pc-duration-top);

  width: var(--pc-duration-w);
  height: var(--pc-duration-h);
}

.pathrest-tour-card--server
.pathrest-tour-card__duration
.tn-atom {
  display: flex;

  align-items: center;

  color: #ff8b21;

  font-size: var(--pc-duration-fs);
  font-weight: 700;
  line-height: 1.55;
}


/* ===== TOUR CODE ===== */

.pathrest-tour-card--server .pathrest-tour-card__code {
  left: var(--pc-code-x);
  top: var(--pc-code-top);

  width: var(--pc-code-w);
  height: var(--pc-code-h);
}

.pathrest-tour-card--server
.pathrest-tour-card__code
.tn-atom {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  color: #2a6583;

  text-align: right;

  font-size: var(--pc-code-fs);
  font-weight: 700;
  line-height: 1.55;

  white-space: nowrap;
}


/* ===== PRICE ===== */

.pathrest-tour-card--server .pathrest-tour-card__price {
  left: var(--pc-price-x);
  top: var(--pc-price-top);

  width: var(--pc-price-w);
  height: var(--pc-price-h);
}

.pathrest-tour-card--server
.pathrest-tour-card__price
.tn-atom {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  color: #ff8b21;

  text-align: right;

  font-size: var(--pc-price-fs);
  font-weight: 700;
  line-height: 1.55;

  white-space: nowrap;
}


/* ===== DETAILS BUTTON ===== */

.pathrest-tour-card--server .pathrest-tour-card__details {
  position: absolute;

  z-index: 7;

  left: var(--pc-button-x);
  top: var(--pc-button-top);

  width: var(--pc-button-w);
  height: var(--pc-button-h);
}

.pathrest-tour-card--server
.pathrest-tour-card__details
.tn-atom {
  display: flex;

  width: 100%;
  height: 100%;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-radius: 30px;

  background: #2a6583;

  color: #ffffff;

  text-decoration: none;

  font-family:
    var(--t-headline-font, Arial, sans-serif);

  font-size: var(--pc-button-fs);
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease-in-out;
}

.pathrest-tour-card--server
.pathrest-tour-card__details
.tn-atom:hover,

.pathrest-tour-card--server
.pathrest-tour-card__details
.tn-atom:focus-visible {
  background: #038eac;
}


/* ===== LANGUAGE ===== */

.pathrest-tour-card--server .pathrest-tour-card__language {
  position: absolute !important;

  z-index: 8;

  left: var(--pc-lang-x) !important;
  top: var(--pc-lang-top) !important;

  width: auto !important;
  height: auto !important;

  pointer-events: none;
}


/* Existing results.css supplies the same language-pill design. */


/* ===== PARTNER ===== */

.pathrest-tour-card--server .pathrest-tour-card__partner {
  position: absolute !important;

  z-index: 9;

  left: var(--pc-partner-x) !important;
  top: var(--pc-partner-top) !important;

  width: var(--pc-partner-size) !important;
  height: var(--pc-partner-size) !important;
}

.pathrest-tour-card--server
.pathrest-tour-card__partner
.tn-atom {
  width: 100%;
  height: 100%;
}

.pathrest-tour-card--server
.pathrest-tour-card__partner
.pathrest-tour-partner__logo {
  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;
}


/* ===== SERVER LOAD-MORE ===== */

.pathrest-tour-more--server {
  width: 100%;

  box-sizing: border-box;

  text-align: center;
}

.pathrest-tour-more--server
.pathrest-tour-more__button {
  cursor: pointer;
}


/* ==========================================================
   TILDA BREAKPOINT: max-width 1917
   ========================================================== */

@media (max-width: 1917px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 388px;
    --pc-card-h: 427px;

    --pc-photo-h: 212px;

    --pc-blue-top: 208px;
    --pc-blue-h: 98px;

    --pc-title-x: 9px;
    --pc-title-top: 212px;
    --pc-title-w: 368px;
    --pc-title-h: 50px;
    --pc-title-fs: 16px;

    --pc-subtitle-x: 10px;
    --pc-subtitle-top: 262px;
    --pc-subtitle-w: 368px;
    --pc-subtitle-h: 42px;
    --pc-subtitle-fs: 13px;

    --pc-date-x: 14.5px;
    --pc-date-top: 312px;
    --pc-date-w: 249px;
    --pc-date-fs: 17px;

    --pc-duration-x: 15.5px;
    --pc-duration-top: 338px;
    --pc-duration-w: 325px;
    --pc-duration-h: 38px;
    --pc-duration-fs: 17px;

    --pc-code-x: 263px;
    --pc-code-top: 314px;
    --pc-code-w: 110px;
    --pc-code-fs: 14px;

    --pc-price-x: 220.5px;
    --pc-price-top: 382px;
    --pc-price-w: 153px;
    --pc-price-fs: 17px;

    --pc-button-x: 15.5px;
    --pc-button-top: 376px;
    --pc-button-w: 191px;
    --pc-button-h: 38px;
    --pc-button-fs: 12px;

    --pc-lang-x: 0px;

    --pc-partner-x: 335.5px;
    --pc-partner-top: 10px;
    --pc-partner-size: 33px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 1677
   ========================================================== */

@media (max-width: 1677px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 334px;
    --pc-card-h: 373px;

    --pc-photo-h: 176px;

    --pc-blue-top: 172px;
    --pc-blue-h: 89px;

    --pc-title-x: 8px;
    --pc-title-top: 176px;
    --pc-title-w: 318px;
    --pc-title-h: 46px;
    --pc-title-fs: 15px;

    --pc-subtitle-x: 8px;
    --pc-subtitle-top: 222px;
    --pc-subtitle-w: 318px;
    --pc-subtitle-h: 39px;
    --pc-subtitle-fs: 12px;

    --pc-date-x: 14px;
    --pc-date-top: 267px;
    --pc-date-w: 208px;
    --pc-date-fs: 15px;

    --pc-duration-x: 14.5px;
    --pc-duration-top: 287px;
    --pc-duration-w: 275px;
    --pc-duration-h: 38px;
    --pc-duration-fs: 15px;

    --pc-code-x: 226.5px;
    --pc-code-top: 267px;
    --pc-code-w: 95px;
    --pc-code-fs: 13px;

    --pc-price-x: 186.5px;
    --pc-price-top: 329px;
    --pc-price-w: 135px;
    --pc-price-fs: 16px;

    --pc-button-x: 14px;
    --pc-button-top: 325px;
    --pc-button-w: 172px;
    --pc-button-h: 35px;
    --pc-button-fs: 12px;

    --pc-lang-x: 0.5px;

    --pc-partner-x: 282px;
    --pc-partner-top: 10px;
    --pc-partner-size: 32px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 1437
   ========================================================== */

@media (max-width: 1437px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 309px;
    --pc-card-h: 351px;

    --pc-photo-h: 166px;

    --pc-blue-top: 163px;
    --pc-blue-h: 83px;

    --pc-title-x: 8px;
    --pc-title-top: 166px;
    --pc-title-w: 293px;
    --pc-title-h: 53px;
    --pc-title-fs: 14px;

    --pc-subtitle-x: 8px;
    --pc-subtitle-top: 212px;
    --pc-subtitle-w: 293px;
    --pc-subtitle-h: 34px;
    --pc-subtitle-fs: 11px;

    --pc-date-x: 13.5px;
    --pc-date-top: 249px;
    --pc-date-w: 184px;
    --pc-date-fs: 13px;

    --pc-duration-x: 13.5px;
    --pc-duration-top: 270px;
    --pc-duration-w: 252px;
    --pc-duration-h: 42px;
    --pc-duration-fs: 13px;

    --pc-code-x: 198px;
    --pc-code-top: 251px;
    --pc-code-w: 97px;
    --pc-code-fs: 12px;

    --pc-price-x: 184.5px;
    --pc-price-top: 316px;
    --pc-price-w: 110px;
    --pc-price-fs: 13px;

    --pc-button-x: 13.5px;
    --pc-button-top: 308px;
    --pc-button-w: 168px;
    --pc-button-h: 33px;
    --pc-button-fs: 11px;

    --pc-lang-x: 0px;

    --pc-partner-x: 261px;
    --pc-partner-top: 9px;
    --pc-partner-size: 29px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 1331
   ========================================================== */

@media (max-width: 1331px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 296px;
    --pc-card-h: 341px;

    --pc-photo-h: 162px;

    --pc-blue-top: 159px;
    --pc-blue-h: 75px;

    --pc-title-x: 7px;
    --pc-title-top: 162px;
    --pc-title-w: 282px;
    --pc-title-h: 40px;
    --pc-title-fs: 13px;

    --pc-subtitle-x: 7px;
    --pc-subtitle-top: 202px;
    --pc-subtitle-w: 282px;
    --pc-subtitle-h: 28px;
    --pc-subtitle-fs: 10px;

    --pc-date-x: 13px;
    --pc-date-top: 239px;
    --pc-date-w: 182px;
    --pc-date-fs: 13px;

    --pc-duration-x: 13px;
    --pc-duration-top: 258px;
    --pc-duration-w: 242px;
    --pc-duration-h: 38px;
    --pc-duration-fs: 13px;

    --pc-code-x: 195px;
    --pc-code-top: 241px;
    --pc-code-w: 88px;
    --pc-code-fs: 11px;

    --pc-price-x: 177px;
    --pc-price-top: 304px;
    --pc-price-w: 106px;
    --pc-price-fs: 13px;

    --pc-button-x: 13px;
    --pc-button-top: 298px;
    --pc-button-w: 164px;
    --pc-button-h: 33px;
    --pc-button-fs: 10px;

    --pc-lang-x: -45px;

    --pc-partner-x: 249px;
    --pc-partner-top: 9px;
    --pc-partner-size: 28px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 1277
   ========================================================== */

@media (max-width: 1277px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 324px;
    --pc-card-h: 348px;

    --pc-photo-h: 179px;

    --pc-blue-top: 176px;
    --pc-blue-h: 78px;

    --pc-title-x: 9px;
    --pc-title-top: 179px;
    --pc-title-w: 306px;
    --pc-title-h: 43px;
    --pc-title-fs: 12px;

    --pc-subtitle-x: 9px;
    --pc-subtitle-top: 222px;
    --pc-subtitle-w: 306px;
    --pc-subtitle-h: 31px;
    --pc-subtitle-fs: 9px;

    --pc-date-x: 13px;
    --pc-date-top: 259px;
    --pc-date-w: 208px;
    --pc-date-fs: 13px;

    --pc-duration-x: 13.5px;
    --pc-duration-top: 277px;
    --pc-duration-w: 271px;
    --pc-duration-h: 28px;
    --pc-duration-fs: 13px;

    --pc-code-x: 221px;
    --pc-code-top: 260px;
    --pc-code-w: 90px;
    --pc-code-fs: 11px;

    --pc-price-x: 185px;
    --pc-price-top: 312px;
    --pc-price-w: 126px;
    --pc-price-fs: 13px;

    --pc-button-x: 13px;
    --pc-button-top: 304px;
    --pc-button-w: 172px;
    --pc-button-h: 33px;
    --pc-button-fs: 9px;

    --pc-lang-x: -45px;

    --pc-partner-x: 278.5px;
    --pc-partner-top: 9px;
    --pc-partner-size: 27px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 979
   ========================================================== */

@media (max-width: 979px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 295px;
    --pc-card-h: 345px;

    --pc-photo-h: 160px;

    --pc-blue-top: 156px;
    --pc-blue-h: 82px;

    --pc-title-x: 7px;
    --pc-title-top: 160px;
    --pc-title-w: 279px;
    --pc-title-h: 44px;
    --pc-title-fs: 14px;

    --pc-subtitle-x: 8px;
    --pc-subtitle-top: 205px;
    --pc-subtitle-w: 279px;
    --pc-subtitle-h: 42px;
    --pc-subtitle-fs: 11px;

    --pc-date-x: 13px;
    --pc-date-top: 242px;
    --pc-date-w: 181px;
    --pc-date-fs: 13px;

    --pc-duration-x: 12.5px;
    --pc-duration-top: 264px;
    --pc-duration-w: 242px;
    --pc-duration-h: 38px;
    --pc-duration-fs: 13px;

    --pc-code-x: 193.5px;
    --pc-code-top: 243px;
    --pc-code-w: 88px;
    --pc-code-fs: 12px;

    --pc-price-x: 161px;
    --pc-price-top: 307px;
    --pc-price-w: 121px;
    --pc-price-fs: 13px;

    --pc-button-x: 12.5px;
    --pc-button-top: 302px;
    --pc-button-w: 148px;
    --pc-button-h: 33px;
    --pc-button-fs: 9px;

    --pc-lang-x: -45.5px;

    --pc-partner-x: 249px;
    --pc-partner-top: 9px;
    --pc-partner-size: 27px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 765
   ========================================================== */

@media (max-width: 765px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 370px;
    --pc-card-h: 397px;

    --pc-photo-h: 203px;

    --pc-blue-top: 197px;
    --pc-blue-h: 88px;

    --pc-title-x: 10px;
    --pc-title-top: 202px;
    --pc-title-w: 350px;
    --pc-title-h: 44px;
    --pc-title-fs: 14px;

    --pc-subtitle-x: 10px;
    --pc-subtitle-top: 248px;
    --pc-subtitle-w: 350px;
    --pc-subtitle-h: 33px;
    --pc-subtitle-fs: 11px;

    --pc-date-x: 15px;
    --pc-date-top: 291px;
    --pc-date-w: 234px;
    --pc-date-h: 20px;
    --pc-date-fs: 13px;

    --pc-duration-x: 15px;
    --pc-duration-top: 311px;
    --pc-duration-w: 306px;
    --pc-duration-h: 34px;
    --pc-duration-fs: 13px;

    --pc-code-x: 249px;
    --pc-code-top: 292px;
    --pc-code-w: 106px;
    --pc-code-h: 17px;
    --pc-code-fs: 11px;

    --pc-price-x: 216.5px;
    --pc-price-top: 353px;
    --pc-price-w: 139px;
    --pc-price-fs: 13px;

    --pc-button-x: 15.5px;
    --pc-button-top: 345px;
    --pc-button-w: 201px;
    --pc-button-h: 36px;
    --pc-button-fs: 10px;

    --pc-lang-x: 0.5px;

    --pc-partner-x: 323px;
    --pc-partner-top: 8px;
    --pc-partner-size: 34px;

    border-radius: 12px;
  }

  .pathrest-tour-card--server
  .pathrest-tour-card__photo,

  .pathrest-tour-card--server
  .pathrest-tour-card__photo img {
    border-radius: 12px 12px 0 0;
  }

  .pathrest-tour-card--server
  .pathrest-tour-card__hitarea {
    border-radius: 12px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 409
   ========================================================== */

@media (max-width: 409px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 338px;
    --pc-card-h: 364px;

    --pc-photo-top: 1px;
    --pc-photo-h: 185px;

    --pc-blue-top: 181px;
    --pc-blue-h: 80px;

    --pc-title-x: 9px;
    --pc-title-top: 186px;
    --pc-title-w: 320px;
    --pc-title-h: 53px;
    --pc-title-fs: 13px;

    --pc-subtitle-x: 9px;
    --pc-subtitle-top: 230px;
    --pc-subtitle-w: 320px;
    --pc-subtitle-h: 31px;
    --pc-subtitle-fs: 10px;

    --pc-date-x: 14.5px;
    --pc-date-top: 267px;
    --pc-date-w: 209px;
    --pc-date-h: 28px;
    --pc-date-fs: 12px;

    --pc-duration-x: 13.5px;
    --pc-duration-top: 286px;
    --pc-duration-w: 279px;
    --pc-duration-h: 32px;
    --pc-duration-fs: 12px;

    --pc-code-x: 223.5px;
    --pc-code-top: 269px;
    --pc-code-w: 101px;
    --pc-code-h: 23px;
    --pc-code-fs: 10px;

    --pc-price-x: 202px;
    --pc-price-top: 326px;
    --pc-price-w: 122px;
    --pc-price-fs: 12px;

    --pc-button-x: 13px;
    --pc-button-top: 318px;
    --pc-button-w: 174px;
    --pc-button-h: 34px;
    --pc-button-fs: 11px;

    --pc-lang-x: 0px;

    --pc-partner-x: 293px;
    --pc-partner-top: 9px;
    --pc-partner-size: 32px;
  }

}


/* ==========================================================
   TILDA BREAKPOINT: max-width 381
   ========================================================== */

@media (max-width: 381px) {

  .pathrest-tour-card--server .pathrest-tour-card__canvas {
    --pc-card-w: 313px;
    --pc-card-h: 337px;

    --pc-photo-top: 0px;
    --pc-photo-h: 170px;

    --pc-blue-top: 167px;
    --pc-blue-h: 73px;

    --pc-title-x: 8px;
    --pc-title-top: 170px;
    --pc-title-w: 297px;
    --pc-title-h: 38px;
    --pc-title-fs: 12px;

    --pc-subtitle-x: 8px;
    --pc-subtitle-top: 208px;
    --pc-subtitle-w: 297px;
    --pc-subtitle-h: 32px;
    --pc-subtitle-fs: 10px;

    --pc-date-x: 14px;
    --pc-date-top: 244px;
    --pc-date-w: 197px;
    --pc-date-h: 19px;
    --pc-date-fs: 12px;

    --pc-duration-x: 14px;
    --pc-duration-top: 263px;
    --pc-duration-w: 257px;
    --pc-duration-h: 28px;
    --pc-duration-fs: 12px;

    --pc-code-x: 210.5px;
    --pc-code-top: 247px;
    --pc-code-w: 88px;
    --pc-code-h: 23px;
    --pc-code-fs: 9px;

    --pc-price-x: 188.5px;
    --pc-price-top: 297px;
    --pc-price-w: 110px;
    --pc-price-h: 19px;
    --pc-price-fs: 12px;

    --pc-button-x: 13.5px;
    --pc-button-top: 291px;
    --pc-button-w: 170px;
    --pc-button-h: 32px;
    --pc-button-fs: 10px;

    --pc-lang-x: -25.5px;

    --pc-partner-x: 271.5px;
    --pc-partner-top: 8px;
    --pc-partner-size: 28px;
  }

}



/* ==========================================================
   PATHREST SERVER TOUR CARD — LANGUAGE CORNER FIX

   Match original Tilda label:
   top-left     18px
   top-right    30px
   bottom-right 30px
   bottom-left   0px

   Server cards only.
   ========================================================== */

.uc-parentblock
.uc-childblock.pathrest-tour-card--server
.t396__elem.tour_language
.tn-atom {
  border-radius: 18px 30px 30px 0px !important;
}



/* ==========================================================
   PATHREST SERVER TOUR CARD — LANGUAGE CONTAINMENT
   RANGE: 766px–1332px

   Problem:
   intermediate card layouts are narrower while the language
   pill keeps auto width / nowrap and may extend outside the card.

   Rule:
   - preserve current position when it is inside the card;
   - clamp negative X to the left edge;
   - never allow the pill to exceed remaining card width;
   - desktop >1332px unchanged;
   - mobile <=765px unchanged.
   ========================================================== */

@media (min-width: 766px) and (max-width: 1332px) {

  .uc-parentblock
  .uc-childblock.pathrest-tour-card--server
  .pathrest-tour-card__language {
    left: max(0px, var(--pc-lang-x)) !important;

    max-width:
      calc(
        var(--pc-card-w) -
        max(0px, var(--pc-lang-x))
      ) !important;

    box-sizing: border-box;
  }


  .uc-parentblock
  .uc-childblock.pathrest-tour-card--server
  .pathrest-tour-card__language
  .tn-atom {
    max-width: 100% !important;

    overflow: hidden !important;
    text-overflow: ellipsis;

    box-sizing: border-box;
  }


  .uc-parentblock
  .uc-childblock.pathrest-tour-card--server
  .pathrest-tour-card__language
  .tn-atom > * {
    max-width: 100% !important;
  }

}
