/* ===== 物件マップ ===== */
.property-map-wrap {
  margin: 24px 0 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.property-map-label {
  background: #2a2a2a;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  margin: 0;
}
#property-map {
  width: 100%;
  height: 500px;
}

/* ===== PC用 InfoWindow ポップアップ ===== */
.prop-popup {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  padding: 14px 14px 12px;
  min-width: 260px;
  max-width: 320px;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif;
}
.prop-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #555;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  padding: 2px 8px;
  cursor: pointer;
  line-height: 1.4;
  z-index: 10;
}
.prop-popup-close:hover {
  background: #222;
}
.prop-popup-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-right: 54px;
}
.prop-popup-img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.prop-popup-body {
  flex: 1;
  min-width: 0;
}
.prop-popup-price {
  color: #c0392b;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 3px;
}
.prop-popup-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #444;
  font-size: 1.0rem;
  border-radius: 3px;
  padding: 1px 6px;
  margin-bottom: 4px;
}
.prop-popup-detail {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.55;
  margin: 0;
}
.prop-popup-detail span {
  display: inline-block;
  margin-right: 4px;
  color: #888;
}
.prop-popup-ttl {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 8px 0 4px;
  line-height: 1.4;
}
.prop-popup-content-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.prop-popup-content-link:hover {
  opacity: 0.8;
}
.prop-popup-link {
  display: block;
  margin-top: 8px;
  text-align: right;
  font-size: 1.05rem;
  color: #c0392b;
  text-decoration: none;
  font-weight: 600;
}
.prop-popup-link:hover {
  text-decoration: underline;
}

/* ===== カスタムピンOverlay（色付きピン + 画像） ===== */
.custom-pin-overlay {
  position: absolute;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.custom-pin-overlay:hover {
  transform: scale(1.15);
  z-index: 10;
}

/* ===== マーカー上のNEWバッジ (OverlayView) ===== */
.map-new-badge {
  position: absolute;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  z-index: 20;
}

/* ===== InfoWindow内のNEWバッジ ===== */
.prop-popup-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.prop-popup-img-wrap .prop-popup-img {
  display: block;
}
.prop-popup-new {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #c0392b;
  color: #fff;
  font-size: 1.0rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ===== ボトムシート内のNEWバッジ ===== */
.prop-bottom-sheet-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.prop-bottom-sheet-img-wrap .prop-bottom-sheet-img {
  display: block;
}
.prop-bottom-sheet-new {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #c0392b;
  color: #fff;
  font-size: 1.0rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ===== Google Maps InfoWindow リセット ===== */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22) !important;
  max-width: 360px !important;
  overflow: visible !important;
}
.gm-style .gm-style-iw-d {
  overflow: auto !important;
  max-height: none !important;
}
.gm-style .gm-style-iw-t::after {
  background: #fff;
}
.gm-ui-hover-effect {
  display: none !important;
}

/* ===== SP用オーバーレイ ===== */
.prop-map-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.25s;
}
.prop-map-overlay.open {
  display: block;
  opacity: 1;
}

/* ===== SP用ボトムシート（モーダル） ===== */
.prop-bottom-sheet {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  width: 88%;
  max-width: 360px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  padding: 20px 16px 20px;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif;
}
.prop-bottom-sheet.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.prop-bottom-sheet-handle {
  display: none;
}
.prop-bottom-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #555;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  padding: 3px 10px;
  cursor: pointer;
  line-height: 1.4;
}
.prop-bottom-sheet-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 52px;
}
.prop-bottom-sheet-img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.prop-bottom-sheet-body {
  flex: 1;
  min-width: 0;
}
.prop-bottom-sheet-price {
  color: #c0392b;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}
.prop-bottom-sheet-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #444;
  font-size: 1.0rem;
  border-radius: 3px;
  padding: 1px 7px;
  margin-bottom: 5px;
}
.prop-bottom-sheet-detail {
  font-size: 1.0rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 2px;
}
.prop-bottom-sheet-detail span {
  color: #888;
  margin-right: 4px;
}
.prop-bottom-sheet-ttl {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 12px 0 6px;
  line-height: 1.4;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.prop-bottom-sheet-link {
  display: block;
  text-align: center;
  background: #c0392b;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
  margin-top: 10px;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 767px) {
  #property-map {
    height: 320px;
  }
}
