html {
  scroll-padding-top: var(--header-height, 120px);
}

:focus-visible {
  outline: 3px solid #85620d;
  outline-offset: 4px;
}

.hero-copy,
.listing-type,
.portal-hero > p:not(.eyebrow) {
  letter-spacing: 0;
}

.nav-more summary {
  display: none;
}

.nav-more-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav > a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 6px;
}

.listings-page .page-hero {
  gap: 10px;
  padding: 32px 20px 28px;
}

.listings-page .page-hero h1 {
  margin-bottom: 0;
  font-size: 2.25rem;
  line-height: 1.15;
}

.listings-page .page-hero > p {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
}

.property-type-switch {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4px;
  width: min(440px, 100%);
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.property-type-switch .compact-choice {
  display: flex;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 750;
  text-align: center;
  transform: none;
}

.property-type-switch .compact-choice[aria-pressed="true"] {
  color: var(--ink);
  background: #f8edca;
  border-color: #d7be75;
}

.listings-page .listings-section {
  padding: 28px 0 52px;
  scroll-margin-top: 12px;
}

.listing-grid {
  align-items: stretch;
}

.listing-card {
  display: flex;
  flex-direction: column;
}

.listing-card > a {
  display: block;
}

.listing-card img {
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.listing-card[data-type="home"] img {
  object-position: center 60%;
}

.listing-card.glenn-listing-card img {
  object-position: 58% center;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 10000;
  padding: 12px 16px;
  background: #fff;
  color: #171717;
  border: 2px solid #171717;
}
.skip-link:focus { top: 12px; }
.form-trap { display: none !important; }
.form-note, .portal-safety-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}
.support-request-form .form-note { margin: 0; }
.portal-safety-note { margin-top: 18px; }
.equal-housing { font-size: 0.8rem; }

.listing-body {
  flex: 1;
  min-height: 186px;
  gap: 8px;
  align-content: start;
  padding: 18px;
  text-align: center;
}

.listing-body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.listing-body h3 a {
  text-decoration: none;
}

.listing-body h3 a:hover {
  text-decoration: underline;
}

.listing-meta {
  font-weight: 700;
  color: var(--ink);
}

.listing-feature {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.listing-body > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  text-underline-offset: 4px;
}

.property-inquiry {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.property-inquiry h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}

.property-inquiry .hero-actions {
  margin-top: 14px;
}

.tenant-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(780px, calc(100% - 32px));
  margin: 16px auto;
}

.tenant-shortcuts .button {
  min-height: 48px;
  padding: 10px 8px;
  font-size: 0.95rem;
  box-shadow: none;
}

.portal-hero {
  padding: 30px 18px;
  gap: 10px;
}

.portal-hero h1 {
  font-size: 2.5rem;
}

.portal-hero > p:not(.eyebrow) {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
}

.portal-layout {
  padding-top: 28px;
}

#support-request {
  scroll-margin-top: 16px;
}

.support-request-form input,
.support-request-form select,
.support-request-form textarea {
  font-size: 1rem;
  min-height: 48px;
}

.file-field input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  padding: 8px 14px;
  color: var(--ink);
  background: #f8edca;
  border: 1px solid #d7be75;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.attachment-list {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment-list:empty {
  display: none;
}

.attachment-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.attachment-list .file-error,
.form-status.is-error {
  color: #9b2323;
}

.form-status {
  margin: 0;
  padding: 12px;
  color: var(--ink);
  background: #f7f3ed;
  border-left: 3px solid var(--brand);
  font-size: 0.94rem;
}

.form-status[hidden] {
  display: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.photo-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  box-shadow: none;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile-caption {
  display: block;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
  text-align: left;
  line-height: 1.3;
}

.gallery-item:focus-visible {
  outline: 3px solid #85620d;
  outline-offset: 3px;
}

.gallery-modal {
  padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #171717;
}

.gallery-modal-controls {
  display: flex;
  gap: 8px;
}

.gallery-modal-figure {
  display: flex;
  justify-content: center;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}

.gallery-modal-image {
  max-height: 100%;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px 14px 10px;
  }

  .site-header .brand {
    justify-self: start;
    gap: 8px;
    min-height: 36px;
  }

  .brand-logo {
    width: 40px;
    height: 32px;
  }

  .brand strong,
  .brand small {
    font-size: 0.94rem;
    line-height: 1.1;
  }

  .site-header .top-nav {
    display: grid;
    grid-template-columns: 0.7fr 1.4fr 1.2fr;
    gap: 6px;
    font-size: 0.875rem;
  }

  .site-header .top-nav > a {
    min-height: 44px;
    padding: 8px 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: none;
    line-height: 1.25;
  }

  .site-header .top-nav > .tenant-link {
    grid-column: auto;
  }

  .nav-more {
    position: absolute;
    top: 9px;
    right: 14px;
    font-size: 0.875rem;
  }

  .nav-more summary {
    display: list-item;
    padding: 10px 6px;
    min-height: 44px;
    cursor: pointer;
    color: var(--ink);
  }

  .nav-more[open] .nav-more-links {
    display: grid;
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 180px;
    padding: 6px;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px #17171720;
  }

  .nav-more-links a {
    box-shadow: none;
    border: 0;
    justify-content: start;
    padding: 12px;
  }

  .hero-content {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .hero-copy {
    background: none;
    padding: 0;
    font-size: 0.94rem;
  }

  .hero .choice-card {
    min-height: 94px;
  }

  .listings-page .page-hero {
    padding: 22px 14px 20px;
  }

  .listings-page .page-hero h1 {
    font-size: 1.85rem;
  }

  .property-type-switch .compact-choice {
    font-size: 0.9rem;
    padding: 8px 6px;
  }

  .listings-page .listings-section {
    padding-top: 20px;
  }

  .listing-body {
    min-height: 180px;
  }

  .tenant-shortcuts {
    width: calc(100% - 28px);
    gap: 6px;
    margin: 12px auto;
  }

  .tenant-shortcuts .button {
    font-size: 0.85rem;
    line-height: 1.3;
    padding: 8px 5px;
  }

  .portal-hero {
    padding: 24px 16px;
  }

  .portal-hero h1 {
    font-size: 2rem;
  }

  .portal-hero .eyebrow {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .portal-hero > p:not(.eyebrow) {
    font-size: 0.94rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-item.featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-item img {
    aspect-ratio: 4 / 3;
  }

  .gallery-item.featured img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 521px) and (max-width: 860px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
