.essentials {
  background: #eef0df;
}

.brand {
  gap: 0;
  height: 76px;
  position: relative;
  width: 190px;
}

.brand-mark {
  background: transparent;
  border-radius: 0;
  flex: none;
  height: 76px;
  overflow: visible;
  width: 150px;
}

.brand-mark img {
  filter: drop-shadow(0 2px 2px rgba(16, 53, 44, 0.2));
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.brand > span:last-child {
  left: 101px;
  position: absolute;
  top: 38px;
  white-space: nowrap;
}

.brand b {
  font-size: 18px;
  line-height: 0.95;
}

.brand small {
  font-size: 7px;
  letter-spacing: 0.65px;
  margin-top: 3px;
}

.site-footer .brand {
  height: 88px;
  width: 222px;
}

.site-footer .brand-mark {
  background: transparent;
  height: 88px;
  width: 174px;
}

.site-footer .brand > span:last-child {
  left: 118px;
  top: 44px;
}

.site-footer .brand b {
  font-size: 20px;
}

.site-footer .brand small {
  font-size: 8px;
}

.detail-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.95fr) 1.55fr;
}

.charge-card,
.essentials-grid article {
  background: var(--paper);
}

.charge-card {
  padding: 27px;
}

.card-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.card-heading h3,
.essentials-grid h3 {
  margin-top: 0;
}

.card-heading small {
  color: var(--leaf);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.charge-table {
  border-top: 1px solid #d8ddcd;
  margin-top: 17px;
}

.charge-table div {
  align-items: center;
  border-bottom: 1px solid #d8ddcd;
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
}

.charge-table span {
  color: #597168;
  font-size: 14px;
}

.charge-table strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 24px;
}

.fine-print {
  color: #6b7d76;
  font-size: 11px;
  line-height: 1.55;
  margin-bottom: 0;
  margin-top: 16px;
}

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

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

.essentials-grid h3 {
  font-size: 22px;
}

.essentials-grid p {
  color: #647a72;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 0;
}

.eligibility {
  background: rgba(255, 255, 255, 0.42);
  display: grid;
  gap: 6px;
  margin-top: 25px;
  padding: 17px;
}

.eligibility strong {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 4px;
}

.eligibility span {
  font-size: 13px;
  font-weight: 700;
}

.apply-note {
  font-size: 13px;
}

.floor-plan-layout {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.75fr);
}

.floor-plan-viewer {
  align-items: center;
  background: #eef0df;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 620px;
  padding: 32px;
}

.floor-plan-image {
  background: white;
  box-shadow: 0 14px 35px rgba(23, 59, 49, 0.12);
  max-height: 470px;
  max-width: 100%;
  object-fit: contain;
}

.floor-plan-viewer figcaption {
  color: #647a72;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 5px;
  line-height: 1.55;
  margin-top: 22px;
  max-width: 520px;
  width: 100%;
}

.floor-plan-viewer strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 23px;
}

.floor-plan-kicker,
.control-label {
  color: var(--leaf);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.floor-plan-controls {
  display: flex;
  flex-direction: column;
  gap: 29px;
  justify-content: center;
  padding: 30px;
}

.control-label {
  margin: 0 0 11px;
}

.bedroom-options {
  border-top: 1px solid #d8ddcd;
}

.bedroom-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d8ddcd;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 3px 13px;
  grid-template-columns: 29px 1fr;
  padding: 17px 3px;
  text-align: left;
  width: 100%;
}

.bedroom-option span {
  color: #a8b38c;
  font-family: var(--serif);
  font-size: 19px;
  grid-row: span 2;
}

.bedroom-option strong {
  font-family: var(--serif);
  font-size: 21px;
}

.bedroom-option small {
  color: #6b7d76;
  font-size: 11px;
}

.bedroom-option.active strong,
.bedroom-option:hover strong {
  color: var(--forest);
}

.bedroom-option.active span {
  color: var(--peach);
}

.level-options {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
}

.level-options button {
  background: #e8ead4;
  border: 0;
  color: var(--forest);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 11px 7px;
}

.level-options button.active,
.level-options button:hover {
  background: var(--forest);
  color: white;
}

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

  .floor-plan-layout {
    grid-template-columns: 1fr;
  }

  .floor-plan-viewer {
    min-height: 0;
  }
}

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

  .card-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .floor-plan-viewer {
    padding: 22px 16px;
  }

  .floor-plan-controls {
    padding: 23px 18px;
  }
}

.gallery-grid img,
.floor-plan-image,
.image-stack img {
  cursor: zoom-in;
}

.lightbox {
  align-items: center;
  background: rgba(6, 22, 18, 0.94);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 56px 80px;
  position: fixed;
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  margin: 0;
  max-height: 100%;
  max-width: min(1180px, 100%);
  text-align: center;
}

.lightbox-image {
  display: block;
  max-height: calc(100vh - 120px);
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption {
  color: #d8e1d3;
  font-size: 12px;
  letter-spacing: 0.6px;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-nav {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  height: 46px;
  position: absolute;
  transition: background 0.2s;
  width: 46px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  right: 24px;
  top: 22px;
}

.lightbox-close::before,
.lightbox-close::after {
  background: white;
  content: "";
  height: 2px;
  left: 12px;
  position: absolute;
  top: 21px;
  transform: rotate(45deg);
  width: 20px;
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-nav {
  top: calc(50% - 23px);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-prev::before,
.lightbox-next::before {
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: "";
  display: block;
  height: 10px;
  margin: 16px 0 0 18px;
  transform: rotate(45deg);
  width: 10px;
}

.lightbox-next::before {
  margin-left: 15px;
  transform: rotate(225deg);
}

body.lightbox-active {
  overflow: hidden;
}

@media (max-width: 620px) {
  .lightbox {
    padding: 60px 14px;
  }

  .lightbox-nav {
    bottom: 18px;
    top: auto;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }
}
