@font-face {
  font-family: "PolySans";
  src: url("../fonts/PolySansSlim.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   SCOPE WRAPPER
===================================================== */
.pc-catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================================================
   FILTER BAR – EXACT MATCH (EDIFICA STYLE)
===================================================== */
.pc-filter-wrap {
  max-width: 1200px;
  margin: 28px auto;
  /* padding: 0 16px; */
  display: flex;
  align-items: center;
  gap: 4px;
}

/* DARK PILL */
.pc-filter-pill {
  flex: 1;
  height: 56px;
  background: #0b2a45;
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

/* FILTER ITEM */
.pc-filter-item {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  position: relative;
  cursor: pointer;
}

/* ICON */
.pc-filter-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
}

/* ICON SVGs (inline for performance) */
.pc-filter-icon.bed {
  width: 36px;
  height: 36px;
  background-color: #ff8a00;
  -webkit-mask: url("../img/bed.png") no-repeat center / contain;
  mask: url("../img/bed.png") no-repeat center / contain;
}

.pc-filter-icon.size {
  width: 36px;
  height: 36px;
  background-color: #ff8a00;
  -webkit-mask: url("../img/plans.png") no-repeat center / contain;
  mask: url("../img/plans.png") no-repeat center / contain;
}

.pc-filter-icon.pin {
  width: 36px;
  height: 36px;
  background-color: #ff8a00;
  -webkit-mask: url("../img/location.png") no-repeat center / contain;
  mask: url("../img/location.png") no-repeat center / contain;
}

/* SELECT */
.pc-filter-item select {
  appearance: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  padding-right: 20px;
}

.pc-filter-item select:focus {
  outline: none;
}

/* ARROW */
.pc-filter-arrow {
  position: absolute;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ff8a00;
  border-bottom: 2px solid #ff8a00;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.pc-filter-item:hover .pc-filter-arrow {
  transform: rotate(225deg);
}

/* DIVIDER */
.pc-filter-divider {
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.2);
}

/* BUTTON */
.pc-filter-btn {
  display: inline-flex;
  justify-content: center;
  height: 56px;
  padding: 5px 34px;
  border-radius: 16px;
  background: #ff8a00;
  color: #ffffff;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  font-family: "Geist";
  letter-spacing: 1px;
}

.pc-filter-pill p {
  display: none;
}

.pc-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   GRID
===================================================== */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  margin: 22px auto 10px;
}

/* =====================================================
   CARD (Edifica-like hover lift + shadow)
===================================================== */
.pc-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  will-change: transform;
}
.pc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}
.pc-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pc-card-body {
  padding: 16px 16px 18px;
  height: 200px;
  background: #fff;
  position: relative;
  z-index: 1;
  transition:
    height 0.25s ease,
    margin-top 0.25s ease;
  margin-top: 0;
}

.pc-card:hover .pc-card-body {
  height: 290px;
  margin-top: -90px;
}

.pc-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #0b2a45;
}
.pc-card-sub {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6a7a;
}

.pc-card-cta {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.pc-card:hover .pc-card-cta {
  opacity: 1;
  transform: translateY(0);
}
.pc-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: #ff8a00;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.18s ease;
  font-family: Geist;
  letter-spacing: 1px;
  margin-top: 25px;
}

/* =====================================================
   INTERSECTION OBSERVER REVEAL
   Cards drop from above and fade in one by one
===================================================== */
[data-reveal="1"] {
  opacity: 0;
  transform: translateY(-100px);
}
.pc-revealed {
  opacity: 1;
  transform: translateY(0);
  animation: dropFromTop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropFromTop {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   LOAD MORE (with animation)
===================================================== */
.pc-loadmore-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 0 40px;
}

.pc-loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(11, 42, 69, 0.18);
  background: #fff;
  color: #0b2a45;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.pc-loadmore:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.pc-loadmore.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.pc-loadmore-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(11, 42, 69, 0.2);
  border-top-color: #ff8a00;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  animation: pcSpin 0.8s linear infinite;
}
.pc-loadmore-spinner.is-visible {
  opacity: 1;
  transform: scale(1);
}
@keyframes pcSpin {
  to {
    transform: rotate(360deg);
  }
}

