:root {
  color-scheme: light;
  --ink: #102329;
  --muted: #5e686b;
  --navy: #063e52;
  --green: #1d6d42;
  --green-dark: #12522f;
  --accent: #2f6f8f;
  --stone: #dfe6e3;
  --soft: #f4f7f5;
  --white: #ffffff;
  --charcoal: #262626;
  --shadow: 0 14px 36px rgba(16, 35, 41, 0.14);
  --section-pad: 5.5rem;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 5.25rem;
  padding: 0.85rem max(1.25rem, calc((100% - var(--max-width)) / 2));
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid rgba(16, 35, 41, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  min-width: 8.5rem;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid rgba(16, 35, 41, 0.1);
  border-radius: 8px;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.primary-nav a,
.quick-actions a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border-radius: 8px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.primary-nav a {
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--green-dark);
  background: rgba(29, 109, 66, 0.08);
  border-color: rgba(29, 109, 66, 0.2);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(16, 35, 41, 0.16);
  border-radius: 8px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 72svh;
  padding: 7.5rem max(1.25rem, calc((100% - var(--max-width)) / 2)) 3.5rem;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 39, 47, 0.82) 0%, rgba(7, 39, 47, 0.54) 48%, rgba(7, 39, 47, 0.14) 100%),
    linear-gradient(0deg, rgba(7, 39, 47, 0.42), rgba(7, 39, 47, 0.08)),
    url("assets/cincinnati-apartments-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  width: min(42rem, 100%);
  padding-bottom: 2rem;
}

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

.hero .eyebrow {
  color: #e9c47c;
}

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

h1 {
  margin-bottom: 1.1rem;
  font-size: 4.8rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 36rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero-actions,
.portal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  min-width: 10rem;
  padding: 0.86rem 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.button:hover,
.button:focus-visible,
.quick-actions a:hover,
.quick-actions a:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 12px 34px rgba(29, 109, 66, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--green-dark);
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: rgba(16, 35, 41, 0.2);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--green);
  color: var(--green-dark);
}

.resident-section .portal-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.resident-section .portal-outline:hover,
.resident-section .portal-outline:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.72);
}

.hero-panel {
  position: absolute;
  right: max(1.25rem, calc((100% - var(--max-width)) / 2));
  bottom: 2.6rem;
  display: grid;
  gap: 0.35rem;
  width: 18rem;
  padding: 1.1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 1.1rem;
}

.hero-panel a,
.text-link {
  width: fit-content;
  color: var(--green-dark);
  font-weight: 800;
  border-bottom: 2px solid rgba(29, 109, 66, 0.35);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--stone);
  border-bottom: 1px solid rgba(16, 35, 41, 0.1);
}

.quick-actions a {
  min-height: 4.25rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.section {
  padding: var(--section-pad) max(1.25rem, calc((100% - var(--max-width)) / 2));
}

.hero,
.map-section,
.listings-section,
.resident-section,
.about-section,
.contact-section {
  scroll-margin-top: 6rem;
}

.section-heading {
  max-width: 43rem;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.resident-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1fr);
  gap: 3rem;
  align-items: start;
  background: var(--soft);
}

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

.stats-grid article {
  min-height: 9rem;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid rgba(16, 35, 41, 0.1);
  border-radius: 8px;
}

.stats-grid strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.listings-section {
  background: var(--white);
}

.map-section {
  background: #eaf0ed;
}

.map-section .split > p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.55fr);
  min-height: 35rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 35, 41, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 35, 41, 0.1);
}

.property-map {
  z-index: 1;
  min-height: 35rem;
  background: #dfe8e4;
}

.map-loading {
  display: grid;
  height: 100%;
  min-height: 35rem;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.map-directory {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.25rem;
  border-left: 1px solid rgba(16, 35, 41, 0.12);
}

.map-directory-heading {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(16, 35, 41, 0.1);
}

.map-directory-heading span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-directory-heading strong {
  font-size: 1.2rem;
}

.map-directory-list {
  display: grid;
  gap: 0.65rem;
}

.map-property-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  padding: 0.85rem;
  color: var(--ink);
  text-align: left;
  background: var(--soft);
  border: 1px solid rgba(16, 35, 41, 0.1);
  border-radius: 6px;
  cursor: pointer;
}

.map-property-button:hover,
.map-property-button:focus-visible,
.map-property-button.is-active {
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 109, 66, 0.1);
}

.map-property-button > span:first-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.map-property-button strong,
.map-property-button small {
  display: block;
}

.map-property-button small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.map-note {
  margin: 0;
  padding-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.hcg-map-marker {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 5px 14px rgba(16, 35, 41, 0.3);
  font-size: 0.78rem;
  font-weight: 900;
  transform: rotate(-45deg);
}

.hcg-map-marker span {
  transform: rotate(45deg);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink);
  background: var(--white);
}

