:root {
  --ink: #12251f;
  --ink-soft: #40544c;
  --paper: #fbfaf4;
  --paper-deep: #f5f3ea;
  --surface: #ffffff;
  --surface-2: #f7f8f3;
  --surface-green: #edf7ef;
  --line: rgba(18, 37, 31, 0.13);
  --line-strong: rgba(18, 37, 31, 0.22);
  --green: #5abf47;
  --green-dark: #417e35;
  --deep-green: #24724f;
  --teal: #5fc3ad;
  --teal-dark: #238384;
  --deep-teal: #0b493f;
  --coral: #ff7070;
  --yellow: #f4d35e;
  --gold: #d59b24;
  --navy-zone: #1a237e;
  --marine-zone: #a52714;
  --air-zone: #0288d1;
  --coast-zone: #0097a7;
  --shadow-sm: 0 10px 30px rgba(18, 37, 31, 0.08);
  --shadow-lg: 0 24px 70px rgba(18, 37, 31, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 28px;
  --max-width: 1780px;
  --content-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(95, 195, 173, 0.13), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(244, 211, 94, 0.13), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(90, 191, 71, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 4000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.planner-intro h2,
.map-section-heading h2,
.section-heading h2,
.housing-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-brand {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(18, 37, 31, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--deep-teal);
  box-shadow: 0 10px 28px rgba(18, 37, 31, 0.08);
}

.section-brand img {
  display: block;
  width: auto;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.section-brand span {
  color: inherit;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}

.section-brand-dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: var(--deep-teal);
}

.section-brand-dark img,
.housing-cta .section-brand img {
  height: 48px;
}

.section-brand-compact {
  margin-bottom: 8px;
  padding: 6px 10px;
}

.section-brand-compact img {
  height: 24px;
}

.blend-shell {
  width: min(calc(100% - 44px), var(--max-width));
  margin: 0 auto;
}

.blend-hero {
  position: relative;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(680px, 0.88fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  overflow: hidden;
  min-height: 310px;
  padding: clamp(34px, 4vw, 64px) clamp(26px, 4vw, 62px);
  border-radius: 0 0 0 0;
  background: var(--deep-teal);
  color: white;
}

.blend-hero::after {
  position: absolute;
  right: clamp(14px, 4vw, 72px);
  bottom: -82px;
  width: clamp(180px, 18vw, 300px);
  aspect-ratio: 1;
  background: url("/images/brand/hwh-brand-mark-primary.png") center / contain no-repeat;
  content: "";
  opacity: 0.1;
  pointer-events: none;
}

.blend-hero > * {
  position: relative;
  z-index: 1;
}

.hero-brand-lockup {
  margin-bottom: 22px;
}

.blend-copy h1 {
  max-width: 840px;
  font-size: clamp(46px, 4.9vw, 72px);
  line-height: 0.98;
}

.blend-copy p:last-child {
  max-width: 880px;
  margin: 24px 0 0;
  color: white;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
}

.blend-hero .eyebrow {
  color: var(--teal);
}

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

.step-cards article {
  min-height: 218px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.step-cards article:nth-child(1) {
  border-color: rgba(95, 195, 173, 0.84);
  background: rgba(95, 195, 173, 0.13);
}

.step-cards article:nth-child(2) {
  border-color: rgba(255, 112, 112, 0.84);
  background: rgba(255, 112, 112, 0.13);
}

.step-cards article:nth-child(3) {
  border-color: rgba(244, 211, 94, 0.9);
  background: rgba(244, 211, 94, 0.13);
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--deep-teal);
  font-weight: 950;
}

.step-cards article:nth-child(2) .step-number {
  background: var(--coral);
  color: white;
}

.step-cards article:nth-child(3) .step-number {
  background: var(--yellow);
  color: var(--ink);
}

.step-cards p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step-cards h2 {
  margin: 30px 0 0;
  color: white;
  font-size: 21px;
  line-height: 1.15;
}

.step-cards span:last-child {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.45;
}

.planner-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.08fr);
  gap: 28px;
  overflow: hidden;
  margin: 16px clamp(16px, 2vw, 32px) 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.planner-intro .section-brand {
  display: none;
}

.planner-card::after,
.section-guide::after,
.housing-cta::after {
  position: absolute;
  right: clamp(12px, 2.4vw, 40px);
  bottom: clamp(10px, 2vw, 32px);
  width: clamp(150px, 15vw, 230px);
  aspect-ratio: 1;
  background: url("/images/brand/hwh-brand-mark-primary.png") center / contain no-repeat;
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

.planner-card > *,
.section-guide > *,
.housing-cta > * {
  position: relative;
  z-index: 1;
}

.planner-intro h2 {
  max-width: 760px;
  color: var(--green-dark);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}

.planner-intro > p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.planner-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin-top: 28px;
}

.planner-stat-grid article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.planner-stat-grid span,
.snapshot-card span,
.map-metrics span,
.fact span,
.commute-leg span {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-stat-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 32px;
  line-height: 1;
}

.planner-stat-grid small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.planner-form {
  display: grid;
  gap: 18px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-sm);
}

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

.field > span:first-child {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid #d7dfd7;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}

input::placeholder {
  color: #87948d;
  font-weight: 400;
}

.money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid #d7dfd7;
  border-radius: 14px;
  background: white;
}

.money-input > span {
  padding-left: 16px;
  color: var(--ink-soft);
  font-weight: 850;
}

.money-input input {
  min-height: 56px;
  border: 0;
  border-radius: 0;
}

.rate-footnote {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-green);
  color: #315b45;
  font-size: 12px;
  line-height: 1.45;
}

.snapshot-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 4px;
  padding: 24px;
  border-radius: 18px;
  background: var(--deep-teal);
  color: white;
}

