/* =============================================================
   Property Filter Widget
   Widget: Elem_Property_Filter
   This file is hand-maintained and loaded directly (no build step
   required) — same convention as dist/css/property-gallery.css.
   ============================================================= */

/* ── Widget wrapper ─────────────────────────────────────────── */
.elem-property-filter {
  position: relative;
  width: 100%;
}

.section-carousel{
    background-color: #E8E8E8;
    padding: 60px 10px;
}

.gold{
  color: #C09F55;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0px;
}

/* ── Header row: eyebrow/heading + tagline ──────────────────── */
.pf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px!important;
  max-width: 1200px;
  margin: auto;
}

.pf-eyebrow {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C09F55;
  margin-bottom: 8px;
}

.pf-heading {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  color: #2D3440!important;
}

.pf-header-right {
  max-width: 400px;
  text-align: right;
}

.pf-tagline {
  margin: 0;
  font-size: 32px;
  line-height: 1.45;
  color: #2D3440!important;
  text-align: left;
}

.pf-tagline-highlight {
  color: #2D3440!important;
  font-weight: 400;
}
.pf-tagline-highlight span{
  color: #C09F55!important;
}

/* ── Search bar ──────────────────────────────────────────────── */
.pf-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px!important;
  padding: 6px 6px 6px 26px;
  background-color: #ffffff;
  border-radius: 40px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin: auto;
}

.pf-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: #1a1a1a;
}

.pf-search-input::placeholder {
  color: #999;
}

.pf-search-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pf-search-btn:hover {
  background-color: #333;
}

/* ── Carousel (centered filmstrip, peeks visible on both sides) ── */
.pf-carousel {
  overflow: hidden;
  border-radius: 0;
  transition: opacity 0.2s ease;
  max-width: 1200px;
  margin: auto;
}

.pf-carousel.pf-loading {
  opacity: 0.5;
  pointer-events: none;
}

.pf-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  transition: transform 0.35s ease;
  will-change: transform;
  touch-action: pan-y;
}

.pf-card {
  position: relative;
  flex: 0 0 82%;
  height: 480px;
  overflow: hidden;
  border-radius: 0;
  cursor: grab;
  background-size: cover;
  background-position: center;
}

.pf-card-link {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pf-card-link img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.pf-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
}

.pf-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pf-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.pf-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ffffff;
  opacity: 0.9;
}

.pf-card-location svg {
  flex-shrink: 0;
  fill: #fff!important;
}

.pf-card-view {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: underline!important;
  white-space: nowrap;
  padding: 5px;
}

/* ── Floor Plan section (dynamic data from the "apartments" repeater) ── */
.pf-floorplan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    padding: 60px 10px;
}

.pf-fp-description {
  margin: 16px 0 28px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

.pf-fp-tabs {
  /* display: flex; */
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  display: none;
}

.pf-fp-tab {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background-color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pf-fp-tab.active {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.pf-fp-diagram-card {
  max-width: 460px;
  overflow: hidden;
  background-color: #ffffff;
}

.pf-fp-diagram-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.pf-fp-diagram {
  max-width: 100%;
  height: auto;
}

.pf-fp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid #eeeeee;
}

.pf-fp-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.pf-fp-sqft {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #555555;
}

.pf-fp-sqft strong {
  font-weight: 700;
  color: #1a1a1a;
}

.pf-fp-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.pf-fp-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.pf-fp-pager {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.pf-fp-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000 !important;
  border-radius: 50%;
  background-color: transparent !important;
  color: #000;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pf-fp-arrow:hover {
  background-color: #000!important;
  color: #fff!important;
}

.pf-fp-pages {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pf-fp-page {
  padding: 4px 2px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: #000!important;
  cursor: pointer;
  background-color: transparent !important;
}

.pf-fp-page.active {
  color: #000!important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pf-fp-main-image {
  margin-bottom: 16px;
  overflow: hidden;
}

.pf-fp-main-image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.pf-fp-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pf-fp-thumb {
  padding: 0;
  border: none;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.pf-fp-thumb img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* ── Matterport walkthrough section (below the Floor Plan section) ──── */
.pf-matterport {
  max-width: 100%;
  margin: auto;
  padding: 60px 0px 0px;
  background-color: #222222;
}

.pf-matterport-header{
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
  text-align: center;
} 

.pf-matterport-heading {
  margin-bottom: 24px;
}

.pf-matterport-heading{
  color: #ffffff!important;
}

.pf-matterport-frame {
  position: relative;
  width: 100%;
  /* padding-top: 56.25%; */
  border-radius: 0px;
  overflow: hidden;
  background-color: #000;
  height: 620px;
}

.pf-matterport-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Empty state ─────────────────────────────────────────────── */
.pf-empty {
  padding: 40px;
  text-align: center;
  color: #777;
}

.pf-no-results {
  width: 100%;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pf-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-header-right {
    max-width: none;
    text-align: left;
  }

  .pf-card {
    height: 380px;
  }

  .pf-card-title {
    font-size: 20px;
  }

  .pf-floorplan {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pf-fp-main-image img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .pf-heading {
    font-size: 32px;
  }

  .pf-track {
    gap: 12px;
  }

  .pf-card {
    flex-basis: 88%;
    height: 300px;
  }

  .pf-card-overlay {
    padding: 18px;
  }

  .pf-card-title {
    font-size: 18px;
  }

  .pf-fp-pager{
    justify-content: center;
  }
}