:root {
  --ink: #10231f;
  --muted: #60726d;
  --line: #dce5e1;
  --panel: #f6f8f5;
  --paper: #ffffff;
  --green: #123f36;
  --teal: #0c7b75;
  --gold: #c18b2e;
  --coral: #c95c45;
  --shadow: 0 18px 50px rgba(16, 35, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf4f1;
  line-height: 1.5;
}

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

main,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

main {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(16, 35, 31, 0.12);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 24, 21, 0.78), rgba(10, 24, 21, 0.48));
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.search-row,
.section-heading,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.nav {
  gap: clamp(14px, 3vw, 30px);
  font-weight: 700;
  font-size: 0.94rem;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 36px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 118px clamp(18px, 5vw, 72px) 56px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 28, 24, 0.92) 0%, rgba(8, 28, 24, 0.74) 38%, rgba(8, 28, 24, 0.22) 76%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.search-panel {
  width: min(620px, 100%);
  margin: 30px 0 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.search-panel label {
  display: block;
  margin: 0 0 8px 4px;
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.search-row {
  gap: 10px;
}

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

input,
textarea,
select {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

textarea {
  padding-top: 12px;
  resize: vertical;
}

button,
.primary-link,
.secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

button {
  max-width: 138px;
  border: 0;
  color: #fff;
  background: var(--coral);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link {
  padding: 0 18px;
}

.primary-link {
  color: #113d35;
  background: #fff;
}

.secondary-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 48px);
  background: var(--panel);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1.35rem;
}

.trust-strip span {
  color: var(--muted);
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(18px, 5vw, 72px);
}

.intro,
.monetization {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.intro p,
.application p,
.revenue-list p {
  color: var(--muted);
  font-size: 1.04rem;
}

.directory {
  background: #eef4f2;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading select {
  max-width: 230px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.center-card,
.guide-grid article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 35, 31, 0.07);
}

.center-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.city {
  color: var(--teal);
  font-weight: 850;
}

.score {
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 850;
  white-space: nowrap;
}

.center-card p {
  color: var(--muted);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: #e9f4ed;
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-grid article {
  padding: 24px;
}

.guide-grid span {
  color: var(--coral);
  font-weight: 900;
}

.guide-grid p {
  color: var(--muted);
}

.monetization {
  color: #fff;
  background: var(--green);
}

.monetization .eyebrow {
  color: #f2bf6b;
}

.monetization p {
  color: rgba(255, 255, 255, 0.78);
}

.revenue-list {
  display: grid;
  gap: 14px;
}

.revenue-list p {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.application {
  background: var(--panel);
}

.application-intro {
  max-width: 660px;
  margin-bottom: 34px;
}

.application-copy {
  min-width: 0;
}

.application-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: stretch;
}

.application-form-column {
  display: grid;
  gap: 16px;
  align-content: stretch;
}

.application-form {
  height: 100%;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.map-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-picker-header strong,
.map-picker-header span {
  display: block;
}

.map-picker-header strong {
  font-size: 0.98rem;
}

.map-picker-header span,
.map-status {
  color: var(--muted);
  font-size: 0.88rem;
}

.application-form .ghost-button {
  width: auto;
  min-height: 40px;
  max-width: none;
  padding: 0 12px;
  color: var(--green);
  border: 1px solid var(--line);
  background: #fff;
  white-space: nowrap;
}

#locationMap {
  position: relative;
  width: 100%;
  height: 520px;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce5e1;
}

#locationMap.fallback-map {
  cursor: crosshair;
  background:
    linear-gradient(135deg, rgba(12, 123, 117, 0.16), rgba(242, 191, 107, 0.14)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(18, 63, 54, 0.08) 42px 43px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(18, 63, 54, 0.08) 42px 43px),
    #edf4f1;
}

.fallback-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(16, 35, 31, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-status {
  margin: 0;
}

.application-form button {
  max-width: none;
  background: var(--teal);
}

.application-form .ghost-button {
  color: var(--green);
  background: #fff;
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
}

.medical-note {
  margin: 0 clamp(18px, 5vw, 72px) 58px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  color: #384d48;
  background: #fff7e7;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #fff;
  border-radius: 18px;
  background: #0b211d;
}

@media (max-width: 980px) {
  .cards,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .monetization,
  .application-body {
    grid-template-columns: 1fr;
  }

  .application-body {
    align-items: start;
  }

  .application-form {
    height: auto;
  }

  #locationMap {
    height: 360px;
  }
}

@media (max-width: 680px) {
  main,
  .footer {
    width: 100%;
    border-radius: 0;
  }

  main {
    margin-top: 0;
  }

  .site-header {
    position: absolute;
    align-items: flex-start;
    top: 12px;
    width: calc(100% - 24px);
    padding: 14px 16px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 96vh;
    padding-top: 98px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 28, 24, 0.92), rgba(8, 28, 24, 0.72));
  }

  .search-row,
  .section-heading,
  .map-picker-header,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .section-heading select {
    max-width: none;
  }

  .trust-strip,
  .cards,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  #locationMap {
    height: 300px;
    min-height: 300px;
  }

  .footer {
    margin: 0;
  }
}