.snapshot-card span {
  color: rgba(255, 255, 255, 0.58);
}

.snapshot-card strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1;
}

.snapshot-card div:last-of-type strong {
  color: var(--teal);
}

.snapshot-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: white;
  font-size: 13px;
  line-height: 1.6;
}

.legacy-map-section {
  position: relative;
  width: min(calc(100% - 44px), var(--max-width));
  margin: 56px auto 0;
}

.map-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.6fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 22px;
}

.map-section-heading h2 {
  color: var(--green-dark);
  font-size: clamp(36px, 3.7vw, 58px);
  line-height: 1.03;
}

.map-section-heading > p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.map-app-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  min-height: 880px;
  height: min(980px, calc(100vh - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.map-app-shell::after {
  position: absolute;
  left: 460px;
  bottom: 22px;
  z-index: 2;
  width: min(320px, 22vw);
  aspect-ratio: 1;
  background: url("/images/brand/hwh-brand-mark-primary.png") center / contain no-repeat;
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

.map-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.map-brand-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: var(--deep-teal);
  color: white;
}

.map-brand-card img {
  display: block;
  width: 100%;
  max-height: 112px;
  object-fit: contain;
  padding: 18px 18px 8px;
  background:
    radial-gradient(circle at 10% 10%, rgba(95, 195, 173, 0.28), transparent 14rem),
    #073c35;
  filter: brightness(0) invert(1);
}

.map-brand-card div {
  padding: 16px 18px 0;
}

.map-brand-card p {
  margin: 0 0 4px;
  color: #b8e4dd;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-brand-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
}

.map-brand-card span {
  display: block;
  margin-top: 10px;
  color: #e5f3ef;
  font-size: 14px;
  line-height: 1.45;
}

.help-btn {
  margin: 16px 18px 18px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 13px;
  font-weight: 850;
}

.map-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.map-metrics article {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.map-metrics strong {
  display: block;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
}

.map-metrics span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.toolbar input,
.map-sidebar select,
.map-sidebar .money-input {
  min-height: 48px;
  border-radius: 10px;
}

.map-sidebar input {
  min-height: 46px;
  border-radius: 10px;
}

.secondary-btn,
.primary-btn,
.text-button,
.close-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.secondary-btn {
  min-height: 48px;
  padding: 9px 13px;
}

.primary-btn {
  background: var(--teal-dark);
  color: white;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.commute-context {
  padding: 12px 14px;
  border: 1px solid #cde2dd;
  border-radius: 10px;
  background: #ebf5f3;
  color: #244b47;
  font-size: 13px;
  line-height: 1.45;
}

.filter-group {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.filter-group h3 {
  margin: 0 0 11px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.chip input,
.check input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--green-dark);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot.military,
.hotel-pin.military {
  background: var(--green-dark);
}

.dot.off-waikiki,
.hotel-pin.off-waikiki {
  background: var(--gold);
}

.dot.waikiki,
.hotel-pin.waikiki {
  background: var(--teal-dark);
}

.dot.west-oahu,
.hotel-pin.west-oahu {
  background: #d85c3a;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 13px;
  font-weight: 800;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
}

.result-bar strong {
  color: var(--ink);
}

.sidebar-hotel-list {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
}

.sidebar-hotel-card {
  position: relative;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.sidebar-hotel-card:hover,
.sidebar-hotel-card.active {
  border-color: var(--teal-dark);
  background: #f8fcfa;
}

.sidebar-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hotel-open {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sidebar-hotel-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.sidebar-hotel-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.card-source-mark,
.detail-source-mark,
.popup-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.card-source-mark {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 37, 31, 0.08);
}

.detail-source-mark {
  width: 100%;
  margin-top: 14px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(18, 37, 31, 0.1);
}

.card-source-mark::before,
.detail-source-mark::before,
.popup-brand::before {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: url("/images/brand/hwh-brand-mark-primary.png") center / contain no-repeat;
  content: "";
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-green);
  color: #315a3a;
  font-size: 11px;
  font-weight: 800;
}

.badge.media {
  background: #eaf6f3;
  color: var(--teal-dark);
}

.badge.warn {
  background: #fff0e7;
  color: #8a4c28;
}

.compare-mini {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.compare-mini.selected {
  background: var(--teal-dark);
  color: white;
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #d2dedf;
}

.map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.map-brand-watermark {
  position: absolute;
  z-index: 640;
  top: 18px;
  left: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100% - 110px));
  padding: 9px 13px;
  border: 1px solid rgba(18, 37, 31, 0.13);
  border-radius: 999px;
  background: rgba(251, 250, 244, 0.92);
  box-shadow: 0 16px 40px rgba(18, 37, 31, 0.14);
  color: var(--deep-teal);
  pointer-events: none;
}

.map-brand-watermark img {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
}

.map-brand-watermark span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.leaflet-container {
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(18, 37, 31, 0.18) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-sm);
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  color: var(--ink) !important;
  font: 800 22px/38px Aptos, "Segoe UI", Arial, sans-serif !important;
}

.map-message {
  position: absolute;
  z-index: 700;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100% - 40px));
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-lg);
  color: var(--ink-soft);
  text-align: center;
  transform: translate(-50%, -50%);
}

