:root {
  --ink: #17211f;
  --muted: #63706d;
  --paper: #fbfaf6;
  --line: #dfe5df;
  --evergreen: #16473f;
  --teal: #1f766d;
  --clay: #b95f3f;
  --coral: #d97a59;
  --mint: #dff0e6;
  --sky: #dcebf4;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 32, 29, 0.16);
  --radius: 8px;
  --hero-brand-background: url("assets/agv-brand-background.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(9, 18, 16, 0.76), rgba(9, 18, 16, 0));
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.filter-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: clamp(104px, 11vw, 136px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(5, 15, 13, 0.18);
}

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

.header-actions {
  gap: 10px;
}

.available-shortcut {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  font-weight: 850;
  white-space: nowrap;
}

.available-shortcut:hover {
  background: rgba(255, 255, 255, 0.24);
}

.header-action,
.primary-button,
.secondary-button,
.search-panel button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.header-action {
  padding: 0 18px;
  color: var(--ink);
  background: var(--white);
}

.apply-now-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: var(--clay);
  box-shadow: 0 14px 32px rgba(185, 95, 63, 0.28);
  text-transform: uppercase;
}

.apply-now-button:hover {
  background: #a84e32;
}

.hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: grid;
  align-items: end;
  padding: 112px clamp(18px, 4vw, 56px) 34px;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.96), rgba(251, 250, 246, 0.72) 34%, rgba(251, 250, 246, 0.18) 66%),
    var(--hero-brand-background) center center / contain no-repeat;
  background-color: var(--paper);
  color: var(--ink);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0.12), rgba(251, 250, 246, 0.36));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  padding-bottom: clamp(28px, 5vh, 62px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 28px;
  color: #3d4b48;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

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

.primary-button,
.secondary-button {
  padding: 0 20px;
}

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

.secondary-button {
  border: 1px solid rgba(22, 71, 63, 0.28);
  color: var(--evergreen);
  background: rgba(255, 255, 255, 0.68);
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(102px, 1fr)) auto;
  gap: 6px;
  width: 100%;
  max-width: none;
  overflow: hidden;
  align-items: end;
  padding: 7px;
  border: 1px solid rgba(22, 71, 63, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
}

.search-panel label {
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(22, 71, 63, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

label span,
.sort-control label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.search-panel select {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
}

.search-panel button {
  min-width: 82px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--white);
  background: var(--clay);
}

.search-panel button:hover {
  background: #a84e32;
}

.stats-strip {
  display: grid;
  grid-template-columns: minmax(430px, 1.7fr) repeat(4, minmax(110px, 0.7fr));
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stats-search-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.stats-strip div {
  display: grid;
  gap: 3px;
  padding: clamp(12px, 2vw, 18px);
  border-right: 1px solid var(--line);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong {
  color: var(--evergreen);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.collection,
.showcase,
.properties-section,
.detail-section,
.contact-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-intro {
  max-width: 820px;
}

.showcase {
  background: var(--white);
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--evergreen);
  background: var(--paper);
  font-weight: 850;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  margin-top: 24px;
}

.showcase-lead,
.showcase-thumbs {
  margin: 0;
}

.showcase-lead {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 52vw, 620px);
  border-radius: var(--radius);
  background: var(--line);
}

.showcase-lead img,
.showcase-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-lead figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(12, 26, 23, 0.78);
  font-weight: 850;
}

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

.showcase-thumbs img {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--line);
}

.showcase-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.showcase-facts span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #21443f;
  background: var(--mint);
  font-weight: 850;
}

.collection {
  background: linear-gradient(90deg, var(--paper), var(--sky));
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.collection-grid article {
  min-height: 205px;
  padding: 24px;
  border: 1px solid rgba(22, 71, 63, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.tile-icon {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--clay);
  font-weight: 900;
}

.collection-grid p,
.property-card p,
.detail-copy p,
.contact-band p,
.site-footer {
  color: var(--muted);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.sort-control {
  display: grid;
  gap: 8px;
  min-width: 210px;
}

.sort-control select {
  min-height: 42px;
  padding: 0 12px;
}

.filter-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.filter-chip.active {
  border-color: var(--evergreen);
  color: var(--white);
  background: var(--evergreen);
}

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

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(18, 32, 29, 0.08);
}

.availability-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 118, 109, 0.22);
  border-radius: var(--radius);
  color: var(--evergreen);
  background: var(--mint);
}

.availability-note strong {
  font-size: 0.96rem;
}

.availability-note span {
  color: #36514c;
  font-weight: 700;
}

.property-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 245px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(31, 118, 109, 0.22), rgba(217, 122, 89, 0.18)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.56) 0,
      rgba(255, 255, 255, 0.56) 12px,
      rgba(255, 255, 255, 0.22) 12px,
      rgba(255, 255, 255, 0.22) 24px
    );
  border-bottom: 1px solid var(--line);
}

