.agenda-map .agenda-body { grid-template-columns: minmax(0, 1fr); }
.agenda-map > .agenda-ad { margin-inline: clamp(.5rem, 2vw, 1.1rem); }
.agenda-map > .agenda-week { margin-block: 0; }
.agenda-map-surface > .agenda-category-controls { padding-inline: .15rem; }
.agenda-map.agenda-preview .agenda-filters { position: static; max-height: none; overflow: visible; display: block; }
.agenda-map .agenda-filters .calendar { display: none; }
.agenda-map .agenda-filter-bar { margin: 0; }
.agenda-map .filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agenda-map-layout { display: grid; gap: .9rem; }
.agenda-map-layout.with-featured { grid-template-columns: minmax(0, 1fr) minmax(13rem, 20rem); }
.agenda-map-surface { min-width: 0; }
.map-canvas { height: clamp(34rem, 79dvh, 57rem); background: #dbeae3; border: 1px solid var(--line); border-radius: .75rem; z-index: 0; }
.map-stage { position: relative; isolation: isolate; }
.map-nearby {
  position: absolute; z-index: 660; inset-block-start: .65rem; inset-inline-end: .65rem;
  max-width: calc(100% - 4rem); padding: .35rem; border: 1px solid var(--line);
  border-radius: .7rem; background: var(--paper); box-shadow: 0 4px 14px #183a382e;
}
.map-nearby [hidden], .map-nearby[hidden], .map-place-list [hidden] { display: none; }
.map-nearby-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.map-nearby-actions label { display: flex; align-items: center; gap: .35rem; padding-inline: .35rem; font-size: .78rem; font-weight: 700; }
.map-nearby-actions button, .map-nearby-actions select {
  min-height: 2.65rem; border: 1px solid #bfd3c6; border-radius: 99rem; padding: .35rem .65rem;
  background: white; color: #174d45; font: inherit; font-size: .83rem; font-weight: 700; cursor: pointer;
}
.map-nearby-actions [data-map-nearby-locate] { background: #145e57; border-color: #145e57; color: white; }
.map-nearby-actions [data-map-nearby-locate]:hover { background: #103f3f; }
.map-nearby-actions button:disabled { opacity: .62; cursor: wait; }
.map-nearby-status { max-width: 16rem; margin: .25rem .35rem .15rem; font-size: .78rem; color: #205246; }
.map-nearby-status:empty { display: none; }
.map-place-distance:not([hidden]) { font-weight: 750; }
.map-tile-status { position: absolute; z-index: 650; inset-inline: .75rem; inset-block-end: 1.8rem; pointer-events: none; width: fit-content; max-width: calc(100% - 1.5rem); padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--paper); color: var(--ink); }
.map-tile-status:empty { display: none; }
.agenda-pin { display: block; box-sizing: border-box; background: #145e57; color: white; border: 2px solid white; border-radius: 50%; font: 700 .82rem system-ui; box-shadow: 0 2px 8px #183a3866; }
.agenda-pin:hover, .agenda-pin:focus-visible { background: #a45c33; }
.agenda-pin-content { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; }
.agenda-pin-content.with-photo { background: white; }
.agenda-pin .agenda-pin-content img { display: block; flex: none; width: 24px; height: 24px; max-width: 100%; max-height: 100%; border-radius: 50%; object-fit: contain; }
.agenda-pin-content.with-photo .agenda-pin-count {
  position: absolute; inset-inline-end: -5px; inset-block-end: -4px; min-width: 1.2rem;
  padding-inline: 2px; border: 1px solid white; border-radius: 1rem; line-height: 1.12rem;
  color: white; background: #145e57; font-size: .65rem; text-align: center;
}
.agenda-pin:hover .agenda-pin-content.with-photo, .agenda-pin:focus-visible .agenda-pin-content.with-photo { box-shadow: inset 0 0 0 2px #a45c33; }
.map-places h2, .agenda-featured h2 { font-size: 1.05rem; margin: .85rem 0 .5rem; }
.map-places h2 small { color: var(--note); font-size: .75rem; }
.map-place-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .5rem; }
.map-place, .map-event-tile, .featured-event { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; font: inherit; cursor: pointer; text-align: start; overflow: hidden; }
.map-place:hover, .map-event-tile:hover, .featured-event:hover { border-color: var(--accent); background: #f0f5ec; }
.map-place { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 3.4rem; padding: .55rem .65rem; }
.map-place strong, .map-place small { display: block; overflow-wrap: anywhere; }
.map-place small, .map-venue-town { color: var(--note); }
.map-place-count { min-width: 1.7rem; text-align: center; background: #dce9db; border-radius: 1rem; font-weight: 750; }
.map-event-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 680px) {
  .map-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.map-event-option { --thumb-width: 3.6rem; min-width: 0; padding-block: .4rem; border-top: 1px solid var(--line); }
.map-event-option .map-event-tile {
  display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 3.5rem;
  padding: .4rem; border-color: transparent;
}
.map-event-option .map-event-tile:is(:hover, :focus-visible) { border-color: var(--accent); background: #f0f5ec; }
.map-event-tile img {
  display: block; flex: none; width: var(--thumb-width); height: 4.35rem;
  object-fit: contain; background: #e6eee3; border-radius: .35rem;
}
.map-tile-copy { display: grid; min-width: 0; gap: .25rem; overflow-wrap: anywhere; }
.map-tile-copy small { font-size: .8rem; }
.map-event-option > .agenda-pills { margin-block: 0 .2rem; padding-inline: .4rem; }
.map-event-option:has(.map-event-tile img) > .agenda-pills { padding-inline-start: calc(var(--thumb-width) + 1.05rem); }
.featured-event { display: grid; padding: 0; align-content: start; }
.featured-slide > .agenda-pills { padding-inline: .35rem; }
.featured-event img { display: block; width: 100%; height: 8rem; object-fit: contain; background: #e6eee3; }
.featured-copy { display: grid; gap: .2rem; padding: .55rem .65rem; overflow-wrap: anywhere; }
.map-tile-copy small, .featured-copy small { color: var(--note); }
.map-back { cursor: pointer; color: var(--accent); border: 1px solid var(--line); background: #e8f1e9; border-radius: .46rem; padding: .55rem .68rem; font: inherit; font-weight: 700; margin-bottom: .6rem; }
.map-back:hover { background: #d4e7dc; }
.map-venue-town { margin: -.4rem 0 .75rem; }
.agenda-featured { min-width: 0; padding-block: 0 .7rem; }
.agenda-list .agenda-featured { padding-inline: .85rem; }
.featured-slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(85%, 13rem), 1fr); gap: .6rem; overflow: auto; }
.agenda-featured-map .featured-slots { grid-auto-flow: row; grid-auto-columns: auto; }
.featured-slot { min-width: 0; border: 1px solid var(--line); border-radius: .65rem; padding: .4rem; background: #e8f1e9; }
.featured-slot[data-slot="favorite"] { background: #f4ead5; border-color: #d8c6a4; }
.featured-slot-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem; padding: 0 .15rem .35rem; font-size: .78rem; color: var(--accent); }
.featured-step { display: flex; align-items: center; gap: .22rem; }
.featured-step button { color: var(--accent); background: var(--paper); border: 1px solid var(--line); border-radius: .33rem; min-height: 1.8rem; min-width: 1.55rem; padding: .12rem .3rem; cursor: pointer; font: inherit; }
.featured-step button:hover { border-color: var(--accent); }
.featured-event { width: 100%; }
.agenda-featured .featured-event img { height: 8rem; width: 100%; }
@media (max-width: 820px) {
  .agenda-map-layout.with-featured { grid-template-columns: minmax(0, 1fr); }
  .agenda-featured-map .featured-slots { grid-auto-flow: column; grid-auto-columns: minmax(min(85%, 13rem), 1fr); }
}
@media (max-width: 540px) {
  .agenda-map .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .map-canvas { height: clamp(28rem, 70dvh, 44rem); }
}
.agenda-ad { margin: .55rem 0 .85rem; padding: .4rem; border: 1px solid #c9d7ca; border-radius: .65rem; background: #f0f4ed; }
.agenda-list .agenda-ad { margin-inline: .85rem; }
.agenda-ad .featured-slot-heading { padding-inline: .35rem; }
.agenda-ad-slide:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.agenda-ad-creative { display: flex; min-width: 0; align-items: center; gap: .75rem; min-height: 9.5rem; overflow: hidden; background: #24534d; color: #fbf8ed; border-radius: .48rem; text-decoration: none; }
@media (min-width: 900px) {
  .agenda-ad-slide:not([hidden]):has(> .agenda-ad-creative + .agenda-ad-creative) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-ad-creative { min-height: 11.5rem; }
}
.agenda-ad-creative:hover { background: #17453e; }
.agenda-ad-creative img { display: block; flex: none; inline-size: min(42%, 19rem); max-height: 10rem; object-fit: contain; }
.agenda-ad-copy { display: grid; min-width: 0; overflow-wrap: anywhere; gap: .24rem; padding: .9rem clamp(.7rem, 2vw, 1.4rem); }
.agenda-ad-copy strong { font-size: 1.08rem; }
.agenda-ad-copy span { font-size: .82rem; }
.agenda-ad-copy small { color: #e8cd9c; font-weight: 700; }
.agenda-ad-middle .agenda-ad-creative { background: #775639; }
.agenda-ad-middle .agenda-ad-creative:hover { background: #634631; }