.hotel-pin,
.installation-pin {
  width: 22px;
  height: 22px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(18, 37, 31, 0.34);
}

.installation-pin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--deep-teal);
  color: white;
}

.installation-pin::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  content: "";
}

.map-popup {
  min-width: 240px;
}

.map-popup strong {
  color: var(--green-dark);
  font-size: 15px;
}

.map-popup p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.map-popup .popup-brand {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 37, 31, 0.1);
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.popup-actions button,
.popup-actions a {
  flex: 1;
  padding: 7px 8px;
  border: 1px solid #cde2dd;
  border-radius: 9px;
  background: #ebf5f3;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.detail-panel {
  position: absolute;
  z-index: 800;
  top: 18px;
  right: 18px;
  display: none;
  width: min(450px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.detail-panel.open {
  display: block;
}

.detail-brand-ribbon {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--deep-teal);
  color: white;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-brand-ribbon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.detail-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.detail-header p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: white;
  font-size: 24px;
  line-height: 1;
}

.media-stage {
  display: grid;
  min-height: 245px;
  place-items: center;
  background: #102f31;
  color: white;
}

.media-stage iframe,
.media-stage img {
  display: block;
  width: 100%;
  height: 245px;
  border: 0;
  object-fit: cover;
}

.media-empty {
  padding: 26px;
  color: #d6e9e6;
  font-size: 13px;
  text-align: center;
}

.map-instructions-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 245px;
  background:
    radial-gradient(circle at 24% 32%, rgba(95, 195, 173, 0.26), transparent 7rem),
    radial-gradient(circle at 76% 64%, rgba(244, 211, 94, 0.22), transparent 7rem),
    linear-gradient(135deg, #0b493f, #238384);
}

.map-instructions-visual span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep-teal);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.media-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.thumb {
  width: 86px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #e5ebe1;
  overflow: hidden;
  flex: 0 0 86px;
}

