.hd-hm-map-app {
  --hdhm-primary: #2563eb;
  --hdhm-map-height: 760px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  color: #111827;
}

.hd-hm-shell {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.hd-hm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #eef2f7;
}

.hd-hm-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--hdhm-primary);
}

.hd-hm-title {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.hd-hm-topbar-right {
  text-align: right;
  flex-shrink: 0;
}

.hd-hm-result-meta {
  display: block;
  color: #6b7280;
  font-size: 12px;
}

.hd-hm-result-count {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.hd-hm-toolbar {
  padding: 16px 22px 20px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.hd-hm-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(96px,0.7fr) minmax(110px,0.78fr) minmax(110px,0.78fr) minmax(0,1.35fr) minmax(88px,0.68fr) auto auto;
  gap: 10px;
}

.hd-hm-toolbar select,
.hd-hm-toolbar input,
.hd-hm-toolbar button {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
}

.hd-hm-toolbar input:focus,
.hd-hm-toolbar select:focus {
  outline: none;
  border-color: var(--hdhm-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.hd-hm-search-btn,
.hd-hm-reset-btn,
.hd-hm-chip,
.hd-hm-card,
.hd-hm-page-btn {
  cursor: pointer;
}

.hd-hm-search-btn {
  background: var(--hdhm-primary) !important;
  color: #fff;
  border-color: var(--hdhm-primary) !important;
  font-weight: 700;
}

.hd-hm-reset-btn {
  font-weight: 700;
}

.hd-hm-tags-wrap {
  margin-top: 14px;
}

.hd-hm-tag-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 700;
}

.hd-hm-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hd-hm-chip,
.hd-hm-chip-mini,
.hd-hm-overlay-chip,
.hd-hm-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hd-hm-chip {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  padding: 8px 12px;
}

.hd-hm-chip.is-active {
  background: var(--hdhm-primary);
  border-color: var(--hdhm-primary);
  color: #fff;
}

.hd-hm-chip-mini,
.hd-hm-overlay-chip {
  padding: 5px 10px;
  background: #eff6ff;
  color: var(--hdhm-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-hm-content {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  height: var(--hdhm-map-height);
  min-height: 520px;
}

.hd-hm-list-panel {
  order: 1;
  border-right: 1px solid #eef2f7;
  background: #fff;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hd-hm-map-panel {
  order: 2;
  position: relative;
  min-height: 0;
  height: 100%;
  background: #f3f4f6;
}

.hd-hm-map-canvas {
  position: absolute;
  inset: 0;
}

.hd-hm-list-head {
  padding: 16px 14px 10px;
  border-bottom: 1px solid #eef2f7;
}

.hd-hm-list-title {
  font-size: 16px;
  font-weight: 800;
}

.hd-hm-list-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.hd-hm-list {
  padding: 10px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.hd-hm-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hd-hm-card:hover,
.hd-hm-card.is-active {
  border-color: #bfdbfe;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.hd-hm-card-main {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.hd-hm-card-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hdhm-primary);
  font-size: 22px;
  font-weight: 800;
}

.hd-hm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hd-hm-card-meta {
  min-width: 0;
}

.hd-hm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hd-hm-card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hd-hm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.hd-hm-badge-featured {
  background: #f3f4f6;
  color: #9ca3af;
  white-space: nowrap;
}


.hd-hm-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hd-hm-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hd-hm-like-btn:hover {
  border-color: #fecaca;
  color: #ef4444;
}

.hd-hm-like-btn.is-liked {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.hd-hm-like-icon {
  font-size: 14px;
  line-height: 1;
}

.hd-hm-like-count {
  line-height: 1;
}

.hd-hm-like-btn--overlay {
  min-height: 30px;
}

.hd-hm-overlay-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hd-hm-overlay-top .hd-hm-overlay-title {
  margin-bottom: 0;
}

.hd-hm-card-phone {
  margin-top: 6px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
}

.hd-hm-card-service {
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.hd-hm-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.hd-hm-card-link:hover {
  border-color: #bfdbfe;
  color: var(--hdhm-primary);
}

.hd-hm-empty {
  padding: 24px 18px;
  text-align: center;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  background: #fff;
}

.hd-hm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 10px 14px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.hd-hm-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.hd-hm-page-btn:hover {
  border-color: #93c5fd;
  color: var(--hdhm-primary);
}

.hd-hm-page-btn.is-active {
  background: var(--hdhm-primary);
  border-color: var(--hdhm-primary);
  color: #fff;
}

.hd-hm-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.hd-hm-overlay {
  min-width: 230px;
  max-width: 260px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.hd-hm-overlay-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 10px;
}

.hd-hm-overlay-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
}

.hd-hm-overlay-label {
  color: #6b7280;
  font-weight: 700;
}

.hd-hm-overlay-value {
  color: #111827;
  word-break: break-word;
}

.hd-hm-overlay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border-radius: 12px;
  background: var(--hdhm-primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.hd-hm-notice {
  padding: 18px 20px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .hd-hm-toolbar-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hd-hm-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hd-hm-topbar-right {
    text-align: left;
  }

  .hd-hm-toolbar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hd-hm-content {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .hd-hm-list-panel {
    order: 1;
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
    display: block;
  }

  .hd-hm-list {
    flex: none;
    max-height: none;
    overflow: visible;
  }

  .hd-hm-map-panel {
    order: 2;
    min-height: 58vh;
    height: 58vh;
  }
}

@media (max-width: 640px) {
  .hd-hm-shell {
    border-radius: 18px;
  }

  .hd-hm-topbar,
  .hd-hm-toolbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hd-hm-title {
    font-size: 24px;
  }

  .hd-hm-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .hd-hm-list {
    padding: 10px;
  }

  .hd-hm-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .hd-hm-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .hd-hm-map-panel {
    min-height: 52vh;
  }
}
