:root {
  --bg-deep: #102124;
  --bg-mid: #1d3539;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(7, 36, 44, 0.14);
  --ink: #162025;
  --muted: #4b5b63;
  --mint: #16a085;
  --mint-deep: #0d6b58;
  --warn: #9f5d22;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 22px 44px rgba(5, 19, 23, 0.35);
  --shadow-md: 0 12px 28px rgba(11, 32, 37, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(49, 220, 170, 0.24), transparent 35%),
    radial-gradient(circle at 80% 12%, rgba(86, 168, 255, 0.2), transparent 38%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 65%);
}

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 90%);
}

.search-app {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 40px;
  display: grid;
  gap: 18px;
}

.hero,
.panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.hero {
  padding: clamp(22px, 4vw, 34px);
}

.eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22, 160, 133, 0.18);
  color: #e2fff8;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(33px, 5vw, 52px);
  line-height: 1;
  color: #f5fffd;
  font-family: "Archivo Black", sans-serif;
}

.hero-copy {
  margin: 0;
  color: rgba(230, 245, 246, 0.9);
  max-width: 720px;
  line-height: 1.66;
}

.panel {
  padding: 18px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(236, 251, 248, 0.92);
  font-weight: 800;
}

.field input {
  width: 100%;
  border: 1px solid rgba(219, 241, 238, 0.42);
  background: rgba(248, 255, 254, 0.96);
  color: #103337;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  outline: none;
}

.field input:focus {
  border-color: rgba(22, 160, 133, 0.7);
  box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.2);
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px dashed rgba(225, 248, 244, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(8, 39, 45, 0.2);
}

.checkbox-field span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  color: #e8f8f5;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.category-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.category-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(233, 252, 248, 0.34);
  background: rgba(7, 33, 38, 0.26);
}

.category-chip span {
  font-size: 13px;
  color: #ebfbf7;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.category-chip input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.primary-button {
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  color: #f7fffe;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
  padding: 13px 16px;
  box-shadow: var(--shadow-md);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.form-status {
  margin: 0;
  color: #dcfff8;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.panel--result {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.6);
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.result-head h2 {
  margin: 2px 0 4px;
  font-size: 24px;
  font-family: "Archivo Black", sans-serif;
}

#result-meta {
  margin: 0;
  color: var(--muted);
}

.result-list {
  display: grid;
  gap: 12px;
}

.empty-state {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  background: rgba(241, 248, 246, 0.72);
}

.empty-state strong {
  display: block;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
}

.result-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 59, 64, 0.14);
  background: #fbfffe;
  box-shadow: 0 8px 20px rgba(10, 34, 40, 0.08);
}

.result-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.result-card h3 {
  margin: 0;
  font-size: 20px;
}

.result-card__top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.distance-pill {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  color: #0f5b4d;
  background: rgba(22, 160, 133, 0.15);
  border-radius: 999px;
  padding: 8px 10px;
}

.result-meta-grid {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-meta-grid div {
  border: 1px solid rgba(13, 59, 64, 0.14);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}

.result-meta-grid dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #43616a;
  font-weight: 800;
}

.result-meta-grid dd {
  margin: 6px 0 0;
  color: #172127;
  overflow-wrap: anywhere;
}

.result-meta-grid a,
.maps-link,
.social-row a {
  color: #0a5c95;
  text-decoration: none;
}

.result-meta-grid a:hover,
.maps-link:hover,
.social-row a:hover {
  text-decoration: underline;
}

.social-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-row a {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(10, 92, 149, 0.22);
  background: rgba(223, 238, 248, 0.55);
}

.maps-link {
  margin-top: 14px;
  display: inline-flex;
  font-weight: 800;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .result-meta-grid {
    grid-template-columns: 1fr;
  }

  .search-app {
    width: min(1180px, calc(100% - 18px));
    margin-top: 16px;
  }
}
