.map-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Filters */
.map-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid #ccc;
  border-radius: 2rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #1D9E75;
  color: #1D9E75;
}

.filter-btn.active {
  background: #1D9E75;
  border-color: #1D9E75;
  color: #fff;
}

/* Map + Panel layout */
.map-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.map-container {
  flex: 1;
  min-width: 0;
}

/* SVG map styles */
.geolonia-svg-map {
  width: 100%;
  height: auto;
}

.geolonia-svg-map .prefecture {
  fill: #e8e8e8;
  cursor: pointer;
  transition: fill 0.2s;
}

.geolonia-svg-map .prefecture:hover {
  fill: #a8d5c2;
}

.geolonia-svg-map .prefecture.has-reviews {
  fill: #1D9E75;
}

.geolonia-svg-map .prefecture.selected {
  fill: #0f6e56;
}

/* Side panel */
.map-panel {
  width: 340px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  display: none;
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 2rem;
}

.map-panel.open {
  display: block;
}

.map-panel-inner {
  padding: 1.25rem;
}

.map-panel-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.map-panel-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1D9E75;
}

/* Review cards */
.review-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.review-card:last-child {
  border-bottom: none;
}

.review-card:hover .review-card-title {
  color: #1D9E75;
}

.review-card-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f0f0f0;
}

.review-card-thumb-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: #e8f4f0;
  flex-shrink: 0;
}

.review-card-body {
  flex: 1;
  min-width: 0;
}

.review-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.review-card-type {
  font-size: 0.75rem;
  color: #fff;
  background: #1D9E75;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 1rem;
  margin-bottom: 0.25rem;
}

.review-card-excerpt {
  font-size: 0.8rem;
  color: #888;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.map-panel-empty {
  color: #aaa;
  font-size: 0.9rem;
  padding: 1rem 0;
}

.map-panel-loading {
  color: #aaa;
  font-size: 0.9rem;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .map-wrap {
    flex-direction: column;
  }
  .map-panel {
    width: 100%;
    position: static;
  }
}