.leaflet-popup-content-wrapper {
  border-radius: 6px;
}

.map-popup {
  min-width: 12rem;
}

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

.map-popup strong {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.map-popup span {
  color: var(--muted);
}

.map-popup a {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--green-dark);
  font-weight: 900;
  border-bottom: 2px solid rgba(29, 109, 66, 0.25);
}

.filter-bar {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--soft);
  border: 1px solid rgba(16, 35, 41, 0.1);
  border-radius: 8px;
}

.filter-button {
  min-width: 4.6rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--white);
  background: var(--navy);
}

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

.listing-card {
  display: grid;
  grid-template-rows: 14rem 1fr;
  min-height: 34rem;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid rgba(16, 35, 41, 0.12);
  border-radius: 8px;
}

.listing-card.is-hidden {
  display: none;
}

.listing-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.listing-body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.listing-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.listing-kicker {
  color: var(--accent) !important;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-body dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.listing-body dl div {
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(16, 35, 41, 0.08);
  border-radius: 6px;
}

.listing-body dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-body dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.resident-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(21rem, 0.6fr);
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(115deg, rgba(6, 62, 82, 0.94), rgba(18, 82, 47, 0.88)),
    url("assets/cincinnati-apartments-hero.png") center / cover no-repeat;
  color: var(--white);
}

.resident-section .eyebrow {
  color: #e9c47c;
}

.resident-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.resident-copy h2 {
  margin-bottom: 1rem;
}

.portal-note {
  margin: 1rem 0 0;
  min-height: 1.6rem;
  font-weight: 700;
}

.portal-links,
.contact-actions,
.contact-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(16, 35, 41, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.portal-links {
  background: rgba(255, 255, 255, 0.96);
}

.portal-links a,
.action-tile {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-height: 5.8rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid rgba(16, 35, 41, 0.1);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.portal-links a:hover,
.portal-links a:focus-visible,
.action-tile:hover,
.action-tile:focus-visible {
  transform: translateY(-1px);
  background: var(--white);
  border-color: rgba(29, 109, 66, 0.34);
}

.portal-links svg,
.action-tile svg {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.65rem;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.portal-links strong,
.action-tile strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1rem;
}

.portal-links span,
.action-tile span {
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid rgba(16, 35, 41, 0.18);
  border-radius: 6px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 109, 66, 0.14);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(19rem, 0.8fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  background: var(--soft);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-copy {
  max-width: 39rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1rem;
  height: 1rem;
  content: "";
  background: var(--green);
  clip-path: polygon(14% 52%, 31% 38%, 45% 55%, 78% 20%, 92% 33%, 46% 80%);
}

.contact-section {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.48fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-form {
  box-shadow: none;
}

.contact-actions {
  box-shadow: none;
}

.form-note {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-panel {
  position: sticky;
  top: 6.5rem;
  box-shadow: none;
  background: var(--navy);
  color: var(--white);
}

.contact-panel h3 {
  margin: 0;
  color: var(--white);
}

.contact-panel p,
.contact-panel span {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel a {
  width: fit-content;
  color: var(--white);
  font-weight: 800;
  border-bottom: 2px solid rgba(255, 255, 255, 0.24);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem max(1.25rem, calc((100% - var(--max-width)) / 2));
  background: var(--charcoal);
  color: var(--white);
}

.site-footer img {
  width: 5.5rem;
  padding: 0.3rem;
  background: var(--white);
  border-radius: 6px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

@media (max-width: 980px) {
  :root {
    --section-pad: 4.5rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid rgba(16, 35, 41, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-nav a {
    justify-content: flex-start;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-panel {
    position: static;
    width: min(100%, 24rem);
    margin-top: 1.5rem;
  }

  .intro,
  .resident-section,
  .about-section,
  .contact-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-directory {
    border-top: 1px solid rgba(16, 35, 41, 0.12);
    border-left: 0;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: 3.5rem;
  }

  .site-header {
    min-height: 4.6rem;
    padding: 0.7rem 1rem;
  }

  .brand {
    width: 7.2rem;
    min-width: 7.2rem;
  }

  .primary-nav.is-open,
  .quick-actions,
  .stats-grid,
  .listing-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    display: grid;
    align-items: start;
  }

  .filter-bar {
    width: 100%;
    overflow-x: auto;
  }

  .filter-button {
    flex: 1 0 auto;
  }

  .hero {
    min-height: 70svh;
    padding: 5.5rem 1rem 2rem;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions,
  .portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .property-map,
  .map-loading {
    min-height: 28rem;
  }

  .listing-card {
    grid-template-rows: 12.5rem 1fr;
    min-height: auto;
  }

  .listing-card img {
    height: 12.5rem;
  }

  .listing-body dl {
    grid-template-columns: 1fr;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