/* pop animation for appended cards */
.pc-append-pop {
  animation: pcPop 0.32s ease;
}
@keyframes pcPop {
  from {
    transform: translateY(10px);
    opacity: 0.2;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =====================================================
   EMPTY STATE
===================================================== */
.pc-empty {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  color: #0b2a45;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

/* =====================================================
   SKELETON (Edifica-like card layout)
===================================================== */
@keyframes pcShimmer {
  0% {
    background-position: -450px 0;
  }
  100% {
    background-position: 450px 0;
  }
}

.pc-skeleton-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.pc-skeleton {
  background: linear-gradient(90deg, #ececec 25%, #f6f6f6 37%, #ececec 63%);
  background-size: 400% 100%;
  animation: pcShimmer 1.2s ease infinite;
}

.pc-skeleton-img {
  height: 190px;
}

.pc-skeleton-body {
  padding: 16px;
}

.pc-skeleton-line {
  height: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.pc-skeleton-line.pc-title {
  height: 18px;
  width: 62%;
}
.pc-skeleton-line.pc-meta {
  width: 45%;
}
.pc-skeleton-line.pc-btn {
  height: 36px;
  width: 52%;
  margin-top: 14px;
  border-radius: 10px;
}

/* =====================================================
   SELECT DROPDOWN – SIZE & COLOR MATCH
===================================================== */

/* Modern browsers */
.pc-filter-item select option {
  background: #0b2a45;
  color: #ffffff;
  font-weight: 500;
}

/* Firefox */
.pc-filter-item select {
  scrollbar-color: #ff8a00 #0b2a45;
  width: 100%;
}

/* Chrome / Edge */
.pc-filter-item select::-webkit-scrollbar {
  width: 8px;
}
.pc-filter-item select::-webkit-scrollbar-track {
  background: #0b2a45;
}
.pc-filter-item select::-webkit-scrollbar-thumb {
  background: #ff8a00;
  border-radius: 8px;
}

/* Prevent width jump */
.pc-filter-item select {
  width: 100%;
  min-width: 0;
}

/* =====================================================
   PROJECT CARD – IMAGE STYLE MATCH
===================================================== */

.pc-card {
  border-radius: 0;
}

.pc-card-media {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 400px;
}

.pc-card-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: #fff;
  padding: 6px 12px;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0px 2px 3px black;
  font-family: "Geist";
  transition: bottom 0.25s ease;
}

.pc-card:hover .pc-card-badge {
  bottom: 100px;
}

.pc-card-logo {
  display: flex;
  justify-content: center;
  margin: 0px 0 10px;
}

.pc-card-logo img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}

.pc-card-icons {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #f7941d5e;
  border-bottom: 1px solid #f7941d5e;
  font-weight: 400;
  font-size: 14px;
  color: #0b2a45;
  letter-spacing: 0.4px;
  align-items: center;
  font-family: "PolySans";
}

.pc-card-icon-img {
  width: 28px;
  height: auto;
  vertical-align: middle;
  margin-right: 15px;
}

.pc-card-address {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  color: #0b2a45;
  font-family: "PolySans";
  display: flex;
  /* justify-content: center; */
}

.pc-card-address .pc-card-icon-img {
  width: 18px;
}
/* ===============================
   CUSTOM DROPDOWN
================================ */
.pc-dropdown {
  position: relative;
}

.pc-dropdown-label {
  font-family: "Geist";
  /* letter-spacing: 1px; */
  margin-left: 20px;
  display: flex;
  align-items: center;
  width: 100%;
  color: #fff;
  /* font-weight: 600; */
}

/* DROPDOWN MENU */
.pc-dropdown-menu {
    font-family: "Geist";
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%; /* 👈 SAME AS ITEM */
  background: #0b2a45;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 1000;
}

/* OPEN STATE */
.pc-dropdown.open .pc-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ITEMS */
.pc-dropdown-menu li {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.pc-dropdown-menu li:hover {
  background: rgba(255, 138, 0, 0.15);
}

/* ARROW ROTATION */
.pc-dropdown.open .pc-filter-arrow {
  transform: rotate(225deg);
}
