/* Scoped adapters for BA widgets; Elementor owns the page panels, typography and layout. */
.single-to_book #wp-content {padding-bottom:0;}
.tt-tour-detail {color:#0f172a;}
.tt-tour-detail .elementor-widget {min-width:0;}
.tt-tour-detail p {margin:0 0 12px;}
.tt-tour-detail p:last-child {margin-bottom:0;}
.tt-tour-detail .tt-tour-columns > .tt-tour-main {min-width:0;}
.tt-tour-detail .tt-tour-columns > .tt-booking-panel {min-width:0;position:sticky;top:24px;align-self:start;}
.tt-tour-title .post-title {margin:0;overflow-wrap:anywhere;text-wrap:balance;}
.tt-tour-breadcrumbs {display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px;line-height:1.5;color:#64748b;}
.tt-tour-breadcrumbs a {color:#64748b;}
.tt-tour-breadcrumbs [aria-current] {font-weight:600;color:#334155;}
.tt-tour-photo-grid {display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));height:480px;gap:14px;}
.tt-tour-photo-grid > a {position:relative;display:block;min-width:0;overflow:hidden;border-radius:16px;}
.tt-tour-photo-grid > a:first-child {grid-row:1 / 3;}
.tt-tour-photo-grid > a[hidden] {display:none!important;}
.tt-tour-photo-grid img {width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s;}
@media(hover:hover){.tt-tour-photo-grid > a:hover img {transform:scale(1.03);}}
.tt-tour-photo-more {position:absolute;inset:0;display:grid;place-items:center;background:rgb(15 23 42 / 55%);color:white;font-size:20px;font-weight:700;}
.tt-tour-photo-grid--1 {grid-template-columns:1fr;}
.tt-tour-photo-grid--2 {grid-template-columns:1fr 1fr;}
.tt-tour-photo-grid--2 > a {grid-row:1 / 3;}
.tt-tour-photo-grid--3 {grid-template-columns:2fr 1fr;}
.tt-tour-photo-grid--4 > a:last-child {grid-column:2 / 4;}
.tt-tour-video {display:inline-flex;min-height:44px;align-items:center;color:#ea580c;}
.tt-tour-detail .tt-destination-intro {border:0;border-radius:0;background:none;padding:0;margin:0;}
.tt-tour-detail .tt-destination-intro h2 {display:none;}
.tt-tour-detail .tt-destination-intro p {font-size:16px;line-height:1.7;color:#475569;margin:0 0 16px;}
.tt-tour-detail .tt-destination-link {font-size:14px;color:#ea580c;font-weight:700;}
.tt-tour-detail .tt-attraction-chips {gap:10px;}
.tt-tour-detail .tt-attraction-chip {background:#f1f5f9;color:#334155;border:1px solid #e2e8f0;border-radius:12px;padding:9px 13px;min-height:44px;font-size:12px;font-weight:600;}
.tt-tour-detail .tt-attraction-chip > span {max-width:none;white-space:normal;}
.tt-tour-detail .tevily-single-content {font-size:16px;line-height:1.75;color:#475569;}
.tt-tour-detail .tevily-single-content h3 {font-size:19px;line-height:1.4;color:#ea580c;margin:0 0 16px;font-weight:700;}
.tt-tour-detail .tevily-single-content ul {padding-left:20px;}
.tt-tour-detail .tevily-single-content h3:not(:first-child) {margin-top:24px;}
.tt-tour-detail .tevily-single-price_from .content-inner,
.tt-tour-detail .tevily-single-duration .content-inner {display:block;}
.tt-tour-detail .tevily-single-price_from .icon,
.tt-tour-detail .tevily-single-duration .icon {display:none;}
.tt-tour-detail .ba-meta-title {margin:0 0 6px;}
.tt-tour-detail .tevily-single-price_from .item-value {font-variant-numeric:tabular-nums;}
.tt-tour-preferences {display:grid;gap:8px;}
.tt-tour-preferences label {font-size:12px;font-weight:700;color:#334155;margin:0;}
.tt-tour-preferences label:not(:first-child) {margin-top:10px;}
.tt-tour-preferences :is(input,select) {display:block;width:100%;max-width:100%;height:48px;min-width:0;padding:10px 14px;font:inherit;font-size:16px;font-weight:500;color:#1e293b;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;box-sizing:border-box;}
.tt-tour-detail .elementor-button {letter-spacing:0;text-transform:none;line-height:1.4;}
.tt-itinerary-hint {font-size:12px;color:#64748b;}
.tt-itinerary-wrapper {position:relative;margin-top:20px;}
.tt-itinerary-wrapper .swiper {overflow:hidden;}
.tt-itinerary-wrapper .swiper-wrapper {align-items:stretch;}
.tt-itinerary-wrapper .tt-itinerary-card {display:flex;flex-direction:column;height:auto;overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:16px;}
.tt-itinerary-image {height:136px;position:relative;background:#fff7ed;flex-shrink:0;}
.tt-itinerary-image img {width:100%;height:100%;object-fit:cover;}
.tt-itinerary-image > span {position:absolute;top:12px;left:12px;background:rgb(15 23 42 / 70%);color:white;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;}
.tt-itinerary-image--empty {background:linear-gradient(135deg,#fff7ed,#ffedd5);}
.tt-itinerary-image--empty > span {top:50%;left:50%;transform:translate(-50%,-50%);background:none;color:#c2410c;font-size:38px;padding:0;}
.tt-itinerary-copy {padding:16px;flex:1;}
.tt-itinerary-copy h3 {font-size:13px;line-height:1.4;margin:0 0 8px;font-weight:700;color:#0f172a;}
.tt-itinerary-copy p {font-size:12px;line-height:1.6;color:#64748b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.tt-itinerary-more {align-self:flex-end;margin:0 16px 16px;padding:9px 12px;min-height:44px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#334155;font-size:12px;font-weight:700;cursor:pointer;}
.tt-itinerary-more:hover {background:#ea580c;border-color:#ea580c;color:#fff;}
.tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-prev,
.tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-next {display:grid;place-items:center;position:absolute;z-index:2;top:50%;margin:0;width:44px;height:44px;min-width:44px;border:1px solid #e2e8f0;border-radius:50%;background:white;box-shadow:0 5px 18px rgb(15 23 42 / 12%);color:#475569;transform:translateY(-50%);opacity:1;}
.tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-prev {left:-20px;}
.tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-next {right:-20px;}
.tt-itinerary-wrapper .swiper-button-disabled {opacity:.45!important;}
.tt-step-modal .modal-dialog {max-width:520px;padding:12px;}
.tt-step-modal .modal-content {position:relative;border:0;border-radius:24px;overflow:hidden;box-shadow:0 20px 60px rgb(15 23 42 / 20%);}
.tt-step-modal .tt-step-close {position:absolute;z-index:2;top:12px;right:12px;min-height:44px;padding:8px 12px;background:rgb(255 255 255 / 95%);color:#334155;border:1px solid #e2e8f0;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;}
.tt-step-modal .tt-step-modal-photo {width:100%;height:240px;object-fit:cover;}
.tt-step-modal .modal-body {padding:28px;color:#475569;font-size:15px;line-height:1.7;}
.tt-step-modal .tt-step-number {margin:0 0 8px;color:#ea580c;font-size:12px;font-weight:700;}
.tt-step-modal h3 {color:#0f172a;font-size:22px;line-height:1.3;margin:0 0 16px;padding-right:0;}
.tt-step-modal .modal-content:not(:has(.tt-step-modal-photo)) .modal-body {padding-top:76px;}
.tt-tour-detail .tt-reviews #comments {padding:0;margin:0;}
.tt-tour-detail .tt-reviews input:not([type=checkbox]):not([type=submit]),
.tt-tour-detail .tt-reviews textarea {border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;font-size:16px;}
.tt-tour-detail .tt-reviews #submit {border-radius:12px;background:#ea580c;font-size:14px;font-weight:700;letter-spacing:0;min-height:48px;}
.tt-tour-detail :is(a,button,input,textarea):focus-visible,
.tt-step-modal button:focus-visible {outline:3px solid #f97316;outline-offset:3px;}
.tt-tour-mobile-bar {box-shadow:0 -4px 18px rgb(15 23 42 / 8%);}
@media(max-width:1024px){
 .tt-tour-detail .tt-tour-columns > .tt-booking-panel {position:static;width:100%;}
 .tt-tour-detail .tt-tour-columns > .tt-tour-main {width:100%;}
 
 .tt-tour-photo-grid {height:400px;gap:10px;}
}
@media(max-width:767px){
 .tt-tour-photo-grid {height:auto;grid-template-columns:1fr 1fr;grid-template-rows:240px 112px 112px;gap:8px;}
 .tt-tour-photo-grid > a:first-child {grid-column:1 / 3;grid-row:1;}
 .tt-tour-photo-grid--1 {grid-template-rows:260px;}
 .tt-tour-photo-grid--2 {grid-template-rows:240px 180px;}
 .tt-tour-photo-grid--2 > a:nth-child(2) {grid-column:1 / 3;grid-row:2;}
 .tt-tour-photo-grid--3 {grid-template-rows:240px 112px;}
 .tt-tour-photo-grid--4 > a:last-child {grid-column:1 / 3;}
 .tt-tour-photo-more {font-size:16px;}
 .tt-tour-detail .tt-destination-intro p {font-size:14px;}
 .tt-tour-detail .tevily-single-content {font-size:15px;}
 .tt-tour-detail .tevily-single-content h3 {font-size:18px;}
 .tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-prev {left:-10px;}
 .tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-next {right:-10px;}
 .tt-tour-detail {padding-bottom:80px!important;}
 .tt-step-modal .modal-dialog {margin:8px;}
 .tt-step-modal .modal-body {padding:22px;}
}
@media(prefers-reduced-motion:reduce){.tt-tour-photo-grid img,.tt-step-modal.fade {transition:none;}}

/* Clip visual overflow without creating a scroll container around the sticky panel. */
.single-to_book .wrapper-page {overflow:clip;}
.tt-tour-detail .tt-tour-inclusions > .elementor-widget {flex:1;}
.tt-tour-topbar > .elementor-widget-shortcode {flex:1;}

.tt-itinerary-fallback .swiper-wrapper {overflow-x:auto;scroll-snap-type:x mandatory;}
.tt-itinerary-fallback .swiper-slide {width:260px;flex-shrink:0;scroll-snap-align:start;}

.tt-itinerary-wrapper .tt-itinerary-card {align-items:stretch;}
.tt-itinerary-image {width:100%;}

.tt-itinerary-wrapper:has(.tt-itinerary-fallback) > button {display:none;}

/* Booking controls use the existing site calendar and native select. */
.tt-tour-preferences select {
 appearance:none;
 padding-right:44px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 16px center;background-size:16px;
}
.tt-booking-panel .tevily-single-duration .icon i {display:block;font-size:16px;line-height:1;}
.tt-booking-panel .tevily-single-price_from .item-value {display:flex;align-items:baseline;gap:4px;}
.tt-booking-panel .tevily-single-price_from .item-value::before {content:'от';font-size:12px;font-weight:700;color:#64748b;}
.tt-booking-panel .ba-meta-title {white-space:nowrap;}
.tt-booking-panel .ba-price {line-height:1.1;}
.tt-tour-booking-open .elementor-button-content-wrapper {align-items:center;justify-content:center;gap:8px;}
.tt-tour-booking-open .elementor-button-icon {display:inline-flex;align-items:center;justify-content:center;margin:0;line-height:1;}
.tt-tour-booking-open .elementor-button-icon :is(i,svg) {display:block;width:1em;height:1em;line-height:1;}
.tt-booking-benefits .elementor-icon-list-item {align-items:center;}
.tt-booking-benefits .elementor-icon-list-icon {display:inline-flex;align-items:center;justify-content:center;}
.tt-booking-benefits .elementor-icon-list-icon :is(i,svg) {display:block;width:1em;height:1em;line-height:1;}

/* Below-gallery reference typography. Gallery and site chrome are unchanged. */
.tt-tour-columns {font-family:"Plus Jakarta Sans",sans-serif;line-height:1.5;}
.tt-tour-columns :is(button,input,select,textarea) {font-family:inherit;}
.tt-tour-columns :is(h1,h2,h3,h4) {font-family:inherit;}
.tt-tour-title .post-title {line-height:40px;letter-spacing:-.025em;}
.tt-tour-heading .tevily-single-address {display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;color:#64748b;font-weight:500;}
.tt-tour-heading .tevily-single-address i {display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:14px;line-height:1;color:#f97316;margin:0;}
.tt-tour-columns .tt-destination-intro p {font-size:16px;line-height:24px;color:#334155;margin:0 0 16px;}
.tt-tour-columns .tt-destination-link {min-height:0;font-size:14px;line-height:20px;gap:8px;}
.tt-tour-columns .tt-attraction-chips {gap:10px;}
.tt-tour-columns .tt-attraction-chip {min-height:32px;padding:8px 14px;border:0;border-radius:12px;font-size:12px;line-height:16px;font-weight:700;background:#f1f5f9;}
.tt-tour-columns .tt-attraction-chip > span {max-width:none;}
.tt-tour-columns .tevily-single-content {font-size:16px;line-height:24px;color:#475569;}
.tt-tour-columns .tevily-single-content h3 {font-size:18px;line-height:28px;font-weight:700;margin:0 0 16px;}
.tt-tour-columns .tevily-single-content p {margin:0 0 16px;}
.tt-tour-columns .tevily-single-content p:last-child {margin-bottom:0;}
.tt-tour-columns .tevily-single-content h3:not(:first-child) {font-size:16px;line-height:24px;margin-top:20px;margin-bottom:8px;}
.tt-tour-columns .tevily-single-content ul {margin:0 0 16px;padding-left:20px;}
.tt-tour-columns .tevily-single-content li {margin:0;}
.tt-tour-columns .tt-heading-icon {display:inline-flex;align-items:center;justify-content:center;margin-right:8px;color:#f97316;font-size:1em;line-height:1;vertical-align:middle;}
/* Compact the native inclusion widgets, preserving every included/excluded item. */
.tt-tour-columns .tt-tour-inclusions :is(ul,li) {margin-top:0;margin-bottom:0;}
.tt-tour-columns .tt-tour-inclusions li {font-size:13px;line-height:20px;margin:0 0 8px;}
.tt-tour-columns .tt-tour-inclusions .elementor-widget-container:empty {display:none;}
.tt-tour-columns .tt-inclusion-panel {padding-top:20px;border-top:1px solid #f1f5f9;margin-top:4px;}
/* Fixed-width cards use the installed Swiper auto sizing. */
.tt-tour-columns .tt-itinerary-hint {font-size:12px;line-height:16px;margin:0 0 24px;}
.tt-tour-columns .tt-itinerary-wrapper {margin-top:0;}
.tt-tour-columns .tt-itinerary-wrapper .swiper {padding:4px 8px 16px;}
.tt-tour-columns .tt-itinerary-wrapper .swiper-slide {width:260px;}
.tt-tour-columns .tt-itinerary-card {border-color:rgb(226 232 240 / 80%);border-radius:16px;}
.tt-tour-columns .tt-itinerary-image {height:128px;}
.tt-tour-columns .tt-itinerary-image > span {top:10px;left:10px;border-radius:8px;font-size:10px;line-height:15px;font-weight:800;padding:2px 8px;}
.tt-tour-columns .tt-itinerary-image--empty > span {top:50%;left:50%;font-size:32px;line-height:1;padding:0;}
.tt-tour-columns .tt-itinerary-copy {padding:16px;}
.tt-tour-columns .tt-itinerary-copy h3 {font-size:12px;line-height:16px;font-weight:800;margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tt-tour-columns .tt-itinerary-copy p {font-size:11px;line-height:16.5px;margin:0;}
.tt-tour-columns .tt-itinerary-footer {display:flex;justify-content:flex-end;align-items:center;padding:0 16px 16px;border-top:1px solid #f1f5f9;margin-top:8px;}
.tt-tour-columns .tt-itinerary-more {min-height:32px;margin:0;padding:6px 12px;font-size:11px;line-height:16.5px;border-radius:12px;display:inline-flex;align-items:center;gap:6px;}
.tt-tour-columns .tt-itinerary-more i {font-size:9px;line-height:1;}
/* Center navigation on the 128px photo below the slider's 4px top padding. */
.tt-tour-columns .tt-itinerary-wrapper.swiper-slider-wrapper :is(.swiper-nav-prev,.swiper-nav-next) {top:68px;width:44px;height:44px;min-width:44px;line-height:1;}
.tt-tour-columns .tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-prev {left:-24px;}
.tt-tour-columns .tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-next {right:-24px;}
/* The existing related-tour widget keeps shared markup and all native actions. */
.tt-related-tours .tt-tour-card .tt-tour-gallery {height:192px;aspect-ratio:auto;}
.tt-related-tours .tt-tour-card__body {padding:20px;}
.tt-related-tours .tt-tour-card__top {font-size:12px;line-height:16px;margin-bottom:8px;}
.tt-related-tours .tt-tour-card .tt-tour-card__title {font-size:18px;line-height:28px;min-height:0;margin:0 0 8px;font-weight:800;}
.tt-related-tours .tt-tour-card .tt-card-attractions {gap:6px;margin:0 0 12px;}
.tt-related-tours .tt-tour-card .tt-attraction-chip {min-height:24px;padding:4px 8px;font-size:11px;line-height:16px;border-radius:8px;font-weight:600;}
.tt-related-tours .tt-tour-card .tt-tour-card__specs {display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 12px;padding:0;border:0;border-radius:0;background:none;}
.tt-related-tours .tt-tour-card__specs > div {gap:5px;}
.tt-related-tours .tt-tour-card__specs > div > i {flex-basis:14px;width:14px;height:18px;border-radius:0;background:none;font-size:14px;}
.tt-related-tours .tt-tour-card__specs > div > div {display:flex;align-items:baseline;gap:4px;}
.tt-related-tours .tt-tour-card .tt-tour-card__specs dt {font-size:10px;line-height:16px;margin:0;}
.tt-related-tours .tt-tour-card .tt-tour-card__specs dd {font-size:11px;line-height:16px;}
.tt-related-tours .tt-tour-card__footer {padding-top:0;border:0;gap:8px;margin-top:auto;}
.tt-related-tours .tt-tour-card__price-label {font-size:10px;line-height:15px;letter-spacing:.04em;text-transform:uppercase;font-weight:700;margin-bottom:0;}
.tt-related-tours .tt-tour-card__price strong {font-size:20px;line-height:28px;}
.tt-related-tours .tt-tour-card .tt-tour-card__book {min-height:40px;padding:10px 16px;font-size:12px;line-height:16px;border-radius:12px;background:#ea580c;box-shadow:none;}
.tt-related-tours .tt-tour-card .tt-tour-card__book:hover {background:#c2410c;}
/* Explicit line heights prevent theme defaults from inflating the booking panel. */
.tt-booking-panel .ba-meta-title {line-height:16px;margin-bottom:4px;}
.tt-booking-panel .tevily-single-price_from .item-value {line-height:36px;}
.tt-booking-panel .tevily-single-price_from .item_info_price_new {line-height:36px;}
.tt-tour-preferences {gap:6px;}
.tt-tour-preferences label {font-size:12px;line-height:16px;}
.tt-tour-preferences label:not(:first-child) {margin-top:10px;}
.tt-tour-preferences :is(input,select) {font-size:14px;line-height:20px;padding:12px 16px;border-radius:16px;}
.tt-tour-preferences select {padding-right:44px;}
.tt-booking-benefits .elementor-icon-list-item {line-height:16px;}
.tt-booking-benefits .elementor-icon-list-text {line-height:16px;}
@media(max-width:1024px){
 .tt-tour-preferences :is(input,select) {font-size:16px;}
}
@media(max-width:767px){
 .tt-tour-title .post-title {line-height:36px;}
 .tt-tour-columns .tt-destination-intro p,.tt-tour-columns .tevily-single-content {font-size:14px;line-height:22.75px;}
 .tt-tour-columns .tt-itinerary-wrapper .swiper-slide {width:240px;}
 .tt-tour-columns .tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-prev {left:-16px;}
 .tt-tour-columns .tt-itinerary-wrapper.swiper-slider-wrapper .swiper-nav-next {right:-16px;}
}

.tt-tour-columns .tt-tour-inclusions {display:block;}
.tt-tour-columns .tt-tour-inclusions > .elementor-widget:has(.content-inner:empty) {display:none;}
.tt-tour-columns .tt-tour-inclusions .tevily-single-in-ex .content-inner ul {display:flex;flex-wrap:wrap;gap:8px 20px;padding:0;list-style:none;}
.tt-tour-columns .tt-tour-inclusions .tevily-single-in-ex .content-inner li {margin:0;}


/* The label spans the header; the native clock stays next to its value. */
.tt-booking-panel .tevily-single-duration .content-inner {display:grid;position:relative;grid-template-columns:minmax(16px,1fr) max-content;gap:0 6px;justify-content:end;padding-top:0;}
.tt-booking-panel .tevily-single-duration .box-content {display:contents;}
.tt-booking-panel .tevily-single-duration .ba-meta-title {position:static;grid-column:1 / -1;grid-row:1;justify-self:end;width:max-content;line-height:16px;margin:0 0 4px;}
.tt-booking-panel .tevily-single-duration .icon {display:flex;align-items:center;justify-content:center;position:static;grid-column:1;grid-row:2;justify-self:end;width:16px;height:24px;margin:0;padding:0;color:#f97316;font-size:16px;line-height:1;}
.tt-booking-panel .tevily-single-duration .item-value {grid-column:2;grid-row:2;padding:0;line-height:24px;text-align:right;}

.tt-tour-columns :is(.elementor-element-ttplh,.elementor-element-ttplnh) .elementor-heading-title {display:flex;align-items:center;gap:8px;}
.tt-tour-columns .elementor-element-ttplnh .elementor-heading-title {gap:12px;}
.tt-tour-columns :is(.elementor-element-ttplh,.elementor-element-ttplnh) .tt-heading-icon {flex:none;margin:0;}

/* Keep currency groups intact; move the duration widget when the row is full. */
.tt-tour-detail .tt-booking-panel > .elementor-element-ttcost {flex-wrap:wrap;}
.tt-tour-detail .tt-booking-panel > .elementor-element-ttcost > .elementor-widget {flex:0 0 auto;max-width:100%;}
.tt-tour-detail .tt-booking-panel > .elementor-element-ttcost > .elementor-widget-gva_ba_item_duration {margin-inline-start:auto;}
.tt-booking-panel .tevily-single-price_from .currency_amount {white-space:nowrap;}
@media(max-width:400px){
 .tt-booking-panel .tevily-single-price_from .currency_amount {font-size:24px;}
}
