/**
 * Foxbrick Child: component styles.
 *
 * Brand tokens first. Match Flatsome to them in Customize → Style → Colors
 * (Primary = --fb-brick, Secondary = --fb-ink) so buttons and links agree.
 */
:root {
  --fb-brick: #a84a32;
  --fb-brick-dark: #8a3b27;
  --fb-ink: #22313f;
  --fb-muted: #5d6873;
  --fb-cream: #f7f1e8;
  --fb-line: #e4ded4;
  --fb-radius: 10px;
}

/* ---------- Text logo (site title, until an image logo is uploaded) ---------- */

.fb-text-logo #logo {
  width: auto;
  max-width: 70vw;
}

.fb-text-logo #logo a {
  color: var(--fb-ink);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 849px) {
  .fb-text-logo #logo a {
    font-size: 16px;
  }
}

/* ---------- Floor plan cards ---------- */

.fb-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 16px;
}

.fb-plans--cols-1 {
  grid-template-columns: minmax(0, 1fr);
}
.fb-plans--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fb-plans--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 849px) {
  .fb-plans--cols-3,
  .fb-plans--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 549px) {
  .fb-plans,
  .fb-plans--cols-2,
  .fb-plans--cols-3,
  .fb-plans--cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fb-plan-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.fb-plan-card:hover {
  box-shadow: 0 8px 24px rgba(34, 49, 63, 0.12);
  transform: translateY(-2px);
}

.fb-plan-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--fb-cream);
}

.fb-plan-media .fb-plan-img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain; /* floor plan drawings stay whole */
}

.fb-plan-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--fb-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fb-plan-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.fb-plans .fb-plan-title {
  margin: 0;
  color: var(--fb-ink);
  font-size: 1.15em;
}

.fb-plans .fb-plan-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  color: var(--fb-muted);
  font-size: 0.95em;
  list-style: none;
}

.fb-plans .fb-plan-specs li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fb-plans .fb-plan-price,
.fb-plans .fb-plan-excerpt,
.fb-plans .fb-plan-note {
  margin: 0;
}

.fb-plan-price {
  color: var(--fb-ink);
}

.fb-plan-price strong {
  color: var(--fb-brick);
  font-size: 1.25em;
}

.fb-plan-excerpt {
  color: var(--fb-muted);
  font-size: 0.95em;
}

.fb-plan-note {
  color: var(--fb-brick-dark);
  font-size: 0.85em;
  font-weight: 600;
}

.fb-plans .fb-plan-cta {
  align-self: flex-start;
  margin: auto 0 0; /* pins the button to the bottom of the card */
}

.fb-plans-note {
  color: var(--fb-muted);
  font-size: 0.85em;
}

.fb-plans-empty {
  padding: 16px;
  border: 1px dashed var(--fb-line);
  border-radius: var(--fb-radius);
}

.fb-plans .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Page elements ---------- */

.fb-eyebrow {
  margin-bottom: 8px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.fb-hero-title {
  margin-bottom: 0.4em;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.fb-stat {
  margin: 0;
  color: var(--fb-muted);
  font-size: 0.9em;
  line-height: 1.3;
}

.fb-stat strong {
  display: block;
  color: var(--fb-ink);
  font-size: 1.6em;
  line-height: 1.2;
}

.fb-feature {
  margin-bottom: 28px;
}

.fb-feature--center {
  text-align: center;
}

.fb-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--fb-cream);
  color: var(--fb-brick);
}

section[style*="247, 241, 232"] .fb-feature__icon,
.fb-card--quiet .fb-feature__icon {
  background: #fff;
}

.fb-feature .fb-feature__title {
  margin: 0 0 6px;
  color: var(--fb-ink);
  font-size: 1.1em;
}

.fb-feature .fb-feature__text {
  margin: 0 0 6px;
  color: var(--fb-muted);
}

.fb-feature__link {
  font-weight: 600;
}

.fb-checklist {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.col-inner .fb-checklist li,
.fb-checklist li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 32px;
  list-style: none;
}

.fb-checklist li::before {
  position: absolute;
  top: 0.3em;
  left: 4px;
  width: 7px;
  height: 13px;
  border: solid var(--fb-brick);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}

.fb-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fb-photos--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fb-photos--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 549px) {
  .fb-photos,
  .fb-photos--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fb-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  aspect-ratio: 4 / 3;
  padding: 12px;
  border: 1px dashed #cfc6b8;
  border-radius: var(--fb-radius);
  background: var(--fb-cream);
  color: var(--fb-muted);
  text-align: center;
}

.fb-photo-placeholder figcaption {
  font-size: 0.9em;
}

.fb-map {
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: var(--fb-radius);
  line-height: 0;
}

.fb-map iframe {
  display: block;
  width: 100%;
  border: 0;
}

.fb-card {
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  background: #fff;
}

.fb-card--quiet {
  background: var(--fb-cream);
  border-color: transparent;
}

.fb-card h3 {
  margin-bottom: 4px;
  font-size: 1em;
}

.fb-card h3:not(:first-child) {
  margin-top: 18px;
}

.fb-card p:last-child {
  margin-bottom: 0;
}

.fb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

