/* Portfolio & Project Detail Styles — Refreshing Modern Architectural Theme */

/* Filter Container */
.portfolio-filter-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1;
}

.filter-chip {
  padding: 0.52rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.filter-search-wrap {
  width: 280px;
}

@media (max-width: 768px) {
  .project-detail-hero {
    padding: 100px 0 30px 0;
  }
  .portfolio-filter-box {
    padding: 1.15rem;
    margin-bottom: 2rem;
  }
  .filter-search-wrap {
    width: 100%;
  }
  .filter-row .select-custom {
    width: 100%;
  }
  .main-gallery-view {
    height: 260px;
  }
  .specs-card {
    padding: 1.35rem;
  }
}

.select-custom, .input-custom {
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.select-custom:focus, .input-custom:focus {
  background: #ffffff;
  border-color: var(--resa-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

/* Project Card */
.project-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  position: relative;
  width: 100%;
  height: 265px;
  overflow: hidden;
  background: #e2e8f0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb img {
  transform: scale(1.07);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem 0.85rem;
  pointer-events: none;
}

.project-badge-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem;
}

.project-overlay .badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: var(--radius-full);
}

.project-badge-top .badge-gold {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--resa-blue);
  border: 1px solid rgba(2, 132, 199, 0.22);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.project-code-tag {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.62rem;
  padding: 0.22rem 0.58rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.project-badge-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.project-badge-bottom .badge-dark {
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-info {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.project-title {
  font-size: 1.16rem;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  color: var(--text-main);
}

.project-location {
  font-size: 0.84rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.project-location i {
  color: var(--resa-green);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.15rem;
  text-align: center;
}

.meta-box span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.meta-box strong {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 700;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-color);
}

.cost-bracket span {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
}

.cost-bracket strong {
  font-size: 0.92rem;
  color: var(--resa-blue);
  font-weight: 700;
}

/* Detail Page */
.project-detail-hero {
  padding: 145px 0 40px 0;
  background: var(--bg-soft-tint);
  border-bottom: 1px solid var(--border-color);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.8rem;
  margin-top: 1.5rem;
}

.main-gallery-view {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  height: 480px;
  background: #0f172a;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.main-gallery-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
}

.thumb-item {
  height: 86px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: #e2e8f0;
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--resa-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table td {
  padding: 0.78rem 0;
  font-size: 0.92rem;
}

.specs-table td:first-child {
  color: var(--text-dim);
  width: 46%;
}

.specs-table td:last-child {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
}

.facility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1.5rem 0;
}

.facility-tag {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Concept & Civil Engineering Panels */
.engineering-box {
  background: linear-gradient(135deg, rgba(217, 249, 157, 0.35) 0%, #ffffff 100%);
  border: 1px solid rgba(101, 163, 13, 0.25);
  border-left: 4px solid var(--resa-green);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1.4rem;
}

.engineering-box h4 {
  font-size: 1rem;
  color: var(--resa-green);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concept-box {
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.35) 0%, #ffffff 100%);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-left: 4px solid var(--resa-blue);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1.4rem;
}

.concept-box h4 {
  font-size: 1rem;
  color: var(--resa-blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
  background: none;
  border: none;
}

#lightboxModal .lightbox-close {
  color: #ffffff;
}

@media (max-width: 992px) {
  .project-detail-grid { grid-template-columns: 1fr; }
  .main-gallery-view { height: 350px; }
}
