/* =====================================================
   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: 14px;
}

/* 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 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff8a00' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v2H6v4H4V4zm14 0v6h-2V6h-4V4h6zm0 16h-6v-2h4v-4h2v6zM4 20v-6h2v4h4v2H4z'/%3E%3C/svg%3E");
}

.pc-filter-icon.pin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff8a00' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3C/svg%3E");
}

/* 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 {
  height: 56px;
  padding: 0 34px;
  border-radius: 16px;
  background: #ff8a00;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.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-media {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.pc-card-body {
  padding: 16px 16px 18px;
}

.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;
}
.pc-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(11, 42, 69, 0.08);
  color: #0b2a45;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.18s ease;
}
.pc-card:hover .pc-card-btn {
  background: rgba(11, 42, 69, 0.12);
}

/* =====================================================
   INTERSECTION OBSERVER REVEAL
   Cards are hidden until revealed
===================================================== */
[data-reveal="1"] {
  opacity: 0;
  transform: translateY(16px);
}
.pc-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* =====================================================
   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;
  height: 260px;
}

.pc-card-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.pc-card-logo {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
}

.pc-card-logo img {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
}

.pc-card-icons {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  font-size: 13px;
  color: #0b2a45;
}

.pc-card-address {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0b2a45;
}
/* ===============================
   CUSTOM DROPDOWN
================================ */
.pc-dropdown {
  position: relative;
}

.pc-dropdown-label {
  display: flex;
  align-items: center;
  width: 100%;
  color: #fff;
  font-weight: 600;
}

/* DROPDOWN MENU */
.pc-dropdown-menu {
  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);
}