@media (max-width: 549px) {
  .fb-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fb-card .wpcf7 label {
  display: block;
  font-weight: 600;
}

.fb-card .wpcf7 input:not([type="submit"]),
.fb-card .wpcf7 select,
.fb-card .wpcf7 textarea {
  width: 100%;
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- Tour form dates (inc/tour-dates.php, assets/js/dates.js) ---------- */

.fb-date {
  margin-bottom: 20px;
}

.fb-date__label {
  display: block;
  color: #222;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.6;
}

.fb-date .fb-date__native {
  display: none;
}

.fb-date .wpcf7-not-valid-tip {
  margin-top: 6px;
}

/* Every control in the picker starts from a clean slate, not Flatsome's button style */
.fb-date button {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  line-height: 1.2;
  text-align: inherit;
  text-shadow: none;
  text-transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fb-date button:focus-visible {
  outline: 2px solid var(--fb-ink);
  outline-offset: 2px;
}

.fb-date__icon {
  display: inline-flex;
  flex: none;
}

.fb-date__icon svg {
  display: block;
}

/* The box, sized like the form's other inputs */
.fb-date__control {
  position: relative;
}

.fb-date .fb-date__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 2.507em;
  padding: 0 0.75em;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #777;
  font-size: 0.873em;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.fb-date .fb-date__trigger:hover,
.fb-date.is-open .fb-date__trigger {
  border-color: var(--fb-ink);
}

.fb-date .fb-date__trigger.has-value {
  color: #333;
}

.fb-date__value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-date__trigger.has-value .fb-date__value {
  padding-right: 32px; /* keeps a long date clear of the clear button */
}

.fb-date .fb-date__trigger .fb-date__icon {
  color: var(--fb-ink);
}

.fb-date.is-invalid .fb-date__trigger {
  border-color: #b20000;
}

.fb-date .fb-date__clear {
  position: absolute;
  top: 50%;
  right: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 4px;
  color: var(--fb-muted);
}

.fb-date .fb-date__clear:hover {
  background: var(--fb-cream);
  color: var(--fb-ink);
}

.fb-date .fb-date__clear[hidden] {
  display: none;
}

/* The calendar floats over the page under its box, so nothing below it moves */
.fb-date .fb-cal {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 14px 14px 10px;
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(34, 49, 63, 0.18),
    0 2px 6px rgba(34, 49, 63, 0.08);
  color: var(--fb-ink);
  transform-origin: top left;
  animation: fb-cal-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  scroll-margin: 96px 12px 84px;
}

.fb-date .fb-cal[hidden] {
  display: none;
}

/* Not enough room to the right: line up with the box's right edge */
.fb-date .fb-cal.is-right {
  right: 0;
  left: auto;
  transform-origin: top right;
}

/* Not enough room below: open upward */
.fb-date .fb-cal.is-above {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom left;
  animation-name: fb-cal-up;
}

.fb-date .fb-cal.is-above.is-right {
  transform-origin: bottom right;
}

@keyframes fb-cal-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes fb-cal-up {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

.fb-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.fb-cal__title {
  font-weight: 700;
}

.fb-date .fb-cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--fb-line);
  border-radius: 4px;
  color: var(--fb-ink);
}

.fb-date .fb-cal__nav:hover:not(:disabled) {
  border-color: var(--fb-ink);
}

.fb-date .fb-cal__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.fb-cal__week,
.fb-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.fb-cal__week span {
  padding: 4px 0 6px;
  color: var(--fb-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.fb-date .fb-cal__day {
  position: relative;
  height: 38px;
  border-radius: 8px;
  color: var(--fb-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.fb-date .fb-cal__day:hover {
  background: var(--fb-cream);
}

.fb-date .fb-cal__day.is-today {
  color: var(--fb-brick);
  font-weight: 700;
}

.fb-date .fb-cal__day.is-today::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  background: currentColor;
  content: "";
}

.fb-date .fb-cal__day[aria-pressed="true"] {
  background: var(--fb-brick);
  color: #fff;
  font-weight: 700;
}

.fb-date .fb-cal__day[aria-disabled="true"] {
  background: none;
  color: #c4c4c4;
  font-weight: 400;
  cursor: not-allowed;
}

.fb-date .fb-cal__day.is-closed[aria-disabled="true"] {
  text-decoration: line-through;
}

.fb-cal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--fb-line);
  font-size: 13px;
}

.fb-date .fb-cal__clear {
  margin-left: -6px;
  padding: 5px 6px;
  border-radius: 4px;
  color: var(--fb-brick);
  font-weight: 700;
}

.fb-date .fb-cal__clear:hover {
  color: var(--fb-brick-dark);
}

.fb-cal__note {
  color: var(--fb-muted);
}

/* Phones: the box is full width, and so is its calendar */
@media (max-width: 549px) {
  .fb-date .fb-cal,
  .fb-date .fb-cal.is-right {
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-date .fb-cal {
    animation: none;
  }
}

.fb-todo {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px dashed #c79a00;
  border-radius: 6px;
  background: #fff8db;
  color: #5c4a00;
  font-size: 0.9em;
}

.fb-small {
  margin-top: 12px;
  font-size: 0.9em;
}

.fb-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.col-inner .fb-footer-links li,
.fb-footer-links li {
  margin: 0 0 8px;
  list-style: none;
}

/* ---------- Footer ---------- */

/*
 * The footer block (UX Blocks → Foxbrick Footer) has its own copyright row with
 * the Equal Housing badge, so the theme's bottom bar would only repeat it.
 */
.absolute-footer {
  display: none;
}

/* ---------- Equal Housing Opportunity badge ---------- */

.fb-eho {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ---------- Mobile Call / Schedule a Tour bar ---------- */

.fb-mobile-cta {
  display: none;
}

@media (max-width: 849px) {
  .fb-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: flex;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -2px 12px rgba(34, 49, 63, 0.12);
  }

  .fb-mobile-cta a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
  }

  .fb-mobile-cta__call {
    border: 2px solid var(--fb-ink);
    color: var(--fb-ink);
  }

  .fb-mobile-cta__tour {
    background: var(--fb-brick);
    color: #fff;
  }

  .fb-mobile-cta__tour:hover,
  .fb-mobile-cta__tour:focus {
    color: #fff;
    background: var(--fb-brick-dark);
  }

  body.has-fb-mobile-cta {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  /* Lift Flatsome's back-to-top button above the bar. */
  .has-fb-mobile-cta .back-to-top {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* ---------- Focus and motion ---------- */

.fb-plans .fb-plan-cta:focus-visible,
.fb-mobile-cta a:focus-visible {
  outline: 3px solid var(--fb-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .fb-plan-card {
    transition: none;
  }
  .fb-plan-card:hover {
    transform: none;
  }
}

/* ---------- Floor plan cards: link, availability, filter (v1.3) ---------- */

/* The title link covers the whole card, so any click opens the plan page. */
.fb-plan-card {
  position: relative;
}

.fb-plans .fb-plan-title a,
.fb-plans .fb-plan-title a:hover {
  color: inherit;
}

.fb-plan-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Keyboard focus outlines the whole card (browsers without :has() outline the title). */
@supports selector(:has(*)) {
  .fb-plan-link:focus-visible {
    outline: none;
  }

  .fb-plan-card:has(.fb-plan-link:focus-visible) {
    outline: 3px solid var(--fb-ink);
    outline-offset: 3px;
  }

  .fb-plans .fb-plan-card:has(.fb-plan-link:focus-visible) .fb-plan-cta {
    background: var(--fb-brick) !important;
    color: #fff !important;
  }
}

/* "2 available" / "Join the waitlist" chip on the drawing */
.fb-plan-avail {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(34, 49, 63, 0.14);
  color: var(--fb-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.fb-plan-avail::before {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9b1a5;
  content: "";
}

.fb-plan-avail.is-available {
  color: #1f6b43;
}

.fb-plan-avail.is-available::before {
  background: #2f9e5b;
  box-shadow: 0 0 0 3px rgba(47, 158, 91, 0.2);
}

/* Filterable grid: a centered row of cards, so two cards sit in the middle. */
.fb-plans.fb-plans--filterable {
  --fb-gap: 22px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: var(--fb-gap);
}

.fb-plans--filterable > .fb-plan-card {
  flex: 0 0 calc((100% - 2 * var(--fb-gap)) / 3);
  min-width: 0;
}

.fb-plans--filterable.fb-plans--cols-1 > .fb-plan-card {
  flex-basis: 100%;
}
.fb-plans--filterable.fb-plans--cols-2 > .fb-plan-card {
  flex-basis: calc((100% - var(--fb-gap)) / 2);
}
.fb-plans--filterable.fb-plans--cols-4 > .fb-plan-card {
  flex-basis: calc((100% - 3 * var(--fb-gap)) / 4);
}

@media (max-width: 849px) {
  .fb-plans--filterable > .fb-plan-card,
  .fb-plans--filterable.fb-plans--cols-4 > .fb-plan-card {
    flex-basis: calc((100% - var(--fb-gap)) / 2);
  }
}

@media (max-width: 549px) {
  .fb-plans.fb-plans--filterable {
    --fb-gap: 16px;
  }

  .fb-plans--filterable > .fb-plan-card,
  .fb-plans--filterable.fb-plans--cols-2 > .fb-plan-card,
  .fb-plans--filterable.fb-plans--cols-4 > .fb-plan-card {
    flex-basis: 100%;
  }
}

/* Filter pills (Floor Plans and Gallery). The row scrolls sideways when the pills don't fit. */
.fb-filter-wrap {
  margin: 0 0 10px;
  padding: 6px 16px 24px; /* room for the shadow, which the scroll area would clip */
  overflow-x: auto;
  scrollbar-width: none;
}

.fb-filter-wrap::-webkit-scrollbar {
  display: none;
}

/* Faded edge where more pills are hidden (set by assets/js/filter.js) */
.fb-filter-wrap.has-more-end {
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 calc(100% - 56px),
    transparent
  );
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}

.fb-filter-wrap.has-more-start {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px);
  mask-image: linear-gradient(90deg, transparent, #000 56px);
}

.fb-filter-wrap.has-more-start.has-more-end {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 56px,
    #000 calc(100% - 56px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 56px,
    #000 calc(100% - 56px),
    transparent
  );
}

.fb-filter {
  position: relative;
  z-index: 0;
  display: flex;
  gap: 4px;
  width: max-content;
  margin: 0 auto;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(34, 49, 63, 0.06),
    0 12px 30px -14px rgba(34, 49, 63, 0.28);
}

.fb-filter__glider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  z-index: -1;
  width: 0;
  border-radius: 8px;
  background: var(--fb-brick);
  box-shadow: 0 8px 18px -8px rgba(168, 74, 50, 0.75);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fb-filter.is-ready .fb-filter__glider {
  opacity: 1;
}

.fb-filter .fb-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 11px 20px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--fb-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.fb-filter .fb-filter__pill:hover {
  background: transparent;
  box-shadow: none;
  color: var(--fb-brick);
}

.fb-filter .fb-filter__pill.is-active {
  color: #fff;
}

/* Before the script runs (or without it), the active pill carries its own color. */
.fb-filter:not(.is-ready) .fb-filter__pill.is-active {
  background: var(--fb-brick);
}

.fb-filter .fb-filter__pill:focus-visible {
  outline: 2px solid var(--fb-ink);
  outline-offset: 2px;
}

.fb-filter__count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--fb-cream);
  color: var(--fb-muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.fb-filter__pill.is-active .fb-filter__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Items a pill filters out */
[data-fb-group][hidden] {
  display: none !important;
}

/* A pill with no cards behind it ([foxbrick_plan_filter] hides it) */
.fb-filter .fb-filter__pill[hidden] {
  display: none;
}

/*
 * [foxbrick_plan_filter]: pills in their own Row above a Row of cards built in
 * UX Builder (class fb-plan-grid). Pull the cards up by the column's bottom
 * padding, so the gap matches the Floor Plans element.
 */
.fb-plan-filter {
  margin-bottom: -30px;
}

/* The hand-built cards in that Row get a hairline frame, so white cards keep their shape on a white section. */
.fb-plan-grid > .col > .col-inner {
  box-shadow: 0 0 0 1px var(--fb-line);
}

@media (max-width: 849px) {
  .fb-filter__count {
    display: none;
  }
}

@media (max-width: 549px) {
  .fb-filter-wrap {
    margin: 0 -15px 4px;
  }
  .fb-filter .fb-filter__pill {
    padding: 10px 13px;
    font-size: 13px;
  }
}

/* Other floor plans on phones: swipe sideways */
@media (max-width: 549px) {
  .fb-plans.fb-plans--swipe {
    grid-template-columns: none;
    grid-auto-columns: 82%;
    grid-auto-flow: column;
    gap: 14px;
    margin: 0 -15px;
    padding: 4px 15px 22px;
    overflow-x: auto;
    scroll-padding: 0 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fb-plans--swipe::-webkit-scrollbar {
    display: none;
  }
  .fb-plans--swipe .fb-plan-card {
    scroll-snap-align: start;
  }
  .fb-plans--swipe .fb-plan-card:hover {
    transform: none;
  }
}

/* ---------- Live availability ---------- */

.fb-live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f9e5b;
}

.fb-live-dot::after {
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  border: 2px solid rgba(47, 158, 91, 0.5);
  border-radius: 50%;
  content: "";
  animation: fb-live-pulse 2s ease-out infinite;
}

@keyframes fb-live-pulse {
  from {
    opacity: 1;
    transform: scale(0.5);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* [foxbrick_live_status] */
.fb-live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(34, 49, 63, 0.06),
    0 10px 26px -14px rgba(34, 49, 63, 0.3);
  color: var(--fb-ink);
  font-size: 14px;
  line-height: 1.35;
}

.fb-live-status__time {
  color: var(--fb-muted);
}

/* ---------- Floor plan page (single-fb_floor_plan.php) ---------- */

.fb-plan-page .fb-eyebrow {
  color: var(--fb-brick);
  font-size: 13px;
  letter-spacing: 0.22em;
  opacity: 1;
}

.fb-plan-hero {
  padding: 26px 0 70px;
  background: var(--fb-cream);
}

.fb-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 34px;
  color: var(--fb-muted);
  font-size: 13px;
}

.fb-crumbs a {
  color: var(--fb-muted);
}
.fb-crumbs a:hover {
  color: var(--fb-brick);
}
.fb-crumbs [aria-current] {
  color: var(--fb-ink);
  font-weight: 700;
}
.fb-crumbs__sep {
  opacity: 0.45;
}

.fb-plan-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "intro drawing"
    "details drawing";
  column-gap: 60px;
}

.fb-plan-hero__intro {
  grid-area: intro;
  align-self: end;
}
.fb-plan-hero__details {
  grid-area: details;
}

.fb-plan-hero__title {
  margin: 0 0 24px;
  color: var(--fb-ink);
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.fb-plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.fb-plan-facts .fb-plan-fact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 16px 6px 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(34, 49, 63, 0.05);
  color: var(--fb-muted);
  font-size: 14px;
  list-style: none;
}

.fb-plan-fact strong {
  color: var(--fb-ink);
  font-size: 16px;
}

.fb-plan-fact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--fb-cream);
  color: var(--fb-brick);
}

.fb-plan-hero__desc {
  max-width: 34em;
  margin: 0 0 24px;
  color: var(--fb-muted);
  font-size: 1.05em;
}

.fb-plan-hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0 0 26px;
}

.fb-plan-hero__rent {
  margin: 0;
  color: var(--fb-muted);
}

.fb-plan-hero__rent strong {
  margin-right: 2px;
  color: var(--fb-ink);
  font-family: "Fraunces", serif;
  font-size: 2.3em;
  font-weight: 600;
  line-height: 1;
}

.fb-plan-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--fb-muted);
  font-size: 14px;
  font-weight: 700;
}

.fb-plan-hero__status.is-available {
  color: #1f6b43;
}

.fb-plan-hero__status:not(.is-available) .fb-live-dot {
  background: #b9b1a5;
}
.fb-plan-hero__status:not(.is-available) .fb-live-dot::after {
  display: none;
}

.fb-plan-page .button {
  border-radius: 4px;
}

.fb-plan-hero__actions .button {
  margin: 0 8px 10px 0;
  padding: 0 1.25em;
  font-size: 0.92em;
}

/* The drawing, large, on a white card. Click to enlarge (Flatsome lightbox). */
.fb-plan-drawing {
  grid-area: drawing;
  align-self: center;
  margin: 0;
}

.fb-plan-drawing__link {
  position: relative;
  display: block;
  padding: clamp(18px, 3vw, 38px) clamp(18px, 3vw, 38px) 62px; /* room for the Enlarge button */
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(34, 49, 63, 0.06),
    0 34px 70px -34px rgba(34, 49, 63, 0.45);
  cursor: zoom-in;
}

.fb-plan-drawing__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.fb-plan-drawing__link:hover .fb-plan-drawing__img {
  transform: scale(1.02);
}

.fb-plan-drawing__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 8px 12px;
  border-radius: 8px;
  background: var(--fb-ink);
  box-shadow: 0 8px 20px -8px rgba(34, 49, 63, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.fb-plan-drawing__link:hover .fb-plan-drawing__zoom {
  background: var(--fb-brick);
}

.fb-plan-drawing figcaption {
  margin-top: 14px;
  color: var(--fb-muted);
  font-size: 12px;
  text-align: center;
}

/* Community highlights strip */
.fb-plan-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px 0 0;
  padding: 22px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(34, 49, 63, 0.05),
    0 20px 44px -30px rgba(34, 49, 63, 0.35);
  list-style: none;
}

.fb-plan-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 4px 22px;
  color: var(--fb-muted);
  font-size: 13px;
  line-height: 1.4;
  list-style: none;
}

