/* Selected, saved and hovered are three different states. */
.tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button) {--tst-save-background:var(--tst-save-surface);--tst-save-border:var(--tst-save-edge);min-width:var(--tst-touch-min);min-height:var(--tst-touch-min);flex:none;background:var(--tst-save-background)!important;border:var(--tst-save-border-width) solid var(--tst-save-border)!important;color:var(--tst-ink)!important;box-shadow:none}
.tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button)>.tst-icon {filter:brightness(0)!important}
/* Icon-only Save and its choose-schedule fallback share one circular shape. */
.tst-redesign :is(button.tstd-save--icon,.tst-mobile-save,.tst-gallery-save>.button) {width:var(--tst-touch-min);height:var(--tst-touch-min);min-width:var(--tst-touch-min);min-height:var(--tst-touch-min);padding:0;display:grid;place-items:center;border-radius:var(--tst-radius-round)}
.tst-redesign button.tstd-save--icon>span {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tst-redesign button.tstd-save[aria-pressed=true] {--tst-save-background:var(--tst-save-selected-surface);--tst-save-border:var(--tst-save-selected-surface);color:var(--tst-on-selection)!important}
.tst-redesign button.tstd-save[aria-busy=true] {opacity:.65;cursor:progress}
.tst-redesign button.tstd-save--icon>.tst-icon,
.tst-redesign .tst-mobile-save>.tst-icon,
.tst-redesign .tst-gallery-save>.button>.tst-icon,
.tst-redesign .nav-tools .icon-button .tst-icon {width:var(--tst-icon-glyph-size);height:var(--tst-icon-glyph-size);flex:none}
.tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button,.nav-tools .icon-button):focus-visible {outline:2px solid var(--tst-focus);outline-offset:2px}
/* Shared mobile rail: context, primary action, then the existing saved-control-icon.
   Native Woo form specificity is included so both consumers resolve to the same geometry. */
@media(max-width:900px) {
  body.tst-redesign {--tst-feedback-bottom:calc(var(--tst-dock-clearance) + var(--tst-feedback-gap) + env(safe-area-inset-bottom))}
  body.tst-redesign:has(:is([data-floating-cart],.tst-event-mobile-actions)) {--tst-feedback-bottom:calc(var(--tst-dock-clearance) + var(--tst-action-dock-gap) + var(--tst-action-bar-height) + var(--tst-feedback-gap) + env(safe-area-inset-bottom))}
  body.tst-redesign:has(:is([data-floating-cart],.tst-event-mobile-actions)) {padding-bottom:calc(var(--tst-dock-clearance) + var(--tst-action-dock-gap) + var(--tst-action-bar-height) + var(--tst-space-4) + env(safe-area-inset-bottom));scroll-padding-bottom:calc(var(--tst-dock-clearance) + var(--tst-action-dock-gap) + var(--tst-action-bar-height) + var(--tst-space-4) + env(safe-area-inset-bottom))}
  .tst-redesign :is(.woocommerce div.tst-product-detail form.cart [data-floating-cart],.tst-event-mobile-actions) {position:fixed;left:max(var(--tst-dock-inset-inline),env(safe-area-inset-left));right:max(var(--tst-dock-inset-inline),env(safe-area-inset-right));max-width:var(--tst-action-bar-max-width);margin-inline:auto;bottom:calc(var(--tst-dock-clearance) + var(--tst-action-dock-gap) + env(safe-area-inset-bottom));z-index:45;width:auto;padding:var(--tst-action-bar-padding);display:flex;align-items:center;gap:var(--tst-action-bar-gap);background:var(--tst-surface);border:1px solid var(--tst-line);border-radius:var(--tst-radius-card);box-shadow:var(--tst-shadow-float)}
  .tst-redesign :is(.woocommerce div.tst-product-detail form.cart [data-floating-cart],.tst-event-mobile-actions)>:is(.single_add_to_cart_button,.tst-action-primary) {float:none;min-height:var(--tst-control-height);font-size:var(--tst-type-label);line-height:var(--tst-leading-title);overflow-wrap:anywhere}
  .tst-redesign :is(.woocommerce div.tst-product-detail form.cart [data-floating-cart],.tst-event-mobile-actions)>:is(.single_add_to_cart_button,.tst-action-primary):not(.button--fit) {flex:1;min-width:0;max-width:none;padding:var(--tst-space-2)}
  .tst-redesign .tst-event-mobile-actions {flex-wrap:wrap}
  .tst-redesign .tst-event-mobile-actions>.button--fit {flex:0 1 auto;max-width:calc(100% - var(--tst-touch-min) - var(--tst-action-bar-gap))}
  .tst-redesign :is(.woocommerce div.tst-product-detail form.cart [data-floating-cart],.tst-event-mobile-actions)>:is(.tstd-save--icon,.tst-mobile-save) {position:static;display:grid;place-items:center;flex:none;margin:0;padding:0;min-width:var(--tst-touch-min);width:var(--tst-touch-min);height:var(--tst-touch-min);min-height:var(--tst-touch-min);border:1px solid var(--tst-line);background:var(--tst-surface)}
  .tst-redesign :is(.woocommerce div.tst-product-detail form.cart [data-floating-cart],.tst-event-mobile-actions):has(:focus-visible) {transition:none}
}
@media(prefers-reduced-motion:reduce) {
  .tst-redesign :is(.woocommerce div.tst-product-detail form.cart [data-floating-cart],.tst-event-mobile-actions) {transition:none}
}

