:root {
  --accent: #1877f2;
  --highlight: rgba(255, 0, 0, 0.25);
  --highlight-border: rgba(255, 0, 0, 0.95);
  --text: #1f2937;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(18px, 4vw, 32px) auto;
}

.narrow {
  max-width: 680px;
}

.page-header {
  margin-bottom: clamp(16px, 3vw, 24px);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
}

.hint {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.55;
}

.map-card {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  background: #ddd;
  overflow: hidden;
}

.map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.map-wrap {
  position: relative;
  width: 100%;
  min-width: 720px;
  aspect-ratio: 1500 / 1033;
}

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

.hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.building-area {
  fill: rgba(255, 0, 0, 0.08);
  stroke: rgba(255, 0, 0, 0.36);
  stroke-width: 5;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.building-area:hover,
a:focus .building-area,
a:focus-visible .building-area {
  fill: var(--highlight);
  stroke: var(--highlight-border);
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.75));
}

.building-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.building-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--card);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.building-links a:hover,
.building-links a:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--accent);
}

.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.25);
}

.facebook {
  background: var(--accent);
}

.fb-icon,
.fb-round span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.join-box {
  margin-top: 32px;
  padding: clamp(20px, 5vw, 28px);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.join-box p {
  margin: 0 0 18px;
  font-size: clamp(19px, 5vw, 22px);
  font-weight: 800;
  line-height: 1.25;
}

.fb-round {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  text-decoration: none;
}

.fb-round span {
  width: 44px;
  height: 44px;
  font-size: 38px;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1180px);
    margin: 16px auto 24px;
  }

  .map-card {
    margin-inline: -10px;
    border-radius: 0;
  }

  .map-wrap {
    min-width: 760px;
  }

  .building-area {
    fill: rgba(255, 0, 0, 0.12);
    stroke: rgba(255, 0, 0, 0.52);
    stroke-width: 8;
  }

  .building-links {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .map-wrap {
    min-width: 700px;
  }

  .join-box {
    margin-top: 24px;
  }
}