.fb-plan-perks li + li {
  border-left: 1px solid #efe8dd;
}

.fb-plan-perks strong {
  display: block;
  color: var(--fb-ink);
  font-size: 15px;
}

.fb-plan-perks__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--fb-cream);
  color: var(--fb-brick);
}

/* Available homes */
.fb-plan-units {
  padding: 84px 0;
  background: var(--fb-cream);
  scroll-margin-top: 90px;
}

.fb-plan-units__head,
.fb-plan-others__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 30px;
  margin-bottom: 30px;
}

.fb-plan-units h2,
.fb-plan-others h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.75rem); /* same scale as the other section headings */
  line-height: 1.1;
}

.fb-live-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--fb-muted);
  font-size: 14px;
}

.fb-units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Card style from the Flatsome Studio "Support Page: Board" block:
   white, 20px corners, 40px padding, no border or shadow until hover. */
.fb-units .fb-unit {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 40px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  list-style: none;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s,
    color 0.3s,
    opacity 0.3s;
}

.fb-units .fb-unit:hover {
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.23);
}

.fb-unit__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.fb-unit__when {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--fb-cream);
  color: var(--fb-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.fb-unit__when::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d09a3c;
  content: "";
}

.fb-unit__when.is-now {
  background: #e6f4ec;
  color: #1f6b43;
}
.fb-unit__when.is-now::before {
  background: #2f9e5b;
}

