/* =========================
   Home Floorplans Section
========================= */
section#home-floorplans.home-floorplans {
  padding: 244px 0 60px;
  overflow: hidden;
  background: var(--first-white);
  color: #000;
  font-family: var(--first-font-body);
  font-size: 18px;
  line-height: 20.7px;
  text-align: center;
}

section#home-floorplans.home-floorplans::before {
  content: "";
  width: 100%;
  height: 176px;
  position: absolute;
  top: 0;
  left: 0;
  background: url("https://thefirstokc.com/wp-content/themes/first/img/pattern-1.svg")
    top center / auto repeat;
  pointer-events: none;
}
section#home-floorplans .flp-text-container {
  max-width: 1080px;
  padding: 0 15px;
}

section#home-floorplans .home-flp-content {
  max-width: 1020px;
  margin: 0 auto;
}

section#home-floorplans .section-title {
  margin: 0 0 35px;
  /* color: var(--base-color); */
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}
section#home-floorplans .section-subtitle {
  margin: 45px 0 30px;
  font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}
section#home-floorplans .section-content {
  max-width: 820px;
  margin: 0 auto 50px;
  font-size: 18px;
  font-weight: 400;
  line-height: 20.7px;
  text-align: center;
}
section#home-floorplans .home-flp-filter {
  margin: 0 auto;
  text-align: center;
}

section#home-floorplans .mobile-home-flp-filter {
  display: none;
}

section#home-floorplans .desktop-home-flp-filter {
  display: inline-flex;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

section#home-floorplans .filter-item {
  display: inline-flex;
  min-width: 180px;
  height: 52px;
  padding: 10px 35px;
  align-items: center;
  justify-content: center;
  border: 1px solid #9a9a9a;
  border-left: 0;
 font-size: 13px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

section#home-floorplans .filter-item:first-child {
  border-left: 1px solid #9a9a9a;
}

/* section#home-floorplans .filter-item.active {
  background: var(--first-secondary);
  color: var(--first-white);
}
section#home-floorplans .filter-item:hover,
section#home-floorplans .filter-item:focus-visible,
section#home-floorplans .home-flp-filter:hover::after {
  background: var(--first-secondary);
  color: var(--first-white);
} */

section#home-floorplans .flp-slider-container {
  max-width: none;
  margin-top: 70px;
  padding: 0 15px;
  overflow: hidden;
}

section#home-floorplans .home-flp-slider {
  width: calc(60% - 40px);
  margin: 0 auto;
  position: relative;
}

section#home-floorplans .home-flp-slider .slick-list {
  overflow: visible;
}

section#home-floorplans .home-flp-item {
  height: 440px;
  padding: 0 40px;
  position: relative;
}

section#home-floorplans .home-flp-item:not(.slick-active) {
  transform: scale(0.9);
}

section#home-floorplans
  .home-flp-item:not(.slick-active)
  .home-flp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f0f0f099;
  pointer-events: none;
}
section#home-floorplans .home-flp-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  position: relative;
  height: 100%;
  padding: 40px;
  background: #f0f0f0;
  /* color: var(--first-secondary);
  font-family: var(--first-font-body); */
  text-align: center;
}

section#home-floorplans .home-flp-card-header {
  display: block;
  grid-column: 2;
  padding: 0;
}

section#home-floorplans .home-flp-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
section#home-floorplans .flp-title {
  position: relative;
  margin: 20px 0;
  padding: 5px 0;
  font-weight: 700;
  line-height: 1.5;
}
section#home-floorplans .flp-title::before,
section#home-floorplans .flp-title::after {
  content: "";
  position: absolute;
  left: calc(50% - 50px);
  width: 100px;
  border-top: 1px solid ;
}
section#home-floorplans .flp-title::before {
  top: 0;
}
section#home-floorplans .flp-title::after {
  bottom: 0;
}

section#home-floorplans .home-flp-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  margin: 20px 0 37px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 16.1px;
  letter-spacing: 1.75px;
  text-transform: uppercase;
}
section#home-floorplans .home-flp-details .flp-bath:last-of-type {
  width: 100%;
  padding: 5px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
section#home-floorplans .flp-devider,
section#home-floorplans .home-flp-icon-wrap,
section#home-floorplans .flp-discount-wrap,
section#home-floorplans .home-flp-card-meta,
section#home-floorplans .custom-dots-wrap {
  display: none;
}

