.offer-map-page {
  margin: 24px 0 56px;
  color: var(--ink);
}

.offer-map-heading h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.offer-map-heading p {
  margin: 12px 0 20px;
  color: #53617a;
}

.offer-map-page [hidden] { display: none !important; }

.offer-map-tools,
.offer-map-search,
.offer-map-mode {
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-map-tools { flex-wrap: wrap; margin-bottom: 12px; }
.offer-map-search { width: min(100%, 440px); }

.offer-map-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.offer-map-search button,
.offer-map-nearby,
#offer-map-area {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #283f9a;
  font: 650 .875rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.offer-map-search button { background: var(--blue); border-color: var(--blue); color: #fff; }
.offer-map-nearby:disabled { opacity: .7; cursor: wait; }
.offer-map-nearby:hover,
#offer-map-area:hover { border-color: var(--blue); }

.offer-map-mode { color: #53617a; font-size: .875rem; }
.offer-map-mode p { margin: 0; }
.offer-map-mode p:not(:empty) { margin-bottom: 12px; }
.offer-map-text-button {
  border: 0;
  padding: 0;
  margin-bottom: 12px;
  background: transparent;
  color: #283f9a;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.offer-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.offer-map-filters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .875rem;
  font-weight: 650;
}

.offer-map-filters a span { opacity: .8; }
.offer-map-filters a:hover { border-color: var(--blue); }
.offer-map-filters a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }

.offer-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  --map-height: clamp(440px, 68vh, 690px);
}

.offer-map-frame {
  position: relative;
  scroll-margin-top: 8px;
  height: var(--map-height);
  overflow: hidden;
  border: 1px solid #d9e2e7;
  border-radius: 18px;
  background: #edf2f6;
}

#offer-map-canvas { position: absolute; inset: 0; }

#offer-map-area {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px #23305724;
  white-space: nowrap;
}

#offer-map-status {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #2848b4;
  text-align: center;
  font-size: .875rem;
}

.offer-map-credit {
  margin: 7px 0 0;
  color: #53617a;
  font-size: .75rem;
}

.offer-map-credit a { text-decoration: underline; }

.offer-map-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: var(--map-height);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.offer-map-list-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.offer-map-list-viewport {
  position: relative;
  min-height: 0;
  overflow: auto;
}

.offer-map-list-header h2 { margin: 0; font-size: 1.125rem; }
.offer-map-list-header p,
.offer-map-address > p { margin: 0; color: #53617a; font-size: .825rem; }

.offer-map-address { padding: 14px 12px; }
.offer-map-address + .offer-map-address { border-top: 1px solid var(--line); }
.offer-map-address.is-selected { background: #eef2ff; }
.offer-map-address > h3 { margin: 0 4px 4px; font-size: 1rem; }
.offer-map-address > p { margin: 0 4px 10px; }
.offer-map-route { display: inline-block; margin: 0 4px 10px; color: #283f9a; font-weight: 650; font-size: .875rem; }
.offer-map-route:hover { text-decoration: underline; }
.offer-map-distance { color: #283f9a; font-weight: 650; }
.offer-map-empty-area { margin: 16px; color: #53617a; }

.offer-map-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.offer-map-cards > article {
  scroll-margin-top: 8px;
}

.offer-map-cards > article.is-selected {
  outline: 2px solid #7088ec;
  outline-offset: -2px;
}

html body .offer-map-cards article.offer-v2 .offer-bottom {
  align-items: center;
  justify-content: flex-start;
}

html body .offer-map-cards article.offer-v2 .offer-bottom:has(.offer-map-locate:not([hidden])) .promo-chip {
  margin-left: 0;
}

.offer-map-locate {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 30px;
  margin-inline-start: auto;
  padding: 0 10px;
  border: 1px solid #dce4f5;
  border-radius: 8px;
  background: #f5f7ff;
  color: #283f9a;
  font: 650 .825rem/1.2 system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.offer-map-locate:hover,
.offer-map-locate[aria-pressed="true"] {
  background: #e3eaff;
}

.offer-map-selection { display: none; }

.offer-map-pin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2449ed;
  color: #fff;
  box-shadow: 0 2px 7px #23305755;
  font: 700 .85rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.offer-map-pin:hover,
.offer-map-pin[aria-pressed="true"] { z-index: 1; background: #122c99; }
.offer-map-pin:focus-visible { z-index: 1; outline: 2px solid #192332; outline-offset: 2px; }

@media (max-width: 760px) {
  .offer-map-layout { grid-template-columns: minmax(0, 1fr); --map-height: clamp(280px, 51svh, 460px); }
  .offer-map-list { max-height: none; }
  .offer-map-list-viewport { overflow: visible; }
  .offer-map-address { scroll-margin-top: 8px; }
  .offer-map-locate { min-height: 44px; }

  .offer-map-selection {
    position: absolute;
    z-index: 3;
    inset: auto 10px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 8px 8px 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px #23305735;
  }

  .offer-map-selection-copy { margin: 4px 0 0; min-width: 0; }
  .offer-map-selection-copy strong,
  .offer-map-selection-copy span { display: block; overflow-wrap: anywhere; }
  .offer-map-selection-copy strong { font-size: .9rem; }
  .offer-map-selection-copy span { color: #53617a; font-size: .825rem; }
  .offer-map-selection-close,
  .offer-map-selection-list {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #283f9a;
    cursor: pointer;
  }
  .offer-map-selection-close { width: 44px; font-size: 1.35rem; }
  .offer-map-selection-list {
    grid-column: 1 / -1;
    width: fit-content;
    padding: 0 10px;
    background: #edf2ff;
    font: 650 .875rem/1.2 system-ui, sans-serif;
  }
}