.fb-unit__tag {
  color: var(--fb-brick);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fb-unit__rent {
  margin: 0 0 6px;
  color: var(--fb-muted);
  font-size: 14px;
}

.fb-unit__rent strong {
  margin-right: 2px;
  color: var(--fb-ink);
  font-family: "Fraunces", serif;
  font-size: 2em;
  font-weight: 600;
  line-height: 1.1;
}

.fb-units .fb-unit__address {
  margin: 0 0 2px;
  color: var(--fb-ink);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.fb-unit__meta,
.fb-unit__desc {
  margin: 0;
  color: var(--fb-muted);
  font-size: 14px;
}

.fb-unit__desc {
  margin-top: 8px;
}

.fb-unit__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.fb-unit .fb-unit__actions .button {
  flex: 1;
  margin: 0;
}

.fb-units-note {
  margin: 18px 0 0;
  color: var(--fb-muted);
  font-size: 13px;
}

/* No homes listed */
.fb-units-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: 30px;
  border-radius: 8px;
  background: #fff;
}

.fb-units-empty__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--fb-cream);
  color: var(--fb-brick);
}

.fb-units-empty__text {
  flex: 1 1 320px;
}

.fb-units-empty h3 {
  margin: 0 0 4px;
  font-size: 1.3em;
}