section#home-floorplans .home-flp-card-body {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 360px;
  padding: 0;
}

section#home-floorplans .home-card-img-wrap,
section#home-floorplans .home-card-img-wrap a,
section#home-floorplans .home-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
}

section#home-floorplans .home-card-img-wrap img {
  max-height: none;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

section#home-floorplans .home-flp-card-footer {
  display: contents;
}

section#home-floorplans .home-flp-btn-wrap {
  grid-column: 2;
  display: flex;
  justify-content: center;
}
section#home-floorplans .home-flp-more-btn {
  display: inline-block;
  min-width: 150px;
  padding: 15px 25px;
 /*  background: var(--base-color);
  color: var(--first-white); */
  font: 700 14px/14px var(--first-font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
}

section#home-floorplans .home-flp-more-btn i { display: none; }
/* 
section#home-floorplans .home-flp-more-btn:hover,
section#home-floorplans .home-flp-more-btn:focus-visible {
  background: var(--first-secondary);
}

/* Floorplan Arrow Placement */
section#home-floorplans .slide-arrow {
  left: 10px;
   background: var(--base-color);
  color: var(--first-on-primary); 
}
section#home-floorplans .next-arrow {
  left: auto;
  right: 10px;
  background: var(--base-color);
  color: var(--first-on-primary);
}
section#home-floorplans .slide-arrow::before{
  color:inherit;
  border-color:inherit;
}
@media screen and (max-width: 1440px) {
}

@media screen and (max-width: 1200px) {
  section#home-floorplans .home-flp-slider {
    width: calc(100% - 40px);
  }
  section#home-floorplans .home-flp-more-btn {
    min-width: 170px;
  }
}

@media screen and (max-width: 992px) {
  section#home-floorplans .slide-arrow {
    left: -10px;
  }
  section#home-floorplans .next-arrow {
    left: auto;
    right: -10px;
  }
  section#home-floorplans .home-flp-item {
    height: auto;
    padding: 0;
  }
  section#home-floorplans .home-flp-card {
    display: flex;
    flex-direction: column;
  }
  section#home-floorplans .home-flp-card-header {
    order: 0;
  }
  section#home-floorplans .home-flp-card-body {
    order: 2;
    flex: 0 0 360px;
  }
  section#home-floorplans .home-flp-btn-wrap {
    order: 1;
    margin: 30px 0;
  }
}

@media screen and (max-width: 767px) {
  section#home-floorplans.home-floorplans {
    padding-top: 244px;
    padding-bottom: 100px;
  }
  section#home-floorplans .flp-slider-container {
    padding: 0 15px !important;
  }
  section#home-floorplans .flp-text-container {
    padding: 0 15px;
  }
  section#home-floorplans .home-flp-content {
    max-width: 345px;
  }
  section#home-floorplans .section-title {
    margin-bottom: 50px;
  }
  section#home-floorplans .section-subtitle {
    margin-bottom: 50px;
  }
  section#home-floorplans .section-content {
    max-width: 345px;
    margin-bottom: 55px;
    font-size: 16px;
    line-height: 24px;
  }
  section#home-floorplans .desktop-home-flp-filter {
    width: 220px;
    flex-direction: column;
  }
  section#home-floorplans .filter-item {
    flex: 0 0 auto;
    width: 220px;
    min-width: 220px;
    border-left: 1px solid #9a9a9a;
    border-top: 0;
  }
  section#home-floorplans .filter-item:first-child {
    border-top: 1px solid #9a9a9a;
  }
}

/* ============================================================
   FLOORPLANS PAGE  (/floorplans/)
   ------------------------------------------------------------
   Scoped to .new-section.floorplan-page throughout — nothing here
   reaches section#home-floorplans above.

   Card markup is AJAX-rendered, so it is not in the page source.
   Structure (confirmed from admin-ajax output):
     .card-container.container > .available_flp > .flp-row.no-badges
       .col.single-floorplan
         .flp-card.common-flp
           .flp-card-header
             .flp-title-wrap  > a.flp-more-details > h3.flp-title
                              + .flp-details  ("1 Bed | 1 Bath | 400 sq. ft.")
             .flp-icon-wrap   > a.flp_favorite (heart)
           .flp-card-body     > .card-img-wrap > a > img
           .flp-card-footer
             .flp-card-meta   > .flp-text-wrap (Starting @ / price)
                              + p.flp-deposite
                              + .floorplan-availability
             .flp-btn-wrap    > a.flp-next-btn

   Reference (thefirstokc.com/floorplans/): a three-up grid of grey
   cards, centred, with the plan name on top, a contained plan image
   and the price/availability beneath. component-common.css sets the
   row to four columns by default, which left the cards too narrow.
   ============================================================ */
