/* ══ FILTER BOX ══ */
.filter-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  padding: 20px;
}
select,
.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.quick-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
}
.quick-tag:hover,
.quick-tag.active {
  background: var(--green-light);
  color: var(--green);
}

/* ══ TOOLBAR ══ */
.sort-select {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  color: #374151;
  background-color: #fff;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}
.view-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}
.view-btn.active,
.view-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

/* ══ PROJECT CARD (grid) ══ */
.proj-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  background: #1a2a1a;
}
.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.proj-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 220px;
  transition:
    transform 0.4s,
    opacity 0.3s;
  opacity: 0.85;
}
@media (min-width: 768px) {
  .proj-card img {
    height: 240px;
  }
}
.proj-card:hover img {
  transform: scale(1.06);
  opacity: 0.7;
}
.proj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}
.proj-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}
.proj-card-type {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 3px;
}
.proj-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.proj-card-addr {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.proj-card-price {
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.badge-noibat {
  background: var(--green);
  color: #fff;
}
.badge-moi {
  background: #f59e0b;
  color: #fff;
}
.proj-card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.proj-card-fav:hover {
  background: rgba(255, 255, 255, 0.35);
}
.proj-card-fav.liked {
  color: #ef4444;
  background: rgba(255, 255, 255, 0.25);
}

/* ══ PROJECT CARD (list view) ══ */
.proj-list-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 0;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.proj-list-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.proj-list-img {
  width: 220px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.proj-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.proj-list-card:hover .proj-list-img img {
  transform: scale(1.05);
}
@media (max-width: 639px) {
  .proj-list-img {
    width: 120px;
  }
}
.proj-list-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.proj-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.tag-sm {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.tag-green {
  background: var(--green);
  color: #fff;
}
.tag-amber {
  background: #f59e0b;
  color: #fff;
}
.tag-type {
  background: #f3f4f6;
  color: #374151;
}
.proj-list-name {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.3;
}
.proj-list-addr {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}
.proj-list-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.proj-list-stat {
  font-size: 11.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}
.proj-list-stat i {
  color: var(--green);
  font-size: 11px;
}
.proj-list-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  margin-top: 10px;
}

/* ══ PAGINATION ══ */
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.page-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ══ FIXED ══ */
#scrollTop {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 999;
  background: var(--green);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}
#scrollTop.show {
  opacity: 1;
}
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 64px;
  z-index: 999;
  background: #00b14f;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 180, 80, 0.4);
  cursor: pointer;
  font-size: 18px;
}

/* ══ FADE ══ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.cta-banner {
  background: linear-gradient(135deg, #1a6b2f 0%, #22a045 100%);
}
/* ══ SKELETON ══ */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