.fb-units-empty p {
  margin: 0;
  color: var(--fb-muted);
}

.fb-units-empty__actions .button {
  margin: 5px 10px 5px 0;
}

/* Other floor plans */
.fb-plan-others {
  padding: 84px 0;
  background: var(--fb-cream);
}

.fb-plan-others__all {
  margin-bottom: 6px;
  font-weight: 700;
  white-space: nowrap;
}

/* Questions card */
.fb-plan-help {
  padding: 84px 0;
}

.fb-plan-help__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 8px;
  background: linear-gradient(
    120deg,
    #8c3a26 0%,
    var(--fb-brick) 60%,
    #b65a3e 100%
  );
  box-shadow: 0 34px 64px -34px rgba(140, 58, 38, 0.65);
  color: #fff;
}

.fb-plan-help__card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.fb-plan-help__card p {
  max-width: 34em;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.fb-plan-help__hours {
  display: block;
  margin-top: 6px;
  font-size: 0.9em;
  opacity: 0.85;
}

.fb-plan-help__card > div:first-child {
  flex: 1 1 420px;
}

.fb-plan-help__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-plan-help__actions .button {
  margin: 0;
}
.fb-plan-help .button.white:not(.is-outline) {
  color: var(--fb-brick) !important;
}
.fb-plan-help .button.white.is-outline:hover {
  color: var(--fb-brick) !important;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.fb-plan-page) {
    scroll-behavior: smooth;
  }
}

/* Plan page on tablets */
@media (max-width: 849px) {
  .fb-plan-hero {
    padding: 20px 0 54px;
  }

  .fb-plan-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "drawing"
      "details";
    row-gap: 28px;
  }

  .fb-plan-facts {
    margin-bottom: 0;
  }

  .fb-plan-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
    margin-top: 40px;
  }

  .fb-plan-perks li + li {
    border-left: 0;
  }
  .fb-plan-perks li:nth-child(even) {
    border-left: 1px solid #efe8dd;
  }

  .fb-plan-units,
  .fb-plan-others,
  .fb-plan-help {
    padding: 60px 0;
  }
}

/* Plan page on phones */
@media (max-width: 549px) {
  .fb-crumbs {
    margin-bottom: 22px;
  }
  .fb-plan-facts {
    gap: 8px;
  }
  .fb-plan-facts .fb-plan-fact {
    gap: 8px;
    padding: 5px 12px 5px 5px;
    font-size: 13px;
  }
  .fb-plan-fact strong {
    font-size: 15px;
  }
  .fb-plan-fact__icon {
    width: 30px;
    height: 30px;
  }
  .fb-plan-fact__icon .fb-icon {
    width: 17px;
    height: 17px;
  }
  .fb-plan-drawing__link {
    padding-bottom: 52px;
  }
  .fb-plan-drawing__zoom {
    right: 10px;
    bottom: 10px;
    padding: 6px 12px 6px 9px;
    font-size: 12px;
  }

  .fb-plan-perks {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    padding: 6px 0;
  }

  .fb-plan-perks li {
    padding: 12px 18px;
  }
  .fb-plan-perks li:nth-child(even) {
    border-left: 0;
  }
  .fb-plan-perks li + li {
    border-top: 1px solid #efe8dd;
  }

  .fb-plan-hero__actions .button,
  .fb-units-empty__actions .button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
  }

  .fb-plan-help__actions .button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fb-units-empty__actions,
  .fb-plan-help__actions {
    width: 100%;
  }

  .fb-plan-others__head {
    margin-bottom: 20px;
  }
}

/* ---------- Floor Plans page (sections pasted from the import code) ---------- */

.fb-plans-page .fb-eyebrow,
.fb-gallery-page .fb-eyebrow {
  color: var(--fb-brick);
  font-size: 13px;
  letter-spacing: 0.22em;
  opacity: 1;
}

.fb-plans-page h2,
.fb-gallery-page h2 {
  margin-bottom: 0.35em;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  text-wrap: balance;
}

.fb-plans-page .fb-live-status {
  margin: 4px 0 8px;
}

/* Feature links sit under the text when the icon moves beside it on phones. */
@media (max-width: 549px) {
  .fb-perks .fb-feature__link {
    grid-column: 2;
  }
}

/* "Step 1/2/3" above each leasing step */
.fb-steps {
  counter-reset: fb-step;
}

.fb-steps .fb-feature__title::before {
  display: block;
  margin-bottom: 4px;
  color: var(--fb-brick);
  font-family: "Lato", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  content: "Step " counter(fb-step);
  counter-increment: fb-step;
}

/* ---------- Gallery mosaic ([foxbrick_gallery]) ---------- */

.fb-gallery {
  --fb-gap: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: var(--fb-gap);
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.fb-gallery .fb-gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fb-gallery-item.is-wide {
  grid-column: span 2;
}
.fb-gallery-item.is-tall {
  grid-row: span 2;
}
.fb-gallery-item.is-big {
  grid-column: span 2;
  grid-row: span 2;
}

.fb-gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--fb-cream);
  box-shadow: 0 1px 2px rgba(34, 49, 63, 0.06);
  isolation: isolate;
}

