.trestle-sync-map-root {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.trestle-sync-map-root .trestle-sync-map__map {
  width: 100%;
  min-height: 320px;
  height: var(--trestle-map-height, 480px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.trestle-sync-map-root .trestle-sync-map__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.trestle-sync-map-root .trestle-sync-map__card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.75rem;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.trestle-sync-map-root .trestle-sync-map__card:hover,
.trestle-sync-map-root .trestle-sync-map__card:focus-visible,
.trestle-sync-map-root .trestle-sync-map__card.is-active {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: #6366f1;
  outline: none;
}

.trestle-sync-map-root .trestle-sync-map__thumb-wrap {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
}

.trestle-sync-map-root .trestle-sync-map__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f4f5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trestle-sync-map-root .trestle-sync-map__thumb.is-loaded {
  opacity: 1;
}

.trestle-sync-map-root .trestle-sync-map__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.6);
  border-top-color: rgba(37, 99, 235, 0.8);
  animation: trestle-spin 0.8s linear infinite;
}

@keyframes trestle-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.trestle-sync-map-root .trestle-sync-map__address {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.trestle-sync-map-root .trestle-sync-map__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.trestle-sync-map-root .trestle-sync-map__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.trestle-sync-map-root .trestle-sync-map__market {
  font-size: 0.8rem;
  color: #6b7280;
}

.trestle-sync-map-root .trestle-sync-map__agent {
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.trestle-sync-map-root .trestle-sync-map__call {
  margin-top: 0.25rem;
}

.trestle-sync-map-root .trestle-sync-map__call-link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: #facc15 !important;
  color: #1f2937 !important;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease;
  font-weight: 600;
}

.trestle-sync-map-root .trestle-sync-map__call-link:hover,
.trestle-sync-map-root .trestle-sync-map__call-link:focus-visible {
  background: #fbbf24 !important;
  color: #111827 !important;
}

.trestle-sync-map-root .trestle-sync-map__empty,
.trestle-sync-map-root .trestle-sync-map__error {
  padding: 1rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}

.trestle-sync-map-root .trestle-sync-map__notice {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .trestle-sync-map-root {
    grid-template-columns: 1fr;
  }

  .trestle-sync-map-root .trestle-sync-map__list {
    max-height: none;
    order: -1;
  }
}
