.strand-plan-library {
  --strand-plan-ink: #202526;
  --strand-plan-muted: #647071;
  --strand-plan-line: #d9dedd;
  --strand-plan-surface: #f5f6f3;
  color: var(--strand-plan-ink);
}

.strand-plan-library:not(.strand-plan-library--native) {
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(24px, 4vw, 64px) 20px;
}

.strand-plan-library * { box-sizing: border-box; }
.strand-plan-card-template-shell { display: block; min-width: 0; width: 100%; }
.strand-plan-library:not(.strand-plan-library--native) .strand-plan-library__intro { max-width: 780px; margin-bottom: 32px; }
.strand-plan-library:not(.strand-plan-library--native) .strand-plan-library__intro h1, .strand-plan-detail:not(.strand-plan-detail--native) h1, .strand-plan-detail:not(.strand-plan-detail--native) h2 { margin-top: 0; }
.strand-plan-library:not(.strand-plan-library--native) .strand-plan-library__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.strand-plan-library__filters { background: var(--strand-plan-surface); border-radius: 14px; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 34px; padding: 20px; }
.strand-plan-library__filters label { display: grid; font-size: .82rem; font-weight: 700; gap: 6px; }
.strand-plan-library__filters input, .strand-plan-library__filters select { background: #fff; border: 1px solid var(--strand-plan-line); border-radius: 6px; min-height: 44px; padding: 8px 10px; width: 100%; }
.strand-plan-library__reset, .strand-plan-detail__controls button[data-plan-adjust] { align-self: end; background: #fff; border: 1px solid var(--strand-plan-line); border-radius: 6px; cursor: pointer; min-height: 44px; padding: 8px 14px; }
.strand-plan-library__grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strand-plan-card--fallback { background: #fff; border: 1px solid var(--strand-plan-line); border-radius: 16px; box-shadow: 0 8px 28px rgba(24, 33, 34, .08); min-width: 0; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.strand-plan-card--fallback:hover { box-shadow: 0 14px 34px rgba(24, 33, 34, .13); transform: translateY(-3px); }
.strand-plan-card--elementor,
.strand-plan-card--elementor:hover { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; transform: none; transition: none; }
.strand-plan-card[hidden] { display: none; }
.strand-plan-card--fallback .strand-plan-card__link { color: inherit; display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.strand-plan-card--fallback .strand-plan-card__images { aspect-ratio: 4 / 5; background: var(--strand-plan-surface); display: grid; grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; }
.strand-plan-card--fallback .strand-plan-card__images img { height: 100%; object-fit: contain; width: 100%; }
.strand-plan-card--fallback .strand-plan-card__images img:first-child { border-radius: 16px 16px 0 0; object-fit: cover; }
.strand-plan-card--fallback .strand-plan-card__images img:last-child:not(:first-child) { border-radius: 0 0 16px 16px; }
.strand-plan-card--fallback .strand-plan-card__images img:only-child { border-radius: 16px 16px 0 0; grid-row: 1 / -1; }
.strand-plan-card--fallback .strand-plan-card__content { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 22px; }
.strand-plan-card--fallback .strand-plan-card__content > strong { font-size: 1.35rem; }
.strand-plan-card--fallback .strand-plan-card__action { font-weight: 700; margin-top: auto; }
.strand-plan-render-image, .strand-plan-floorplan-image { display: block; height: auto; max-width: 100%; width: 100%; }
.strand-plan-render-image { object-fit: cover; }
.strand-plan-floorplan-image { object-fit: contain; }
.strand-plan-card-cta { align-items: center; background: var(--strand-plan-ink, #202526); border: 1px solid var(--strand-plan-ink, #202526); border-radius: 6px; color: #fff; display: inline-flex; font-weight: 700; justify-content: center; min-height: 44px; padding: 10px 16px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.strand-plan-card-cta:hover, .strand-plan-card-cta:focus { background: var(--strand-plan-surface, #f5f6f3); color: var(--strand-plan-ink, #202526); text-decoration: none; }
.strand-plan-card-cta:focus-visible { outline: 3px solid var(--strand-plan-ink, #202526); outline-offset: 3px; }
.strand-plan-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.strand-plan-facts > span { color: var(--strand-plan-muted); font-size: .9rem; }
.strand-plan-facts strong { color: var(--strand-plan-ink); }
.strand-plan-library__no-results, .strand-plan-library__empty { background: var(--strand-plan-surface); border-radius: 12px; padding: 24px; }
.strand-plan-library__load-more { color: var(--strand-plan-muted); font-size: .85rem; padding: 24px; text-align: center; }
.strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__back { display: inline-block; margin-bottom: 30px; }
.strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__hero { align-items: center; display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__hero img { border-radius: 18px; height: auto; max-height: 620px; object-fit: cover; width: 100%; }
.strand-plan-detail__cta { display: inline-block; font-weight: 700; margin-top: 10px; }
.strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__floorplan, .strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__enquiry { border-top: 1px solid var(--strand-plan-line); margin-top: 60px; padding-top: 44px; }
.strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.strand-plan-detail__controls button[aria-pressed="true"] { outline: 2px solid currentColor; }
.strand-plan-detail__floorplan-frame { align-items: center; background: var(--strand-plan-surface); display: flex; justify-content: center; min-height: 360px; overflow: hidden; padding: clamp(12px, 3vw, 40px); }
.strand-plan-detail__floorplan-frame img { height: auto; max-height: 780px; max-width: 100%; }
/* Behaviour only: Elementor owns native image sizing and presentation. */
.strand-plan-detail__floorplan-frame img, [data-strand-plan-detail] .strand-plan-floorplan-image img { transform: rotate(var(--strand-plan-rotate, 0deg)) scaleX(var(--strand-plan-mirror, 1)); transition: transform .3s ease; }
.strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__enquiry { max-width: 900px; }
[data-strand-plan-detail] .elementor-button[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 3px; }
[data-strand-plan-detail] .elementor-button:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }

@media (max-width: 960px) {
  .strand-plan-library__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strand-plan-library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strand-plan-detail:not(.strand-plan-detail--native) .strand-plan-detail__hero { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .strand-plan-library:not(.strand-plan-library--native) { padding-left: 16px; padding-right: 16px; }
  .strand-plan-library__filters, .strand-plan-library__grid { grid-template-columns: 1fr; }
  .strand-plan-card--fallback .strand-plan-card__images { aspect-ratio: 4 / 5; }
  .strand-plan-detail__floorplan-frame { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .strand-plan-card, .strand-plan-card-cta, .strand-plan-detail__floorplan-frame img, [data-strand-plan-detail] .strand-plan-floorplan-image img { transition: none; }
}
