@charset "UTF-8";

/* ============================================================
   ctn-map.css — フロント地図（Leaflet + 地理院タイル）
   GC_GeoMap::render() が出力するマークアップ用スタイル
   ※ ctn-map.scss と同期すること
   ============================================================ */

.ctn-map-block {
  width: 100%;
  margin: 0 0 8px;
}

.ctn-map {
  width: 100%;
  min-height: 200px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f1f5f9;
  z-index: 0;
}

.ctn-map.ctn-map--failed {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctn-map .ctn-map-fallback {
  margin: 0;
  padding: 16px;
  color: #64748b;
  font-size: 14px;
}

.ctn-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ctn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

.ctn-map-link:hover {
  opacity: 0.88;
}

.ctn-map-link .ctn-map-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.ctn-map-link--view {
  background: #1a73e8;
}

.ctn-map-link--view .ctn-map-link-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
}

.ctn-map-link--route {
  background: #188038;
}

.ctn-map-link--route .ctn-map-link-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21.71 11.29l-9-9a.996.996 0 00-1.41 0l-9 9a.996.996 0 000 1.41l9 9c.39.39 1.02.39 1.41 0l9-9a.996.996 0 000-1.41zM14 14.5V12h-4v3H8v-4c0-.55.45-1 1-1h5V7.5l3.5 3.5-3.5 3.5z'/%3E%3C/svg%3E");
}

@media screen and (max-width: 640px) {
  .ctn-map-links {
    flex-direction: column;
  }
  .ctn-map-link {
    width: 100%;
    justify-content: center;
  }
}