/* Explicit profile CTA variant of the shared save control. */
.tst-redesign button.tstd-save--profile {display:inline-flex;align-items:center;justify-content:center;gap:var(--tst-space-2);min-height:var(--tst-control-height);padding:var(--tst-space-3) var(--tst-space-5);white-space:nowrap}
/* Explicit quiet follow variant for IP cards; same saved identity and state machine. */
/* Map rows share one renderer; a parent material may soften their surface/edge. */
.tst-redesign .tstd-map-row {padding:var(--tst-space-3);grid-template-columns:minmax(0,1fr) var(--tst-touch-min);gap:var(--tst-space-2);background:var(--tst-surface);border:var(--tst-border-brand) solid var(--tst-card-border);border-radius:var(--tst-radius-card-compact);box-shadow:var(--tst-shadow-pop);transition:translate var(--tst-duration-ui) var(--tst-ease-out),box-shadow var(--tst-duration-ui) var(--tst-ease-out),background-color var(--tst-duration-ui)}
.tst-redesign .tstd-map-workspace.is-overlay .tstd-map-results-scroll .tstd-grid {padding:var(--tst-space-1) var(--tst-space-2) var(--tst-space-2) var(--tst-space-1);gap:var(--tst-space-3)}
.tst-redesign .tstd-map-preview {border:var(--tst-border-brand) solid var(--tst-card-border);border-radius:var(--tst-radius-card-compact);box-shadow:var(--tst-shadow-pop)}
.tst-redesign .tstd-map-stage #tstd-map-details:not(:empty) {border-radius:var(--tst-radius-card-compact);box-shadow:var(--tst-shadow-pop)}
.tst-redesign #tstd-map-details>.tstd-map-preview {box-shadow:none}
.tst-redesign .tstd-preview-summary>img {height:auto;aspect-ratio:1;object-fit:cover;border-radius:var(--tst-radius-thumbnail)}
.tst-redesign .tstd-preview-summary:not(:has(>img)) {grid-template-columns:minmax(0,1fr)}
.tst-redesign .tstd-map-row img.tstd-map-thumb {height:64px;width:64px;aspect-ratio:1;object-fit:cover;border-radius:var(--tst-radius-thumbnail)}
/* Venue-picker rows are an explicit compact variant of the same shared row. */
.tst-redesign .tstd-map-row.tstd-map-row--venue img.tstd-map-thumb{width:48px;height:48px}
.tst-redesign .tstd-map-row.tstd-map-row--venue{padding:var(--tst-space-2,8px)}
.tst-redesign .tstd-map-row.tstd-map-row--venue :is(p,.tstd-map-row-state){font-size:var(--tst-type-caption,12px);line-height:var(--tst-leading-ui,1.5)}
.tst-redesign .tstd-map-row .tstd-event-link {border-radius:var(--tst-radius-thumbnail)}
.tst-redesign .tstd-map-row .tstd-event-link:focus-visible {outline:2px solid var(--tst-focus);outline-offset:4px}
.tst-redesign .tstd-map-row:has(.tstd-event-link:focus-visible) {box-shadow:var(--tst-shadow-pop-raised)}
.tst-redesign .tstd-map-row h3 {font-size:var(--tst-type-label);line-height:var(--tst-leading-title);margin:0 0 var(--tst-space-1)}
.tst-redesign .tstd-map-row p {font-size:var(--tst-type-label);line-height:var(--tst-leading-ui);margin:var(--tst-space-half) 0}
.tst-redesign .tstd-map-row .tstd-map-meta {flex-wrap:wrap}
.tst-redesign .tstd-map-row .tstd-map-fee {font-family:var(--tst-font-display);font-weight:700;max-width:100%;overflow-wrap:anywhere}
.tst-redesign .tstd-map-row .tstd-map-venue {flex:1 1 auto}
.tst-redesign .tstd-map-row-state {display:block;font-size:var(--tst-type-caption);font-weight:600;line-height:var(--tst-leading-ui);margin-top:0;color:var(--tst-muted)}
.tst-redesign .tstd-map-row.is-selected {background:var(--tst-selection-surface);border-color:var(--tst-ink)}
.tst-redesign .tstd-map-row.is-selected .tstd-map-row-state {color:var(--tst-ink)}
/* Explicit map-result-outline variant: same card, full-width supporting details. */
.tst-redesign .tstd-map-row--outline {position:relative;grid-template-columns:minmax(0,1fr)}
.tst-redesign .tstd-map-row--outline>.tstd-event-link {grid-template-columns:minmax(0,1fr);row-gap:var(--tst-space-2)}
.tst-redesign .tstd-map-row--outline>.tstd-event-link:has(.tstd-map-thumb) {grid-template-columns:64px minmax(0,1fr)}
.tst-redesign .tstd-map-row--outline .tstd-map-copy {padding-inline-end:calc(var(--tst-touch-min) + var(--tst-space-2))}
.tst-redesign .tstd-map-row--outline .tstd-map-row-details {grid-column:1/-1;min-width:0;display:grid;gap:var(--tst-space-1)}
.tst-redesign .tstd-map-row--outline :is(p,small) {font-size:var(--tst-type-caption);line-height:var(--tst-leading-ui);margin:0}
.tst-redesign .tstd-map-row--outline .tstd-map-meta {display:flex;align-items:baseline;flex-wrap:wrap;column-gap:var(--tst-space-2);row-gap:var(--tst-space-1)}
.tst-redesign .tstd-map-row--outline .tstd-map-meta .tstd-map-venue {flex:1 1 auto}
.tst-redesign .tstd-map-row--outline>.tstd-save {position:absolute;inset-block-start:var(--tst-space-3);inset-inline-end:var(--tst-space-3)}
@media(hover:hover) and (pointer:fine) {
  .tst-redesign .tstd-map-row:not(.is-selected):has(.tstd-event-link:hover) {border-color:var(--tst-card-border-hover)}
  .tst-redesign .tstd-map-row .tstd-event-link:hover h3 {text-decoration:underline;text-underline-offset:3px}
  .tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button):not([aria-pressed=true]):not(:disabled):not([aria-disabled=true]):not([aria-busy=true]):hover {--tst-save-background:var(--tst-save-hover-surface)}
}
.tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button):not([aria-pressed=true]):not(:disabled):not([aria-disabled=true]):not([aria-busy=true]):active {--tst-save-background:var(--tst-save-hover-surface)}
.tst-redesign .tstd-map-row:has(.tstd-event-link:active) {translate:none;box-shadow:var(--tst-shadow-pop-pressed)}
@media(prefers-reduced-motion:reduce) {
  .tst-redesign .tstd-map-row {translate:none!important;transition:none!important}
}
/* Screen-level mode and city controls stay visible independently of the quick rail. */
.tstd-view-modes{display:flex;align-items:stretch;gap:var(--tst-space-1);grid-column:1/-1;min-width:0;padding:var(--tst-space-1);border:1px solid var(--tst-line);border-radius:var(--tst-radius-pill);background:var(--tst-surface);width:max-content;max-width:100%}
.tstd-view-modes a{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--tst-touch-min);min-width:var(--tst-touch-min);min-height:var(--tst-touch-min);padding:0;border-radius:var(--tst-radius-round);color:var(--tst-ink);text-decoration:none}
.tstd-view-modes a[aria-current=page]{background:var(--tst-selection-surface);font-weight:600}
.tstd-view-modes .tst-icon{width:var(--tst-icon-glyph-size);height:var(--tst-icon-glyph-size);flex:none}
.tstd-view-modes a:focus-visible{outline:2px solid var(--tst-focus);outline-offset:2px}
.tstd-map-context{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--tst-space-2);min-width:0}
.tstd-map-context>[data-map-city]{display:inline-flex;align-items:center;gap:var(--tst-space-1);max-width:44%;min-height:var(--tst-touch-min);padding:var(--tst-space-2);font-size:var(--tst-type-control);border:1px solid var(--tst-line);border-radius:var(--tst-radius-pill);background:var(--tst-surface);color:var(--tst-ink)}
.tstd-map-context>[data-map-city] .tst-icon{width:var(--tst-space-4);height:var(--tst-space-4);flex:none}
.tstd-map-context .tstd-view-modes{margin-left:auto;flex:0 1 auto;min-width:0}
@media(max-width:360px){.tstd-map-context>[data-map-city]{font-size:var(--tst-type-caption)}}
/* Search has an explicit submit at every viewport. City and filters form the second row. */
.tst-redesign .tstd-home-search {margin-bottom:var(--tst-search-content-gap)}
.tst-redesign :is(.tstd-search-field,.tstd-city) {min-height:var(--tst-search-height)}
.tst-redesign .tstd-search-field input[type=search],
.tst-redesign .tstd-city select:not([multiple]):not([size]) {min-height:var(--tst-search-control-height);padding-block:var(--tst-space-1);line-height:var(--tst-leading-ui);font-size:var(--tst-type-search-filter)!important}
.tst-redesign #tstd-filters {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--tst-space-2);margin-bottom:var(--tst-space-5)}
.tst-redesign #tstd-filters .tstd-search-row {display:contents}
.tst-redesign #tstd-filters .tstd-search-field {grid-column:1/-1}
.tst-redesign .tstd-search-field>.tst-icon {display:none}
.tst-redesign .tstd-search-field input {padding-left:var(--tst-space-3)!important;padding-right:var(--tst-space-2)!important;font-size:var(--tst-type-search-filter)!important}
.tst-redesign .tstd-search-field .tstd-search-submit {display:inline-flex!important;min-width:var(--tst-touch-min);min-height:var(--tst-search-control-height);width:var(--tst-touch-min);align-self:center;margin-right:var(--tst-space-half);color:var(--tst-accent)}
.tst-redesign #tstd-filters .tstd-city {grid-column:1;grid-row:2}
.tst-redesign #tstd-filters .tstd-city>.tst-icon {display:block;width:18px;flex:none;margin-left:var(--tst-space-3)}
.tst-redesign #tstd-filters .tstd-city select {padding-block:var(--tst-space-1);padding-left:var(--tst-space-2);min-height:var(--tst-search-control-height);font-size:var(--tst-type-search-filter)!important}
.tst-redesign .tstd-filter-trigger {grid-column:2;grid-row:2;font-size:var(--tst-type-search-filter);min-height:var(--tst-search-height);padding:var(--tst-space-2) var(--tst-space-3);gap:var(--tst-space-2);border-radius:var(--tst-radius-control)}
.tst-redesign #tstd-filter-count:empty {display:none}
.tst-redesign #tstd-filter-count:not(:empty) {background:var(--tst-accent);color:white;min-width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:var(--tst-type-caption)}
.tst-redesign #tstd-active-filters {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:var(--tst-space-2)}
.tst-redesign #tstd-active-filters[hidden] {display:none}
.tst-redesign .tstd-filter-chip {min-height:44px;padding:var(--tst-space-2) var(--tst-space-2);gap:var(--tst-space-2);font-size:var(--tst-type-label);border-radius:var(--tst-radius-control);background:var(--tst-accent-soft);text-align:left}
.tst-redesign .tstd-filter-chip .tst-icon {width:16px;height:16px;flex:none}
/* Quiet removable pill variant; selected destination pills retain their accent fill. */
.tst-redesign .tstd-filter-chip--pill {display:inline-flex;align-items:center;min-height:var(--tst-touch-min);max-width:100%;padding:var(--tst-space-2) var(--tst-space-3);gap:var(--tst-space-2);border:1px solid var(--tst-line);border-radius:var(--tst-radius-pill);background:var(--tst-surface-subtle);color:var(--tst-ink);font-size:var(--tst-type-label);overflow-wrap:anywhere}
.tst-redesign .tstd-filter-chip--pill:hover {border-color:var(--tst-accent);background:var(--tst-accent-soft)}
/* Filter options: separate solid pills on Discovery and Map; rail stays unframed. */
.tst-redesign :is(.tstd-quick-filters,.tstd-map-quick,.tstd-quick-date-options) {--tst-filter-icon-size:var(--tst-space-4)}
.tst-redesign #tstd-filters.tstd-filters--quick .tstd-city {grid-column:1/-1}
.tst-redesign :is(.tstd-quick-filters,.tstd-map-quick) {grid-column:1/-1;min-width:0;display:flex;align-items:center;gap:var(--tst-space-2);overflow-x:auto;overscroll-behavior-x:contain;padding:var(--tst-space-2) var(--tst-space-1);scroll-padding-inline:var(--tst-space-1)}
.tst-redesign :is(.tstd-quick-filters,.tstd-map-workspace .tstd-map-quick)>button {display:inline-flex;flex:none;align-items:center;gap:var(--tst-space-1);min-height:var(--tst-touch-min);padding:var(--tst-space-2);border:1px solid var(--tst-line);border-radius:var(--tst-radius-pill);background:var(--tst-surface);color:var(--tst-ink);font-size:var(--tst-type-filter-chip);line-height:var(--tst-leading-ui);white-space:nowrap}
.tst-redesign :is(.tstd-quick-filters,.tstd-map-workspace .tstd-map-quick)>button[aria-pressed="true"] {background:var(--tst-nav-selected);color:var(--tst-accent);border-color:transparent}
.tst-redesign .tstd-quick-filters [data-discovery-date-toggle].has-date {border-color:transparent;background:var(--tst-nav-selected);color:var(--tst-ink)}
.tst-redesign :is(.tstd-quick-filters,.tstd-map-quick,.tstd-quick-date-options) .tst-icon {width:var(--tst-filter-icon-size);height:var(--tst-filter-icon-size);flex:none}
.tst-navigation-icon--filter {width:var(--tst-filter-icon-size);height:var(--tst-filter-icon-size)}
.has-date>.tst-navigation-icon--filter>.tst-navigation-icon__line {opacity:0}
.has-date>.tst-navigation-icon--filter>.tst-navigation-icon__solid {opacity:1}
.tst-redesign .tstd-quick-date-options {position:fixed;inset:auto;margin:0;width:max-content;min-width:180px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 16px);overflow:auto;padding:var(--tst-space-2);border:1px solid var(--tst-line);border-radius:var(--tst-radius-card);background:var(--tst-surface);color:var(--tst-ink);box-shadow:var(--tst-shadow-float)}
.tst-redesign .tstd-quick-date-options:popover-open {display:grid;gap:var(--tst-space-1)}
.tst-redesign .tstd-quick-date-options button {display:flex;align-items:center;justify-content:flex-start;gap:var(--tst-space-2);min-height:var(--tst-touch-min);padding:var(--tst-space-2) var(--tst-space-3);border:0;border-radius:var(--tst-radius-control);font-size:var(--tst-type-filter-chip);line-height:var(--tst-leading-ui);background:transparent;color:var(--tst-ink);text-align:left}
.tst-redesign .tstd-quick-date-options button[aria-pressed="true"] {background:var(--tst-nav-selected);color:var(--tst-accent)}
@media(forced-colors:active) {.tst-redesign :is(.tstd-quick-date-options button[aria-pressed="true"],.tstd-quick-filters .has-date,.tstd-map-quick button[aria-pressed="true"]) {outline:2px solid Highlight;outline-offset:-3px}}
/* A native modal provides focus containment, Escape and a readable shared filter surface. */
.tst-redesign dialog#tstd-filter-panel {position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);height:fit-content;padding:0;border:1px solid var(--tst-line);border-radius:var(--tst-radius-card);overflow:hidden;color:var(--tst-ink)}
.tst-redesign dialog#tstd-filter-panel[open] {display:flex;flex-direction:column}
.tst-redesign dialog#tstd-filter-panel[hidden] {display:none}
.tst-redesign #tstd-filter-panel::backdrop {background:var(--tst-overlay)}
.tst-redesign #tstd-filter-panel .tstd-filter-heading {flex:none;padding:var(--tst-space-gutter) var(--tst-space-5);margin:0;border-bottom:1px solid var(--tst-line);align-items:flex-start;gap:var(--tst-space-3)}
.tst-redesign #tstd-filter-title {font-size:var(--tst-type-section);line-height:var(--tst-leading-heading);margin:0 0 var(--tst-space-1)}
.tst-redesign .tstd-filter-heading p {font-size:var(--tst-type-label);color:var(--tst-muted);margin:0}
.tst-redesign #tstd-filter-panel [data-filter-close] {min-width:44px;min-height:44px;padding:0;flex:none}
.tst-redesign .tstd-filter-body {padding:var(--tst-space-gutter) var(--tst-space-5);overflow:auto;min-height:0;overscroll-behavior:contain}
.tst-redesign #tstd-filter-panel .tstd-extra {display:grid;grid-template-columns:1fr 1fr;gap:var(--tst-space-gutter) var(--tst-space-4)}
.tst-redesign #tstd-filter-panel .tstd-extra>label {font-size:var(--tst-type-label);font-weight:500}
.tst-redesign #tstd-filter-panel .tstd-extra input,.tst-redesign #tstd-filter-panel .tstd-extra select {margin-top:var(--tst-space-1);font-size:var(--tst-type-search-filter);line-height:var(--tst-leading-ui)}
.tst-redesign #tstd-filter-panel .tstd-check {align-self:end;display:flex;align-items:center;gap:var(--tst-space-2);min-height:48px}
.tst-redesign #tstd-filter-panel .tstd-check input {flex:none;width:20px;height:20px;margin:0}
.tst-redesign .tstd-date-presets {border:0;padding:0;margin:0 0 var(--tst-space-5);display:flex;flex-wrap:wrap;gap:var(--tst-space-2)}
.tst-redesign .tstd-date-presets legend {font-size:var(--tst-type-label);font-weight:500;margin-bottom:var(--tst-space-2)}
.tst-redesign .tstd-date-presets button {font-size:var(--tst-type-label);min-height:44px;padding:var(--tst-space-2) var(--tst-space-3)}
.tst-redesign .tstd-filter-hint {font-size:var(--tst-type-caption);line-height:var(--tst-leading-ui);color:var(--tst-muted);margin:calc(-1 * var(--tst-space-3)) 0 var(--tst-space-gutter)}
.tst-redesign #tstd-filter-panel .tstd-filter-actions {flex:none;display:flex;justify-content:space-between;gap:var(--tst-space-3);margin:0;padding:var(--tst-space-4) var(--tst-space-5);border-top:1px solid var(--tst-line)}
.tst-redesign #tstd-filter-panel .tstd-filter-actions button {font-size:var(--tst-type-label);padding:var(--tst-space-3) var(--tst-space-4);min-height:48px}


