/* ==========================================================================
   DAAMRI Deals — Projects archive + Project detail
   ========================================================================== */

/* Cover */
.projects-cover {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--stone);
}

.projects-cover .kicker {
  margin-bottom: 18px;
}

.projects-cover h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
  font-weight: 500;
}

.projects-cover .sub {
  font-family: var(--body);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 20px;
}

/* Filter bar */
.projects-filters {
  padding: 24px 0;
  border-bottom: 1px solid var(--stone);
  position: sticky;
  top: 81px;
  z-index: 30;
  background: rgba(243, 238, 226, .95);
  backdrop-filter: blur(6px);
}

.projects-filters .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.projects-filters .filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.projects-filters .selects {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.projects-filters select {
  font-family: var(--ui);
  font-size: 12.5px;
  padding: 9px 30px 9px 12px;
  border: 1px solid var(--stone);
  background: var(--white);
  border-radius: var(--radius-lg);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%236B6455' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: var(--ease);
}

.projects-filters select:hover {
  border-color: var(--muted);
}

.projects-filters select:focus {
  outline: none;
  border-color: var(--oxblood);
}

/* Results row */
.results-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

#results-count {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 20px;
}

/* Listing card extensions */
.listing-card .cimg {
  height: 200px;
}

.listing-card .deal-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: 10.5px;
  padding: 5px 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.listing-card .cat-meta {
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 8px;
}

.listing-card h3 {
  font-size: 19px;
  line-height: 1.25;
}

.listing-card .specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.listing-card .specs i {
  color: var(--forest);
  font-size: 11px;
  margin-right: 4px;
}

.listing-card .price {
  font-size: 17px;
}

/* Empty state */
.archive-empty {
  grid-column: 1 / -1;
  border: 1px solid var(--stone);
  background: var(--paper-2);
  padding: 56px 32px;
  text-align: center;
}

.archive-empty .t-italic {
  font-size: 20px;
  display: block;
  margin-bottom: 10px;
}

.archive-empty .btn {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Project detail
   -------------------------------------------------------------------------- */

.detail-cover {
  padding: 64px 0 40px;
}

.detail-cover .crumb {
  font-family: var(--ui);
  font-size: 12px;
  margin-bottom: 28px;
}

.detail-cover .crumb a {
  color: var(--muted);
  text-decoration: none;
}

.detail-cover .crumb a:hover {
  color: var(--oxblood);
}

.detail-cover .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-cover .meta .cat {
  color: var(--oxblood);
  font-weight: 600;
}

.detail-cover .meta .sep {
  color: var(--muted);
}

.detail-cover h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 500;
  max-width: 880px;
}

.detail-cover .loc {
  font-family: var(--ui);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
}

.detail-cover .loc i {
  color: var(--oxblood);
  margin-right: 6px;
}

.detail-figure {
  margin: 0;
}

.detail-figure img {
  width: 100%;
  max-height: 520px;
  border: 1px solid var(--stone);
  filter: var(--img-filter);
}

.detail-figure figcaption {
  padding-top: 10px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-16);
  padding-top: 56px;
  padding-bottom: 72px;
  align-items: start;
}

.detail-desc {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 620px;
  margin-top: 14px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--sp-8);
  margin-top: 18px;
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 14px 2px;
  border-bottom: 1px solid var(--stone);
}

.facts dt {
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  text-align: right;
}

.enquiry-card {
  background: var(--white);
  border: 1px solid var(--stone);
  padding: 30px 28px;
  position: sticky;
  top: 120px;
}

.enquiry-card .price {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 10px;
}

.enquiry-card .t-small {
  display: block;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1000px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .enquiry-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .projects-cover {
    padding: 56px 0 44px;
  }

  .projects-filters {
    top: 73px;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}
