:root {
  --bg: #f4efe5;
  --surface: rgba(255, 252, 246, 0.86);
  --surface-strong: #fffdf8;
  --ink: #1f2937;
  --muted: #5b6470;
  --accent: #134e4a;
  --accent-soft: #d6ebe8;
  --danger: #b91c1c;
  --success: #166534;
  --line: rgba(31, 41, 55, 0.12);
  --shadow: 0 18px 50px rgba(19, 78, 74, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(19, 78, 74, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f3e8 0%, #f3ede1 60%, #efe6d9 100%);
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 243, 232, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.5fr 1fr;
  padding: 2rem 0 1rem;
}

.landing-stage {
  padding: 2rem 0 1rem;
}

.map-shell {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(14, 65, 61, 0.06), rgba(14, 65, 61, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.map-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.56), transparent 18%),
    radial-gradient(circle at 75% 22%, rgba(19, 78, 74, 0.08), transparent 20%),
    linear-gradient(180deg, #efe6d9 0%, #f7f3ea 100%);
}

.map-ring,
.map-road,
.map-node {
  position: absolute;
}

.map-ring {
  border: 1px dashed rgba(19, 78, 74, 0.18);
  border-radius: 999px;
  animation: drift 18s linear infinite;
}

.map-ring--one {
  inset: 8% 16% 28% 12%;
}

.map-ring--two {
  inset: 18% 28% 14% 22%;
  animation-duration: 24s;
  animation-direction: reverse;
}

.map-road {
  border-radius: 999px;
  background: rgba(19, 78, 74, 0.14);
  transform-origin: left center;
}

.map-road--one {
  top: 24%;
  left: 18%;
  width: 56%;
  height: 10px;
  transform: rotate(16deg);
}

.map-road--two {
  top: 55%;
  left: 15%;
  width: 48%;
  height: 8px;
  transform: rotate(-12deg);
}

.map-road--three {
  top: 40%;
  right: 12%;
  width: 32%;
  height: 8px;
  transform: rotate(82deg);
}

.map-node {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--accent);
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(19, 78, 74, 0.08);
}

.map-node::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(19, 78, 74, 0.35);
  animation: pulse 2.8s infinite;
}

.map-node--centre {
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
}

.map-node--langford {
  top: 16%;
  left: 18%;
}

.map-node--kingsmere {
  top: 68%;
  left: 22%;
}

.map-node--gravenhill {
  top: 61%;
  right: 19%;
}

.map-node--launton {
  top: 18%;
  right: 17%;
}

.map-node--village {
  bottom: 16%;
  right: 28%;
}

.hero-popup,
.side-panel {
  position: absolute;
  z-index: 1;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(19, 78, 74, 0.16);
  backdrop-filter: blur(10px);
}

.hero-popup {
  top: 9%;
  left: 50%;
  width: min(580px, calc(100% - 2rem));
  transform: translateX(-50%);
  padding: 1.8rem;
}

.hero-popup h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.headline-list,
.icon-list,
.job-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.headline-item,
.icon-card,
.job-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 78, 74, 0.08);
}

.headline-item__tag,
.job-card__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.headline-item span:last-child,
.icon-card span,
.job-card span:last-child,
.side-panel__heading p {
  color: var(--muted);
}

.side-panel {
  width: min(320px, calc(100% - 2rem));
  padding: 1.1rem;
}

.side-panel--business {
  right: 2rem;
  top: 16%;
}

.side-panel--jobs {
  left: 2rem;
  bottom: 7%;
}

.side-panel__heading h2 {
  margin: 0;
}

.side-panel__heading p {
  margin: 0.25rem 0 0;
}

.icon-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
}

.icon-card__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.hero__copy,
.hero__panel,
.section-block,
.detail-card,
.submit-card,
.filter-card,
.admin-card,
.empty-card,
.notice-banner {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero h1,
.detail-card h1,
.section-heading h2,
.admin-shell h1 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
}

.hero__text {
  max-width: 42rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero__panel,
.filter-card,
.submit-card,
.admin-card,
.detail-card {
  padding: 1.2rem;
}

.filter-card,
.submit-card {
  display: grid;
  gap: 1rem;
}

.section-block {
  margin-top: 1.4rem;
  padding: 1.2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading p,
.meta-row,
.detail-meta,
.admin-card p,
.site-nav,
.back-link {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.empty-card {
  min-height: 210px;
  padding: 1rem;
  background: var(--surface-strong);
  border-radius: 20px;
  border: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.post-card--urgent {
  background: linear-gradient(180deg, #fff5f5 0%, #fffdf8 100%);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  background: var(--accent);
}

.pill--muted {
  background: #516173;
}

.pill--danger {
  background: var(--danger);
}

.pill--success {
  background: var(--success);
}

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

input,
select,
textarea,
button {
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: white;
}

textarea {
  resize: vertical;
}

button {
  padding: 0.92rem 1rem;
  font-weight: 700;
  color: white;
  background: var(--accent);
  cursor: pointer;
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.toggle-row input {
  width: auto;
}

.notice-banner {
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  color: var(--accent);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 78, 74, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(19, 78, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 78, 74, 0); }
}

@keyframes drift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.01); }
  100% { transform: rotate(0deg) scale(1); }
}

.detail-shell,
.admin-shell {
  padding-top: 2rem;
}

.detail-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-body {
  font-size: 1.1rem;
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid div {
  padding: 1rem;
  border-radius: 16px;
  background: white;
}

.detail-grid dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-card__header,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-actions button:nth-child(2) {
  background: #475569;
}

.admin-actions button:nth-child(3) {
  background: var(--danger);
}

@media (max-width: 900px) {
  .card-grid,
  .field-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .map-shell {
    min-height: auto;
    padding: 1rem;
  }

  .hero-popup,
  .side-panel {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    transform: none;
    margin-bottom: 1rem;
  }

  .map-backdrop {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    margin-bottom: 1rem;
  }

  .section-heading,
  .admin-card__header,
  .admin-actions,
  .site-header__inner {
    align-items: start;
    flex-direction: column;
  }
}