.new-section.floorplan-page .flp-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.new-section.floorplan-page .flp-card {
  padding: 30px;
  background: #f0f0f0;
  text-align: center;
}

/* ----- Header: name + bed/bath ----- */
.new-section.floorplan-page .flp-card-header {
  display: block;
  position: relative;
  padding: 0;
}

.new-section.floorplan-page .flp-title-wrap {
  display: block;
}

/* Smaller than the home card's name: this grid is three-up, not two. */
.new-section.floorplan-page .flp-title {
  margin: 10px 0 15px;
  padding: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.new-section.floorplan-page .flp-details {
  margin: 0 0 20px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.75px;
  text-transform: uppercase;
}

/* The heart sits in the card's top-right corner. */
.new-section.floorplan-page .flp-icon-wrap {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
}

/* ----- Plan image -----
   contain, not cover: a floorplan drawing must never be cropped. */
.new-section.floorplan-page .flp-card-body {
  padding: 0;
}

/* Discount badge. It sits in normal flow above the plan image rather than
   overlaying it -- a floorplan drawing must stay fully readable. It is emitted
   empty when a plan has no discount, so it collapses in that case.
   inline-flex + gap keeps the icon and the text on one line, spaced and
   vertically centred against each other. */
.new-section.floorplan-page .flp-discount-wrap {
  display: flex;
  /* component-common.css:1349 sets align-items: flex-start, which pulls the
     icon up against the text. */
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: static;
  margin: 0 0 14px;
  min-height: 0;
}

/* The chip itself, when the markup supplies one. */
.new-section.floorplan-page .flp-discount-wrap .discount-on {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
}

.new-section.floorplan-page .flp-discount-wrap:empty {
  display: none;
}

.new-section.floorplan-page .flp-discount-wrap i,
.new-section.floorplan-page .flp-discount-wrap img,
.new-section.floorplan-page .flp-discount-wrap svg {
  flex: 0 0 auto;
  display: block;
  position: static;
  margin: 0;
  line-height: 1;
}

/* Column layout so the discount badge stacks above the drawing instead of
   sitting on top of it. */
.new-section.floorplan-page .card-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: static;
}

.new-section.floorplan-page .card-img-wrap a {
  display: block;
  width: 100%;
}

.new-section.floorplan-page .card-img-wrap img {
  display: block;
  width: 100%;
  height: 260px;
  max-height: none;
  padding: 0;
  object-fit: contain;
  object-position: center center;
}

/* ----- Footer: price, deposit, availability, CTA ----- */
.new-section.floorplan-page .flp-card-footer {
  display: block;
  margin-top: 20px;
  padding: 0;
}

.new-section.floorplan-page .flp-card-meta {
  display: block;
  text-align: center;
}

.new-section.floorplan-page .flp-text-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 8px;
}

.new-section.floorplan-page .flp-text-price {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.new-section.floorplan-page .flp-disc-price {
  font-size: 20px;
  font-weight: 700;
}

.new-section.floorplan-page .flp-deposite,
.new-section.floorplan-page .floorplan-availability {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

/* component-common.css:1412 makes this a flex row so the ::before dot sits
   beside the text; the dot itself is display:block, so switching the parent to
   inline-block pushed it onto its own line. Keep it flex, centred. */
.new-section.floorplan-page .availability-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
}

.new-section.floorplan-page .flp-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* The next button holds nothing but <i class="swi swi-angle-right">, so it is
   left at its default styling -- restyling it (and hiding the icon) emptied it
   into a bare coloured block. */

/* ----- Responsive ----- */
@media screen and (max-width: 1200px) {
  .new-section.floorplan-page .flp-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .new-section.floorplan-page .flp-card {
    padding: 24px;
  }

  .new-section.floorplan-page .flp-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 767px) {
  .new-section.floorplan-page .flp-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .new-section.floorplan-page .flp-card {
    padding: 20px;
  }

  .new-section.floorplan-page .flp-title {
    font-size: 22px;
  }

  .new-section.floorplan-page .card-img-wrap img {
    height: 220px;
  }
}
