@import url("vendor/leaflet/leaflet.css");

#goofee-market-map-section,
#goofee-market-map-section * { box-sizing: border-box; }

.ghmm-section {
  width: 100%;
  max-width: 1000px;
  margin: 28px auto 26px;
  padding: 0 14px;
  color: #17384b;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

.ghmm-section[hidden] { display: none !important; }

.ghmm-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 25px 15px;
  color: #fff;
  background: linear-gradient(120deg, #006c98 0%, #008db3 58%, #00a7be 100%);
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
}

.ghmm-heading::after {
  content: "";
  width: 180px;
  height: 180px;
  position: absolute;
  right: -68px;
  top: -96px;
  border: 30px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.ghmm-eyebrow {
  margin: 0 0 4px !important;
  color: #ffe06b !important;
  font-size: 8px !important;
  font-weight: 900;
  letter-spacing: .16em;
}

.ghmm-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .18em;
  color: #123047;
  font-family: "Arial Black", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
  filter: drop-shadow(0 5px 8px rgba(0,45,68,.18));
}
.ghmm-title-area,
.ghmm-title-market,
.ghmm-title-map {
  -webkit-text-stroke: 1.25px rgba(255,255,255,.96);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 rgba(0,63,87,.38);
}
.ghmm-title-area { font-size: clamp(18px,2.25vw,25px); }
.ghmm-title-market { font-size: clamp(25px,3vw,35px); }
.ghmm-title-map {
  margin-left: .03em;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(32px,4vw,46px);
  font-style: italic;
  letter-spacing: .025em;
  transform: skewX(-5deg);
}

.ghmm-heading > div > p:last-child {
  margin: 5px 0 0 !important;
  color: rgba(255,255,255,.9) !important;
  font-size: 10px !important;
  line-height: 1.6;
}

.ghmm-free {
  z-index: 1;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 auto;
  color: #075477;
  background: #ffc400;
  border: 3px solid rgba(255,255,255,.78);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(1,55,79,.22);
  text-align: center;
}

.ghmm-free strong { font-size: 17px; line-height: 1; }
.ghmm-free span { margin-top: 3px; font-size: 7px; font-weight: 900; line-height: 1.25; }

.ghmm-shell {
  overflow: hidden;
  border: 1px solid #b8d6df;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(4,77,106,.13);
}

.ghmm-controls {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-bottom: 1px solid #d8e6eb;
  background: #fff;
  flex-wrap: wrap;
}

.ghmm-switch { display: flex; gap: 6px; }
.ghmm-switch button {
  appearance: none;
  padding: 8px 13px;
  color: #58727e;
  background: #edf3f5;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.ghmm-switch button:hover,
.ghmm-switch button:focus-visible { color: #075477; outline: 2px solid #00a0bd; outline-offset: 2px; }
.ghmm-switch button.is-active { color: #17384b; background: #ffc400; box-shadow: 0 4px 12px rgba(255,196,0,.28); }

.ghmm-mansion-filter {
  min-width: 330px;
  display: grid;
  grid-template-columns: minmax(120px,.8fr) minmax(170px,1.2fr);
  gap: 8px;
  flex: 1 1 350px;
}
.ghmm-mansion-filter[hidden] { display: none !important; }
.ghmm-mansion-filter label { min-width: 0; display: block; }
.ghmm-mansion-filter label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ghmm-mansion-filter select,
.ghmm-mansion-filter input {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0 34px 0 11px;
  color: #17384b;
  background: #f7fbfc;
  border: 1px solid #c8dce3;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.ghmm-mansion-filter input { padding-right: 11px; }
.ghmm-mansion-filter select:focus,
.ghmm-mansion-filter input:focus { border-color: #008ead; outline: 2px solid rgba(0,142,173,.16); }

.ghmm-body { min-height: 390px; display: grid; grid-template-columns: minmax(0,1fr) 300px; }
.ghmm-map { position: relative; min-height: 390px; background: #e8f4f6; }
.ghmm-loading {
  position: absolute;
  z-index: 1000;
  left: 50%;
  top: 50%;
  padding: 11px 15px;
  color: #075477;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(5,80,117,.14);
  transform: translate(-50%,-50%);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.ghmm-section.is-ready .ghmm-loading { display: none; }

.ghmm-detail { min-width: 0; padding: 0; border-left: 1px solid #d5e4e9; background: #fff; }
.ghmm-town-panel { padding: 18px 17px; }
.ghmm-badge { display: inline-block; padding: 6px 10px; color: #fff; background: #008ead; border-radius: 6px; font-size: 10px; font-weight: 900; }
.ghmm-town-panel > p { margin: 13px 0 2px !important; color: #0089a8 !important; font-size: 10px !important; font-weight: 900; }
.ghmm-town { margin: 0 0 11px; color: #075477; font-size: 23px; font-weight: 900; line-height: 1.3; }
.ghmm-town-panel dl { margin: 0; border-top: 1px solid #dbe7eb; }
.ghmm-town-panel dl div { padding: 9px 0; border-bottom: 1px solid #dbe7eb; }
.ghmm-town-panel dt { color: #6b818c; font-size: 10px; }
.ghmm-town-panel dd { margin: 4px 0 0; color: #17384b; font-size: 10px; }
.ghmm-town-panel dd strong {
  margin-right: 3px;
  color: #075477;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Yu Gothic", sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
  letter-spacing: .015em;
}
.ghmm-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 11px 14px;
  color: #17384b !important;
  background: #ffc400;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(255,196,0,.26);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none !important;
}
.ghmm-more:hover { color: #fff !important; background: #008ead; }
.ghmm-more span { font-size: 18px; }

.ghmm-mansion-panel { height: 390px; display: flex; flex-direction: column; background: #f4f9fa; }
.ghmm-mansion-panel[hidden], .ghmm-town-panel[hidden] { display: none !important; }
.ghmm-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px 6px;
  color: #075477;
}
.ghmm-list-head strong { font-size: 13px; font-weight: 900; }
.ghmm-list-head span { padding: 4px 8px; color: #fff; background: #008ead; border-radius: 999px; font-size: 10px; font-weight: 900; }
.ghmm-list-guide { margin: 0 !important; padding: 0 13px 7px; color: #6b818c !important; font-size: 8px !important; }
.ghmm-mansion-list { min-height: 0; padding: 0 8px 9px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #99bdc8 transparent; }
.ghmm-mansion-card {
  margin: 0 0 7px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e5ea;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(5,80,117,.05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ghmm-mansion-card:hover { border-color: #7dbdca; box-shadow: 0 7px 18px rgba(5,80,117,.11); transform: translateY(-1px); }
.ghmm-mansion-card.is-selected { border-color: #00a0bd; box-shadow: 0 0 0 2px rgba(0,160,189,.14), 0 8px 20px rgba(5,80,117,.12); }
.ghmm-card-main { width: 100%; padding: 10px 12px 7px; color: inherit; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
.ghmm-card-main > strong { display: block; color: #075477; font-size: 13px; font-weight: 900; line-height: 1.5; }
.ghmm-card-address { display: block; margin-top: 3px; color: #6b818c; font-size: 9px; line-height: 1.5; }
.ghmm-card-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ghmm-card-stats b {
  color: #e15c1b;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Yu Gothic", sans-serif;
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.ghmm-card-stats b small { margin-left: 2px; color: #17384b; font-family: inherit; font-size: 9px; font-weight: 900; }
.ghmm-card-stats i { color: #58727e; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.ghmm-card-count { display: block; margin-top: 4px; color: #718792; font-size: 8px; }
.ghmm-mansion-card > a { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; color: #075477 !important; background: #eef8fa; border-top: 1px solid #e0ecef; font-size: 8px; font-weight: 900; text-decoration: none !important; }
.ghmm-mansion-card > a:hover { color: #fff !important; background: #008ead; }
.ghmm-mansion-card > a span { font-size: 14px; }
.ghmm-empty { margin: 12px 4px; padding: 20px 14px; color: #607984; background: #fff; border: 1px dashed #b9d1d9; border-radius: 9px; font-size: 10px; line-height: 1.8; }

.ghmm-section .ghmm-price-pin { background: transparent; border: 0; }
.ghmm-section .ghmm-price-pin span {
  position: relative;
  min-width: 72px;
  height: 30px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  padding: 5px 8px 4px;
  color: #17384b;
  background: #ffc400;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(3,67,92,.28);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Yu Gothic", sans-serif;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ghmm-section .ghmm-price-pin span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top: 7px solid #ffc400;
  border-bottom: 0;
  transform: translateX(-50%);
}
.ghmm-section .ghmm-price-pin small { margin-left: 2px; font-family: inherit; font-size: 7px; font-weight: 900; }
.ghmm-section .ghmm-price-pin.is-selected { z-index: 700 !important; }
.ghmm-section .ghmm-price-pin.is-selected span { height: 36px; color: #fff; background: #007fa3; border-color: #ffc400; font-size: 17px; box-shadow: 0 7px 18px rgba(3,67,92,.36); }
.ghmm-section .ghmm-price-pin.is-selected span::after { border-top-color: #007fa3; }

.ghmm-source { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 12px; color: #687f8a; background: #f3f9fa; font-size: 8px; }
.ghmm-source strong { color: #075477; }
.ghmm-source small { font-size: 8px; }

.ghmm-section .leaflet-container { font-family: inherit; }
.ghmm-section .leaflet-control-attribution { font-size: 8px; }
.ghmm-section .goofee-map-tooltip { padding: 7px 9px; color: #17384b; border: 0; border-radius: 6px; box-shadow: 0 8px 20px rgba(5,80,117,.18); font-size: 10px; line-height: 1.5; }
.ghmm-section .goofee-map-tooltip strong { color: #075477; font-size: 12px; }
.ghmm-section #ghmm-map.is-loading::after { content: "地図を読み込んでいます…"; position: absolute; z-index: 1000; left: 50%; top: 50%; padding: 10px 14px; color: #075477; background: rgba(255,255,255,.95); border-radius: 7px; transform: translate(-50%,-50%); font-size: 11px; font-weight: 900; }

@media (max-width: 680px) {
  .ghmm-section { margin: 22px auto 22px; padding: 0 8px; }
  .ghmm-heading { padding: 17px 16px 15px; border-radius: 12px 12px 0 0; }
  .ghmm-title { padding-right: 0; font-size: 20px; }
  .ghmm-title { gap: .14em; white-space: normal; }
  .ghmm-title-area { font-size: 16px; }
  .ghmm-title-market { font-size: 23px; }
  .ghmm-title-map { font-size: 30px; }
  .ghmm-heading > div > p:last-child { font-size: 9px !important; }
  .ghmm-free { display: none; }
  .ghmm-shell { border-radius: 0 0 12px 12px; }
  .ghmm-controls { align-items: stretch; flex-direction: column; gap: 7px; }
  .ghmm-switch { width: 100%; min-width: 0; }
  .ghmm-switch button { min-width: 0; flex: 1 1 0; padding: 9px 7px; }
  .ghmm-mansion-filter { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); flex: 0 0 auto; }
  .ghmm-body { grid-template-columns: 1fr; grid-template-rows: 300px auto; }
  .ghmm-map { min-height: 300px; }
  .ghmm-detail { border-top: 1px solid #d5e4e9; border-left: 0; }
  .ghmm-town-panel { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 14px; padding: 15px; }
  .ghmm-town-panel .ghmm-badge, .ghmm-town-panel > p, .ghmm-town-panel .ghmm-town { grid-column: 1; }
  .ghmm-town-panel dl { grid-column: 2; grid-row: 1 / span 3; }
  .ghmm-town-panel dl div { padding: 7px 0; }
  .ghmm-town { margin-bottom: 8px; font-size: 22px; }
  .ghmm-more { grid-column: 1 / -1; margin-top: 11px; }
  .ghmm-mansion-panel { height: 320px; }
  .ghmm-list-head { padding-top: 13px; }
  .ghmm-mansion-list { padding-bottom: 10px; }
  .ghmm-source { display: block; }
  .ghmm-source small { display: block; margin-top: 3px; line-height: 1.5; }
}

/* TOPページのクイック査定も、相場MAPと同じ密度・横幅に整える */
@media (min-width: 721px) {
  .ghsc-quick-relocated {
    margin-top: 22px !important;
    margin-bottom: 26px !important;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-hero {
    border-top-width: 4px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 22px rgba(255,196,0,.16);
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-hero-inner {
    padding: 16px 16px 34px;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-badge {
    margin-bottom: 5px;
    padding: 4px 10px;
    font-size: 9px;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-logo-line {
    gap: 10px;
    margin-bottom: 4px;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-logo-line strong { font-size: clamp(38px,5vw,58px); }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-logo-line em { font-size: clamp(13px,1.6vw,20px); }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-logo-line b { font-size: clamp(20px,2.7vw,31px); }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-lead {
    margin-bottom: 2px;
    font-size: clamp(12px,1.4vw,15px);
    line-height: 1.45;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-note { font-size: 10px; line-height: 1.45; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-tabs { margin-top: 10px; gap: 5px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-tab {
    padding: 8px 18px;
    border-radius: 9px 9px 0 0;
    font-size: 12px;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-card {
    padding: 13px 18px 14px;
    border-top-width: 2px;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-address-box { margin-bottom: 9px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-zip-row { margin-bottom: 4px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-common-row,
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-grid { gap: 9px 14px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-grid { margin-top: 10px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-card label { gap: 4px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-card label span { font-size: 11px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-card select,
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-card input {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 13px;
  }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-zip-row input { min-height: 30px !important; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-zip-row button { min-height: 30px; padding: 5px 10px; font-size: 11px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-actions { margin-top: 12px; }
  .ghsc-quick-relocated .gqsa-wrap--compact .gqsa-calc { padding: 9px 25px; font-size: 13px; }
}

