:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #2563eb;
  --border: #dbe3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 60%, #0ea5e9);
}

.hero__layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.hero__tag {
  margin: 0;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.hero__text {
  color: #e8f0ff;
  max-width: 720px;
}

.hero__crest {
  margin: 0;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
}

.hero__crest img {
  width: 120px;
  display: block;
}

section {
  margin: 24px 0;
}

.map-section .container,
.posts .container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

#map {
  height: 460px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.map-status {
  color: #b91c1c;
  min-height: 24px;
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.post-card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.post-card__body {
  padding: 12px 14px;
}

.post-card__text {
  color: var(--muted);
}

.post-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.post-card__button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.post-map {
  height: 180px;
  border-top: 1px solid var(--border);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

.modal__content {
  position: relative;
  width: min(860px, 95%);
  margin: 3vh auto;
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.modal__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.modal__body {
  padding: 14px 16px;
}

.modal__address {
  color: var(--muted);
}

.modal__map {
  height: 280px;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .hero__layout {
    flex-direction: column;
    align-items: flex-start;
  }

  #map {
    height: 360px;
  }

  .modal__image {
    height: 220px;
  }

  .modal__map {
    height: 220px;
  }
}