.tst-redesign #tstd-filter-error {font-size:var(--tst-type-label);color:var(--tst-error);margin:var(--tst-space-3) 0 0}
.tst-redesign #tstd-filter-error:empty {display:none}
.tst-redesign .tstd-map-workspace .tstd-intro h1 {font-size:var(--tst-type-page)}
.tst-redesign .tstd-map-workspace .tstd-intro {margin-bottom:var(--tst-space-gutter)}
.tst-redesign .tstd-map-workspace .tstd-intro p {font-size:var(--tst-type-label)}
.tst-redesign .has-map-error #tstd-map {visibility:hidden;pointer-events:none}
.tst-redesign .has-map-error :is(.tstd-map-tools,#tstd-search-area) {display:none!important}
.tst-redesign #tstd-map-fallback {position:absolute;z-index:403;inset:var(--tstd-controls-height,80px) var(--tst-space-3) auto;max-width:440px;margin-inline:auto;padding:var(--tst-space-5);text-align:center}
.tst-redesign #tstd-map-fallback[hidden] {display:none}
.tst-redesign #tstd-map-fallback h2 {font-size:var(--tst-type-section)}
.tst-redesign #tstd-map-fallback p {font-size:var(--tst-type-label);color:var(--tst-muted)}
.tst-redesign #tstd-map-fallback button {font-size:var(--tst-type-label);min-height:var(--tst-control-height)}
/* Map variant of the same search/filter renderer: one row, city in the native dialog. */
.tst-redesign .tstd-map-workspace .tstd-map-stage :is(.tstd-map-preview-close,.tstd-map-tools button){display:grid;place-items:center;padding:0;border-radius:var(--tst-radius-round)}
.tst-redesign .tstd-map-preview-close .tst-icon{width:var(--tst-space-5);height:var(--tst-space-5);flex:none}
.tst-redesign .tstd-map-expand{display:inline-flex;align-items:center;justify-content:center;gap:var(--tst-space-2);width:auto;padding:var(--tst-space-2) var(--tst-space-3);border-radius:var(--tst-radius-control);font-size:var(--tst-type-label);white-space:nowrap}
.tst-redesign .tstd-map-expand[hidden]{display:none}
.tst-redesign .has-map-error .tstd-map-expand[aria-pressed=false]{display:none}
.tst-redesign .tstd-map-expand .tst-icon{width:var(--tst-icon-glyph-size);height:var(--tst-icon-glyph-size);flex:none}

.tst-redesign #tstd-filters.tstd-filters--map{grid-template-columns:minmax(0,1fr) var(--tst-search-height)}
.tst-redesign #tstd-filters.tstd-filters--map .tstd-search-field{grid-column:1;grid-row:1;min-width:0}
.tst-redesign #tstd-filters.tstd-filters--map .tstd-filter-trigger{grid-column:2;grid-row:1;position:relative;min-height:var(--tst-search-height);align-self:stretch;padding:0;gap:0;align-items:center;justify-content:center;background:var(--tst-surface);box-shadow:var(--tst-shadow-float)}
.tst-redesign .tstd-filters--map .tstd-filter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tst-redesign .tstd-filters--map #tstd-filter-count:not(:empty){position:absolute;right:0;top:0}
.tst-redesign .tstd-filters--map #tstd-active-filters{flex-wrap:nowrap;overflow:auto;max-width:100%;overscroll-behavior-x:contain}
.tst-redesign .tstd-filters--map .tstd-filter-chip{flex:none;white-space:nowrap}
.tst-redesign .tstd-filter-city{display:block;font-size:var(--tst-type-label);font-weight:500;margin-bottom:var(--tst-space-5)}
.tst-redesign #tstd-filter-panel .tstd-filter-city select{display:block;width:100%;margin-top:var(--tst-space-1);min-height:var(--tst-control-height);font-size:var(--tst-type-search-filter);line-height:var(--tst-leading-ui)}
/* Native account actions retain Woo URLs and authority; appearance communicates priority. */
.tst-redesign .woocommerce .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {white-space:normal}
.tst-redesign .woocommerce .woocommerce-orders-table .button {margin:var(--tst-space-1) var(--tst-space-2) var(--tst-space-1) 0!important;white-space:normal}
/* Order actions use .secondary / default Ink; cancel is a quiet destructive action. */
.tst-redesign .woocommerce .woocommerce-orders-table .button.cancel {background:transparent;border-color:transparent;color:var(--tst-error);box-shadow:none;translate:none;text-decoration:underline;text-underline-offset:3px}
.tst-redesign .tst-order-status {display:inline-flex;align-items:center;gap:var(--tst-space-1);font-size:var(--tst-type-caption);font-weight:600;line-height:var(--tst-leading-ui);padding:var(--tst-space-1) var(--tst-space-2);border-radius:var(--tst-radius-badge);background:var(--tst-surface-subtle);color:var(--tst-muted)}
.tst-redesign .tst-order-status .tst-icon {width:14px;height:14px;flex:none}
.tst-redesign .tst-order-status[data-status=failed] {background:var(--tst-error-soft);color:var(--tst-error)}
.tst-redesign .tst-order-status:is([data-status=pending],[data-status=on-hold],[data-status=processing]) {background:var(--tst-warning-soft);color:var(--tst-warning)}
.tst-redesign .tst-order-status[data-status=completed] {background:var(--tst-success-soft);color:var(--tst-success)}
.tst-redesign .woocommerce form .password-input {position:relative;display:block;width:100%}
.tst-redesign .woocommerce form .password-input input {padding-right:var(--tst-space-7)!important}
.tst-redesign .woocommerce form .password-input .show-password-input {position:absolute;top:50%!important;right:2px!important;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;background:transparent;border:0}
.tst-redesign .woocommerce form .show-password-input::after {margin:0}
@media(min-width:901px) {}
@media(max-width:900px) {
  .tst-redesign .has-map-error #tstd-map-fallback h2 {font-size:var(--tst-type-subheading)}
}
@media(max-width:600px) {
  .tst-redesign .tstd-search-row {grid-template-columns:minmax(0,1fr) 128px}
  .tst-redesign dialog#tstd-filter-panel {width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}
  .tst-redesign #tstd-filter-panel :is(.tstd-filter-heading,.tstd-filter-body,.tstd-filter-actions) {padding:var(--tst-space-4)}
  .tst-redesign #tstd-filter-panel .tstd-extra {gap:var(--tst-space-4) var(--tst-space-3)}
  .tst-redesign #tstd-filter-panel .tstd-filter-actions button {padding:var(--tst-space-2) var(--tst-space-3)}
  .tst-redesign #tstd-filter-panel .tstd-filter-actions .tst-icon {display:none}
  .tst-redesign .tst-order-row>.tst-order-status {grid-column:1}
}
@media(max-width:480px) {
  .tst-redesign #tstd-filter-panel .tstd-extra>label:nth-child(n+3) {grid-column:1/-1}
}
@media(forced-colors:active) {
  .tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button) {--tst-save-background:Canvas!important;--tst-save-border:CanvasText!important;color:CanvasText!important;box-shadow:none}
  .tst-redesign button.tstd-save[aria-pressed=true] {outline:2px solid Highlight}
  .tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button):focus-visible {outline-color:Highlight}
  .tst-redesign .tstd-map-row.is-selected {border-color:Highlight;outline:2px solid Highlight;outline-offset:-6px}
}
/* Forced-colors derives the preferred light/dark scheme from the Canvas palette.
   External black SVGs need inversion on a dark Canvas to remain visible. */
