/* A layout drawer, not an overlay. Original palette channels remain unchanged. */
.ace-map-footer { --map-ease: cubic-bezier(.22,1,.36,1); }
.ace-footer-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 40px; align-items: start; }
.ace-footer-layout > *, .ace-footer-links > *, .ace-footer-locations > * { min-width: 0; }
.ace-footer-links { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; }
.ace-footer-links ul { font-size: 14px; line-height: 1.65; }
.ace-footer-locations { grid-template-columns: minmax(0,1.5fr) minmax(78px,.65fr); gap: 24px 16px; align-items: start; transition: grid-template-columns .6s var(--map-ease), column-gap .6s var(--map-ease); }
.ace-footer-hq { grid-column: 1; }
.ace-footer-hq > p { line-height: 1.6; color: rgb(var(--warm-paper)/.8); }
.ace-footer-hq > p:first-of-type { margin-top: 18px; }
.ace-footer-tripoli { grid-column: 1; }
.ace-footer-market-right { grid-column: 2; }
.ace-footer-market p { color: rgb(var(--warm-paper)/.75); }
.ace-map-footer.is-map-open .ace-footer-locations { grid-template-columns: minmax(0,1fr) 0fr; column-gap: 0; }
.ace-footer-map { min-width: 0; perspective: 900px; }
.ace-map-expand { display: flex; flex-direction: column; gap: 14px; width: 100%; min-height: 168px; padding: 16px; text-align: left; color: rgb(var(--warm-paper)); background: rgb(var(--hero-mid)); border: 1px solid rgb(var(--warm-paper)/.32); border-radius: 6px; box-shadow: 0 5px 0 rgb(var(--trust-bronze)), 0 12px 24px rgb(var(--deep-ink)/.4); cursor: pointer; transform: rotateX(var(--button-x,0deg)) rotateY(var(--button-y,0deg)); transform-origin: center; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ace-map-expand:hover { border-color: rgb(var(--warm-paper)/.7); box-shadow: 0 6px 0 rgb(var(--terracotta)), 0 16px 28px rgb(var(--deep-ink)/.5); }
.ace-map-button-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; }
.ace-map-button-title > .material-symbols-outlined { color: rgb(var(--terracotta)); font-size: 22px; }
.ace-map-hq { color: rgb(var(--warm-paper)/.8); font-size: 10px; font-weight: 500; vertical-align: middle; }
.ace-map-address { font-size: 12px; line-height: 1.65; color: rgb(var(--warm-paper)/.85); }
.ace-map-invitation { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: auto; width: 100%; font-size: 12px; line-height: 1.5; font-weight: 600; }
.ace-map-invitation > span { font-size: 18px; flex: 0 0 18px; }
.ace-map-nojs { display: grid; gap: 8px; font-size: 12px; line-height: 1.6; }
.ace-map-nojs strong { font-size: 16px; }
.ace-map-nojs > span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.ace-map-nojs .material-symbols-outlined { vertical-align: middle; font-size: 16px; }
.ace-map-panel { min-width: 0; animation: ace-map-unfold .6s var(--map-ease) both; }
.ace-map-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.ace-map-heading strong { font-size: 16px; line-height: 1.5; }
.ace-map-heading p { font-size: 12px; line-height: 1.6; margin-top: 4px; color: rgb(var(--warm-paper)/.8); }
.ace-map-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgb(var(--warm-paper)/.35); border-radius: 4px; color: rgb(var(--warm-paper)); background: transparent; cursor: pointer; }
.ace-map-close:hover { background: rgb(var(--warm-paper)/.1); border-color: rgb(var(--warm-paper)); }
.ace-map-link { display: block; overflow: hidden; border: 1px solid rgb(var(--warm-paper)/.35); border-radius: 6px; color: rgb(var(--warm-paper)); text-decoration: none; background: rgb(var(--deep-ink)); }
.ace-map-link:hover { border-color: rgb(var(--terracotta)); }
.ace-map-stage { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: 280px; background: rgb(var(--warm-paper)); }
.dark .ace-map-stage { background: rgb(var(--reading-card)); }
.ace-map-canvas, .ace-map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.ace-map-canvas { visibility: hidden; }
.ace-map-stage.is-rendered .ace-map-canvas { visibility: visible; }
.ace-map-fallback { object-fit: cover; }
.ace-map-canvas canvas { display: block; width: 100%; height: 100%; }
.ace-map-stage.is-rendered .ace-map-fallback { visibility: hidden; }
.ace-map-place { position: absolute; left: 12px; top: 12px; color: rgb(var(--brand-navy)); background: rgb(var(--warm-paper)); font-size: 12px; line-height: 1.4; padding: 5px 8px; pointer-events: none; }
.dark .ace-map-place { background: rgb(var(--reading-card)); color: rgb(var(--reading-paper)); }
.ace-map-pin { position: absolute; top: 0; left: 0; padding: 5px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; border-radius: 3px; color: rgb(var(--warm-paper)); background: rgb(var(--brand-navy)); pointer-events: none; }
.ace-map-google { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; font-size: 13px; font-weight: 600; line-height: 1.5; border-top: 2px solid rgb(var(--terracotta)); }
.ace-map-google .material-symbols-outlined { font-size: 20px; }
.ace-map-credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 10px; color: rgb(var(--warm-paper)/.8); font-size: 10px; line-height: 1.7; }
.ace-map-credits a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; margin-right: 6px; }
.ace-map-status { font-size: 12px; line-height: 1.6; color: rgb(var(--warm-paper)/.8); }
.ace-map-status:not(:empty) { margin-top: 10px; }
@keyframes ace-map-unfold { from { opacity: .4; clip-path: inset(0 65% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@media (min-width: 768px) {
  .ace-footer-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 40px 32px; }
  .ace-footer-brand { grid-column: 1 / -1; }
  .ace-footer-brand > p { max-width: 540px; }
  .ace-map-stage { height: 300px; }
}
@media (min-width: 1200px) {
  .ace-footer-layout { grid-template-columns: minmax(190px,1fr) minmax(280px,1.12fr) minmax(370px,1.5fr); gap: 32px; transition: grid-template-columns .6s var(--map-ease); }
  .ace-footer-brand { grid-column: auto; }
  .ace-map-footer.is-map-open .ace-footer-layout { grid-template-columns: minmax(180px,.68fr) minmax(280px,1.12fr) minmax(460px,2fr); }
  .ace-map-stage { height: 320px; }
}
@media (max-width: 359px) {
  .ace-footer-locations { grid-template-columns: minmax(0,1fr); }
  .ace-footer-market-right { grid-column: 1; }
  .ace-map-stage { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .ace-footer-layout, .ace-footer-locations, .ace-map-expand { transition: none; }
  .ace-map-expand { transform: none; }
  .ace-map-panel { animation: none; }
}
