/* Shared interaction feedback; Leaflet owns its positioning/transforms. */
@media all {
  :root { --motion-ease:cubic-bezier(.22,1,.36,1); }
  :where(button,a[href],summary,[role="button"],label[for]):not(.leaflet-container *) {
    -webkit-tap-highlight-color:transparent;
    transition:scale 160ms var(--motion-ease),translate 240ms var(--motion-ease),background-color 200ms ease,color 200ms ease,border-color 200ms ease,box-shadow 240ms ease,opacity 200ms ease,filter 200ms ease;
  }
  :where(button,a[href],summary,[role="button"],label[for]):not(:disabled):not([aria-disabled="true"]):not(.leaflet-container *):active { scale:.975; }
  :where(button,a[href],summary,[role="button"]):focus-visible { outline:2px solid #ffd43b;outline-offset:4px; }
  :where(input,textarea,select,.mobile-field,.toggle-track) { transition:background-color 200ms ease,border-color 200ms ease,box-shadow 200ms ease; }
  .toggle-track:after { transition:transform 240ms var(--motion-ease),background-color 200ms ease; }
  .story-card .story-cover { transition:border-color 240ms ease,box-shadow 240ms ease; }
  .mobile-dock a .icon { transition:scale 180ms var(--motion-ease),color 200ms ease; }
  .mobile-dock a:active .icon { scale:.9; }
  .motion-closing { pointer-events:none; }
  dialog[open]::backdrop { animation:mobile-backdrop-in 280ms ease both; }
  dialog.motion-closing::backdrop { animation:mobile-backdrop-out 180ms ease both; }
  body:not(:has([data-address-app])) #main { animation:mobile-content-in 280ms var(--motion-ease); }
  .address-toolbar { animation:mobile-fade-in 260ms ease; }
  .address-confirm-panel { animation:mobile-sheet-in 320ms var(--motion-ease); }
  #address-results:not([hidden]),.notice:not([hidden]) { animation:mobile-content-in 220ms var(--motion-ease); }
  @keyframes mobile-content-in { from { opacity:0;translate:0 7px; } to { opacity:1;translate:0 0; } }
  @keyframes mobile-fade-in { from { opacity:0; } to { opacity:1; } }
  @keyframes mobile-sheet-in { from { opacity:0;translate:0 24px; } to { opacity:1;translate:0 0; } }
  @keyframes mobile-backdrop-in { from { opacity:0; } to { opacity:1; } }
  @keyframes mobile-backdrop-out { from { opacity:1; } to { opacity:0; } }
}
/* Explicit card/icon motion: background transitions alone were barely visible. */
.catalog-coming{font-family:inherit;cursor:default;-webkit-appearance:none;appearance:none}
.mobile-dock a,.catalog-filters>a,.catalog-coming,.restaurant-choice{transition:scale 180ms var(--motion-ease),translate 260ms var(--motion-ease),background-color 200ms ease,color 200ms ease,box-shadow 240ms ease}
.mobile-category-art,.restaurant-choice-image{transition:scale 240ms var(--motion-ease),translate 260ms var(--motion-ease),rotate 260ms var(--motion-ease),border-color 200ms ease,box-shadow 240ms ease,background-color 200ms ease,opacity 200ms ease}
.mobile-dock a .icon{transition:scale 240ms var(--motion-ease),translate 260ms var(--motion-ease),rotate 260ms var(--motion-ease),color 200ms ease}
.mobile-dock a span,.catalog-filters strong{transition:translate 240ms var(--motion-ease),color 200ms ease}
.mobile-dock a[aria-current=page] .icon{animation:motion-nav-arrive 420ms var(--motion-ease)}
.mobile-dock a:focus-visible{background:#ffd43b14;color:#ffd43b}
.catalog-filters>:focus-visible .mobile-category-art{translate:0 -4px;scale:1.045;box-shadow:0 6px 18px #0003,0 0 0 2px #ffd43b77}
.restaurant-choice:focus-visible .restaurant-choice-image{translate:0 -4px;box-shadow:0 8px 24px #0004,0 0 0 2px #ffd43b88}
:is(button,a[href],summary,[role=button]).motion-pressing:not(.leaflet-container *){scale:.94}
.mobile-dock a.motion-pressing .icon{scale:.86;translate:0 1px}
.catalog-filters>.motion-pressing .mobile-category-art{scale:.92;rotate:-3deg}
.restaurant-choice.motion-pressing .restaurant-choice-image{scale:.975;translate:0 1px}
@media(hover:hover) and (pointer:fine){
 :is(button,a[href],summary,[role=button]):not(:disabled):not([aria-disabled=true]):not(.leaflet-container *):hover{translate:0 -2px;filter:brightness(1.07)}
 .mobile-dock a:hover{background:#ffd43b14;color:#ffd43b;box-shadow:inset 0 0 0 1px #ffd43b30}
 .mobile-dock a:hover .icon{translate:0 -4px;scale:1.12;rotate:-6deg}
 .mobile-dock a:hover span{translate:0 -1px}
 .catalog-filters>:is(:hover,:focus-visible) .mobile-category-art{translate:0 -5px;scale:1.055;rotate:-3deg;border-color:#ffd43b99;box-shadow:0 7px 18px #0003,0 0 0 1px #ffd43b55;opacity:1}
 .catalog-filters>:is(:hover,:focus-visible) strong{color:#ffd43b;translate:0 -1px}
 .restaurant-choice:hover .restaurant-choice-image{translate:0 -4px;box-shadow:0 8px 24px #0004,0 0 0 2px #ffd43b88}
}
.motion-notice{position:fixed;z-index:90;left:50%;bottom:calc(98px + env(safe-area-inset-bottom));translate:-50% 8px;width:max-content;max-width:calc(100vw - 32px);padding:13px 18px;border:1px solid #66514b;border-radius:16px;background:#352c2cf5;color:#fff7ed;font-size:14px;line-height:1.4;box-shadow:0 8px 30px #0005;pointer-events:none;opacity:0;transition:opacity 180ms ease,translate 240ms var(--motion-ease);text-align:center}
.motion-notice.is-visible{opacity:1;translate:-50% 0}
@keyframes motion-nav-arrive{0%{scale:.8;translate:0 3px}60%{scale:1.13;translate:0 -3px}100%{scale:1;translate:0 0}}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important; }
  :where(button,a[href],summary,[role="button"],label[for]):active,.mobile-dock a:active .icon { scale:none!important; }
  :is(button,a[href],summary,[role=button]):not(.leaflet-container *){scale:none!important;translate:none!important}
  .motion-pressing,.mobile-category-art,.restaurant-choice-image,.mobile-dock a,.mobile-dock a .icon,.mobile-dock a span,.catalog-filters strong{scale:none!important;rotate:none!important;translate:none!important}
}
