/* HelloArtSF "shifting" layer: pieces of the page sit slightly off-square
   and jiggle to a new angle when you touch them. */
.ha-tilt {
	--tilt: 0deg;
	transform: rotate(var(--tilt));
	transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1);
	transform-origin: 50% 50%;
	will-change: transform;
}
.ha-tilt.is-jiggle { transform: rotate(var(--tilt-hover, 0deg)) translateY(-2px); }
.ha-map-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #555; margin: 6px 0 0; }
.ha-map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #111; vertical-align: -2px; margin-right: 5px; }
.ha-map-legend .lg-open { background: #e8452c; }
.ha-map-legend .lg-closed { background: #fff; }
.ha-map-legend .lg-you { background: #1a73e8; border-color: #1a73e8; }
@media (prefers-reduced-motion: reduce) {
	.ha-tilt, .ha-tilt.is-jiggle { transition: none; transform: rotate(var(--tilt)); }
	.ha-brand svg, .ha-brand span, header.wp-block-template-part > .wp-block-group { transition: none !important; }
}

/* Header: logo starts big, then pops smaller into place once you scroll (like Tokyo Art Beat) */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; background: #fff; }
body.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.wp-block-template-part { top: 0; } }
header.wp-block-template-part > .wp-block-group { transition: padding 380ms cubic-bezier(.34, 1.56, .64, 1); }
.ha-brand svg { width: 76px; height: 76px; transition: width 380ms cubic-bezier(.34, 1.56, .64, 1), height 380ms cubic-bezier(.34, 1.56, .64, 1), transform 380ms cubic-bezier(.34, 1.56, .64, 1); transform: rotate(-4deg); }
.ha-brand span { font-size: 44px !important; transition: font-size 380ms cubic-bezier(.34, 1.56, .64, 1); }
body.ha-scrolled header.wp-block-template-part > .wp-block-group { padding-top: 10px !important; padding-bottom: 10px !important; }
body.ha-scrolled .ha-brand svg { width: 34px; height: 34px; transform: rotate(0deg); }
body.ha-scrolled .ha-brand span { font-size: 24px !important; }
@media (max-width: 600px) {
	.ha-brand svg { width: 52px; height: 52px; }
	.ha-brand span { font-size: 30px !important; }
}

/* Further Triennial promo */
.ha-promo { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 26px 28px; background: linear-gradient(120deg, #FF48B0 0%, #FF6C2F 55%, #FFC400 100%); color: #111; border-radius: 4px; margin: 10px 0 34px; }
.ha-promo-date { font: 700 15px/1.1 ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; background: #111; color: #fff; padding: 12px 14px; text-align: center; }
.ha-promo-date b { display: block; font-size: 28px; letter-spacing: 0; margin: 4px 0; }
.ha-promo h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.1; }
.ha-promo p { margin: 0 0 10px; max-width: 60ch; }
.ha-promo a { color: #111; font-weight: 600; }
@media (max-width: 600px) { .ha-promo { grid-template-columns: 1fr; } }

/* Near me = the heart of the site */
.ha-toolbar .ha-near{font-size:18px;font-weight:700;padding:14px 22px;border-radius:999px;background:#111;color:#fff;border:0;box-shadow:0 3px 0 #ff2e88}
.ha-toolbar .ha-near:hover{background:#ff2e88}
@media (max-width:700px){.ha-toolbar .ha-near{width:100%;font-size:19px;padding:16px;margin-bottom:6px}}
.ha-pop{display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.3}
.ha-pop img{width:100%;height:110px;object-fit:cover;display:block;margin-bottom:6px;border-radius:4px}
.ha-pop-title{font-weight:700;font-size:16px;color:#111;text-decoration:none}
.ha-pop-hood{color:#666;font-size:13px}
.ha-pop-open{font-style:italic;font-size:13px}
.ha-pop-go{margin-top:6px;font-weight:600}
.leaflet-popup-content{margin:12px}

.ha-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ha-toolbar .ha-near{order:0}
.ha-toolbar .ha-near-msg{order:1;width:100%;margin:0;font-size:15px;line-height:1.4;background:#fff4d6;padding:10px 12px;border-radius:8px}
.ha-toolbar .ha-near-msg:empty{display:none}
.ha-toolbar .ha-hood{order:2;font-size:17px;font-weight:700;padding:12px 14px;border:2px solid #111;border-radius:10px;background:#fff;min-width:260px}
.ha-toolbar .ha-hood.is-hint{outline:4px solid #ff2e88;outline-offset:2px}
.ha-toolbar .ha-toggle,.ha-toolbar .ha-type{order:3}
.ha-toolbar .ha-near.is-busy{opacity:.7}
@media (max-width:700px){.ha-toolbar .ha-hood{width:100%;font-size:19px;padding:15px 14px}}

.ha-toolbar .ha-q{order:2;flex:1 1 260px;font-size:17px;padding:12px 14px;border:2px solid #111;border-radius:10px;background:#fff;min-width:0}
@media (max-width:700px){.ha-toolbar .ha-q{flex-basis:100%;font-size:18px;padding:14px}}

.ha-toolbar .ha-more{order:4;width:100%}
.ha-toolbar .ha-more summary{cursor:pointer;font-weight:700;font-size:16px;padding:8px 0;list-style:none}
.ha-toolbar .ha-more summary::before{content:'＋ ';}
.ha-toolbar .ha-more[open] summary::before{content:'− ';}
.ha-more-body{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:10px 12px;background:#fff;border:1px solid #ddd;border-radius:10px}
.ha-more-body select{font-size:16px;padding:8px 10px;border:2px solid #111;border-radius:8px;margin-left:6px}
@media (max-width:700px){.ha-more-body{flex-direction:column;align-items:stretch}}