@media(forced-colors:active) and (prefers-color-scheme:dark) {
  .tst-redesign :is(button.tstd-save,.tst-mobile-save,.tst-gallery-save>.button)>.tst-icon {filter:brightness(0) invert(1)!important}
}

/* Previous/next controls shared by content carousels; hidden without enhancement. */
.tst-carousel-controls{display:flex;gap:var(--tst-space-1);flex:none}.tst-carousel-controls[hidden]{display:none}
.tst-carousel-controls button{display:grid;place-items:center;min-width:var(--tst-touch-min);min-height:var(--tst-touch-min);padding:var(--tst-space-2);background:var(--tst-surface);border:1px solid var(--tst-line)}
.tst-carousel-controls button:disabled{opacity:.4}
/* All card families share edge hints. The native rail and its scrollbar stay usable. */
.tst-carousel-viewport,.tst-scroll-fade--vertical{position:relative;min-width:0;isolation:isolate}
.tst-carousel-viewport{--tst-carousel-mask-left:0px;--tst-carousel-mask-right:0px}
.tst-carousel-viewport.has-previous{--tst-carousel-mask-left:var(--tst-carousel-fade-width)}
.tst-carousel-viewport.has-next{--tst-carousel-mask-right:var(--tst-carousel-fade-width)}
/* Fade the card itself to zero alpha, not a blurred copy above a sharp cut.
   The second, opaque bottom strip preserves the native horizontal scrollbar. */
