.center-tour {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  width: min(672px, calc(100% - 32px));
  max-width: none;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  color: #222;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.center-tour::backdrop {
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(3px);
}

.center-tour__content {
  padding: 16px;
}

.center-tour__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.center-tour__header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.center-tour__address {
  margin: 8px 0 0;
  font-size: 14px;
  color: #666;
  line-height: 20px;
}

.center-tour__close {
  flex: none;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.center-tour__close:hover {
  background: #f3f5f1;
}

.center-tour__main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #f1f3ef;
}

.center-tour__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.center-tour__thumbs button {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f1f3ef;
  cursor: pointer;
}

.center-tour__thumbs button[aria-pressed="true"] {
  border-color: #84bd23;
}

.center-tour__thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center-tour__close:focus-visible,
.center-tour__thumbs button:focus-visible {
  outline: 2px solid #6c9f28;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .center-tour {
    width: calc(100% - 32px);
    max-height: 85vh;
  }
}

.center-tour__main[src$="/location-map.png"] {
  object-fit: contain;
  padding: 8px;
  background: #f4f6ef;
}
