/* 3.9.114: progressive mobile overlays; no desktop layout overrides. */
.tk-mobile-dialog:not([open]), .tk-mobile-filter-trigger { display: none; }
@media (max-width: 767px) {
  body { --tk-mobile-edge: 10px; }
  #back-to-top.tk-footer-back-top,
  #trail-consent-root .tcs-launcher {
    bottom: calc(var(--tk-mobile-edge) + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 0 !important;
  }
  #back-to-top.tk-footer-back-top { right: calc(var(--tk-mobile-edge) + env(safe-area-inset-right, 0px)); }
  #trail-consent-root .tcs-launcher { left: calc(var(--tk-mobile-edge) + env(safe-area-inset-left, 0px)); }
  .tk-mobile-filter-trigger {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 48px; padding: 12px 20px; margin: 0 0 16px;
    border: 1px solid #006887; border-radius: 12px; background: #006887;
    color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  }
  dialog.tk-mobile-dialog {
    box-sizing: border-box; color: #23262f; background: #fcfcfd; font: inherit;
    position: fixed; inset: auto 0 0; margin: 0; padding: 0; border: 0;
    width: 100%; max-width: none; height: auto; max-height: 90vh; max-height: 90dvh;
    border-radius: 22px 22px 0 0; overflow: hidden;
  }
  dialog.tk-mobile-dialog[open] { display: flex; flex-direction: column; animation: tk-mobile-enter .2s ease-out; }
  .tk-mobile-dialog::backdrop { background: rgba(13, 33, 42, .52); }
  .tk-mobile-dialog__head {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
    border-bottom: 1px solid #e6e8ec; background: inherit;
  }
  .tk-mobile-dialog .tk-mobile-dialog__head h2 { margin: 0; color: inherit; font: inherit; font-size: 20px; font-weight: 600; }
  .tk-mobile-dialog__close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #edf3f5; color: #006887; cursor: pointer; }
  .tk-mobile-dialog__content { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 18px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left)); }
  .tk-mobile-sheet .tk-detailed-filter-card { position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; width: 100%; max-height: none; background: transparent; }
  .tk-mobile-sheet #searchform button[type="submit"] { display: none; }
  .tk-mobile-dialog__footer { flex: 0 0 auto; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left)); border-top: 1px solid #e6e8ec; background: inherit; }
  .tk-mobile-dialog__footer .btn { width: 100%; min-height: 48px; margin: 0; background: #006887; border-color: #006887; color: #fff; font-family: inherit; }
  dialog.tk-mobile-menu { inset: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
  .tk-mobile-menu .tk-mobile-dialog__content { flex: 1 1 auto; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  body .tekeregj-site-header .tk-mobile-menu .header__wrapper.js-header-wrapper {
    position: static; inset: auto; display: flex; flex-direction: column; height: auto; max-height: none;
    width: 100%; padding: 0; margin: 0; overflow: visible; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; transition: none; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  }
  .tekeregj-site-header .tk-mobile-menu .js-header-wrapper::before,
  .tekeregj-site-header .tk-mobile-menu .js-header-wrapper::after { content: none; display: none; }
  /* The legacy WordPress menu container paints its own bottom shadow. */
  .tekeregj-site-header .menu-mobile-only .menu-mobilmenu-container::after {
    content: none; display: none; box-shadow: none;
  }
  .tk-mobile-dialog :focus-visible, .tk-mobile-filter-trigger:focus-visible { outline: 3px solid #006887; outline-offset: -3px; }
  body.dark dialog.tk-mobile-dialog { color: #fcfcfd; background: #23262f; }
  body.dark .tk-mobile-dialog__head, body.dark .tk-mobile-dialog__footer { border-color: #353945; }
  body.dark .tk-mobile-dialog__close { color: #80c9db; background: #353945; }
  @keyframes tk-mobile-enter { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { dialog.tk-mobile-dialog[open] { animation: none; } }
}

/* New card content is mobile-only; desktop markup retains its original geometry. */
.tk-mobile-card-save, .tk-mobile-tour-category, .tk-mobile-editorial-label,
.tk-mobile-tour-duration, .tk-tour-result-card__stats > .tk-mobile-effort-stat { display: none; }
.tk-tour-result-card__stats > .tk-mobile-effort-stat { display: none !important; }
.tk-mobile-filter-count[hidden], .tk-mobile-active-label[hidden], .tk-mobile-filter-message[hidden] { display: none !important; }
@media (max-width: 767px) {
  .tk-mobile-filter-trigger { background: #fff; color: #006887; border-color: #dce6eb; justify-content: flex-start; border-radius: 13px; }
  .tk-mobile-filter-count { margin-left: auto; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: #006887; color: #fff; font-size: 12px; }
  .tk-mobile-sheet .tk-mobile-dialog__head { position: relative; padding-top: 24px; gap: 8px; touch-action: none; user-select: none; cursor: grab; }
  .tk-mobile-sheet-grip { position: absolute; width: 38px; height: 4px; top: 10px; left: calc(50% - 19px); border-radius: 4px; background: #9caeb7; }
  dialog.tk-mobile-sheet { border-radius: 26px 26px 0 0; transition: transform .2s ease-out; }
  dialog.tk-mobile-sheet.is-dragging { transition: none; cursor: grabbing; }
  .tk-mobile-active-label { padding: 4px 8px; border-radius: 7px; font-size: 11px; color: #006887; background: #edf5f7; white-space: nowrap; }
  .tk-mobile-sheet .tk-mobile-dialog__close { margin-left: auto; }
  .tk-mobile-dialog__footer .btn { border-radius: 13px; font-size: 14px; }
  .tk-mobile-dialog__footer .btn.is-loading::before { content: ''; width: 14px; height: 14px; margin-right: 8px; border: 2px solid #ffffff70; border-top-color: #fff; border-radius: 50%; animation: tk-mobile-spin .7s linear infinite; }
  .tk-mobile-filter-message { margin: 0 0 10px; font-size: 12px; color: #8d3025; line-height: 1.5; }
  .tk-mobile-favorite-status { padding: 12px 16px; border-radius: 12px; background: #edf5f7; color: #006887; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-tour-result-card { position: relative; min-width: 0; border-radius: 18px; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__link { border-radius: 18px; box-shadow: none; border: 1px solid #dce6eb; overflow: hidden; flex-direction: column; min-height: 0; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__media { width: 100%; height: auto; aspect-ratio: 2 / 1; min-height: 0; flex: 0 0 auto; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__media img { display: block; aspect-ratio: 2 / 1; object-fit: cover; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__body { display: flex; padding: 15px; gap: 13px; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__heading { display: flex; flex-direction: column; gap: 7px; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card .tk-tour-result-card__heading h3 { font-size: 17px !important; line-height: 1.4 !important; font-weight: 600; letter-spacing: -.3px; margin: 0; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__heading p { order: -1; font-size: 11px; line-height: 1.5; margin: 0; white-space: normal; color: #647b85; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats { display: grid; align-self: stretch; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; border-top: 1px solid #dce6eb; padding-top: 13px; margin: 0; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats > span { display: grid; grid-template-columns: 15px minmax(0,1fr); gap: 4px; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats strong { font-size: 13px; line-height: 1.4; font-weight: 600; grid-column: 2; grid-row: 1; white-space: normal; overflow: visible; color: #20353d; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats small { grid-column: 1 / -1; grid-row: 2; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #647b85; line-height: 1.4; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats svg { grid-column: 1; grid-row: 1; width: 15px; height: 15px; margin: 0; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats > .tk-tour-result-card__duration-stat { display: none; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats > .tk-mobile-effort-stat { display: grid !important; }
  .tk-mobile-tour-duration { display: block; font-size: 11px; color: #647b85; line-height: 1.5; margin: 0; }
  .tk-mobile-tour-category { display: block; position: absolute; bottom: 12px; left: 12px; max-width: calc(100% - 24px); border-radius: 7px; padding: 5px 9px; background: #143e43e8; color: #fff; font-size: 11px; line-height: 1.4; z-index: 2; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__difficulty { max-width: calc(100% - 78px); }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__favourite { top: auto; bottom: 43px; right: 12px; width: auto; height: auto; padding: 4px 7px; border-radius: 6px; background: #143e43e8; color: #fff; }
  :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__favourite > svg { display: none; }
  .tk-mobile-editorial-label { display: inline; font-size: 10px; }
  .tk-mobile-card-save { display: block; position: absolute; z-index: 3; top: 12px; right: 12px; margin: 0; }
  .tk-mobile-tour-save { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce6eb; border-radius: 50%; background: #fff; color: #006887; }
  .tk-mobile-tour-save svg { width: 21px; height: 21px; }
  .tk-mobile-tour-save[aria-pressed="true"] { background: #006887; border-color: #006887; color: #fff; }
  .tk-mobile-tour-save[aria-pressed="true"] svg { fill: currentColor; }
  .tk-mobile-tour-save:disabled { opacity: .6; cursor: wait; }
  .tk-mobile-tour-save:active { transform: scale(.96); }
  body.dark .tk-mobile-filter-trigger { background: #23262f; border-color: #353945; color: #80c9db; }
  body.dark .tk-mobile-active-label, body.dark .tk-mobile-favorite-status { background: #254550; color: #80c9db; }
  body.dark .tk-mobile-filter-message { color: #ffb3a8; }
  body.dark :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) :is(.tk-tour-result-card__link,.tk-tour-result-card__stats) { border-color: #353945; }
  body.dark :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) .tk-detailed-results-grid .tk-tour-result-card__stats strong { color: #eff7fa; }
  body.dark :is(.page-template-pagetemplate-tour-search-detailed,.page-template-pagetemplate-taxonomylist) :is(.tk-tour-result-card__stats small,.tk-tour-result-card__heading p,.tk-mobile-tour-duration) { color: #b0c5cc; }
  @keyframes tk-mobile-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { dialog.tk-mobile-sheet, .tk-mobile-tour-save { transition: none; } .tk-mobile-dialog__footer .btn.is-loading::before { animation: none; } }
}