.tst-carousel-viewport:is(.has-previous,.has-next)>.tst-carousel-rail{
 -webkit-mask-image:linear-gradient(to right,transparent,#000 var(--tst-carousel-mask-left),#000 calc(100% - var(--tst-carousel-mask-right)),transparent),linear-gradient(#000,#000);
 mask-image:linear-gradient(to right,transparent,#000 var(--tst-carousel-mask-left),#000 calc(100% - var(--tst-carousel-mask-right)),transparent),linear-gradient(#000,#000);
 -webkit-mask-size:100% 100%,100% var(--tst-space-4);mask-size:100% 100%,100% var(--tst-space-4);
 -webkit-mask-position:left top,left bottom;mask-position:left top,left bottom;
 -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
 -webkit-mask-composite:source-over;mask-composite:add;
}
.tst-scroll-fade--vertical::before,.tst-scroll-fade--vertical::after{content:"";position:absolute;z-index:5;pointer-events:none;opacity:0}
.tst-scroll-fade--vertical::before,.tst-scroll-fade--vertical::after{left:var(--tst-scroll-fade-inset);right:var(--tst-scroll-fade-inset);height:var(--tst-scroll-fade-size)}
.tst-scroll-fade--vertical::before{top:0;background:linear-gradient(to bottom,var(--tst-scroll-fade-surface),transparent)}
.tst-scroll-fade--vertical::after{bottom:0;background:linear-gradient(to top,var(--tst-scroll-fade-surface),transparent)}
.tst-scroll-fade--vertical.has-previous::before,.tst-scroll-fade--vertical.has-next::after{opacity:1}
/* Never veil a keyboard-focused rail, card link or Save control. */
.tst-carousel-viewport:has(:focus-visible)>.tst-carousel-rail{-webkit-mask-image:none;mask-image:none}
.tst-scroll-fade--vertical:has(:focus-visible)::before,.tst-scroll-fade--vertical:has(:focus-visible)::after{opacity:0}
@media(forced-colors:active),(prefers-contrast:more){.tst-scroll-fade--vertical::before,.tst-scroll-fade--vertical::after{display:none}}
@media(forced-colors:active),(prefers-contrast:more),(prefers-reduced-transparency:reduce){.tst-carousel-viewport:is(.has-previous,.has-next)>.tst-carousel-rail{-webkit-mask-image:none;mask-image:none}}
/* Desktop shelves show complete4/3card slots; keep their final card fully visible. */
@media(min-width:1200px){.tst-carousel-viewport:is(.has-previous,.has-next)>.tst-carousel-rail--shelf{-webkit-mask-image:none;mask-image:none}}
/* A shared city context belongs to the group, not to every card. Native GET is the fallback. */
.tst-redesign .tst-city-context{display:flex;align-items:center;flex-wrap:wrap;gap:var(--tst-space-1);margin:var(--tst-space-1) 0 0}
.tst-redesign .tst-city-context label{display:flex;align-items:center;gap:var(--tst-space-1);margin:0;min-width:0}
.tst-redesign .tst-city-context label>.tst-icon{width:16px;height:16px;flex:none}
.tst-redesign .tst-city-context select:not([multiple]):not([size]){font-size:var(--tst-type-search-filter);color:var(--tst-muted);min-height:var(--tst-touch-min);padding:var(--tst-space-2) var(--tst-space-5) var(--tst-space-2) 0;border:0;background-color:transparent;width:auto;max-width:100%}
.tst-redesign .tst-city-context button{min-width:var(--tst-touch-min);min-height:var(--tst-touch-min);padding:var(--tst-space-2);background:transparent;color:var(--tst-accent);border:0}
/* Explicit choice dialog shares form/action tokens; no location permission UI. */
.tst-redesign .tst-city-choice{box-sizing:border-box;width:min(480px,calc(100% - 2 * var(--tst-space-3)));max-width:none;max-height:calc(100dvh - 2 * var(--tst-space-5));margin:auto;padding:var(--tst-space-5);border:1px solid var(--tst-line);border-radius:var(--tst-radius-card);background:var(--tst-surface);color:var(--tst-ink);overflow:auto}
.tst-redesign .tst-city-choice[hidden]{display:none}
.tst-redesign .tst-city-choice::backdrop{background:var(--tst-overlay)}
.tst-redesign .tst-city-choice h2{margin:0;font-size:var(--tst-type-section);line-height:var(--tst-leading-heading)}
.tst-redesign .tst-city-choice h2:focus{outline:none} /* Programmatic reading target; interactive controls retain keyboard focus. */
.tst-redesign .tst-city-choice p{margin:var(--tst-space-3) 0 var(--tst-space-5);font-size:var(--tst-type-label);line-height:var(--tst-leading-body);color:var(--tst-muted)}
.tst-redesign .tst-city-choices{display:grid;gap:var(--tst-space-3)}
body.tst-redesign .tst-city-choices button.button{font-family:var(--tst-font-sans);display:flex;align-items:center;gap:var(--tst-space-3);width:100%;min-height:var(--tst-control-height);padding:var(--tst-space-4);font-size:var(--tst-type-body);text-align:left;white-space:normal}
.tst-redesign .tst-city-choices button>.tst-icon:last-child{margin-left:auto}
.tst-redesign .tst-city-later{display:block;min-height:var(--tst-touch-min);margin:0 auto;padding:var(--tst-space-2) var(--tst-space-4);background:transparent;color:var(--tst-muted);border:0;font-size:var(--tst-type-label)}
.tst-redesign .tst-city-choice--inline{margin:var(--tst-space-5) auto}
.tst-redesign .tst-card-city-context{color:var(--tst-muted);font-size:var(--tst-type-label);margin:var(--tst-space-2) 0 0}
.tst-carousel-rail>.tstd-empty{grid-column:1/-1;min-width:100%}
.tst-carousel-actions{display:flex;align-items:center;gap:var(--tst-space-4);flex:none}
/* Align the title itself with actions; city/description belongs on a separate row. */
.tst-redesign [data-carousel] .tst-carousel-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--tst-space-gutter);row-gap:var(--tst-space-1);align-items:center}
.tst-carousel-heading>div:first-child:not(.tst-carousel-controls){display:contents}
.tst-carousel-heading>div:first-child>:not(h2):not(h3){grid-column:1/-1}
.tst-redesign .tst-carousel-heading :is(h2,h3){grid-column:1;grid-row:1;min-width:0;margin:0;overflow-wrap:anywhere}
.tst-carousel-heading>.tst-carousel-actions,.tst-carousel-heading>.tst-carousel-controls{grid-column:2;grid-row:1}
.tst-carousel-heading:has(.tstd-kicker) .tstd-kicker{grid-row:1}
.tst-redesign .tst-carousel-heading:has(.tstd-kicker) :is(h2,h3),.tst-carousel-heading:has(.tstd-kicker)>.tst-carousel-actions{grid-row:2}
.tst-redesign .tst-carousel-heading :is(.tst-city-context,.tst-card-city-context){margin:0}
@media(max-width:600px){
 /* One browse action beside the title; touch and keyboard scroll the rail. */
 .tst-redesign [data-carousel] .tst-carousel-heading{column-gap:var(--tst-space-3)}
 .tst-carousel-heading .tstd-kicker{display:none}
 .tst-redesign .tst-carousel-heading:has(.tstd-kicker) :is(h2,h3),.tst-carousel-heading:has(.tstd-kicker)>.tst-carousel-actions{grid-row:1}
 .tst-redesign .tst-carousel-heading .tst-inline-link{white-space:nowrap;min-height:var(--tst-touch-min);font-size:var(--tst-type-caption)}
 .tst-carousel-heading .tst-inline-link>.tst-icon{display:none}
 .tst-redesign [data-carousel] .tst-carousel-controls{display:none}
}