.property-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity 180ms ease;
}

.property-photo.photo-loaded .property-image,
.detail-media.photo-loaded .property-image {
  opacity: 1;
}

.property-photo.photo-loaded .photo-placeholder,
.detail-media.photo-loaded .photo-placeholder {
  display: none;
}

.property-photo span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(12, 26, 23, 0.76);
  font-size: 0.78rem;
  font-weight: 850;
}

.photo-placeholder {
  display: grid;
  gap: 8px;
  width: min(100%, 310px);
  min-height: 126px;
  place-items: center;
  padding: 18px;
  border: 2px dashed rgba(22, 71, 63, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  color: var(--evergreen);
  text-align: center;
}

.photo-placeholder strong {
  font-size: 0.96rem;
}

.photo-placeholder small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.property-body {
  padding: 18px;
}

.property-topline,
.property-meta,
.property-actions {
  display: flex;
  align-items: center;
}

.property-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.property-topline h3 {
  margin: 0;
}

.rating {
  color: var(--clay);
  font-weight: 900;
  white-space: nowrap;
}

.property-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.property-meta span {
  padding: 6px 8px;
  border-radius: 6px;
  color: #21443f;
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
}

.property-actions {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.price {
  font-size: 1.25rem;
  font-weight: 950;
}

.price small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.details-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--evergreen);
  border-radius: var(--radius);
  color: var(--evergreen);
  background: var(--white);
  cursor: pointer;
  font-weight: 850;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  grid-template-areas:
    "media copy"
    "media copy";
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
  background: var(--evergreen);
  color: var(--white);
}

.detail-media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 58vw, 760px);
  padding: clamp(12px, 1.8vw, 20px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(223, 240, 230, 0.22), rgba(220, 235, 244, 0.16)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 16px,
      rgba(255, 255, 255, 0.16) 16px,
      rgba(255, 255, 255, 0.16) 32px
    );
  box-shadow: var(--shadow);
}

.detail-media .photo-placeholder {
  min-height: 210px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.detail-media .photo-placeholder small {
  color: rgba(255, 255, 255, 0.74);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(92px, 1fr);
  gap: clamp(8px, 1vw, 12px);
  width: 100%;
  height: 100%;
  min-height: 0;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  box-shadow: 0 14px 34px rgba(5, 16, 14, 0.2);
}

.detail-gallery img:first-child {
  grid-column: span 7;
  grid-row: span 3;
}

.detail-gallery img:nth-child(2),
.detail-gallery img:nth-child(3),
.detail-gallery img:nth-child(4) {
  grid-column: span 5;
  grid-row: span 1;
}

.detail-gallery img:nth-child(n + 5) {
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}

.showcase-grid img {
  cursor: zoom-in;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 78px 22px 28px;
  background: rgba(7, 19, 17, 0.9);
}

.photo-lightbox.active {
  display: grid;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: min(1120px, 96vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: var(--white);
  background: rgba(12, 26, 23, 0.82);
  cursor: pointer;
  font-weight: 850;
}

body.lightbox-open {
  overflow: hidden;
}

.detail-copy {
  grid-area: copy;
  align-self: center;
  display: grid;
  gap: 18px;
  max-width: none;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 70px rgba(5, 16, 14, 0.18);
}

.detail-copy h2 {
  margin-bottom: 10px;
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.detail-heading,
.detail-description {
  max-width: 760px;
}

.detail-address {
  margin: 0;
}

.detail-location-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 760;
}

.detail-highlight {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.detail-highlight span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-highlight strong {
  color: var(--evergreen);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.detail-highlight small {
  color: var(--muted);
  font-weight: 760;
}

.detail-facts,
.detail-amenities {
  margin-top: 0;
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.amenity-list li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
}

.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.property-facts li {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 850;
}

.detail-source {
  margin-bottom: 10px;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.contact-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  background: var(--white);
}

.manager-card {
  display: grid;
  gap: 4px;
  max-width: 320px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.manager-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-card strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.manager-card a {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
}

.contact-form button {
  color: var(--white);
  background: var(--teal);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .showcase-grid,
  .collection-grid,
  .property-grid,
  .detail-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .detail-section {
    grid-template-areas:
      "media"
      "copy";
  }

  .search-panel button {
    min-height: 54px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-search-card {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-strip div:nth-of-type(even) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
    gap: 10px;
  }

  .brand-logo {
    width: 82px;
  }

  .header-action {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    min-height: 92vh;
    padding: 92px 16px 22px;
  }

  h1 {
    font-size: 4.1rem;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .property-photo,
  .showcase-lead,
  .detail-media {
    min-height: 290px;
  }

  .showcase-thumbs {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery img:first-child,
  .detail-gallery img:nth-child(2),
  .detail-gallery img:nth-child(3),
  .detail-gallery img:nth-child(4),
  .detail-gallery img:nth-child(n + 5) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    display: grid;
  }
}
