/* Floor Plans page styles (kept out of the HTML so they cache with the other assets).
   Plan drawings must never be cropped (mixed portrait/landscape/square), so these
   frames use object-fit: contain on a white mat — deliberately NOT .plan-image. */
.fp-overview-frame {
  background: #fff;
  padding: 1rem;
  border: 1px solid var(--clh-fog, #E8EAF0);
  border-radius: var(--clh-radius-md, 12px);
  box-shadow: var(--clh-shadow-md, 0 4px 16px rgba(45, 41, 38, 0.12));
  cursor: zoom-in;
  transition: var(--clh-transition, all 0.3s ease);
}
.fp-overview-frame:hover { transform: translateY(-2px); box-shadow: var(--clh-shadow-lg, 0 12px 32px rgba(45, 41, 38, 0.16)); }
.fp-overview-frame img { width: 100%; height: auto; display: block; border-radius: var(--clh-radius-sm, 8px); }
.fp-enlarge-hint { font-size: 1rem; color: var(--clh-text-light, #6B6560); text-align: center; margin-top: 0.6rem; }
.fp-enlarge-hint i { margin-right: 0.3rem; }

/* The image frame and its availability badge are siblings (a link inside a
   role="button" is invalid for screen readers), so the wrapper positions both. */
.fp-media-wrap { position: relative; }
.fp-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--clh-radius-md, 12px) var(--clh-radius-md, 12px) 0 0;
}
.fp-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-media .fp-render { object-fit: cover; }
.fp-media .fp-plan { object-fit: contain; padding: 0.75rem; background: #fff; opacity: 0; }
.fp-media.is-plan .fp-render { opacity: 0; }
.fp-media.is-plan .fp-plan { opacity: 1; }
.fp-media:focus-visible { outline: 3px solid var(--clh-primary, #4A6FA5); outline-offset: 2px; }
.fp-media .fp-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--clh-cream, #F5F0E8); color: var(--clh-sage, #7A8B6F); font-size: 3rem;
}

/* Badges use dark text on a light tint (white-on-sage and white-on-gold both
   failed WCAG AA contrast at this size) and are sized as real touch targets. */
.fp-badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  display: inline-flex; align-items: center; min-height: 2.5rem;
  color: #2D2926; font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  padding: 0.4rem 1rem; border-radius: var(--clh-radius-pill, 50px);
  box-shadow: 0 2px 8px rgba(45, 41, 38, 0.25);
}
.fp-badge.now { background: #DFE8D3; color: #2F3D25; }
.fp-badge.soon { background: #F6E7C8; color: #5A4210; }
.fp-badge.waitlist { background: #EBE9E4; color: #3F3A36; }
a.fp-badge { text-decoration: none; cursor: pointer; transition: var(--clh-transition, all 0.3s ease); }
a.fp-badge:hover, a.fp-badge:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(45, 41, 38, 0.3); filter: brightness(0.97); }
a.fp-badge:focus-visible { outline: 3px solid var(--clh-primary, #4A6FA5); outline-offset: 2px; }

/* Suites that are reserved or not yet available: softened and clearly secondary,
   but still inviting — the photo warms back to full color on hover. */
.floor-plan-card.is-unavailable { background: #faf8f4; border: 1px solid var(--clh-fog, #E8EAF0); box-shadow: none; }
.floor-plan-card.is-unavailable .fp-media img { filter: grayscale(0.72) sepia(0.18) brightness(0.97); transition: filter 0.6s ease; }
.floor-plan-card.is-unavailable:hover .fp-media img { filter: grayscale(0.15) sepia(0.05); }
.floor-plan-card.is-unavailable .fp-media::after { content: ''; position: absolute; inset: 0; background: rgba(245, 240, 232, 0.22); pointer-events: none; transition: opacity 0.6s ease; }
.floor-plan-card.is-unavailable:hover .fp-media::after { opacity: 0; }
.floor-plan-card.is-unavailable .plan-name,
.floor-plan-card.is-unavailable .fp-price .amount { color: var(--clh-text-light, #6B6560); }
.floor-plan-card.is-unavailable .fp-tagline { color: var(--clh-text-light, #6B6560); }
.floor-plan-card.is-unavailable .fp-toggle button[aria-pressed="true"] { background: var(--clh-text-light, #6B6560); }
.floor-plan-card.is-unavailable .fp-cta .btn {
  background: transparent; color: var(--clh-primary, #4A6FA5); border: 2px solid var(--clh-primary, #4A6FA5);
}
.floor-plan-card.is-unavailable .fp-cta .btn:hover { background: var(--clh-primary, #4A6FA5); color: #fff; }
.fp-status-note {
  font-size: 1rem; color: var(--clh-text-light, #6B6560); font-style: italic;
  margin: -0.25rem 0 0.75rem; display: flex; align-items: center; gap: 0.4rem;
}
.fp-status-note i { color: var(--clh-accent-dark, #A67C32); }

.fp-toggle {
  display: inline-flex; align-self: center;
  border: 1px solid var(--clh-fog, #E8EAF0); border-radius: var(--clh-radius-pill, 50px);
  background: #fff; padding: 0.2rem; margin: -1.15rem auto 0; position: relative; z-index: 3;
  box-shadow: var(--clh-shadow-sm, 0 2px 8px rgba(45, 41, 38, 0.08));
}
.fp-toggle button {
  border: 0; background: transparent; color: var(--clh-text-dark, #2D2926);
  font-family: var(--clh-font-body, 'Source Sans 3', sans-serif); font-weight: 600; font-size: 1rem;
  padding: 0.5rem 1.1rem; min-height: 44px; border-radius: var(--clh-radius-pill, 50px); cursor: pointer;
  transition: var(--clh-transition, all 0.3s ease); min-width: 6.5rem;
}
.fp-toggle button[aria-pressed="true"] { background: var(--clh-primary, #4A6FA5); color: #fff; }
.fp-toggle button:focus-visible { outline: 3px solid var(--clh-primary-light, #6B8BBF); outline-offset: 1px; }

.fp-tagline {
  color: var(--clh-text-light, #6B6560); font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem;
}
.fp-price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--clh-fog, #E8EAF0); }
.fp-price .amount {
  font-family: var(--clh-font-display, 'Playfair Display', serif);
  font-size: 1.9rem; font-weight: 700; color: var(--clh-primary, #4A6FA5);
}
.fp-price .per { font-size: 1rem; color: var(--clh-text-light, #6B6560); font-weight: 400; }
.fp-price .deposit { font-size: 0.95rem; color: var(--clh-text-light, #6B6560); margin-top: 0.15rem; }
.fp-cta { margin-top: 1.25rem; }
.fp-cta .btn { width: 100%; }

/* Lightbox (page-local: the grid renders after main.js initGallery has run) */
.fp-lightbox {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.9); padding: 1.5rem;
}
.fp-lightbox img {
  max-width: 92%; max-height: 90vh; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 0.5rem;
}
.fp-lightbox .fp-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.fp-lightbox .fp-close:hover, .fp-lightbox .fp-close:focus { background: rgba(255, 255, 255, 0.3); }
.fp-lightbox .fp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: none;
  align-items: center; justify-content: center;
}
.fp-lightbox .fp-nav.show { display: flex; }
.fp-lightbox .fp-nav:hover, .fp-lightbox .fp-nav:focus { background: rgba(255, 255, 255, 0.3); }
.fp-lightbox .fp-nav-left { left: 1rem; }
.fp-lightbox .fp-nav-right { right: 1rem; }
.fp-lightbox .fp-nav-label {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; letter-spacing: 0.02em;
}

@media (max-width: 575.98px) {
  .fp-price .amount { font-size: 1.6rem; }
  .fp-toggle button { min-width: 5.5rem; }
}