.fb-gallery-tile .fb-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fb-gallery-img--none {
  background: linear-gradient(135deg, var(--fb-ink), #3a4d5f);
}

.fb-gallery-tile:hover .fb-gallery-img {
  transform: scale(1.05);
}

/* Shade at the bottom for the caption */
.fb-gallery-tile::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 23, 31, 0.62) 0%,
    rgba(15, 23, 31, 0) 48%
  );
  opacity: 0;
  content: "";
  transition: opacity 0.3s ease;
}

.fb-gallery-tile:hover::after,
.fb-gallery-tile:focus-visible::after,
.fb-gallery-tile.is-video::after {
  opacity: 1;
}

.fb-gallery-caption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.fb-gallery-caption small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

.fb-gallery-tile:hover .fb-gallery-caption,
.fb-gallery-tile:focus-visible .fb-gallery-caption,
.fb-gallery-tile.is-video .fb-gallery-caption {
  opacity: 1;
  transform: none;
}

.fb-gallery-tile:focus-visible {
  outline: 3px solid var(--fb-ink);
  outline-offset: 3px;
}

/* Video tours */
.fb-gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  color: var(--fb-brick);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.fb-gallery-play svg {
  margin-left: 4px;
}

.fb-gallery-tile:hover .fb-gallery-play {
  background: var(--fb-brick);
  color: #fff;
  transform: scale(1.08);
}

.fb-gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--fb-brick);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fb-gallery-note {
  margin: 0;
  color: var(--fb-muted);
  font-size: 0.85em;
  text-align: center;
}

@media (max-width: 849px) {
  .fb-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }
}

@media (max-width: 549px) {
  .fb-gallery {
    --fb-gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .fb-gallery-tile {
    border-radius: 12px;
  }
  .fb-gallery-caption {
    right: 12px;
    bottom: 10px;
    left: 12px;
    font-size: 13px;
  }
  .fb-gallery-badge {
    top: 10px;
    left: 10px;
  }

  .fb-gallery-play {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
  }
}

/* ---------- Gallery lightbox (assets/js/gallery.js) ---------- */

.fb-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(15, 23, 31, 0.975);
  color: #fff;
}

.fb-lightbox::backdrop {
  background: transparent;
}

.fb-lightbox[open] {
  display: flex;
  flex-direction: column;
  animation: fb-lightbox-in 0.25s ease;
}

@keyframes fb-lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html.fb-lightbox-open {
  overflow: hidden;
}

.fb-lightbox__stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 72px 90px 8px;
}

.fb-lightbox__img,
.fb-lightbox__video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.fb-lightbox__img {
  object-fit: contain;
}

.fb-lightbox__img.is-in {
  animation: fb-photo-in 0.35s ease;
}

@keyframes fb-photo-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fb-lightbox__video {
  width: min(100%, 1280px);
  background: #000;
}

/* Spinner while a photo loads */
.fb-lightbox.is-loading .fb-lightbox__stage::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: fb-spin 0.8s linear infinite;
}

@keyframes fb-spin {
  to {
    transform: rotate(360deg);
  }
}

.fb-lightbox__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 90px 24px;
}

