/* The map stays inside the enrollment page's existing .container safe zone. */
.enrollment-map { color: var(--brand-navy, #112c56); width: 100%; min-width: 0; }
.enrollment-map__frame { position: relative; overflow: hidden; border: 1px solid #c9d3e3; border-radius: 12px; background: #eef2f8; }
.enrollment-map__viewport { position: relative; height: clamp(330px, 40vw, 520px); overflow: hidden; touch-action: pan-y; cursor: grab; isolation: isolate; }
.enrollment-map__viewport.is-dragging { cursor: grabbing; }
.enrollment-map__viewport.is-touch-enabled { touch-action: none; }
.enrollment-map__viewport:focus-visible { outline: 3px solid var(--brand-red-deep, #b8001f); outline-offset: -4px; }
.enrollment-map__tiles, .enrollment-map__pins { position: absolute; inset: 0; pointer-events: none; }
.enrollment-map__tile { position: absolute; width: 256px !important; height: 256px !important; max-width: none !important; border: 0; border-radius: 0 !important; opacity: 1 !important; transition: none !important; user-select: none; }
.enrollment-map__pin { position: absolute; z-index: 2; width: 44px; height: 50px; padding: 0; border: 0; border-radius: 0; background: none; color: white; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; font: 700 15px/1 var(--font-ui, sans-serif); }
.enrollment-map__pin svg { display: block; width: 44px; height: 50px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.enrollment-map__pin svg path { fill: var(--brand-red-deep, #b8001f); stroke: white; stroke-width: 2; }
.enrollment-map__pin.is-selected svg path { fill: var(--brand-navy, #112c56); }
.enrollment-map__pin:focus-visible { outline: 3px solid var(--brand-navy, #112c56); outline-offset: 4px; border-radius: 50% 50% 50% 0; }
.enrollment-map__pin-number { position: absolute; left: 0; right: 0; top: 12px; text-align: center; color: white; }
.enrollment-map__pin-label { position: absolute; top: 5px; left: 43px; padding: 5px 8px; white-space: nowrap; border-radius: 4px; background: white; color: var(--brand-navy, #112c56); box-shadow: 0 1px 6px #112c5633; font: 650 13px/1.4 var(--font-ui, sans-serif); }
.enrollment-map__pin[data-campus="leland"] .enrollment-map__pin-label { right: 43px; left: auto; }
.enrollment-map__controls { position: absolute; z-index: 5; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; }
.enrollment-map__control { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 9px; border: 1px solid #c9d3e3; border-radius: 6px; background: white; color: #112c56; box-shadow: 0 1px 5px #112c5626; cursor: pointer; font: 600 19px/1 var(--font-ui, sans-serif); }
.enrollment-map__control:hover { background: #eef2f8; }
.enrollment-map__control:disabled { opacity: .65; cursor: default; }
.enrollment-map__control:focus-visible, .enrollment-map__campus:focus-visible, .enrollment-map__attribution a:focus-visible { outline: 3px solid var(--brand-red-deep, #b8001f); outline-offset: 3px; }
.enrollment-map__control--fit { font-size: 12px; line-height: 1.2; }
.enrollment-map__interaction { position: absolute; z-index: 5; right: 12px; top: 12px; display: none; max-width: 155px; font-size: 12px; line-height: 1.4; }
.enrollment-map__interaction[aria-pressed="true"] { background: #112c56; color: white; }
.enrollment-map__attribution { position: absolute; z-index: 5; right: 0; bottom: 0; margin: 0; padding: 4px 8px; background: #ffffffed; color: #112c56; font: 400 12px/1.4 var(--font-ui, sans-serif); }
.enrollment-map__attribution a { color: #112c56; text-decoration: underline; }
.enrollment-map__message { position: absolute; z-index: 4; left: 64px; right: 16px; top: 16px; max-width: 430px; margin: 0; padding: 12px 16px; border-radius: 6px; background: white; color: #112c56; box-shadow: 0 2px 8px #112c5626; font: 400 14px/1.5 var(--font-ui, sans-serif); }
.enrollment-map__message[hidden] { display: none; }
.enrollment-map__frame.is-unavailable .enrollment-map__message { left: 20px; right: 20px; top: 50%; margin-inline: auto; transform: translateY(-50%); }
.enrollment-map__frame.is-unavailable .enrollment-map__tiles, .enrollment-map__frame.is-unavailable .enrollment-map__pins, .enrollment-map__frame.is-unavailable .enrollment-map__controls, .enrollment-map__frame.is-unavailable .enrollment-map__interaction { display: none; }
.enrollment-map__campuses { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 0; }
.enrollment-map__campus { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid #c9d3e3; border-radius: 6px; background: white; color: #112c56; cursor: pointer; font: 600 14px/1.3 var(--font-ui, sans-serif); }
.enrollment-map__campus[aria-pressed="true"] { border-color: #112c56; background: #eef2f8; }
.enrollment-map__campus span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; background: var(--brand-red-deep, #b8001f); font-size: 12px; }
.enrollment-map__hint { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #455675; }
[data-enrollment-map-detail] { min-height: 80px; margin-top: 16px; color: var(--brand-navy, #112c56); }
[data-enrollment-map-detail] p { margin: 0 0 6px; }
[data-enrollment-map-detail] a { display: inline-block; min-height: 32px; margin-right: 18px; text-decoration: underline; }
.enrollment-map__detail-name { font-weight: 700; }
@media (max-width: 600px) {
  .enrollment-map__viewport { height: 350px; }
  .enrollment-map__pin-label { display: none; }
  .enrollment-map__campus { flex: 1 1 calc(50% - 8px); padding: 9px; font-size: 13px; }
  .enrollment-map__interaction { display: grid; }
  .enrollment-map__message { top: 72px; }
}
@media (pointer: coarse) { .enrollment-map__interaction { display: grid; } }
@media (prefers-reduced-motion: reduce) { .enrollment-map * { scroll-behavior: auto; } }
