/* Click Travel · Туры (Разработка 2.0 → Туры (Редизайн)). Coin tokens only, except raw
   values that the Figma frames also use raw (price #5ca8ff, sale price #e0a500, star badge #f80). */
.tr-screen{background:var(--theme-bg-ocean)}
.tr-navbar__text{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}
.av-app .tr-navbar__text p{font-size:14px;line-height:18px;color:var(--theme-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tr-body{flex:1;padding:24px var(--space-base-l) 40px;display:flex;flex-direction:column;gap:var(--space-base-m)}
/* The body scrolls, so its blocks keep their own height instead of being squeezed. */
.tr-body>*{flex-shrink:0}
.tr-body--sticky{padding-bottom:110px}
.tr-body--booking{padding-bottom:300px}
.tr-muted{color:var(--theme-text-secondary);font-size:14px;line-height:18px}
.tr-accent{color:var(--theme-text-accent)}
.tr-link{color:var(--theme-text-accent);font-weight:600;font-size:15.5px;line-height:20px;text-align:center!important;width:100%;padding:8px 0}
.tr-link-inline{color:var(--theme-text-accent);font-size:14px}

/* Home · Tours search block */
.tr-route{position:relative;display:flex;flex-direction:column;gap:2px;border-radius:var(--radius-island);background:var(--theme-bg-island)}
.tr-route::after{content:'';position:absolute;left:0;right:0;top:calc(50% - .5px);border-top:1px solid var(--theme-bg-ocean);pointer-events:none}
.tr-route__row{display:flex;align-items:center;gap:8px;padding:16px 16px 16px 10px;width:100%}
.tr-route__text{flex:1;min-width:0;font-size:17px;line-height:22px;color:var(--theme-text-accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Search field */
.tr-search{flex:none;display:flex;align-items:center;gap:8px;height:54px;padding:0 12px 0 10px;border-radius:var(--radius-island)}
.tr-search--small{height:48px;border-radius:var(--radius-input)}
.tr-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:17px;color:var(--theme-text-primary)}

/* Departure · Country */
.tr-country-head{display:flex;align-items:center;gap:12px;padding:16px;border-radius:var(--radius-cell-button);background:var(--theme-bg-island);font-weight:500;color:var(--theme-text-accent)}
.tr-country-head>span:not(.av-svg){flex:1}
.tr-radio-list{display:flex;flex-direction:column}
.tr-radio-row{display:flex;align-items:center;justify-content:space-between;padding:12px 4px 12px 12px;font-size:17px;line-height:22px;cursor:pointer}
.tr-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;cursor:pointer}
.tr-country{display:flex;align-items:center;gap:12px;padding:16px;border-radius:var(--radius-cell-button);background:var(--theme-bg-island);width:100%}
.tr-country__text{flex:1;display:flex;flex-direction:column;gap:4px;text-align:left}
.tr-country__name{font-weight:500;color:var(--theme-text-accent)}
.is-visa{font-size:14px;line-height:18px;color:var(--theme-text-attention)}
.is-free{font-size:14px;line-height:18px;color:var(--theme-text-success)}
.tr-cities__head{padding:0 0 16px}
.av-app .tr-cities__head h2{font-weight:600;font-size:22.5px;line-height:28px}
.tr-cities .av-sheet__body{padding-top:48px}

/* Tour calendar */
.tr-cal .av-sheet__body{padding-top:40px}
.tr-cal__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.av-app .tr-cal__head h2{font-weight:600;font-size:22.5px;line-height:28px}
.tr-cal__head p{font-size:14px;line-height:18px;margin-top:4px}
.tr-flex{display:flex;align-items:center;gap:8px;font-size:12.5px;line-height:16px;color:var(--theme-text-secondary);text-align:right;max-width:170px;cursor:pointer}
.tr-day{position:relative}
.tr-day::after{content:'';position:absolute;left:50%;bottom:3px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--theme-icon-disabled)}
.tr-day.no-offers::after{display:none} /* no tours that day: plain dark number, no dot */
.tr-day.has-offers::after{background:var(--theme-icon-accent)}
.tr-day.has-offers:not(.is-selected){color:var(--theme-text-accent)}
.tr-day.is-selected::after{background:var(--theme-icon-always-white)}
.tr-day.is-past::after{display:none}
.tr-day.is-range{border-radius:var(--radius-garden)}
.tr-cal__foot{display:flex;flex-direction:column;gap:12px}
.tr-nights__head{display:flex;justify-content:space-between;font-weight:600;font-size:17px;line-height:22px}
.tr-nights__head .tr-accent{font-weight:400;font-size:14px}
.tr-nights{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.tr-night{flex:none;height:34px;padding:0 16px;border-radius:var(--radius-chips);background:var(--theme-bg-island);font-size:14px;line-height:18px}
.tr-night.is-active{background:var(--component-chips-active-bg);color:var(--component-chips-active-text)}

/* Travellers */
.tr-remove{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--theme-bg-error);flex:none}
.tr-ages{display:grid;grid-template-columns:repeat(7,1fr);gap:8px 0;padding:16px;border-radius:var(--radius-island);background:var(--theme-bg-island)}
.tr-age{height:36px;border-radius:var(--radius-garden);font-size:14px;text-align:center!important}
.tr-age.is-active{background:var(--theme-bg-accent);color:var(--theme-text-always-white)}
.tr-link{display:block}

/* Results */
.tr-results{position:absolute;inset:0;padding:34px var(--space-base-l) 120px;display:flex;flex-direction:column;gap:var(--space-base-m)}
.tr-results__top{display:flex;flex-direction:column;gap:12px}
.tr-screen>.tr-results__top{padding:34px var(--space-base-l) 0}
.tr-chips{margin:0 -16px;padding:0 16px}
.tr-chip{gap:8px}
.tr-hotels{display:flex;flex-direction:column;gap:12px}
.tr-hotel{display:flex;flex-direction:column;gap:12px;width:100%;border-radius:var(--radius-island);background:var(--theme-bg-island);text-align:left;overflow:hidden;flex:none}
.tr-hotel--skeleton{height:236px;background:linear-gradient(90deg,var(--theme-bg-island),var(--theme-bg-tertiary),var(--theme-bg-island));background-size:200% 100%;animation:tr-shimmer 1.2s linear infinite}
@keyframes tr-shimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.tr-hotel--skeleton{animation:none}}
.tr-hotel__img{position:relative;height:136px;border-radius:var(--radius-island);overflow:hidden;display:block}
.tr-hotel__img>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tr-rate{position:absolute;left:8px;top:8px;width:32px;height:32px;display:grid;place-items:center;color:var(--theme-text-always-white);font-weight:500;font-size:12.5px;line-height:16px}
.tr-rate>.av-svg{position:absolute;inset:0}
.tr-rate b{position:relative;font-weight:500}
.tr-rate--small{position:relative;left:auto;top:auto;width:24px;height:24px;font-size:11px}
.tr-free{position:absolute;right:8px;top:8px;display:flex;align-items:center;gap:8px;height:24px;padding:0 12px;border-radius:var(--radius-rounding);background:var(--theme-bg-island);color:var(--primitive-colors-alert-malachite-green-c500);font-size:14px;line-height:18px}
.tr-stars{position:absolute;left:8px;bottom:8px;display:flex;align-items:center;gap:4px;height:24px;padding:0 12px;border-radius:var(--radius-rounding);background:var(--theme-bg-attention);color:var(--theme-text-always-white);font-size:14px;line-height:18px}
.tr-cashback{position:absolute;right:8px;bottom:8px;height:24px;padding:3px 12px;border-radius:var(--radius-rounding);background:var(--theme-bg-accent);color:var(--theme-text-always-white);font-size:14px;line-height:18px}
.tr-dots{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;gap:6px}
.tr-dots i{width:6px;height:6px;border-radius:var(--radius-rounding);background:rgba(255,255,255,.7)}
.tr-dots i.is-on{width:10px;background:var(--theme-icon-always-white)}
.tr-dots i.is-small{width:4px;height:4px}
.tr-hotel__text{position:relative;display:flex;flex-direction:column;gap:2px;padding:0 16px 16px}
/* Favourite heart (Figma «Favorites»: 24px icon in a 4px pad, top-right of the name block); the name keeps clear of it. */
.tr-fav{position:absolute;right:12px;top:-4px;padding:var(--space-base-2-xs);border-radius:var(--radius-rounding);cursor:pointer;line-height:0}
.tr-fav:active{transform:scale(.9)}
.tr-fav.is-on .av-icon{animation:tr-fav-pop .25s ease}
.tr-hotel__text:has(.tr-fav)>.tr-hotel__name{padding-right:36px}
@keyframes tr-fav-pop{50%{transform:scale(1.25)}}
.tr-hotel__name{font-weight:600;font-size:17px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-hotel__city{font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.tr-hotel__price{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.tr-hotel__price s,.tr-hotel-card__price s{font-size:12.5px;line-height:16px;color:var(--theme-text-disabled)}
.tr-from{display:inline-flex;align-items:baseline;gap:5px;color:var(--av-price-color);font-weight:600;font-size:19.5px;line-height:26px}
.tr-from.is-sale,.tr-from.is-sale .av-price{color:#e0a500}
.tr-pill{position:absolute;left:calc(50% - 6px);bottom:37px;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:16px;width:max-content;height:44px;padding:0 20px;border-radius:var(--radius-rounding);background:var(--theme-bg-island);box-shadow:0 2px 12px rgba(20,20,20,.12);z-index:5}
.tr-pill button{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:17px;line-height:22px;height:100%}
.tr-pill__sep{width:1px;height:22px;background:var(--theme-stroke-disabled)}
.tr-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.tr-empty>.av-svg{margin-bottom:16px}
.tr-empty__title{font-weight:600;font-size:17px;line-height:22px;color:var(--theme-text-primary)}
.tr-empty__foot{background:transparent}

/* Map */
.tr-map__canvas{position:absolute;left:0;right:0;bottom:0;top:0;overflow:hidden}
.tr-map__canvas>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tr-map__canvas .tr-cluster,.tr-map__canvas .tr-pin{transform:translateY(-140px)}
.tr-cluster{position:absolute;width:40px;height:40px;display:grid;place-items:center;color:var(--theme-text-always-white);font-size:14px}
.tr-cluster>.av-svg{position:absolute;inset:0}
.tr-cluster b{position:relative;font-weight:400}
.tr-pin{position:absolute;padding:4px 12px;border-radius:var(--radius-rounding);background:var(--theme-bg-accent);color:var(--theme-text-always-white);font-weight:600;font-size:11px;line-height:14px;white-space:nowrap}
.tr-pin small{font-weight:400;font-size:11px}
.tr-pin.is-selected{background:var(--theme-bg-island);color:var(--av-price-color);filter:drop-shadow(0 0 8px var(--theme-bg-accent));z-index:2}
.tr-pin__tail{position:absolute;left:50%;top:22px;margin-left:-5px}
.tr-map__top{position:absolute;left:0;right:0;top:0;padding-bottom:12px;background:var(--theme-bg-ocean);border-radius:0 0 var(--radius-island) var(--radius-island);display:flex;flex-direction:column;gap:12px;z-index:3}
.tr-map__top .tr-chips{margin:0;padding:0 16px}
.tr-map__card{position:absolute;left:16px;right:16px;bottom:87px;z-index:4}

/* Filters */
.tr-card{padding:16px;border-radius:var(--radius-island);background:var(--theme-bg-island);display:flex;flex-direction:column;gap:12px}
.tr-card__title{font-weight:600;font-size:17px;line-height:22px}
.tr-card__row{display:flex;justify-content:space-between;align-items:center}
.tr-price-field{display:flex;flex-direction:column;gap:2px;font-size:14px;line-height:18px}
.tr-price-field output{height:44px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--component-input-on-island-normal-stroke);border-radius:var(--radius-input);background:var(--component-input-on-island-normal-bg);font-size:17px;white-space:nowrap;overflow:hidden}
.tr-rating-out{width:90px;height:44px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--component-input-on-island-normal-stroke);border-radius:var(--radius-input);background:var(--component-input-on-island-normal-bg);color:var(--theme-text-tertiary)}
.tr-range{position:relative;height:28px}
.tr-range::before{content:'';position:absolute;left:12px;right:12px;top:13px;height:2px;border-radius:1px;background:linear-gradient(90deg,var(--theme-stroke-disabled) var(--a),var(--theme-bg-accent) var(--a),var(--theme-bg-accent) var(--b),var(--theme-stroke-disabled) var(--b))}
.tr-range input{position:absolute;left:0;right:0;top:0;width:100%;height:28px;margin:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none}
.tr-range input::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:var(--theme-bg-island);box-shadow:0 1px 4px rgba(20,20,20,.25);pointer-events:auto;cursor:pointer}
.tr-range input::-moz-range-thumb{width:24px;height:24px;border:0;border-radius:50%;background:var(--theme-bg-island);box-shadow:0 1px 4px rgba(20,20,20,.25);pointer-events:auto;cursor:pointer}
.tr-segment{display:flex;padding:2px;border-radius:var(--radius-garden);background:var(--theme-bg-island)}
.tr-segment button{flex:1;height:40px;border-radius:var(--radius-garden);text-align:center!important;font-size:14px;color:var(--theme-text-secondary)}
.tr-segment button.is-active{background:var(--theme-bg-accent);color:var(--theme-text-always-white)}
.tr-star-chips{display:flex;flex-wrap:wrap;gap:8px}
.tr-star-chip{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:var(--radius-chips);background:var(--theme-bg-ocean);font-size:14px;color:var(--theme-text-secondary)}
.tr-star-chip.is-active{background:var(--theme-bg-accent);color:var(--theme-text-always-white)}
.av-app .tr-group-head{font-weight:600;font-size:17px;line-height:22px;color:var(--theme-text-primary);padding:8px 0}

/* Hotel page */
.tr-hotel-page__scroll{position:absolute;inset:0;padding-bottom:120px;display:flex;flex-direction:column;gap:12px}
.tr-hero{position:relative;flex:none;height:309px}
/* Ocean cap with 32px top corners at the photo's bottom (Rectangle 1, 8958:56016). */
.tr-hero::after{content:'';position:absolute;left:0;right:0;bottom:0;height:32px;border-radius:var(--radius-continent) var(--radius-continent) 0 0;background:var(--theme-bg-ocean)}
.tr-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tr-hero__bar{position:absolute;left:0;right:0;top:34px;height:48px;padding:0 8px;display:flex;justify-content:space-between;align-items:center}
.tr-hero__bar--on-light .av-svg [fill]:not([fill=none]){fill:var(--theme-icon-accent)}
.tr-hero__bar--on-dark .av-svg [fill]:not([fill=none]){fill:var(--theme-icon-always-white)}
/* A soft shadow keeps white icons readable on mid-tone areas (sky, sea). */
.tr-hero__bar--on-dark .av-svg{filter:drop-shadow(0 0 3px var(--theme-bg-backdrop))}
.tr-hero__bar .av-svg [fill]{transition:fill .2s}
.tr-hero__stars{bottom:48px;left:16px}
.tr-hero__cashback{bottom:48px;right:16px}
.tr-hotel-card{margin:-28px 16px 0;position:relative;z-index:1;padding:16px;border-radius:var(--radius-island);background:var(--theme-bg-island);display:flex;flex-direction:column;gap:12px}
.tr-hotel-card__head{display:flex;justify-content:space-between;gap:12px}
.av-app .tr-hotel-card__head h1{font-weight:600;font-size:17px;line-height:22px}
.tr-hotel-card__head p{font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.tr-hotel-card__meta{text-align:right;flex:none}
.tr-hotel-card__price{display:flex;justify-content:space-between;align-items:center}
.tr-reviews{display:flex;align-items:center;gap:8px;font-size:14px;line-height:18px}
.tr-reviews .tr-link-inline{margin-left:auto}
.tr-amenities{display:flex;flex-wrap:wrap;gap:8px}
/* Amenity tags and «Все удобства» share one look (Coin chip on ocean, accent text), a little taller. */
.tr-amenities .av-tag{height:36px;padding:0 14px}
.tr-amenities__all{gap:4px!important;cursor:pointer}
.av-app .tr-subtitle{font-weight:600;font-size:17px;line-height:22px}
.tr-location-map{width:100%;height:120px;object-fit:cover;border-radius:var(--radius-garden)}
/* The maps are pictures of a light map: in the dark theme they are turned into a dark map (inverted
   lightness, hues kept), so they sit with the rest of the screen. Pins are separate and keep their colours. */
:root[data-theme=dark] :is(.tr-location-map,.tr-map__canvas>img){filter:invert(.9) hue-rotate(180deg) saturate(.75) brightness(.95) contrast(.95)}
@media (prefers-color-scheme: dark){:root:not([data-theme=light]) :is(.tr-location-map,.tr-map__canvas>img){filter:invert(.9) hue-rotate(180deg) saturate(.75) brightness(.95) contrast(.95)}}
.tr-address{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:18px}
.tr-address a{color:var(--theme-text-accent)}
.tr-info-rows{display:flex;flex-direction:column;gap:8px;padding:0 16px}
.tr-info-row{display:flex;align-items:center;gap:12px;padding:16px;border-radius:var(--radius-cell-button);background:var(--theme-bg-island);font-weight:500;width:100%}
.tr-info-row>span:not(.av-svg){flex:1}
.av-app .tr-section-title{padding:12px 16px 0;font-weight:600;font-size:17px;line-height:22px;scroll-margin-top:24px}
.tr-rooms{display:flex;flex-direction:column;gap:12px;padding:0 16px}
.tr-room{padding:12px;border-radius:var(--radius-island);background:var(--theme-bg-island);display:flex;flex-direction:column;gap:8px}
.tr-room__photos{display:flex;gap:8px;margin:0 -12px;padding:0 12px}
.tr-room__photo{position:relative;flex:none;display:block;width:136px;height:120px;border-radius:var(--radius-garden);overflow:hidden}
.tr-room__photos img{display:block;width:100%;height:100%;object-fit:cover}
.tr-room__head{display:flex;justify-content:space-between;align-items:baseline}
.av-app .tr-room__head h3{font-weight:600;font-size:17px;line-height:22px}
.tr-room__head span{font-size:14px;color:var(--theme-text-secondary)}
.tr-taxes{display:flex;align-items:center;gap:6px;font-size:14px;line-height:18px}
.tr-room__text{font-size:12.5px;line-height:16px;color:var(--theme-text-secondary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tr-room__text.is-open{display:block}
.tr-room__text .tr-link-inline{font-size:12.5px}
.tr-tariffs{display:flex;gap:8px;margin:0 -12px;padding:4px 12px 0}
.tr-tariff{flex:none;width:166px;padding:12px;border-radius:var(--radius-garden);background:var(--theme-bg-ocean);display:flex;flex-direction:column;gap:10px}
.tr-tariff ul{list-style:none;display:flex;flex-direction:column;gap:6px}
.tr-tariff li{display:flex;align-items:center;gap:6px;font-size:12.5px;line-height:16px;white-space:nowrap;overflow:hidden}
.av-app .tr-tariff__pick{min-width:0;width:100%;min-height:36px}
.tr-sticky{position:absolute;left:0;right:0;bottom:0;padding:16px 16px 48px;background:var(--theme-bg-island);border-radius:var(--radius-island) var(--radius-island) 0 0;box-shadow:0 -4px 16px rgba(20,20,20,.05);z-index:4}
.tr-info-card{padding:16px;border-radius:var(--radius-island);background:var(--theme-bg-island)}
.av-app .tr-info-card h2{font-weight:600;font-size:17px;line-height:22px;margin-bottom:12px}
.tr-info-list{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.tr-info-key{color:var(--theme-text-primary)}

/* Trip details */
.tr-tag{color:var(--theme-text-accent)}
.tr-trip-img{height:136px}
.tr-flight-box{padding:12px 0;border-radius:var(--radius-garden);background:var(--theme-bg-ocean);display:flex;flex-direction:column;gap:8px}
.tr-flight-box .av-seg{padding:0 12px}
.tr-extra{display:flex;align-items:center;gap:12px}
.tr-extra p:first-child{font-size:14px;line-height:18px}
.tr-total .av-total{font-size:14px}
.av-total--price{color:var(--av-price-color)}

/* Booking */
.tr-tourist__head{display:flex;justify-content:space-between;align-items:center}
.tr-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:var(--radius-rounding);background:var(--primitive-colors-primary-electric-blue-c500-trans16);color:var(--theme-text-accent);font-weight:500;font-size:14px;line-height:18px}
.tr-badge--small{padding:2px 6px;font-size:12.5px;line-height:16px}
.tr-gender{display:flex;flex-direction:column;gap:2px}
.tr-gender__opt{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 12px;border-radius:var(--radius-garden);background:var(--theme-bg-ocean);cursor:pointer}
.tr-hold{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:var(--radius-island);background:var(--primitive-colors-alert-malachite-green-c500);color:var(--theme-text-always-white);font-size:12.5px;line-height:16px}
.tr-paybox{position:absolute;left:0;right:0;bottom:0;padding:16px 16px 48px;border-radius:var(--radius-island) var(--radius-island) 0 0;background:var(--theme-bg-island);display:flex;flex-direction:column;gap:16px;box-shadow:0 -4px 16px rgba(20,20,20,.05);z-index:4}
.tr-agree{display:flex;align-items:center;gap:12px;font-size:14px;line-height:18px;cursor:pointer}
.tr-agree a{color:var(--theme-text-accent);text-decoration:underline}
.tr-agree.is-error .cds-checkbox__box{border-color:var(--theme-stroke-error)}

/* Hotel price (Price Container, 8958:56031): «от» and currency 22.5/28, amount 28/36, no tiyin. */
.tr-big-price{display:flex;align-items:baseline;gap:4px;color:var(--av-price-color);font-weight:600;font-size:22.5px;line-height:28px;white-space:nowrap}
.tr-big-price b{font-size:28px;line-height:36px;font-weight:600}

/* Click Travel stamp on photos (Figma 13784:31585 «image 1»): logo centred 14px from the top, 83×12, 20%.
   It sits right after the photo, so it stays above the photo and under every badge that follows.
   On the big hotel photo the top is under the navigation, so there it sits in the middle, larger. */
/* Click Travel watermark: small and quiet, centred at the top of every photo (on the hotel page, in the
   middle of the header bar between Назад and Поддержка). */
.av-mark{position:absolute;left:50%;top:10px;width:56px;height:8px;transform:translateX(-50%);background:url(../assets/brand/watermark.png) center/contain no-repeat;opacity:.35;pointer-events:none}
.av-mark--hero{top:54px;width:72px;height:10px;transform:translate(-50%,-50%)}
/* Tours pick single days (no continuous band), so its cells keep the 3px gap between them. */
.av-cal__grid:has(.tr-day){gap:3px}

/* v4 «Выбор страны» (08-Travel 14826:63220): search → checkbox row → lists 12px apart; the two lists 16px apart;
   cells with 12px padding and a 2px gap between the name and the visa line. */
.tr-countries.tr-body{gap:var(--space-base-m)}
.tr-countries .tr-toggle-row{padding:0}
.tr-countries__lists{display:flex;flex-direction:column;gap:var(--space-base-l)}
.tr-countries .tr-country{padding:var(--space-base-m)}
.tr-countries .tr-country__text{gap:2px}
.tr-countries .tr-country>.av-svg:last-child path{fill:var(--theme-icon-accent)}
/* «Даты тура» bottom panel (8958:52390): an island with 32px top corners and the PanelTop shadow, 16px sides,
   48px to the screen edge; night chips sit on Bg/Ocean; «Сбросить» and the main button share the width. */
.tr-cal .av-sheet__footer{position:relative;z-index:1;padding:16px var(--space-base-l) 48px;background:var(--theme-bg-island);border-radius:var(--radius-continent) var(--radius-continent) 0 0;box-shadow:0 -4px 16px var(--theme-effect-shadow-toast)}
.tr-cal__foot{gap:16px}
.tr-cal__foot>.tr-nights__head{margin-bottom:-4px} /* 12px between the title row and the chips, as in Figma */
.tr-nights__head{align-items:center;gap:12px}
.tr-nights__head .tr-accent{font-weight:500;font-size:14px;line-height:18px;white-space:nowrap}
.tr-cal .tr-night{background:var(--theme-bg-ocean);color:var(--theme-text-primary)}
.tr-cal .tr-night.is-active{background:var(--component-chips-active-bg);color:var(--component-chips-active-text)}
.tr-cal .av-footer-pair{gap:16px}
.tr-cal .av-footer-pair>.av-button{flex:1 1 0;min-width:0}
.tr-cal .tr-nights{margin:0 calc(-1 * var(--space-base-l));padding:0 var(--space-base-l)}
.av-app .tr-cal .av-footer-pair>.cds-button{height:48px;min-height:48px;border-radius:12px}
/* The panel overlaps the calendar by its corner radius, so the month cards show behind the rounded corners
   (otherwise the sheet's own background shows there and the calendar looks cut). */
.tr-cal .av-sheet__footer{margin-top:calc(-1 * var(--radius-continent))}
.tr-cal .av-sheet__body{padding-bottom:calc(var(--radius-continent) + var(--space-base-l))}
/* No tours on the picked day (10339:50506): centred title + hint above the buttons, 8px apart. */
.tr-cal__none{display:flex;flex-direction:column;gap:8px;text-align:center}
.av-app .tr-cal__none h3{margin:0;font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.av-app .tr-cal__none p{margin:0;font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.tr-day.no-offers.is-selected::after{display:none}
.tr-flex>span{white-space:pre-line;font-size:14px;line-height:18px;font-weight:500} /* Figma: Medium 14/18, «Гибкие» over «даты ±2» */
/* «Количество туристов» (10674:27086) in the 12/24 style: cells and the age grid are 24px islands,
   age cells and buttons 12px, the main button 48px. */
.tr-pax-sheet .av-cell{border-radius:24px}
.tr-pax-sheet .tr-ages{border-radius:24px}
.tr-pax-sheet .tr-age{border-radius:12px}
.av-app .tr-pax-sheet .av-sheet__footer .cds-button{height:48px;min-height:48px;border-radius:16px}
.tr-pax-sheet .av-cell--pax>div:first-child{gap:4px} /* Figma: 76px cells, title 22 + 4 + hint 18 */
.av-app .tr-pax-sheet .tr-link{height:48px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:16px;font-size:17px;line-height:22px;font-weight:600} /* «Добавить ребёнка» is a 48px ghost button like the others */
/* «На карте» on the globe basemap: the map fills the canvas; live pins are anchored by MapLibre (no fake clusters). */
.tr-gmap{position:absolute;inset:0;background:var(--theme-bg-ocean)}
.tr-gmap__map{position:absolute!important;inset:0;width:100%;height:100%} /* MapLibre adds position:relative to its container */
.tr-gmap__map .maplibregl-canvas{outline:none}
.tr-gmap__loading{position:absolute;inset:0;display:grid;place-items:center}
.tr-map__canvas .tr-pin--live{border:0;cursor:pointer;font-family:inherit} /* MapLibre positions it (absolute + inline transform) */
.tr-gmap__loading .am-spinner{border-color:var(--theme-stroke-disabled);border-top-color:var(--theme-bg-accent)}
.tr-pin__tip{position:absolute;left:50%;bottom:-5px;width:10px;height:10px;margin-left:-5px;background:inherit;transform:rotate(45deg);border-radius:0 0 2px 0}
/* The hotel card over the map is a 24px island (photo corners follow). */
.tr-map__card .tr-hotel{border-radius:24px}
.tr-map__card .tr-hotel__img{border-radius:24px}
/* Globe look behind the map (as «Карта цен»): deep-space gradient + stars; the map canvas is transparent around the globe. */
.am-gmap{background:radial-gradient(120% 80% at 50% 55%,#1d3a63 0%,#0e1f3a 45%,#060d1c 100%)}
.am-gmap .am-pin{z-index:1}
.am-gmap .am-pin.is-on{z-index:3}
.tr-map__canvas{z-index:0} /* keeps the globe loader (z 550) under the header and card */
/* ===== v4 «Туры» (08-Travel 14908:18603) ===== */
/* Search Details: 24px island, 12×16 padding, 16px gaps; city Medium 17/22; meta Regular 14/18 grey with 16px icons. */
.tr-head4{display:flex;align-items:center;gap:var(--space-base-l);padding:var(--space-base-m) var(--space-base-l);border-radius:24px;background:var(--theme-bg-island)}
.tr-head4__back{width:24px;height:24px;min-width:24px;padding:0}
.tr-head4__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.av-app .tr-head4__title{margin:0;font-size:17px;line-height:22px;font-weight:500;color:var(--theme-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.av-app .tr-head4__meta{margin:0;display:flex;gap:var(--space-base-s);font-size:14px;line-height:18px;color:var(--theme-text-secondary);white-space:nowrap}
.tr-head4__meta>span{display:flex;align-items:center;gap:4px}
.tr-head4 .av-icon-btn:last-child{width:24px;height:24px;min-width:24px;padding:0}
:root[data-v="4"] .tr-results__top{gap:var(--space-base-s)}
:root[data-v="4"] .tr-results{gap:var(--space-base-xl)}
:root[data-v="4"] .tr-results .tr-hotels{margin-top:0}
/* Hotel search: 54px, 16px corners, no stroke. */
:root[data-v="4"] .tr-search--small{height:54px;border-radius:16px;background:var(--theme-bg-island)}
:root[data-v="4"] .tr-search--small input::placeholder{color:var(--theme-text-tertiary)}
/* Chips: 34px, grey Regular 14 labels. */
:root[data-v="4"] .tr-chip:not(.is-active){color:var(--theme-text-secondary)}
/* Hotel card price: «от 1 475» SemiBold 19.5/26 + currency Regular 17/22, both price blue. */
.tr-from4{display:inline-flex;align-items:baseline;gap:4px;margin:0;color:var(--av-price-color);white-space:nowrap}
.tr-from4 b{font-weight:600;font-size:19.5px;line-height:26px}
.tr-from4>span{font-weight:400;font-size:17px;line-height:22px}
:root[data-v="4"] .tr-hotel__text{gap:2px}
:root[data-v="4"] .tr-hotel__price{margin-top:6px}
/* «Фильтры | На карте» pill: 228×44, 16px sides, Regular 14/18 primary text, 16px icons. */
:root[data-v="4"] .tr-pill{left:50%;width:228px;padding:0 var(--space-base-l);gap:0;justify-content:space-between}
:root[data-v="4"] .tr-pill button{font-size:14px;line-height:18px;color:var(--theme-text-primary)}
:root[data-v="4"] .tr-pill__sep{height:18px}
/* Map: header island and chips float over the globe (no ocean band). */
:root[data-v="4"] .tr-map__top{padding:34px var(--space-base-l) 0;background:none;border-radius:0;gap:var(--space-base-s);pointer-events:none}
:root[data-v="4"] .tr-map__top>*{pointer-events:auto}
:root[data-v="4"] .tr-map__top .tr-chips{margin:0 calc(-1 * var(--space-base-l));padding:0 var(--space-base-l)}
/* Badge (Badges/Accent): 26px pill, 4×8 padding, 4px gap, Medium 14/18. */
.tr-badges4{display:flex;flex-wrap:wrap;gap:4px}
.tr-badge4{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:var(--radius-rounding);background:var(--component-badges-accent-bg);color:var(--component-badges-accent-text);font-weight:500;font-size:14px;line-height:18px;white-space:nowrap;font-family:inherit;border:0}
button.tr-badge4{cursor:pointer}
.tr-badge4 .av-svg [fill]:not([fill=none]):not([fill=white]){fill:var(--component-badges-accent-text)}
/* Hotel page islands are 24px. */
:root[data-v="4"] .tr-hotel-card{border-radius:24px;gap:16px}
:root[data-v="4"] .tr-hotel-card .tr-reviews{margin:0}
:root[data-v="4"] .tr-location-map{height:128px;border-radius:16px}
:root[data-v="4"] .tr-info-rows{padding:12px 16px 0}
:root[data-v="4"] .tr-info-row{min-height:56px;padding:var(--space-base-m) var(--space-base-l)}
:root[data-v="4"] .tr-section-title{padding:24px 16px 0}
/* Room Card (14908:18729): 24px island, 16px padding; 148px square photos 8px apart; then the tariff islands. */
.tr-room4{display:flex;flex-direction:column;gap:8px}
:root[data-v="4"] .tr-rooms{gap:12px}
:root[data-v="4"] .tr-room{padding:var(--space-base-l);border-radius:24px;gap:16px}
:root[data-v="4"] .tr-room__photos{margin:0 -16px;padding:0 16px}
:root[data-v="4"] .tr-room__photo{width:148px;height:148px;border-radius:16px}
.tr-room__info{display:flex;flex-direction:column;gap:4px}
:root[data-v="4"] .tr-room__head span{font-size:14px;line-height:18px}
:root[data-v="4"] .tr-room__text{font-size:14px;line-height:18px;margin-top:-4px}
:root[data-v="4"] .tr-room__text .tr-link-inline{font-size:14px}
/* Price List (14908:18749): 191px islands, 12px padding and gaps, 4px between condition rows, Regular 14/18. */
:root[data-v="4"] .tr-tariffs{gap:8px;margin:0 -16px;padding:0 16px}
:root[data-v="4"] .tr-tariff{width:191px;padding:var(--space-base-m);gap:var(--space-base-m);border-radius:24px;background:var(--theme-bg-island)}
:root[data-v="4"] .tr-tariff ul{gap:4px}
:root[data-v="4"] .tr-tariff li{gap:8px;font-size:14px;line-height:18px}
.av-app .tr-tariff .tr-tariff__pick:is(:root[data-v="4"] *){height:44px;min-height:44px;border-radius:12px}
/* Trip details (14908:19289). */
.tr-trip4 .tr-body{gap:var(--space-base-m);padding-bottom:180px}
.tr-card4{display:flex;flex-direction:column;gap:var(--space-base-l);padding:var(--space-base-l);border-radius:24px;background:var(--theme-bg-island)}
.tr-card4--photo{padding:0;gap:var(--space-base-l);overflow:hidden}
.tr-card4--photo .tr-trip-img{border-radius:24px}
.tr-card4__body{display:flex;flex-direction:column;gap:var(--space-base-l);padding:0 var(--space-base-l) var(--space-base-l)}
.tr-naming{display:flex;flex-direction:column;gap:4px}
.av-app .tr-naming h2{margin:0;font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.av-app .tr-naming p{margin:0;font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.av-app .tr-card4__sub{margin:0;font-size:17px;line-height:22px;font-weight:600}
.tr-ghost4{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border:0;background:none;font:inherit;font-size:17px;line-height:22px;font-weight:600;color:var(--component-button-ghost-normal-text);cursor:pointer}
.tr-card4 .tr-ghost4{margin-top:0}
.tr-trip4 .tr-flight-box{border-radius:16px;padding:12px 0;gap:8px}
.tr-extras4{display:flex;flex-direction:column;gap:4px}
.tr-extra4{display:flex;align-items:center;gap:var(--space-base-m);min-height:66px;padding:var(--space-base-m);border:0;border-radius:16px;background:var(--theme-bg-ocean);text-align:left;font:inherit;color:inherit;cursor:pointer}
.tr-extra4__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tr-extra4__text b{font-weight:600;font-size:17px;line-height:22px;color:var(--theme-text-primary)}
.tr-extra4__text>span{font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.tr-extra4__chev [fill]:not([fill=none]){fill:var(--theme-icon-accent)}
.tr-sticky--sum{display:flex;flex-direction:column;gap:var(--space-base-l)}
.tr-sum4{display:flex;align-items:center;justify-content:space-between;margin:0}
.tr-sum4>span:first-child{font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
/* Hotel cards are 24px islands; the star in the «4»/«5» chips stays yellow (Figma Star Icon #FFCC00) until the chip is on. */
:root[data-v="4"] :is(.tr-hotel,.tr-hotel__img){border-radius:24px}
.av-chips-row.tr-chips .av-chip.tr-chip:not(.is-active) .av-svg [fill="#FFCC00"]{fill:#FFCC00}
:root[data-v="4"] .tr-taxes{gap:8px}
/* Map card sits 16px above the «Фильтры | В списке» pill (pill: bottom 37 + 44 tall). */
:root[data-v="4"] .tr-map__card{bottom:calc(37px + 44px + var(--space-base-l))}
/* ===== v4 «Фильтрация» / «Фильтр по номерам» / «Сортировка» (08-Travel 14918:26301) =====
   Sections 16px apart; a section is a SemiBold 17/22 head with a grey 16px chevron, 8px, then 24px islands
   (16px padding, 12px gaps) or 56px cells 8px apart; fields without stroke, 12px corners; 44px sliders with
   4px tracks and 28px knobs; a 44px segmented control in a 16px island; footer on Bg/Ocean. */
:root[data-v="4"] .tr-filters .av-sheet__body{display:flex;flex-direction:column;gap:var(--space-base-l);padding-bottom:32px}
:root[data-v="4"] .tr-filters .av-filter-group{gap:var(--space-base-s);margin:0}
:root[data-v="4"] .tr-filters .tr-group-head{padding:0;min-height:22px}
:root[data-v="4"] .tr-filters .tr-group-head .av-svg [fill]:not([fill=none]){fill:var(--theme-icon-primary)}
:root[data-v="4"] .tr-filters .av-filter-group__rows{gap:var(--space-base-s)}
:root[data-v="4"] .tr-filters .tr-card{border-radius:24px}
:root[data-v="4"] .tr-filters .av-form__pair{gap:var(--space-base-m)}
:root[data-v="4"] .tr-filters .tr-price-field output,:root[data-v="4"] .tr-filters .tr-rating-out{border:0;border-radius:12px;background:var(--component-input-on-island-normal-bg)}
:root[data-v="4"] .tr-filters .tr-rating-out{width:120px;color:var(--theme-text-tertiary)}
:root[data-v="4"] .tr-filters .tr-card__row{align-items:flex-start}
:root[data-v="4"] .tr-filters .tr-card__row .av-cell__hint{margin-top:4px}
:root[data-v="4"] .tr-filters .tr-range{height:44px}
:root[data-v="4"] .tr-filters .tr-range::before{left:0;right:0;top:20px;height:4px;border-radius:100px;background:linear-gradient(90deg,var(--theme-bg-disabled) var(--a),var(--theme-bg-accent) var(--a),var(--theme-bg-accent) var(--b),var(--theme-bg-disabled) var(--b))}
:root[data-v="4"] .tr-filters .tr-range input{height:44px}
:root[data-v="4"] .tr-filters .tr-range input::-webkit-slider-thumb{width:28px;height:28px;background:var(--theme-icon-always-white);box-shadow:0 .5px 4px rgba(0,0,0,.12),0 6px 13px rgba(0,0,0,.12)}
:root[data-v="4"] .tr-filters .tr-range input::-moz-range-thumb{width:28px;height:28px;background:var(--theme-icon-always-white);box-shadow:0 .5px 4px rgba(0,0,0,.12),0 6px 13px rgba(0,0,0,.12)}
:root[data-v="4"] .tr-filters .tr-segment{padding:0;border-radius:16px;overflow:hidden}
:root[data-v="4"] .tr-filters .tr-segment button{height:44px;border-radius:0;font-weight:500;font-size:14px;line-height:18px}
:root[data-v="4"] .tr-filters .tr-star-chips{gap:var(--space-base-s)}
:root[data-v="4"] .tr-filters .tr-star-chip{height:34px;padding:0 var(--space-base-l);gap:var(--space-base-s)}
:root[data-v="4"] .tr-filters .tr-star-chip .av-svg [fill="#FFCC00"],:root[data-v="4"] .tr-filters .tr-star-chip.is-active .av-svg [fill="#FFCC00"]{fill:#FFCC00}
:root[data-v="4"] .tr-filters .tr-star-chip.is-active .av-svg{filter:none}
:root[data-v="4"] .tr-filters .av-check-row{min-height:56px;padding:var(--space-base-l);border-radius:16px;font-size:17px;line-height:22px}
:root[data-v="4"] .tr-filters .av-stack--tight{gap:var(--space-base-s)}
:root[data-v="4"] .tr-filters .av-sheet__footer{background:var(--theme-bg-ocean)}
:root[data-v="4"] .tr-filters .av-footer-pair{gap:var(--space-base-s)}
:root[data-v="4"] .av-app .tr-filters .av-footer-pair>.cds-button{flex:1 1 0;min-width:0;height:48px;min-height:48px;border-radius:16px}
/* v4: every sheet's button pair («Сбросить» / «Далее»…) uses the app's 48px, 16px-radius buttons. */
:root[data-v="4"] .av-app .av-footer-pair>.cds-button{height:48px;min-height:48px;border-radius:16px}

/* ---- v4 Туры Figma pass (08-Travel 14908:18603) ---- */
/* Tariffs (14908:18749, 14909:24827): what the tariff includes is Text/Success with green icons, what it lacks Text/Disabled. */
:root[data-v="4"] .av-app .tr-tariff .av-feat{color:var(--theme-text-success)}
:root[data-v="4"] .tr-tariff .av-feat .av-icon :is(path,rect,circle)[fill]:not([fill=none]){fill:var(--theme-icon-success)}
:root[data-v="4"] .av-app .tr-tariff .av-feat.is-off{color:var(--theme-text-disabled)}
:root[data-v="4"] .tr-tariff .av-feat.is-off .av-icon :is(path,rect,circle)[fill]:not([fill=none]){fill:var(--theme-icon-disabled)}
/* Price in a tariff: SemiBold 17/22, «,28» and «сум» Regular 14/18, price blue. */
:root[data-v="4"] .tr-tariff .av-price{align-items:baseline;font-size:14px;line-height:18px;color:var(--av-price-color)}
:root[data-v="4"] .tr-tariff .av-price__whole{font-size:17px;line-height:22px;font-weight:600}
:root[data-v="4"] .tr-tariff .av-price__cur{margin-left:4px}
/* «Налоги включены в стоимость»: Alert/Malachite Green with a green check. */
:root[data-v="4"] .av-app .tr-taxes{color:var(--primitive-colors-alert-malachite-green-c500)}
:root[data-v="4"] .tr-taxes .av-icon :is(path,rect,circle)[fill]:not([fill=none]):not([fill="white"]):not([fill="#fff"]):not([fill="var(--theme-bg-island)"]){fill:var(--primitive-colors-alert-malachite-green-c500)}
/* «Изменить номер» (14908:20008): each room is one 24px island (16px padding, 24px to its tariffs); the tariffs inside
   are Bg/Ocean 16px islands, 12px padding, 44px buttons with 8px corners; rooms 12px apart. */
:root[data-v="4"] .tr-room4--one{gap:var(--space-base-xl);padding:var(--space-base-l);border-radius:24px;background:var(--theme-bg-island);overflow:hidden}
:root[data-v="4"] .tr-room4--one .tr-room{padding:0;border-radius:0;background:none}
:root[data-v="4"] .tr-room4--one .tr-tariff{background:var(--theme-bg-ocean);border-radius:16px}
:root[data-v="4"] .av-app .tr-room4--one .tr-tariff .tr-tariff__pick{border-radius:8px}
/* Hotel page: «Выбрать номер» panel — white, 24px top corners, Shadow/PanelTop, 16/16/48 padding, 48px 16px-radius button. */
:root[data-v="4"] .tr-hotel-page .tr-sticky{border-radius:24px 24px 0 0;box-shadow:0 -4px 16px var(--theme-effect-shadow-toast)}
:root[data-v="4"] .av-app .tr-hotel-page .tr-sticky .cds-button{height:48px;min-height:48px;border-radius:16px}
/* «Страница отеля (Свайп)» header (14909:23777): 120px, Bg/Ocean with 32px bottom corners, 36px top, a 24px white island
   (12×16 padding): back, Medium 17/22 hotel, Regular 14/18 city · nights · guests, dropdown. Slides in from the top. */
.tr-swipe-head{position:absolute;left:0;right:0;top:0;z-index:6;padding:36px var(--space-base-l) var(--space-base-l);border-radius:0 0 var(--radius-continent) var(--radius-continent);background:var(--theme-bg-ocean);transform:translateY(-100%);opacity:0;pointer-events:none;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
.tr-swipe-head.is-on{transform:none;opacity:1;pointer-events:auto}
.tr-swipe-head__card{display:flex;align-items:center;gap:var(--space-base-l);padding:var(--space-base-m) var(--space-base-l);border-radius:24px;background:var(--theme-bg-island)}
.tr-swipe-head__card .av-icon-btn{width:24px;height:24px;min-width:24px;padding:0}
.tr-swipe-head__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.av-app .tr-swipe-head__title{margin:0;font-size:17px;line-height:22px;font-weight:500;color:var(--theme-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-swipe-head__city{overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){.tr-swipe-head{transition:opacity .15s}}
/* «Подробно о рейсе» (14908:19910): head row — 24px icon, SemiBold 17/22 route, Regular 14/18 grey date at the end. */
.tr-leg4__head{display:flex;align-items:center;gap:var(--space-base-s)}
.av-app .tr-leg4__head h2{flex:1;min-width:0;margin:0;font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-leg4__head>span:last-child{font-size:14px;line-height:18px;color:var(--theme-text-secondary);white-space:nowrap}
/* Grey Badge (Badges/Secondary): what the tariff does not include. */
.tr-badge4--grey{background:var(--component-badges-secondary-bg);color:var(--component-badges-secondary-text)}
.tr-badge4--grey .av-svg [fill]:not([fill=none]):not([fill=white]){fill:var(--component-badges-secondary-text)}
