/* ==========================================================================
   Project Cards UI Styling (Modern Real Estate Signature Cards)
   ========================================================================== */

.project-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.project-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

/* Card Media / Image Area */
.project-card-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #0f172a;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card-media img.pos-left {
  object-position: 18% center;
}

.project-card-wrap:hover .project-card-media img {
  transform: scale(1.05);
}

.project-card-media .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.project-card-media .media-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.project-card-media .tags-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.project-card-media .tag-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.2px;
}

.project-card-media .tag-pill.blue {
  background-color: #0d6efd;
  color: #ffffff;
}

.project-card-media .tag-pill.dark {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
}

.project-card-media .btn-wishlist {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.project-card-media .btn-wishlist:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  color: #ff4757;
}

.project-card-media .btn-wishlist.active svg {
  fill: #ff4757;
  stroke: #ff4757;
}

.project-card-media .media-bottom-location {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.project-card-media .media-bottom-location svg {
  flex-shrink: 0;
  color: #ffffff;
}

/* Card Body Content */
.project-card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-size: 21px;
  font-weight: 700;
  color: #0b1f3b;
  margin-bottom: 2px;
  line-height: 1.25;
}

.project-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.project-card-title a:hover {
  color: #0d6efd;
}

.project-card-builder {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 16px;
}

/* 4 Quick Spec Boxes Grid */
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.spec-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 82px;
  transition: border-color 0.2s, background-color 0.2s;
}

.spec-box:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

.spec-icon {
  color: #0f274a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.spec-val {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.spec-lbl {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.1;
}

/* Highlight Box (Card 3) */
.project-highlight-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.project-highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #b45309;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.project-highlight-text h6 {
  font-size: 12.5px;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 2px;
  line-height: 1.3;
}

.project-highlight-text p {
  font-size: 11.5px;
  color: #92400e;
  line-height: 1.35;
  margin: 0;
}

/* Available Configurations */
.project-config-section {
  margin-bottom: 16px;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.config-header h6 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.config-header .btn-view-all {
  font-size: 11.5px;
  font-weight: 600;
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}

.config-header .btn-view-all:hover {
  gap: 7px;
  color: #0b5ed7;
}

.config-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.config-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.config-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.config-table th {
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-align: left;
}

.config-table th.text-end {
  text-align: right;
}

.config-table td {
  padding: 7px 10px;
  font-size: 11.5px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.config-table tbody tr:last-child td {
  border-bottom: none;
}

.config-table td.config-name {
  font-weight: 600;
  color: #0f172a;
}

.config-table td.config-size {
  color: #64748b;
}

.config-table td.config-price {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  white-space: nowrap;
}

/* Project Details Section */
.project-details-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.project-details-box h6 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.project-details-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-details-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 10px;
}

.project-details-item .item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  flex-shrink: 0;
}

.project-details-item .item-label svg {
  color: #64748b;
  flex-shrink: 0;
}

.project-details-item .item-value {
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}

.badge-under-construction {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  display: inline-block;
}

/* Bottom Bar */
.project-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.price-block .price-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
  line-height: 1;
}

.price-block .price-amount {
  font-size: 22px;
  font-weight: 800;
  color: #0b1f3b;
  line-height: 1.1;
}

.price-block .price-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1;
}

.btn-view-project {
  background: #0f274a;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-view-project:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 39, 74, 0.25);
}

.btn-view-project svg {
  transition: transform 0.2s ease;
}

.btn-view-project:hover svg {
  transform: translateX(3px);
}

/* Modal styling for Quick Project Inquiry */
.project-modal .modal-content {
  border-radius: 16px;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-modal .modal-header {
  background: #0f274a;
  color: #ffffff;
  padding: 18px 24px;
  border: none;
}

.project-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.project-modal .modal-body {
  padding: 24px;
}

.project-modal .quick-contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.project-modal .quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.project-modal .quick-btn.call-btn {
  background: #0f274a;
  color: #ffffff;
}

.project-modal .quick-btn.wa-btn {
  background: #25d366;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-card-media {
    height: 220px;
  }
}

@media (max-width: 575px) {
  .project-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-box {
    min-height: 70px;
  }
  .price-block .price-amount {
    font-size: 20px;
  }
}
