/* Legacy adapters. Existing layouts/controllers remain in their owning files.
 * No bare button/input/card selectors, and no override of map tiles/geometry. */
body { --color-main:var(--tk-primary); --color-button-bg:var(--tk-primary); --color-button-bg-hover:var(--tk-primary-hover); --color-button-text:var(--tk-on-primary); --color-dark-gray:var(--tk-text-muted); --tk-text-muted:var(--tk-text); --tk-blue:var(--tk-primary); --tk-blue-dark:var(--tk-primary-hover); --tk-tool-blue:var(--tk-primary); --tk-tool-muted:var(--tk-text-muted); --tk-tool-soft:var(--tk-surface-alt); background:var(--tk-surface-alt);color:var(--tk-text); }
body:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]),html:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) body { --tk-text-muted:#b9c6d5; }
body .tk-tour,body:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) .tk-tour,html:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) body .tk-tour{--tt-accent:var(--tk-primary);--tt-hover:var(--tk-primary-hover);--tt-card:var(--tk-surface);--tt-soft:var(--tk-surface-alt);--tt-border:var(--tk-border);--tt-text:var(--tk-text);--tt-muted:var(--tk-text-muted);--tt-radius:var(--tk-radius-card)}
body .tk-blog,body:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) .tk-blog,html:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) body .tk-blog{--tkb-blue:var(--tk-link);--tkb-ink:var(--tk-heading);--tkb-muted:var(--tk-text-muted);--tkb-card:var(--tk-surface);--tkb-soft:var(--tk-surface-alt);--tkb-line:var(--tk-border)}
body :is(.tk-collection,.tk-content-page,.tk-guide),body:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) :is(.tk-collection,.tk-content-page,.tk-guide),html:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) body :is(.tk-collection,.tk-content-page,.tk-guide){--tk-page-accent:var(--tk-primary);--tk-page-ink:var(--tk-heading);--tk-page-muted:var(--tk-text-muted);--tk-page-surface:var(--tk-surface);--tk-page-line:var(--tk-border);--tk-page-bg:var(--tk-surface-alt)}
body :is(.tk-tour,.tk-blog,.tk-collection,.tk-content-page,.tk-guide){color:var(--tk-text)}
body .tk-tour :is(.tt-title-row h1,.tt-section>h2,.tt-section-head h2,.tt-dialog h2){color:var(--tk-heading)}
/* Reuse plugin variables within their roots, including the existing dark aliases. */
body :is(.trp-app,.trp-route-frame,[data-trp-component]),body:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) :is(.trp-app,.trp-route-frame,[data-trp-component]),html:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) body :is(.trp-app,.trp-route-frame,[data-trp-component]){--trp-blue:var(--tk-primary)!important;--trp-blue-dark:var(--tk-primary-hover)!important;--trp-blue-soft:var(--tk-primary-soft)!important;--trp-text:var(--tk-text);--trp-muted:var(--tk-text-muted);--trp-border:var(--tk-border)!important;--trp-bg:var(--tk-surface-alt)!important;--trp-panel:var(--tk-surface)!important;--trp-danger:var(--tk-danger);--trp-success:var(--tk-success);--trp-radius:var(--tk-radius-md);--trp-shadow:var(--tk-shadow-md)}
body :is(.tek-event-app,.tek-event-collection),body:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) :is(.tek-event-app,.tek-event-collection),html:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) body :is(.tek-event-app,.tek-event-collection){--petrol:var(--tk-primary);--ink:var(--tk-heading);--muted:var(--tk-text-muted);--bg:var(--tk-surface-alt);--line:var(--tk-border);--radius:var(--tk-radius-card);color:var(--tk-text);background:var(--tk-surface-alt)}
/* Central sizing: text actions only. Topic tiles, gallery triggers, map sliders and icon controls are exceptions. */
body :is(.tt-button,.tkcm-button,.tkb-button,.tkc-button,.tk-home-button,.tk-registration-banner__primary,.tk-registration-banner__secondary,.tk-footer-button),
body .tk-content-page :is(.tkp-button,.elementor-button):not(.tkp-topic .tkp-button):not(.tkp-topic .elementor-button),
body .tek-event-collection .tec-btn,body .tek-event-app .btn,body .trp-app .trp-btn {
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:var(--tk-space-2);min-height:var(--tk-control);padding:var(--tk-space-2) var(--tk-space-4);border-radius:var(--tk-radius-control);font:var(--tk-weight-control) var(--tk-font-button)/1.5 var(--tk-font);text-decoration:none;transition:background-color var(--tk-duration-fast) var(--tk-easing),border-color var(--tk-duration-fast) var(--tk-easing),box-shadow var(--tk-duration-fast) var(--tk-easing);
}
body :is(.tt-button,.tkb-button,.tkc-button,.tk-home-button--primary,.tk-registration-banner__primary,.tk-registration-banner__secondary,.tk-footer-button),body .tk-content-page .tkp-button:not(.tkp-topic .tkp-button),body .trp-app .trp-btn--primary{background:var(--tk-primary);border-color:var(--tk-primary);color:var(--tk-on-primary)}
body :is(.tt-button,.tkb-button,.tkc-button,.tk-home-button--primary,.tk-registration-banner__primary,.tk-registration-banner__secondary,.tk-footer-button):hover:not(:disabled),body .tk-content-page .tkp-button:not(.tkp-topic .tkp-button):hover,body .trp-app .trp-btn--primary:hover{background:var(--tk-primary-hover);border-color:var(--tk-primary-hover);color:var(--tk-on-primary);filter:none}
body :is(.tkcm-button,.tkb-light,.tkb-white,.tkc-outline,.tk-home-button--ghost){background:var(--tk-surface-alt);border:1px solid var(--tk-border);color:var(--tk-link)}
body .tkcm-button.is-active,body .tkcm-button[aria-pressed="true"]{background:var(--tk-primary);border-color:var(--tk-primary);color:var(--tk-on-primary)}
/* Route-condition categories keep their approved colors and original SVG art. */
body .tkcm-types .tkcm-button{background:var(--tkcm-type-bg);color:var(--tkcm-type-fg)}
body .tkcm-types .tkcm-button[aria-pressed="true"]{box-shadow:var(--tk-focus-ring);border-color:var(--tk-primary);background:var(--tkcm-type-bg);color:var(--tkcm-type-fg)}
body .tkp-danger-button{background:var(--tk-danger);border-color:var(--tk-danger);color:var(--tk-surface)}
body :is(.tt-round,.tk-mobile-dialog__close,.tkp-close,.tkcm-popup-close,.tec-icon-btn,.trp-route-action-icon,.tk-footer-back-top){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--tk-control);height:var(--tk-control);min-height:var(--tk-control);padding:0;border-radius:50%;color:var(--tk-link);background:var(--tk-surface-alt);border:1px solid var(--tk-border)}
body :is(.tt-round,.tk-mobile-dialog__close,.tkp-close,.tkcm-popup-close,.tec-icon-btn,.trp-route-action-icon)>svg{width:22px;height:22px;flex-shrink:0}
body :is(.tt-round.is-favorite,.tt-round[data-tk-compare][aria-pressed="true"]){background:var(--tk-primary);border-color:var(--tk-primary);color:var(--tk-on-primary)}
body :is(.tt-button,.tt-round,.tkcm-button,.tkb-button,.tkc-button,.tkp-button,.tk-home-button):disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
/* Profile hero contrast remains white, without changing its established treatment. */
body .tkc-hero :is(.tkc-outline,.tkc-lime){color:var(--tk-on-primary);background:transparent;border-color:#ffffff70}
body .tk-content-page .tkp-topic .tkp-button{background:var(--tk-surface);color:var(--tk-link);border-color:var(--tk-border)}
/* Forms: explicitly owned text fields; range, hidden, file and map controls excluded. */
body :is(.tkb-filters,.tk-detailed-filter-card,.tk-personal #editprofileform,.tks-form,.tkcm-dialog,.tkp-delete-dialog,.tk-native-page .tlc-form,.tek-event-app .eventbody,.tek-event-collection .tec-filters,.trp-app .trp-field) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="color"]),select,textarea){box-sizing:border-box;min-height:var(--tk-control);border:1px solid var(--tk-border);border-radius:var(--tk-radius-control);background:var(--tk-surface);color:var(--tk-text);padding:10px var(--tk-space-3);font:400 var(--tk-font-body)/1.5 var(--tk-font)}
body :is(.tkb-filters,.tk-detailed-filter-card,.tk-personal,.tks-form,.tkcm-dialog,.tkp-delete-dialog,.tk-native-page .tlc-form,.tek-event-app,.tek-event-collection,.trp-app) :is(input,select,textarea):focus-visible{outline:3px solid var(--tk-focus)!important;outline-offset:3px!important;border-color:var(--tk-primary)}
body :is(.tk-personal,.tks-form,.tkcm-dialog,.tk-native-page .tlc-form) label{font-size:var(--tk-font-label);color:var(--tk-heading)}
body :is(.tk-personal,.tks-form,.tkcm-dialog,.tk-native-page .tlc-form) :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--tk-primary)}
body :is(.tk-tour,.tk-blog,.tk-collection,.tk-native-page,.tk-guide,.tk-detailed-filter-card,.tek-event-app,.tek-event-collection,.trp-app) [aria-invalid="true"]{border-color:var(--tk-danger)}
/* Cards use one surface/radius/shadow; grid geometry, images and special banners stay local. */
body :is(.tt-card,.tkc-card,.tkp-card:not(.tkp-dark):not(.tkp-pale),.tkb-panel,.tkb-cards .tkb-card,.tk-tour-result-card__link,.tk-modern-tour-card,.tec-event-card,.trp-route-card){border-color:var(--tk-border);border-radius:var(--tk-radius-card);background:var(--tk-surface);box-shadow:var(--tk-shadow-sm)}
body :is(.tk-tour-result-card__link,.tk-modern-tour-card,.tkb-cards .tkb-card,.tec-event-card,.trp-route-card):hover{box-shadow:var(--tk-shadow-md)}
body .tkcm-tour-card{border-color:var(--tk-border);border-radius:var(--tk-radius-md);background:var(--tk-surface);box-shadow:var(--tk-shadow-sm)}
body :is(.tk-tour-status,.tkc-pill,.tt-badge){border-color:var(--tk-border);border-radius:var(--tk-radius-pill);background:var(--tk-primary-soft);color:var(--tk-link)}
body .tk-tour-statuses--search .tk-tour-status{background:var(--tk-surface-alt);color:var(--tk-text-muted)}
/* Existing dialog classes share presentation; native dialog retains focus trap and Escape. */
body :is(dialog.tt-dialog,dialog.tkcm-dialog,dialog.tk-compare-dialog,dialog.tkp-delete-dialog){border:1px solid var(--tk-border);border-radius:var(--tk-radius-lg);background:var(--tk-surface);color:var(--tk-text);box-shadow:var(--tk-shadow-lg);z-index:var(--tk-z-modal);overscroll-behavior:contain}
body :is(dialog.tt-dialog,dialog.tkcm-dialog,dialog.tk-compare-dialog,dialog.tkp-delete-dialog,dialog.tk-mobile-dialog)::backdrop{background:var(--tk-overlay)}
body :is(.tkcm-heading,.tk-compare-head){gap:var(--tk-space-4);margin-bottom:var(--tk-space-6)}
body :is(.tkcm-dialog,.tk-compare-dialog,.tkp-delete-dialog) h2{color:var(--tk-heading)}
body :is(.tt-tabs,.tec-mode-tabs,.trp-viewer-nav){gap:var(--tk-space-1);border-radius:var(--tk-radius-md)}
body :is(.tt-tabs,.tec-mode-tabs,.trp-viewer-nav) :is(a,button){border-radius:var(--tk-radius-control);font-size:var(--tk-font-button);font-weight:var(--tk-weight-control)}
body .tkcm-map-tools{gap:var(--tk-space-2)}
body :is(.tk-ui-tooltip,.tkp-nav-tooltip){z-index:var(--tk-z-tooltip);background:var(--tk-heading);color:var(--tk-surface);border-radius:var(--tk-radius-sm);padding:var(--tk-space-2) var(--tk-space-3);box-shadow:var(--tk-shadow-md);font-size:var(--tk-font-small)}
body :is(.tec-toast,.trp-toast,.tk-compare-notice){z-index:var(--tk-z-toast);border-radius:var(--tk-radius-md);box-shadow:var(--tk-shadow-lg)}
body :is(.tkb-empty,.tec-empty,.trp-empty){background:var(--tk-surface-alt);color:var(--tk-text-muted);border-color:var(--tk-border);border-radius:var(--tk-radius-md)}
body .tk-compare-column{border-radius:var(--tk-radius-md);border-color:var(--tk-border);background:var(--tk-surface)}
body .tk-compare-row{border-color:var(--tk-border);color:var(--tk-text)}
body .tk-compare-row dt{font-size:var(--tk-font-small);color:var(--tk-text-muted)}
/* Popup content only: don't theme Google Maps chrome or tile/marker graphics. */
body :is(.tkcm-map-popup,.trp-map-popup,.trp-popup,.tec-map-marker>div){background:var(--tk-surface);color:var(--tk-text);border-radius:var(--tk-radius-md);font:400 var(--tk-font-label)/1.6 var(--tk-font)}
body .tkcm-map-popup h3{color:var(--tk-heading)}
body :is(.trp-app,.trp-route-frame,.tks-map-frame) .leaflet-control-zoom a{background:var(--tk-surface);color:var(--tk-link);border-color:var(--tk-border)}
body :is(.trp-app,.trp-route-frame,.tks-map-frame) .leaflet-control-layers{background:var(--tk-surface);color:var(--tk-text);border-color:var(--tk-border);border-radius:var(--tk-radius-control);box-shadow:var(--tk-shadow-sm)}
/* Shared prose rhythm; never applied to generic Elementor widgets or plugin tools. */
body :is(.tkb-article-body .tk-prose,.tk-guide .tkg-content,.tk-native-page .tkp-copy,.tt-description,.tek-event-app .event-description,.tk-page-prose){color:var(--tk-text);line-height:var(--tk-line-body)}
body :is(.tkb-article-body .tk-prose,.tk-guide .tkg-content,.tk-native-page .tkp-copy,.tt-description,.tk-page-prose) :is(p,ul,ol):not(.has-text-color):not(.has-text-color *){color:var(--tk-text);margin-bottom:var(--tk-space-4)}
body :is(.tkb-article-body .tk-prose,.tk-guide .tkg-content,.tt-description,.tk-page-prose) li+li{margin-top:var(--tk-space-2)}
body :is(.tkb-article-body .tk-prose,.tk-guide .tkg-content,.tt-description,.tk-page-prose) :is(h2,h3,h4):not(.has-text-color){color:var(--tk-heading);line-height:var(--tk-line-heading);margin-top:var(--tk-space-8);margin-bottom:var(--tk-space-3)}
body :is(.tkb-article-body .tk-prose,.tk-guide .tkg-content,.tk-native-page .tkp-copy,.tt-description,.tk-page-prose) a{color:var(--tk-link);text-underline-offset:3px}
body :is(.tk-tour,.tk-blog,.tk-collection,.tk-content-page,.tk-guide,.tk-detailed-filter-card,.tek-event-app,.tek-event-collection,.trp-app) :is(a,button,summary):focus-visible{outline:3px solid var(--tk-focus)!important;outline-offset:3px!important}
/* FAQ glyphs become currentColor SVG masks. Tourist waymark illustrations are untouched. */
body .tk-content-page .tk-help-question summary:after{content:"";width:22px;height:22px;background:currentColor;mask:url('../../img/ui-plus.svg') center/contain no-repeat}
body .tk-content-page .tk-help-question[open] summary:after{mask-image:url('../../img/ui-minus.svg')}
@media(min-width:1025px){body .tk-collection{max-width:var(--tk-container)} }
@media(max-width:767px){
 body :is(dialog.tt-dialog,dialog.tkcm-dialog,dialog.tk-compare-dialog,dialog.tkp-delete-dialog){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90vh;max-height:90dvh;border-radius:var(--tk-radius-lg) var(--tk-radius-lg) 0 0;padding:var(--tk-space-4) max(var(--tk-space-4),env(safe-area-inset-right)) calc(var(--tk-space-4) + env(safe-area-inset-bottom,0px)) max(var(--tk-space-4),env(safe-area-inset-left));z-index:var(--tk-z-sheet)}
 body dialog.tk-mobile-dialog{background:var(--tk-surface);color:var(--tk-text);border-radius:var(--tk-radius-lg) var(--tk-radius-lg) 0 0;z-index:var(--tk-z-sheet)}
 body dialog.tk-mobile-menu{border-radius:0}
 body :is(.tk-mobile-dialog__head,.tk-mobile-dialog__footer){border-color:var(--tk-border);background:var(--tk-surface)}
 body .tk-mobile-dialog__footer{padding-bottom:calc(var(--tk-space-3) + env(safe-area-inset-bottom,0px))}
 body .tk-mobile-dialog__footer .btn{min-height:var(--tk-control-lg);border-radius:var(--tk-radius-control)}
 body .tkcm-dialog form>button[type="submit"]{position:sticky;bottom:0;z-index:1;width:100%}
 body .tk-compare-dialog>button{position:sticky;bottom:0;background:var(--tk-primary);color:var(--tk-on-primary)}
 body :is(.tt-section,.tkc-card,.tk-native-page .tkp-card){padding:var(--tk-space-4)}
 body .tk-tour{padding-left:var(--tk-gutter);padding-right:var(--tk-gutter)}
}
@media(prefers-reduced-motion:reduce){body :is(.tk-tour,.tk-blog,.tk-collection,.tk-native-page,.tk-guide,.tek-event-app,.tek-event-collection,.trp-app) :is(button,a,.tk-ui-skeleton){transition:none!important;animation:none!important}}

