.mn-map-page {
  --mn-map-blue: #0CA1E3;
  --mn-map-ink: #303536;
  --mn-map-line: #dce7ee;
}
.mn-map-search { width: 100%; padding: 0 28px 28px; }
.mn-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 4px 19px; }
.mn-map-heading h1 { font-size: 23px; line-height: 1.45; font-weight: 700; margin: 0 0 7px; }
.mn-map-total { color: #5f717e; font-size: 13px; }
.mn-map-total > strong { color: var(--mn-map-ink); font-size: 17px; font-weight: 700; }
#mapRangeLabel { margin-left: 14px; font-size: 12px; color: #87969f; }
.mn-map-conditions { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 14px; color: var(--mn-map-blue); border: 1px solid var(--mn-map-line); border-radius: 24px; font-size: 12px; white-space: nowrap; }
.mn-map-notice { padding: 12px 16px; margin-bottom: 15px; background: #f2f8fc; border-radius: 6px; font-size: 13px; }
.mn-map-workspace { display: grid; grid-template-columns: minmax(480px, 46%) minmax(0, 1fr); gap: 27px; height: max(510px, calc(100dvh - var(--mn-map-top, 265px) - 22px)); align-items: stretch; }
.mn-map-list { min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3d5e0 transparent; padding: 0 9px 24px 4px; scroll-behavior: smooth; }
.mn-map-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 19px; }
.mn-map-card { position: relative; min-width: 0; padding-bottom: 1px; border-radius: 11px; background: #fff; outline: 2px solid transparent; outline-offset: 5px; transition: outline-color .14s ease; }
.mn-map-card.is-active { outline-color: var(--mn-map-blue); }
.mn-map-card-media { position: relative; aspect-ratio: 1.5; overflow: hidden; border-radius: 10px; background: #f0f5f8; }
.mn-map-card-media > a { display: block; width: 100%; height: 100%; }
.mn-map-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.mn-map-save { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #dce7eeaa; border-radius: 50%; background: #fff; z-index: 2; }
.mn-map-save > img { width: 19px; height: 19px; object-fit: contain; }
.mn-map-save[aria-pressed=true] { background: var(--mn-map-blue); border-color: var(--mn-map-blue); }
.mn-map-save[aria-pressed=true] > img { filter: brightness(0) invert(1); }
.mn-map-card-media .mn-map-slide { position: absolute; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; background: #fff; border: 1px solid #dce7eebb; border-radius: 50%; transform: translateY(-50%); opacity: 0; z-index: 1; }
.mn-map-slide img { width: 6px; height: 11px; }
.mn-map-slide.prev { left: 10px; }
.mn-map-slide.prev img { transform: rotate(180deg); }
.mn-map-slide.next { right: 10px; }
.mn-map-photo-dots { position: absolute; bottom: 10px; left: 50%; display: flex; gap: 4px; transform: translateX(-50%); pointer-events: none; }
.mn-map-photo-dots i { width: 5px; height: 5px; border-radius: 50%; background: #ffffff80; box-shadow: 0 1px 3px #24405640; }
.mn-map-photo-dots i.is-active { background: #fff; }
.mn-map-card-body { padding: 10px 2px 0; }
.mn-map-card a { text-decoration: none; }
.mn-map-card h2 a { color: var(--mn-map-ink); }
.mn-map-card-area a { color: inherit; }
.mn-map-card h2 { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0 0 5px; overflow-wrap: anywhere; }
.mn-map-card-area { font-size: 11px; color: #758791; line-height: 1.6; }
.mn-map-card-area a + a::before { content: "・"; color: #a6b3bc; padding-inline: 3px; }
.mn-map-card-station { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #607a8b; margin-top: 4px; }
.mn-map-card-station img { width: 13px; height: 15px; flex: none; object-fit: contain; }
.mn-map-card-facts { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-top: 7px; color: #526a79; font-size: 11px; line-height: 1.5; }
.mn-map-card-facts strong { font-size: 13px; font-weight: 700; color: var(--mn-map-ink); }
.mn-map-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--mn-map-blue); font-size: 11px; }
.mn-map-card-link img { width: 5px; height: 8px; }
.mn-map-card-compact { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 11px; padding: 14px 0 1px; border-top: 1px solid var(--mn-map-line); border-radius: 0 0 6px 6px; }
.mn-map-card-compact .mn-map-card-media { aspect-ratio: 1; border-radius: 7px; }
.mn-map-card-compact .mn-map-card-body { padding-top: 0; padding-right: 24px; }
.mn-map-card-compact h2 { font-size: 14px; }
.mn-map-card-compact .mn-map-save { top: 13px; right: 0; width: 25px; height: 25px; border: 0; }
.mn-map-card-compact .mn-map-save img { width: 18px; height: 18px; }
.mn-map-card-text { padding: 14px 31px 15px 0; border-top: 1px solid var(--mn-map-line); border-radius: 0 0 6px 6px; }
.mn-map-card-text .mn-map-card-body { padding: 0; }
.mn-map-card-text h2 { font-size: 14px; }
.mn-map-card-text .mn-map-save { top: 13px; right: 0; width: 25px; height: 25px; border: 0; }
.mn-map-card-text .mn-map-save img { width: 18px; height: 18px; }
.mn-map-more { display: flex; margin: 26px auto 0; min-height: 40px; gap: 15px; background: #fff; }
.mn-map-list-status { padding: 23px 14px; color: #748795; background: #f4f9fc; border: 1px solid var(--mn-map-line); border-radius: 8px; margin-bottom: 16px; text-align: center; font-size: 13px; }
.mn-map-list-status button { display: block; width: fit-content; margin: 9px auto 0; color: var(--mn-map-blue); text-decoration: underline; text-underline-offset: 3px; }
.mn-map-panel { position: relative; min-width: 0; min-height: 400px; overflow: hidden; border-radius: 13px; background: #eeede9; isolation: isolate; }
.mn-map-canvas { width: 100%; height: 100%; min-height: 400px; }
.mn-map-canvas:focus { outline: none; }
.mn-map-search-options { position: absolute; top: 17px; left: 50%; z-index: 3; transform: translateX(-50%); display: flex; justify-content: center; width: max-content; max-width: calc(100% - 32px); padding: 9px 14px; background: #fff; border: 1px solid #d8e1e5; border-radius: 25px; box-shadow: 0 2px 9px #23394716; }
.mn-map-search-options label { display: flex; align-items: center; gap: 8px; font-size: 11px; white-space: nowrap; cursor: pointer; }
.mn-map-search-options input { width: 14px; height: 14px; margin: 0; accent-color: var(--mn-map-blue); }
.mn-map-search-here { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--mn-map-line); border-radius: 25px; box-shadow: 0 2px 9px #23394720; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mn-map-search-here img { width: 16px; height: 16px; filter: brightness(0); }
.mn-map-loading { position: absolute; bottom: 21px; left: 50%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); z-index: 3; padding: 9px 15px; background: #fff; border: 1px solid var(--mn-map-line); border-radius: 25px; box-shadow: 0 2px 9px #23394720; font-size: 11px; white-space: nowrap; }
.mn-map-loading::before { content: ""; width: 12px; height: 12px; border: 2px solid #d5e7f1; border-top-color: var(--mn-map-blue); border-radius: 50%; animation: mn-map-spin .8s linear infinite; }
@keyframes mn-map-spin { to { transform: rotate(360deg); } }
.mn-map-error { position: absolute; inset: 70px 20px auto; z-index: 4; padding: 17px; background: #fff; border: 1px solid var(--mn-map-line); border-radius: 10px; font-size: 12px; box-shadow: 0 3px 15px #203c4d15; }
.mn-map-error .text-button { margin: 10px 15px 0 0; font-size: 12px; }
.mn-map-zoom { position: absolute; z-index: 3; right: 15px; bottom: 38px; display: grid; border: 1px solid #d8e1e5; border-radius: 9px; overflow: hidden; box-shadow: 0 3px 12px #23394716; }
.mn-map-zoom button { width: 39px; height: 39px; background: #fff; font-size: 22px; font-weight: 400; color: #435c69; line-height: 1; }
.mn-map-zoom button + button { border-top: 1px solid #e4ebef; }
.mn-map-marker-layer { position: absolute; inset: 0; pointer-events: none; }
.mn-map-marker { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; max-width: 143px; border: 1px solid #d0d9dd; border-radius: 25px; background: #fff; color: #354c59; box-shadow: 0 2px 6px #23394726; pointer-events: auto; font-family: Montserrat, "Noto Sans JP", sans-serif; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; transition: background-color .12s ease, color .12s ease; cursor: pointer; }
.mn-map-marker > img { width: 15px; height: 15px; flex: none; object-fit: contain; }
.mn-map-marker > span { overflow: hidden; text-overflow: ellipsis; }
.mn-map-marker.is-active { background: var(--mn-map-blue); color: #fff; border-color: var(--mn-map-blue); box-shadow: 0 3px 10px #1687bb40; z-index: 2000 !important; }
.mn-map-marker.is-active > img { filter: brightness(0) invert(1); }
.mn-map-marker.cluster { padding: 8px 11px; color: #456274; }
.mn-map-marker.cluster strong { font-size: 12px; }
.mn-map-marker.cluster.is-active { color: #fff; }
.mn-map-popup { width: 264px; padding: 0; color: var(--mn-map-ink); font-family: Montserrat, "Noto Sans JP", sans-serif; }
.mn-map-popup-photo { display: block; width: 100%; height: 145px; object-fit: cover; border-radius: 9px 9px 0 0; }
.mn-map-popup-body { padding: 13px; }
.mn-map-popup h2 { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0 0 6px; }
.mn-map-popup p { font-size: 11px; color: #758995; margin: 0 0 8px; }
.mn-map-popup .button { min-height: 34px; width: 100%; font-size: 11px; }
.mn-map-popup .text-button { display: block; width: fit-content; margin: 9px auto 0; font-size: 11px; }
.mn-map-popup-list { max-height: 250px; overflow-y: auto; padding: 5px 0; }
.mn-map-popup-list button { display: block; width: 100%; padding: 11px 13px; text-align: left; font-size: 12px; line-height: 1.5; }
.mn-map-popup-list button + button { border-top: 1px solid var(--mn-map-line); }
.mn-map-panel .gm-style-iw-c { padding: 0 !important; border-radius: 11px !important; }
.mn-map-panel .gm-style-iw-d { overflow: auto !important; }
.mn-map-panel .gm-style-iw-chr { height: 28px; }
.mn-map-panel .gm-style-iw-ch { padding: 0; }
.mn-map-view-toggle { display: none; }
@media (hover: hover) {
  .mn-map-card h2 a:hover, .mn-map-card-link:hover, .mn-map-card-area a:hover { color: var(--mn-map-blue); text-decoration: underline; text-underline-offset: 3px; }
  .mn-map-card-media:hover img { transform: scale(1.035); }
  .mn-map-card-media:hover .mn-map-slide { opacity: 1; }
  .mn-map-card-media:hover .mn-map-slide img { transform: none; }
  .mn-map-card-media:hover .mn-map-slide.prev img { transform: rotate(180deg); }
  .mn-map-marker:hover { background: var(--mn-map-blue); color: #fff; border-color: var(--mn-map-blue); }
  .mn-map-marker:hover img { filter: brightness(0) invert(1); }
  .mn-map-conditions:hover { color: #fff; background: var(--mn-map-blue); border-color: var(--mn-map-blue); }
  .mn-map-conditions:hover img { filter: brightness(0) invert(1); }
  .mn-map-zoom button:hover, .mn-map-popup-list button:hover { background: #f1f8fc; }
}
@media (max-width: 1150px) {
  .mn-map-search { padding-inline: 23px; }
  .mn-map-workspace { grid-template-columns: minmax(310px, 41%) minmax(0, 1fr); gap: 21px; }
  .mn-map-cards { grid-template-columns: 1fr; gap: 25px; }
  .mn-map-card-media { aspect-ratio: 1.8; }
  .mn-map-card h2 { font-size: 16px; }
}
@media (max-width: 900px) {
  .mn-map-search { padding: 0 18px 30px; }
  .mn-map-heading { padding: 22px 0 17px; gap: 10px; }
  .mn-map-heading h1 { font-size: 20px; }
  .mn-map-total { font-size: 11px; }
  #mapRangeLabel { font-size: 10px; margin-left: 8px; }
  .mn-map-conditions { font-size: 10px; padding: 5px 9px; min-height: 31px; }
  .mn-map-workspace { display: block; height: auto; }
  .mn-map-list { padding: 0 0 30px; overflow: visible; }
  .mn-map-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 17px; }
  .mn-map-panel { height: max(410px, calc(100dvh - var(--mn-map-top, 270px) - 12px)); border-radius: 11px; }
  .mn-map-workspace[data-map-view=list] .mn-map-panel { display: none; }
  .mn-map-workspace[data-map-view=map] .mn-map-list { display: none; }
  .mn-map-view-toggle { position: fixed; bottom: calc(23px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1px solid #374d5a; border-radius: 30px; background: #2c414e; color: #fff; box-shadow: 0 4px 18px #1d384b24; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .mn-map-view-toggle img { width: 16px; height: 19px; filter: brightness(0) invert(1); }
  .mn-map-page:has(.mn-map-workspace[data-map-view=map]) .mn-map-zoom { bottom: 79px; }
}
@media (max-width: 600px) {
  .mn-map-heading { align-items: start; padding-top: 20px; }
  .mn-map-heading h1 { font-size: 18px; max-width: 260px; }
  .mn-map-conditions { margin-top: 2px; font-size: 10px; }
  .mn-map-conditions .mn-arrow { display: none; }
  .mn-map-cards { grid-template-columns: 1fr; gap: 24px; }
  .mn-map-card-media { aspect-ratio: 1.65; }
  .mn-map-card h2 { font-size: 16px; }
  .mn-map-card-body { padding-top: 10px; }
  .mn-map-card-area, .mn-map-card-station, .mn-map-card-facts { font-size: 12px; }
  .mn-map-card-facts strong { font-size: 14px; }
  .mn-map-card-link { font-size: 12px; margin-top: 9px; }
  .mn-map-card-media .mn-map-slide { opacity: 1; }
  .mn-map-card-compact { grid-template-columns: 96px minmax(0, 1fr); gap: 13px; }
  .mn-map-card-compact .mn-map-card-media { aspect-ratio: 1; }
  .mn-map-card-compact h2, .mn-map-card-text h2 { font-size: 15px; }
  .mn-map-card-compact .mn-map-card-body { padding-top: 0; }
  .mn-map-search-options { top: 13px; padding: 8px 12px; }
  .mn-map-search-options label { font-size: 10px; gap: 6px; }
  .mn-map-marker { max-width: 128px; padding: 6px 8px; font-size: 10px; }
  .mn-map-search-here { top: 60px; font-size: 11px; }
}
@media (max-width: 360px) {
  .mn-map-heading { flex-wrap: wrap; }
  .mn-map-conditions { margin-left: auto; margin-top: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .mn-map-list { scroll-behavior: auto; }
  .mn-map-card, .mn-map-card-media img, .mn-map-marker { transition: none; }
  .mn-map-loading::before { animation: none; }
}

@media (max-width: 900px) {
  .mn-map-page:has(.mn-map-workspace[data-map-view=map]) {
    height: 100dvh;
    overflow: hidden;
  }
  .mn-map-page:has(.mn-map-workspace[data-map-view=map]) .site-header[data-compact-header] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  .mn-map-page:has(.mn-map-workspace[data-map-view=map]) :is(.breadcrumbs, .mn-map-heading) {
    display: none;
  }
  .mn-map-workspace[data-map-view=map] .mn-map-panel {
    position: fixed;
    inset: 99px 23px 12px;
    height: auto;
    min-height: 0;
    z-index: 25;
  }
  .mn-map-workspace[data-map-view=map] .mn-map-canvas { min-height: 0; }
  .mn-map-workspace[data-map-view=map] .mn-map-zoom { bottom: 79px; }
}
@media (max-width: 760px) {
  .mn-map-page:has(.mn-map-workspace[data-map-view=map]) .site-header[data-compact-header] {
    clip-path: inset(0 0 calc(100% - 61px) 0);
  }
  .mn-map-page:has(.mn-map-workspace[data-map-view=map]) .header-search { visibility: hidden; }
  .mn-map-workspace[data-map-view=map] .mn-map-panel { inset: 70px 18px 12px; }
}