.tst-redesign .tstd-filters--map :is(.tstd-search-submit,.tstd-filter-trigger)>.tst-icon{width:var(--tst-icon-glyph-size);height:var(--tst-icon-glyph-size);flex:none}
.tst-redesign .tstd-map-handle:focus-visible{outline:2px solid var(--tst-focus);outline-offset:-4px}

/* Dedicated map-only peek: bounded surface; full event details remain on the native route. */
.tst-redesign .tstd-map-peek {position:relative;box-sizing:border-box;width:100%;max-width:24rem;display:grid;gap:var(--tst-space-2);padding:var(--tst-space-3);background:var(--tst-surface);color:var(--tst-ink)}
.tst-redesign .tstd-map-stage #tstd-map-details:has(.tstd-map-peek) {max-width:24rem}
.tst-redesign .tstd-map-peek-close {position:absolute;inset-block-start:var(--tst-space-2);inset-inline-end:var(--tst-space-2);width:var(--tst-touch-min);min-height:var(--tst-touch-min);display:grid;place-items:center;padding:0;border:0;border-radius:var(--tst-radius-round);background:transparent;color:var(--tst-ink)}
.tst-redesign .tstd-map-peek-close .tst-icon {width:20px;height:20px}
.tst-redesign .tstd-peek-summary {display:grid;grid-template-columns:64px minmax(0,1fr);gap:var(--tst-space-3);padding-inline-end:var(--tst-touch-min);align-items:start}
.tst-redesign .tstd-peek-summary:not(:has(>img)) {grid-template-columns:minmax(0,1fr)}
.tst-redesign .tstd-peek-summary>img {width:64px;height:64px;object-fit:cover;border-radius:var(--tst-radius-thumbnail)}
.tst-redesign .tstd-peek-copy {min-width:0;overflow-wrap:anywhere}
.tst-redesign .tstd-peek-copy h3 {font-size:var(--tst-type-label);line-height:var(--tst-leading-title);margin:0 0 var(--tst-space-1)}
.tst-redesign .tstd-map-peek .tstd-map-organizer,.tst-redesign .tstd-map-peek small {font-size:var(--tst-type-caption);line-height:var(--tst-leading-ui);margin:0;color:var(--tst-muted)}
.tst-redesign .tstd-peek-facts {display:grid;gap:var(--tst-space-1)}
.tst-redesign .tstd-peek-fact-head {display:flex;align-items:center;justify-content:space-between;gap:var(--tst-space-2)}
.tst-redesign .tstd-peek-fact-head>p {flex:1}
.tst-redesign .tstd-peek-toggle {display:inline-flex;align-items:center;gap:var(--tst-space-1);min-height:var(--tst-touch-min);padding:0 var(--tst-space-1);border:0;background:transparent;color:var(--tst-ink);font-size:var(--tst-type-caption);white-space:nowrap}
.tst-redesign .tstd-peek-toggle>span {text-decoration:underline;text-underline-offset:var(--tst-space-1)}
.tst-redesign .tstd-peek-toggle .tst-icon {width:var(--tst-space-4);height:var(--tst-space-4);margin:0}
.tst-redesign .tstd-peek-toggle[aria-expanded="true"] .tst-icon {transform:rotate(180deg)}
.tst-redesign .tstd-map-peek [hidden] {display:none}
.tst-redesign .tstd-peek-facts p {display:flex;align-items:start;gap:var(--tst-space-2);margin:0;font-size:var(--tst-type-caption);line-height:var(--tst-leading-ui);overflow-wrap:anywhere}
.tst-redesign .tstd-peek-facts .tst-icon {width:var(--tst-space-4);height:var(--tst-space-4);flex:none;margin-top:var(--tst-space-half)}
.tst-redesign .tstd-peek-actions {display:grid;grid-template-columns:minmax(0,1fr) var(--tst-touch-min) auto;align-items:center;gap:var(--tst-space-2);padding-top:var(--tst-space-2);border-top:1px solid var(--tst-line)}
.tst-redesign .tstd-peek-actions:not(:has(.tstd-save)) {grid-template-columns:minmax(0,1fr) auto}
.tst-redesign .tstd-peek-actions .button {min-height:var(--tst-touch-min);padding:var(--tst-space-2) var(--tst-space-3);font-size:var(--tst-type-control)}
.tst-redesign .tstd-peek-back {display:inline-flex;align-items:center;gap:var(--tst-space-1);min-height:var(--tst-touch-min);padding:0 var(--tst-touch-min) 0 0;border:0;background:transparent;color:var(--tst-ink);font-size:var(--tst-type-caption);text-align:start}
.tst-redesign .tstd-peek-back .tst-icon {width:var(--tst-filter-icon-size);height:var(--tst-filter-icon-size);flex:none}