.fb-lightbox__caption {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.fb-lightbox__count {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fb-lightbox .fb-lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.fb-lightbox .fb-lightbox__btn:hover {
  background: var(--fb-brick);
}

.fb-lightbox .fb-lightbox__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.fb-lightbox__close {
  top: 16px;
  right: 16px;
}
.fb-lightbox__prev {
  top: 50%;
  left: 18px;
  margin-top: -26px;
}
.fb-lightbox__next {
  top: 50%;
  right: 18px;
  margin-top: -26px;
}

.fb-lightbox.is-single .fb-lightbox__prev,
.fb-lightbox.is-single .fb-lightbox__next {
  display: none;
}

@media (max-width: 849px) {
  .fb-lightbox__stage {
    padding: 72px 12px 8px;
  }
  .fb-lightbox__bar {
    padding: 12px 20px 16px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .fb-lightbox__prev,
  .fb-lightbox__next {
    top: auto;
    bottom: 14px;
    margin-top: 0;
  }
  .fb-lightbox__prev {
    left: 14px;
  }
  .fb-lightbox__next {
    right: 14px;
  }
  .fb-lightbox:not(.is-single) .fb-lightbox__bar {
    padding-right: 76px;
    padding-left: 76px;
  }
}

/* ---------- Header on pages without a photo banner ---------- */

/* The menu underline is pale for photo banners; use brick on a white header. */
.header:not(.transparent)
  .header-main
  .header-nav-main
  > li
  > a.nav-top-link::after {
  background: var(--fb-brick);
}

/* Floor Plans stays underlined while a plan's own page is open. */
.header-main
  .header-nav-main
  > li.current-menu-ancestor
  > a.nav-top-link::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .fb-filter__glider,
  .fb-filter__count,
  .fb-units .fb-unit,
  .fb-plan-drawing__img {
    transition: none;
  }

  .fb-units .fb-unit:hover,
  .fb-plan-drawing__link:hover .fb-plan-drawing__img {
    transform: none;
  }

  .fb-live-dot::after {
    animation: none;
    opacity: 0;
  }

  .fb-gallery-tile .fb-gallery-img,
  .fb-gallery-caption,
  .fb-gallery-play {
    transition: none;
  }

  .fb-gallery-tile:hover .fb-gallery-img,
  .fb-gallery-tile:hover .fb-gallery-play {
    transform: none;
  }

  .fb-lightbox[open],
  .fb-lightbox__img.is-in {
    animation: none;
  }
}

/* ---------- Phone layouts you switch on with a class in UX Builder ---------- */

/*
 * fb-swipe-sm: photos side by side, or a collage of them, become one strip
 * you swipe through on phones. Put it on a Row (Row → Advanced → Class), or
 * on a Column that holds rows of photos, like the "Welcome home" collage.
 * Every column inside is one slide and the next photo peeks in. Tablets and
 * desktops keep the layout built in UX Builder.
 */
@media (max-width: 549px) {
  .row.fb-swipe-sm,
  .col.fb-swipe-sm > .col-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: auto;
    max-width: none;
    margin-right: -15px;
    margin-left: -15px;
    padding: 0 15px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 0 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .row.fb-swipe-sm::-webkit-scrollbar,
  .col.fb-swipe-sm > .col-inner::-webkit-scrollbar {
    display: none;
  }

  /* Rows inside the column step aside, so all of their columns line up as slides. */
  .col.fb-swipe-sm > .col-inner > .row {
    display: contents;
  }

  /* Flatsome's clearfix boxes would count as slides and add extra gaps. */
  .row.fb-swipe-sm::before,
  .row.fb-swipe-sm::after,
  .col.fb-swipe-sm > .col-inner > .row::before,
  .col.fb-swipe-sm > .col-inner > .row::after {
    display: none;
  }

  .row.fb-swipe-sm > .col,
  .col.fb-swipe-sm > .col-inner > .row > .col,
  .col.fb-swipe-sm > .col-inner > :not(.row) {
    flex: 0 0 84%;
    max-width: 84%;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
  }

  /* Collage offsets don't belong in a strip. */
  .fb-swipe-sm .col > .col-inner {
    margin: 0 !important;
  }

  /* Same-size slides; change the shape with --fb-swipe-ratio (e.g. 4 / 5). */
  .fb-swipe-sm .banner {
    padding-top: 0 !important;
    aspect-ratio: var(--fb-swipe-ratio, 1);
  }
}

/*
 * fb-mosaic-sm: a Grid of photos (Grid → Advanced → Class) becomes a two-column
 * mosaic on phones, with the second photo two rows tall. To make a different
 * photo the tall one, put fb-tall-sm on its Grid Item. Tablets and desktops
 * keep the Grid's own layout.
 *
 * The live page puts the photos straight inside the Grid; UX Builder's
 * preview adds a row (and a sizing div) in between, so both are covered.
 */
@media (max-width: 549px) {
  .banner-grid.fb-mosaic-sm.row-grid,
  .banner-grid.fb-mosaic-sm > .row-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 6px;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .banner-grid.fb-mosaic-sm {
    min-height: 0 !important;
  }
  .banner-grid.fb-mosaic-sm .grid-size {
    display: none !important;
  }

  /* Packery (Flatsome's grid script) places the photos by hand; let the grid do it. */
  .banner-grid.fb-mosaic-sm .grid-col {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    transform: none !important;
    aspect-ratio: 20 / 21;
  }

  .banner-grid.fb-mosaic-sm .grid-col > .col-inner {
    position: absolute;
    inset: 0;
  }

  .banner-grid.fb-mosaic-sm .grid-col.fb-tall-sm {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

/* No fb-tall-sm in the Grid: the second photo is the tall one. (Its own rule, so older browsers still get the rest.) */
@media (max-width: 549px) {
  .banner-grid.fb-mosaic-sm:not(:has(.fb-tall-sm))
    .grid-col:nth-child(2 of .grid-col) {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

/* ---------- Clickable cards (a class you add in UX Builder) ---------- */

/*
 * fb-click-cards on a Row (Row → Advanced → Class), or fb-click-card on one
 * Column: a click anywhere on a card does what a click on its button does,
 * whether that opens a page, a new tab, the phone dialer or a spot further
 * down the page. The button's ::after is stretched far past the button and the
 * card clips it to its own shape, so this works with any element inside the
 * card (Icon Box, Image Box, Text) and the buttons keep their own styles.
 * Hovering the card also shows the button's hover state.
 * One button per card; links inside the card's text still work on their own.
 */
.fb-click-cards > .col > .col-inner,
.col.fb-click-card > .col-inner {
  overflow: hidden; /* browsers without overflow: clip */
  overflow: clip;
}

.fb-click-cards > .col > .col-inner a.button,
.col.fb-click-card > .col-inner a.button {
  -webkit-tap-highlight-color: transparent;
}

.fb-click-cards > .col > .col-inner a.button::after,
.col.fb-click-card > .col-inner a.button::after {
  position: absolute;
  top: -9999px;
  right: -9999px;
  bottom: -9999px;
  left: -9999px;
  z-index: 1;
  content: "";
}

.fb-click-cards > .col > .col-inner :is(p, li) a:not(.button),
.col.fb-click-card > .col-inner :is(p, li) a:not(.button) {
  position: relative;
  z-index: 2;
}

/*
 * Keyboard focus on the button rings the whole card. The ring is drawn on top
 * (an outline would sit under the photo and text panel of an Image Box).
 */
@supports selector(:has(*)) {
  .fb-click-cards > .col > .col-inner:has(a.button:focus-visible)::before,
  .col.fb-click-card > .col-inner:has(a.button:focus-visible)::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 3px solid var(--fb-ink);
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px #fff; /* navy + white shows on light cards, dark cards and photos */
    pointer-events: none;
    content: "";
  }

  .fb-click-cards > .col > .col-inner a.button:focus-visible,
  .col.fb-click-card > .col-inner a.button:focus-visible {
    outline: none;
  }
}

/* ---------- Neighborhood Map (HG Neighborhood Map plugin) ---------- */

/*
 * Full width on the page (or straight in a Section), the list lines up with
 * the page content and the map runs to the right edge, the way large
 * apartment sites lay it out. On wide screens the list stops growing, so the
 * names and distances stay together. Inside a Row the map keeps its own
 * layout, and phones and tablets stack it as before.
 */
@media (min-width: 850px) {
  :is(#content, .section-content) > .hgnm {
    grid-template-columns:
      max(15px, calc((100% - 1080px) / 2 + 15px))
      clamp(300px, 30vw, 440px)
      clamp(32px, 4vw, 72px)
      minmax(0, 1fr);
    column-gap: 0;
  }

  body :is(#content, .section-content) > .hgnm .hgnm__panel {
    grid-row: 1;
    grid-column: 2;
    padding-right: 0;
    padding-left: 0;
  }

  :is(#content, .section-content) > .hgnm .hgnm__mapwrap {
    grid-row: 1;
    grid-column: 4;
  }
}

/* ---------- Corner art for Sections (UX Builder classes) ---------- */

/*
 * Put these on a Section (Section → Advanced → Class). They sit behind the
 * content, on light and dark sections alike.
 *
 *   fb-crest-tl, fb-crest-tr, fb-crest-bl, fb-crest-br
 *     The Villas crest (palm wreath, the leasing office gable, a Texas star)
 *     in that corner, running off the edge.
 *   fb-pattern-tl, fb-pattern-tr, fb-pattern-bl, fb-pattern-br
 *     A palm-frond pattern that fades out from that corner.
 *
 * One crest and one pattern per section, e.g. "fb-pattern-tr fb-crest-bl".
 * Brick on light sections, cream on dark ones (Section → Dark).
 */
.fb-crest-tl > .section-bg::after,
.fb-crest-tr > .section-bg::after,
.fb-crest-bl > .section-bg::after,
.fb-crest-br > .section-bg::after {
  --fb-crest-size: clamp(170px, 19vw, 270px);
  content: "";
  position: absolute;
  z-index: 1;
  width: var(--fb-crest-size);
  height: var(--fb-crest-size);
  background-color: var(--fb-deco-crest, rgba(168, 74, 50, 0.16));
  -webkit-mask: url(../img/deco/villas-crest.svg) center / contain no-repeat;
  mask: url(../img/deco/villas-crest.svg) center / contain no-repeat;
  pointer-events: none;
}

.fb-crest-tl > .section-bg::after {
  top: calc(var(--fb-crest-size) * -0.2);
  left: calc(var(--fb-crest-size) * -0.2);
}
.fb-crest-tr > .section-bg::after {
  top: calc(var(--fb-crest-size) * -0.2);
  right: calc(var(--fb-crest-size) * -0.2);
}
.fb-crest-bl > .section-bg::after {
  bottom: calc(var(--fb-crest-size) * -0.2);
  left: calc(var(--fb-crest-size) * -0.2);
}
.fb-crest-br > .section-bg::after {
  right: calc(var(--fb-crest-size) * -0.2);
  bottom: calc(var(--fb-crest-size) * -0.2);
}

.fb-pattern-tl > .section-bg::before,
.fb-pattern-tr > .section-bg::before,
.fb-pattern-bl > .section-bg::before,
.fb-pattern-br > .section-bg::before {
  --fb-pattern-reach: 620px;
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--fb-deco-pattern, rgba(168, 74, 50, 0.13));
  -webkit-mask-image:
    url(../img/deco/villas-pattern.svg),
    radial-gradient(
      circle var(--fb-pattern-reach) at var(--fb-pattern-at, 0 0),
      #000 0,
      rgba(0, 0, 0, 0.55) 45%,
      transparent 100%
    );
  mask-image:
    url(../img/deco/villas-pattern.svg),
    radial-gradient(
      circle var(--fb-pattern-reach) at var(--fb-pattern-at, 0 0),
      #000 0,
      rgba(0, 0, 0, 0.55) 45%,
      transparent 100%
    );
  -webkit-mask-size:
    200px 200px,
    100% 100%;
  mask-size:
    200px 200px,
    100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}

.fb-pattern-tl > .section-bg::before {
  --fb-pattern-at: 0 0;
}
.fb-pattern-tr > .section-bg::before {
  --fb-pattern-at: 100% 0;
}
.fb-pattern-bl > .section-bg::before {
  --fb-pattern-at: 0 100%;
}
.fb-pattern-br > .section-bg::before {
  --fb-pattern-at: 100% 100%;
}

/* Cream on dark sections and photo backgrounds. */
.section.dark > .section-bg::after {
  --fb-deco-crest: rgba(247, 241, 232, 0.2);
}
.section.dark > .section-bg::before {
  --fb-deco-pattern: rgba(247, 241, 232, 0.12);
}

@media (max-width: 549px) {
  .fb-crest-tl > .section-bg::after,
  .fb-crest-tr > .section-bg::after,
  .fb-crest-bl > .section-bg::after,
  .fb-crest-br > .section-bg::after {
    --fb-crest-size: 140px;
  }

  .fb-pattern-tl > .section-bg::before,
  .fb-pattern-tr > .section-bg::before,
  .fb-pattern-bl > .section-bg::before,
  .fb-pattern-br > .section-bg::before {
    --fb-pattern-reach: 340px;
  }
}

/* ---------- Square corners: no pill shapes anywhere ---------- */

/* "Now leasing" badge in the top bar (its 99px comes from Flatsome > Advanced > Custom CSS) */
.header-top .fb-topbar-badge {
  border-radius: 8px;
}

/* Flatsome's round back-to-top button (.circle forces 999px with !important) */
.back-to-top.circle {
  border-radius: 8px !important;
}

/* Form submit buttons match the site's 4px buttons (tour form on Schedule a Tour) */
.wpcf7-form .wpcf7-submit {
  border-radius: 4px;
}

/* ---------- Polish pass: spacing and type consistency ---------- */

/* Text dropped straight into a section (no row/column) gets the normal side gutter */
.section-content > .text {
  padding-right: 15px;
  padding-left: 15px;
}

/* Generic section heading: eyebrow + h2 on the same scale as the rest of the site */
.fb-section .fb-eyebrow {
  color: var(--fb-brick);
  font-size: 13px;
  letter-spacing: 0.22em;
  opacity: 1;
}

.fb-section h2 {
  margin-bottom: 0.35em;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  text-wrap: balance;
}

/* Home "Find your floor plan" heading had looser line height than the others */
body .fb-home-plans h2 {
  line-height: 1.1;
}

/* Card titles in the contact block on Schedule a Tour */
.fb-contact-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.15;
}

@media (max-width: 549px) {
  /* Small uppercase labels were 11px on phones */
  body .fb-hero .fb-eyebrow,
  body .fb-home-tour .fb-eyebrow {
    font-size: 12px;
  }

  /* Comfortable tap targets for buttons inside cards */
  .fb-unit .fb-unit__actions .button,
  .box-text .button:not(.is-link):not(.is-underline) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
  }
}

@media (max-width: 849px) {
  /* Two-column section headers (eyebrow + heading | paragraph) stack on phones and tablets:
     drop the column gap so the paragraph sits right under the heading */
  .fb-home-location .row > .col:first-child {
    padding-bottom: 0;
  }
}
