.detail-location-link {
  appearance: none;
  border: 1px solid color-mix(in srgb, #0b6f75 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #e8f8f6 88%, #fff);
  color: #075c62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.detail-location-link:hover,
.detail-location-link:focus-visible {
  border-color: #0b6f75;
  background: #d9f3ef;
  color: #064e53;
}

.detail-location-link:active {
  transform: translateY(1px);
}

.program-location-open {
  overflow: hidden;
}

.program-location-modal[hidden] {
  display: none !important;
}

.program-location-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
}

.program-location-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 24, 43, .66);
  backdrop-filter: blur(5px);
}

.program-location-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(980px, 96vw);
  max-height: min(92vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(16, 68, 101, .18);
  border-radius: clamp(18px, 3vw, 28px);
  background: #fff;
  color: #102a43;
  box-shadow: 0 28px 90px rgba(5, 28, 52, .28);
}

.program-location-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid #e3edf3;
  background: linear-gradient(135deg, #f7fbff, #effaf8);
}

.program-location-kicker {
  color: #08766f;
  display: block;
  margin-bottom: 5px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.program-location-header h2 {
  margin: 0;
  color: #0d2a47;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.15;
}

.program-location-subtitle {
  margin: 7px 0 0;
  color: #526d82;
  font-size: .95rem;
}

.program-location-close {
  appearance: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #d4e1e9;
  border-radius: 50%;
  background: #fff;
  color: #173b57;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.program-location-campus-tabs {
  display: flex;
  gap: 8px;
  padding: 12px clamp(18px, 3vw, 28px);
  overflow-x: auto;
  border-bottom: 1px solid #e3edf3;
  background: #fff;
  scrollbar-width: thin;
}

.program-location-campus-tabs[hidden] {
  display: none;
}

.program-location-campus-tab {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid #c7dae5;
  border-radius: 999px;
  background: #f3f8fb;
  color: #31576e;
  padding: 8px 13px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.program-location-campus-tab.is-active {
  border-color: #0a7974;
  background: #0a7974;
  color: #fff;
}

.program-location-body {
  min-height: 220px;
  overflow-y: auto;
  padding: clamp(14px, 2vw, 22px);
}

.program-location-status {
  margin: 0 0 12px;
  border-radius: 12px;
  background: #f0f6fa;
  color: #34556b;
  padding: 10px 13px;
  font-size: .9rem;
  font-weight: 700;
}

.program-location-status.is-ready {
  background: #e8f8f3;
  color: #09685e;
}

.program-location-status.is-search {
  background: #eef7ff;
  color: #174f78;
}

.program-location-status.is-missing,
.program-location-status.is-error {
  background: #fff4e7;
  color: #8a4b0f;
}

.program-location-map {
  width: 100%;
  height: clamp(320px, 52vh, 580px);
  overflow: hidden;
  border: 1px solid #d5e1e9;
  border-radius: 18px;
  background: #e8eef2;
  isolation: isolate;
}

.program-location-map.is-search-fallback {
  background: #f5f8fb;
}

.program-location-search-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f8fb;
}

.program-location-details {
  display: grid;
  gap: 4px;
  margin-top: 13px;
  padding: 0 3px;
}

.program-location-details[hidden] {
  display: none;
}

.program-location-campus-name {
  color: #102f4c;
  font-size: 1rem;
}

.program-location-address {
  color: #60788a;
  font-size: .88rem;
  line-height: 1.45;
}

.program-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.program-location-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #c8d9e4;
  border-radius: 12px;
  background: #f7fafc;
  color: #1d536f;
  padding: 9px 14px;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}

.program-location-action.is-primary {
  border-color: #1769aa;
  background: #1769aa;
  color: #fff;
}

.program-location-close:focus-visible,
.program-location-campus-tab:focus-visible,
.program-location-action:focus-visible,
.detail-location-link:focus-visible {
  outline: 3px solid rgba(31, 132, 195, .34);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .program-location-modal {
    align-items: end;
    padding: 0;
  }

  .program-location-dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: 22px 22px 0 0;
  }

  .program-location-header {
    padding: 17px 16px 14px;
  }

  .program-location-body {
    padding: 12px;
  }

  .program-location-map {
    height: min(54dvh, 470px);
    border-radius: 14px;
  }

  .program-location-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .program-location-action {
    width: 100%;
  }

  .detail-location-link {
    min-height: 38px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-location-link {
    transition: none;
  }
}
