/* Available Units page — layout modeled on a card grid listing.
   Uses the site's theme.css variables so colors and fonts stay on-brand. */

.au-breadcrumb { font-size: .9rem; margin: 0 0 .75rem; color: rgba(255,255,255,.82); }
.au-breadcrumb a { color: #fff; text-decoration: underline; }
.au-address { margin: .5rem 0 1.5rem; color: rgba(255,255,255,.9); }

/* At a glance */
.au-glance { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0,1fr)); background: #e6e6e6; border: 1px solid #e6e6e6; }
.au-glance div { background: var(--color-white); padding: 1.1rem 1.25rem; }
.au-glance dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 .35rem; }
.au-glance dd { margin: 0; font-weight: 700; color: var(--color-ink); }
.au-glance-note { margin-top: 1rem; color: var(--color-muted); font-size: .95rem; }

/* Filters */
.au-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.75rem; }
.au-filter { font: 600 .95rem var(--font-body); padding: .6rem 1.15rem; border-radius: var(--radius-pill); border: 2px solid #3a3a3a; background: transparent; color: #f3f3f3; cursor: pointer; }
.au-filter[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* Card grid */
.au-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0,1fr)); }
.au-card { display: flex; flex-direction: column; background: #141414; border: 1px solid #2a2a2a; border-left: 4px solid var(--color-accent); color: #f3f3f3; }
.au-card[hidden] { display: none; }
.au-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.au-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--ease); }
.au-photo:hover img { transform: scale(1.03); }
.au-badge { position: absolute; top: .6rem; left: .6rem; background: rgba(0,0,0,.72); color: #fff; font-size: .78rem; font-weight: 600; padding: .3rem .55rem; border-radius: 3px; }
.au-badge-example { top: auto; bottom: .6rem; background: rgba(223,20,20,.92); }
.au-body { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1.15rem 1.25rem; flex: 1; }
.au-see { background: none; border: 0; padding: 0; text-align: left; color: #ff6b6b; font: 600 .88rem var(--font-body); cursor: pointer; }
.au-see:hover { text-decoration: underline; }
.au-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.au-head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: .01em; color: #fff; }
.au-head p { margin: .2rem 0 0; color: #a9a9a9; font-size: .92rem; }
.au-plan { text-align: right; flex-shrink: 0; }
.au-plan svg { display: block; margin-left: auto; }
.au-plan span { display: block; margin-top: .25rem; font-size: .75rem; color: #a9a9a9; }
.au-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 0; }
.au-specs dt, .au-feat dt { font-size: .8rem; color: #a9a9a9; margin: 0 0 .2rem; }
.au-specs dd { margin: 0; font-weight: 700; color: #fff; }
.au-feat { margin: 0; }
.au-feat dd { margin: 0; color: #f3f3f3; line-height: 1.45; }
.au-price { margin-top: auto; border: 1px solid #333; }
.au-price div { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; }
.au-price div + div { border-top: 1px solid #333; }
.au-price span { color: #cfcfcf; font-size: .92rem; }
.au-price a { color: #fff; font-weight: 700; text-decoration: none; }
.au-price a:hover { color: #ff6b6b; }
.au-cta { width: 100%; padding: .9rem 1rem; border-radius: 3px; }
.au-call { margin: 0; text-align: center; font-size: .88rem; color: #a9a9a9; }
.au-call a { color: #d0d0d0; }

/* Selected unit message above the form */
.au-selected { display: none; margin: 0 0 1rem; padding: .8rem 1rem; background: #1d1d1d; border-left: 4px solid var(--color-accent); color: #fff; }
.au-selected.is-on { display: block; }

/* Photo strip + amenities */
.au-photos { display: grid; gap: .75rem; grid-template-columns: repeat(7, minmax(0,1fr)); }
.au-photos button { padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.au-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-here { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }

/* Lightbox */
.au-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); }
.au-lightbox.is-open { display: flex; }
.au-lightbox figure { margin: 0; max-width: min(92vw, 900px); text-align: center; }
.au-lightbox img { max-height: 80vh; max-width: 100%; width: auto; margin: 0 auto; }
.au-lightbox figcaption { color: #e6e6e6; margin-top: .75rem; font-size: .95rem; }
.au-lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.au-lb-btn:hover { background: var(--color-accent); }
.au-lb-close { top: 1rem; right: 1rem; }
.au-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.au-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 1100px) { .au-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .au-photos { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 820px)  { .au-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .au-glance { grid-template-columns: 1fr 1fr; } .au-here { grid-template-columns: 1fr; } .au-photos { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 560px)  { .au-grid { grid-template-columns: 1fr; } .au-glance { grid-template-columns: 1fr; } .au-photos { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Featured MLS listings */
.au-card-featured { border-left-color: var(--color-accent); box-shadow: 0 0 0 1px rgba(223,20,20,.45); }
.au-badge-ready { left: auto; right: .6rem; background: var(--color-accent); color: #fff; }
.au-price strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: .03em; color: #fff; line-height: 1.1; }
.au-price strong small { font-family: var(--font-display); font-size: .8em; color: #cfcfcf; margin-left: 1px; }

/* Custom unit */
a.au-filter-custom { display: inline-flex; align-items: center; text-decoration: none; background: transparent; border-color: var(--color-accent); color: #fff; }
a.au-filter-custom:hover, a.au-filter-custom:focus-visible { background: #b80f0f; border-color: #b80f0f; color: #fff; }
.au-card-custom { border-left-color: var(--color-accent); box-shadow: 0 0 0 1px rgba(223,20,20,.45); }
.au-custom-cover { position: relative; display: block; }
.au-custom-cover img { filter: brightness(.45); }
.au-custom-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-size: 2.1rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.au-card-custom .au-call a { color: #fff; }