body .tk-page-prose{--tk-prose-ink:var(--tk-text);--tk-prose-muted:var(--tk-text-muted);--tk-prose-accent:var(--tk-link);--tk-prose-line:var(--tk-border);--tk-prose-soft:var(--tk-surface-alt)}
body .tekeregj-site-header :is(a,button,input):focus-visible,body .tk-footer :is(a,button):focus-visible{outline:3px solid var(--tk-focus);outline-offset:3px}
body .tekeregj-header-search__submit{height:var(--tk-control);min-width:var(--tk-control);border-radius:var(--tk-radius-control)}
body .tk-ui-button--danger{background:var(--tk-danger-action);color:#fff}
body .tkp-danger-button{background:var(--tk-danger-action);color:var(--tk-on-primary)}
/* A compact download-format selector retains its own density. */
body .trp-share-panel .trp-btn{min-height:var(--tk-control-sm);padding:var(--tk-space-1) var(--tk-space-2)}
body :is(.tk-detailed-field-label,.range__info){display:flex;align-items:center;gap:var(--tk-space-2)}
body :is(.tk-detailed-field-label,.range__info)>svg{width:20px;height:20px;color:var(--tk-link);flex-shrink:0}
body .tec-map-controls button>svg{width:20px;height:20px;margin:auto}
body .tk-tour .tt-stats>div>svg{width:24px;height:24px;color:var(--tk-link);flex-shrink:0}
body .tk-tour .tt-highlights>div>svg{width:22px;height:22px;color:var(--tk-link)}
body .tk-detailed-filter-card :is(button[type="submit"],#region_clear,#category_clear){min-height:var(--tk-control);border-radius:var(--tk-radius-control);font:var(--tk-weight-control) var(--tk-font-button)/1.5 var(--tk-font);padding:var(--tk-space-2) var(--tk-space-4);display:inline-flex;align-items:center;justify-content:center;gap:var(--tk-space-2)}
body .tk-detailed-filter-card :is(#region_clear,#category_clear){background:var(--tk-surface-alt);border-color:var(--tk-border);color:var(--tk-link)}
body :is(.tk-compare-bar,.tk-compare-dialog),body:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) :is(.tk-compare-bar,.tk-compare-dialog),html:is(.dark,.dark-mode,.is-dark,.dark-theme,[data-theme="dark"]) body :is(.tk-compare-bar,.tk-compare-dialog){--tkc-accent:var(--tk-link);--tkc-text:var(--tk-text);--tkc-muted:var(--tk-text-muted);--tkc-bg:var(--tk-surface);--tkc-border:var(--tk-border)}
body .tk-compare-bar{z-index:var(--tk-z-dropdown);box-shadow:var(--tk-shadow-md)}
body .tkcm-profile{background:var(--tk-surface);color:var(--tk-text);border-color:var(--tk-border)}
body .tkcm-columns>div{border-color:var(--tk-border)}
body .tkcm-stats{background:var(--tk-primary-soft)}
body .tkcm-stats strong,body .tkcm-columns h3{color:var(--tk-link)}
body .tk-tour .tt-tabs{z-index:var(--tk-z-sticky)}
body :is(.trp-dialog,.tek-event-app dialog):not(.trp-streetview-dialog){background:var(--tk-surface);color:var(--tk-text);border:1px solid var(--tk-border);border-radius:var(--tk-radius-lg);box-shadow:var(--tk-shadow-lg);z-index:var(--tk-z-modal)}
body :is(.trp-dialog,.tek-event-app dialog)::backdrop{background:var(--tk-overlay)}
body :is(.trp-dialog__actions,.tek-event-app .dialoghead){gap:var(--tk-space-3)}
body :is(.trp-public-filter__popover,.trp-public-range-popover){background:var(--tk-surface);color:var(--tk-text);border-color:var(--tk-border);border-radius:var(--tk-radius-md);box-shadow:var(--tk-shadow-md);z-index:var(--tk-z-dropdown)}
body .trp-dialog :is(input,select,textarea){color:var(--tk-text);background:var(--tk-surface-alt);border-color:var(--tk-border);border-radius:var(--tk-radius-control);min-height:var(--tk-control)}
@media(max-width:767px){body :is(dialog.trp-dialog,.tek-event-app dialog):not(.trp-streetview-dialog){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90dvh;border-radius:var(--tk-radius-lg) var(--tk-radius-lg) 0 0;padding-bottom:calc(var(--tk-space-4) + env(safe-area-inset-bottom,0px));z-index:var(--tk-z-sheet)}}

/* 3.9.159: composed search controls keep their own icon spacing and focus. */
body .tekeregj-header-search__query{margin-right:calc(-1 * var(--tk-radius-control));padding-right:calc(10px + var(--tk-radius-control));background:var(--tk-surface);border-color:var(--tk-border)}
body .tekeregj-header-search__submit{position:relative;z-index:1;align-self:stretch;flex-basis:var(--tk-control)}
body :is(.tekeregj-header-search__query,.tekeregj-header-categories__search) input:focus-visible,
body .trp-app .trp-search input:focus-visible{outline:none!important;box-shadow:none!important}
body .tekeregj-header-search__query input:focus-visible{border:0}
body .tek-event-collection .tec-filters .tec-search input{padding-left:42px!important}
body .tek-event-collection .tec-search .tec-icon{pointer-events:none}
body :is(.tk-modern-tour-card,.tk-tour-surface-card){position:relative;overflow:hidden}
body :is(.tk-modern-tour-card,.tk-tour-surface-card):focus-within .tk-card-surface::before{opacity:1}

/* 3.9.160 regression repairs: preserve the owning component's inline layout. */
body .tk-tour .tkcm-meta-details>span{display:inline-flex;align-items:center;gap:var(--tk-space-2);white-space:nowrap}
body .tk-tour .tkcm-meta-details>span>svg{width:20px;height:20px;flex:none}
body .tk-tour .tt-gallery-count,body .tk-tour .tt-tabs [data-tt-download]{display:inline-flex;align-items:center;justify-content:center;gap:var(--tk-space-2);white-space:nowrap}
body .tk-tour .tt-author-links{max-width:none;flex-wrap:nowrap;gap:var(--tk-space-3)}
body .tk-tour .tt-author-links a{display:inline-flex;align-items:center;gap:var(--tk-space-2);white-space:nowrap}
body .tk-tour .tt-author-links a>svg{flex:none;width:20px;height:20px}
body .tk-tour .tt-review-heading .rating-post{display:flex;align-items:center;gap:var(--tk-space-2);flex-wrap:nowrap;white-space:nowrap}
body .tk-tour .voted-score{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;flex-shrink:0}
body .tk-tour .voted-score-text{display:inline-flex;align-items:center}
body .tk-tour .star-rating{white-space:nowrap}
body .tk-tour .star-rating :is(.star-rating-on,.star-rating-off){white-space:nowrap}
body .tkcm-heading [data-tkcm-close]{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:var(--tk-control);height:var(--tk-control);min-width:var(--tk-control);padding:0;flex:none}
body .tk-tour-result-card{background:transparent;box-shadow:none;border-radius:0}
body .tk-tour-result-card:hover{box-shadow:none}
body button#back-to-top.tk-footer-back-top,body.dark button#back-to-top.tk-footer-back-top{background:var(--tk-primary);border-color:var(--tk-primary);color:var(--tk-on-primary)}
body button#back-to-top.tk-footer-back-top:hover,body.dark button#back-to-top.tk-footer-back-top:hover{background:var(--tk-primary-hover);border-color:var(--tk-primary-hover);color:var(--tk-on-primary)}
body .tekeregj-header-search__submit{border-radius:0 var(--tk-radius-control) var(--tk-radius-control) 0}
/* Google Maps type switcher only: leave map geometry, menus and API intact. */
body .tk-tour #tk-route .gm-style-mtc>button{background:var(--tk-surface)!important;color:var(--tk-text)!important;font:500 12px/1.4 var(--tk-font)!important;height:36px!important;padding:0 12px!important;box-shadow:none!important;border:1px solid var(--tk-border)!important}
body .tk-tour #tk-route .gm-style-mtc:first-child>button{border-radius:var(--tk-radius-control) 0 0 var(--tk-radius-control)!important}
body .tk-tour #tk-route .gm-style-mtc:last-child>button{border-radius:0 var(--tk-radius-control) var(--tk-radius-control) 0!important}
body .tk-tour #tk-route .gm-style-mtc>button[aria-checked=true]{background:var(--tk-primary)!important;color:var(--tk-on-primary)!important;border-color:var(--tk-primary)!important}
body .tk-tour #tk-route .gm-style-mtc>button:hover{background:var(--tk-primary-soft)!important;color:var(--tk-link)!important}
@media(max-width:767px){
 body .tk-tour .tt-author{flex-wrap:wrap}
 body .tk-tour .tt-author-links{width:100%;font-size:12px}
 body .tk-tour .tt-author-links a{font-size:12px;max-width:100%}
 body .tk-tour .tt-author-links a:first-child{min-width:0;white-space:normal;overflow-wrap:anywhere}
 body .tk-tour .tt-review-heading{flex-wrap:wrap;gap:var(--tk-space-3)}
 body .tk-tour .tt-review-heading .rating-post{font-size:10px}
 body .tk-tour .voted-score :is(i,svg){font-size:18px;width:18px}
 body .tk-tour .tt-review-heading .voted-score-text small{font-size:10px}
}
/* Dark editorial cards own their contrast, including nested prose. */
body .tk-native-page .tkp-dark,body .tk-native-page .tkp-dark .tkp-copy,
body .tk-native-page .tkp-dark .tkp-copy :is(p,ul,ol,li,a){color:var(--tk-on-primary)!important}

/* 3.9.161: mobile A navigation and measured control geometry. */
body .tk-tour .tt-tabs-scroll{display:flex;align-items:center;gap:var(--tk-space-1);flex:1;min-width:0}
body .tk-tour .tt-round,body .tk-compare-head>button{width:44px;height:44px;min-width:44px;max-width:44px;min-height:44px;max-height:44px;flex:0 0 44px;aspect-ratio:1;border-radius:50%;padding:0;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
body .tk-tour .voted-score>i{padding:0;line-height:1}
body .tk-tour .voted-score-text,body .tk-tour .voted-score-text small{line-height:1.4;margin:0;padding:0}
body .tk-tour .tkcm-meta-details{gap:12px 20px}
body .tk-tour .tkcm-meta-details .product__rating{margin:0;gap:8px}
body .tk-tour .tt-title-row{margin-bottom:20px}
body .tk-tour .tt-meta{margin-top:0;margin-bottom:20px}
body .tek-event-collection .tec-custom-select-option{font-size:11px;line-height:1.4;white-space:nowrap;gap:8px;padding:10px 8px}
body .tk-tour .tt-stats i{font-size:24px;width:24px;text-align:center;color:var(--tt-accent);flex:none}
@media(max-width:767px){
 body .tk-tour .tt-tabs{display:flex;flex-wrap:nowrap;overflow:visible;padding:6px;gap:6px}
 body .tk-tour .tt-tabs-scroll{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x pan-y;}
 body .tk-tour .tt-tabs-scroll::-webkit-scrollbar{display:none}
 body .tk-tour .tt-tabs-scroll a{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:10px 12px}
 body .tk-tour .tt-tabs [data-tt-download]{flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;margin-left:0;gap:0}
 body .tk-tour .tt-tabs [data-tt-download]>span{display:none}
 body .tk-tour .tt-dialog .tt-section-head{align-items:center;gap:12px}
 body .tk-tour .tt-dialog .tt-section-head h2{flex:1;text-align:center;margin:0;font-size:20px;line-height:1.3}
 body .tk-tour .tt-actions{align-items:center}
}

body .custom-search-results[aria-busy="true"] .tk-tour-result-card{border-radius:var(--tk-radius-card);overflow:hidden}
body .tk-tour .tt-actions .tt-round{width:44px;height:44px;min-width:44px;max-width:44px;min-height:44px;max-height:44px;flex:0 0 44px;aspect-ratio:1;border-radius:50%;padding:0}
@media(max-width:767px){body .tk-tour .tt-dialog .tt-section-head{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}body .tk-tour .tt-dialog .tt-section-head:before{content:""}body .tk-tour .tt-dialog .tt-section-head h2{grid-column:2;font-size:clamp(17px,4.4vw,20px)}body .tk-tour .tt-dialog .tt-section-head .tt-round{grid-column:3}}

/* 3.9.162: the download is a centered dialog, including on mobile. */
body .tk-tour dialog#tt-download{position:fixed;inset:0;margin:auto;width:min(600px,calc(100% - 32px));max-width:600px;height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border-radius:var(--tk-radius-lg);padding:var(--tk-space-4);overflow:auto;box-sizing:border-box;transform:none}
/* Nested radii: outer radius minus the 6px inset and 1px border. */
body .tk-tour .tt-tabs{--tt-nav-radius:var(--tk-radius-lg);border-radius:var(--tt-nav-radius);padding:6px}
body .tk-tour .tt-tabs-scroll a,body .tk-tour .tt-tabs [data-tt-download]{border-radius:calc(var(--tt-nav-radius) - 7px)}
body .tk-tour .tt-stats>div>.tk-tour-stat-icon{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;color:var(--tt-accent)}