.thumb.active {
  border-color: var(--green-dark);
}

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

.detail-body {
  padding: 16px;
}

.map-instructions {
  display: grid;
  gap: 14px;
  color: var(--ink-soft);
}

.map-instructions h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 16px;
}

.map-instructions ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.map-instructions li {
  font-size: 14px;
  line-height: 1.55;
}

.map-instructions strong {
  color: var(--ink);
}

.map-instructions p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 112, 112, 0.26);
  border-radius: 12px;
  background: rgba(255, 112, 112, 0.08);
  font-size: 13px;
  line-height: 1.6;
}

.commute-card {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #cde2dd;
  border-radius: 12px;
  background: #f5faf8;
}

.commute-card h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 15px;
}

.commute-card > p {
  margin: 5px 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.commute-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.commute-leg {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.commute-leg span {
  color: var(--ink-soft);
  font-size: 10px;
}

.commute-leg strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
}

.commute-leg em {
  display: block;
  margin-top: 4px;
  color: #d85c3a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.commute-actions,
.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.commute-actions a,
.action-row a,
.action-row button {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px;
  border: 1px solid #cde2dd;
  border-radius: 10px;
  background: #ebf5f3;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.action-row button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fact {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.fact span {
  color: #728079;
  font-size: 10px;
}

.fact strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.25;
}

.detail-notes {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #31433d;
  font-size: 13px;
  line-height: 1.5;
}

.compare-dock {
  position: absolute;
  z-index: 790;
  left: 18px;
  bottom: 18px;
  display: none;
  width: min(560px, calc(100% - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.compare-dock.open {
  display: block;
}

.compare-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.compare-dock h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-button {
  width: fit-content;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.compare-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.compare-card {
  min-width: 0;
  padding: 10px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.compare-card strong {
  display: block;
  line-height: 1.2;
}

.compare-card span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.section,
.housing-cta,
.source-strip {
  width: min(calc(100% - 44px), var(--content-width));
  margin-inline: auto;
}

.section-guide {
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-lg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(460px, 1fr);
  gap: 58px;
  align-items: start;
}

.section-heading h2 {
  color: var(--green-dark);
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.05;
}

.section-heading > p {
  margin: 70px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.branch-process-card {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(420px, 1fr);
  gap: 42px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #cde2dd;
  border-radius: 18px;
  background: #f5faf8;
}

.branch-process-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--deep-green);
  font-size: 30px;
  line-height: 1.08;
}

.branch-process-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.branch-process-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: branch-step;
}

.branch-process-card li {
  counter-increment: branch-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.branch-process-card li::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  content: counter(branch-step);
  font-size: 12px;
  font-weight: 900;
}

.education-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.education-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.education-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

.education-list summary::-webkit-details-marker {
  display: none;
}

.education-list summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--teal-dark);
  content: "+";
  font-size: 22px;
  font-weight: 700;
}

.education-list details[open] summary::after {
  content: "−";
}

.education-list summary strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.education-list summary span span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.education-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.education-body ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.planning-only-disclaimer {
  margin: 28px 0 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 112, 112, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.planning-only-disclaimer strong {
  color: var(--ink);
}

.housing-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
  gap: 54px;
  align-items: center;
  overflow: hidden;
  margin-top: 48px;
  padding: clamp(34px, 5vw, 64px);
  background: white;
  box-shadow: var(--shadow-sm);
}

.housing-cta h2 {
  max-width: 620px;
  color: var(--green-dark);
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.02;
}

.housing-cta p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.housing-actions {
  display: grid;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.button-coral {
  background: var(--coral);
  color: white;
}

.button-light {
  border-color: var(--line);
  background: #eef8f5;
  color: var(--teal-dark);
}

.housing-actions small {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.source-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0 28px;
  color: var(--ink-soft);
}

.source-strip strong {
  color: var(--ink);
  font-size: 13px;
}

.source-strip p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.source-strip::after {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 96px;
  aspect-ratio: 1;
  background: url("/images/brand/hwh-brand-mark-primary.png") center / contain no-repeat;
  content: "";
  opacity: 0.055;
  pointer-events: none;
}

.source-links {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}

.source-links a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  padding: 42px max(20px, calc((100vw - var(--content-width)) / 2)) 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #083f35;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.65;
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.site-footer strong {
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-brand img {
  width: auto;
  height: 64px;
  filter: brightness(0) invert(1);
}

.footer-disclaimer {
  grid-column: 1 / -1;
  max-width: 980px;
}

.toast {
  position: fixed;
  z-index: 2600;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 26px 16px;
  border: 1px dashed #bdc9c0;
  border-radius: 12px;
  background: #f8faf6;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 1240px) {
  .blend-hero,
  .planner-card,
  .map-section-heading,
  .section-heading,
  .branch-process-card,
  .housing-cta {
    grid-template-columns: 1fr;
  }

  .step-cards {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section-heading > p {
    margin-top: 0;
  }
}

@media (max-width: 1000px) {
  .map-app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, 48vh) minmax(540px, 68vh);
    height: auto;
    min-height: auto;
  }

  .map-app-shell::after {
    right: 18px;
    bottom: 18px;
    left: auto;
    width: 150px;
  }

  .map-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .blend-shell,
  .legacy-map-section,
  .section,
  .housing-cta,
  .source-strip {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .blend-hero {
    padding: 36px 22px;
  }

  .section-brand {
    max-width: 100%;
    white-space: normal;
  }

  .section-brand img {
    height: 30px;
  }

  .section-brand-dark img,
  .housing-cta .section-brand img {
    height: 38px;
  }

  .blend-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .step-cards {
    grid-template-columns: 1fr;
  }

  .step-cards article {
    min-height: 0;
  }

  .planner-card {
    margin-inline: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .planner-stat-grid,
  .form-row,
  .snapshot-card,
  .two-col,
  .check-grid,
  .fact-grid,
  .commute-grid,
  .compare-items,
  .commute-actions,
  .action-row {
    grid-template-columns: 1fr;
  }

  .planner-form {
    padding: 16px;
  }

  .map-section-heading {
    gap: 16px;
  }

  .map-app-shell {
    grid-template-rows: minmax(420px, 56vh) minmax(520px, 70vh);
  }

  .map-sidebar {
    padding: 12px;
  }

  .map-brand-watermark {
    top: 12px;
    left: 62px;
    max-width: calc(100% - 80px);
    padding: 7px 10px;
  }

  .map-brand-watermark img {
    height: 26px;
  }

  .map-brand-watermark span {
    font-size: 9px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: 76%;
  }

  .compare-dock {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
  }

  .section-guide {
    padding: 24px 18px;
  }

  .branch-process-card {
    padding: 20px;
  }

  .housing-cta {
    padding: 30px 22px;
  }

  .source-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-disclaimer {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .blend-shell,
  .legacy-map-section,
  .section,
  .housing-cta,
  .source-strip {
    width: min(calc(100% - 18px), var(--content-width));
  }

  .blend-copy h1,
  .planner-intro h2,
  .map-section-heading h2,
  .section-heading h2,
  .housing-cta h2 {
    letter-spacing: -0.045em;
  }

  input,
  select {
    min-height: 52px;
  }

  .map-brand-watermark span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
