/* ==============================================================
   SOFTLAND CONSTRUCTION LTD. — HERO PROJECT SEARCH & RESULTS CSS
   ============================================================== */

/* Modern Hero Search Bar Container */
.softland-hero-search-wrapper {
  position: relative;
  z-index: 100;
  width: 82%;
  max-width: 880px;
  margin: 0 auto;
  transform: translateY(-30%);
}

.softland-hero-search-bar {
  background: #ffffff;
  border-radius: 36px;
  padding: 4px 6px 4px 12px;
  box-shadow: 0 6px 20px rgba(11, 26, 48, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(197, 168, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  transition: all 0.25s ease;
}

.softland-hero-search-bar:focus-within {
  border-color: #c5a880;
  box-shadow: 0 10px 28px rgba(11, 26, 48, 0.18);
}

.softland-search-field {
  flex: 1;
  position: relative;
  padding: 2px 6px;
  border-right: 1px solid #e2e8f0;
}

.softland-search-field:last-of-type {
  border-right: none;
}

.softland-search-label {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c5a880;
  letter-spacing: 0.4px;
  margin-bottom: 0px;
  line-height: 1;
}

.softland-search-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.softland-search-select {
  width: 100%;
  border: none;
  background: transparent;
  color: #0b1a30;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 14px 1px 0;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.softland-search-select option {
  background: #ffffff;
  color: #1e293b;
  font-size: 12.5px;
  padding: 6px 10px;
}

.softland-search-chevron {
  position: absolute;
  right: 2px;
  pointer-events: none;
  color: #94a3b8;
  font-size: 9.5px;
}

.softland-search-submit-btn {
  background: linear-gradient(135deg, #0b1a30 0%, #152e52 100%);
  color: #ffffff;
  border: none;
  border-radius: 28px;
  padding: 6px 18px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(11, 26, 48, 0.18);
  flex-shrink: 0;
}

.softland-search-submit-btn:hover {
  background: linear-gradient(135deg, #c5a880 0%, #ad8c5e 100%);
  color: #0b1a30;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(197, 168, 128, 0.35);
}

/* LIVE RESULTS DRAWER / PANEL */
.softland-live-results-panel {
  background: #ffffff;
  border-radius: 20px;
  margin-top: 16px;
  box-shadow: 0 25px 60px rgba(11, 26, 48, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: none;
  animation: slideDownResults 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.softland-live-results-panel.open {
  display: block;
}

@keyframes slideDownResults {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.softland-results-header {
  background: #0b1a30;
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #c5a880;
  flex-wrap: wrap;
  gap: 12px;
}

.softland-results-title-group h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.softland-results-title-group p {
  font-size: 13px;
  color: #c5a880;
  margin: 2px 0 0 0;
}

.softland-results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.softland-results-clear-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.softland-results-clear-btn:hover {
  background: #c5a880;
  color: #0b1a30;
  border-color: #c5a880;
}

.softland-results-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.softland-results-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Results Grid & Cards */
.softland-results-body {
  padding: 24px;
  max-height: 650px;
  overflow-y: auto;
  background: #f8fafc;
}

.softland-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.softland-project-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.softland-project-card:hover {
  transform: translateY(-4px);
  border-color: #c5a880;
  box-shadow: 0 12px 30px rgba(11, 26, 48, 0.12);
}

.softland-card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0b1a30;
}

.softland-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.softland-card-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0b1a30;
  color: #c5a880;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #c5a880;
  letter-spacing: 0.3px;
}

.softland-card-est-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.softland-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.softland-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0b1a30;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.softland-card-location {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.softland-card-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.softland-spec-item {
  text-align: center;
}

.softland-spec-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  display: block;
}

.softland-spec-val {
  font-size: 12px;
  font-weight: 700;
  color: #0b1a30;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.softland-card-features {
  font-size: 12px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.45;
}

.softland-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.softland-btn-view-prop {
  flex: 1;
  background: #0b1a30;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.softland-btn-view-prop:hover {
  background: #c5a880;
  color: #0b1a30;
}

.softland-btn-brochure {
  background: #f1f5f9;
  color: #0b1a30;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.softland-btn-brochure:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Empty State */
.softland-results-empty {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  grid-column: 1 / -1;
}

.softland-results-empty i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: block;
}

/* Responsive Rules */
@media (max-width: 991px) {
  .softland-hero-search-wrapper {
    width: 95%;
    transform: translateY(-20%);
  }
  .softland-hero-search-bar {
    border-radius: 20px;
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .softland-search-field {
    flex: 1 1 calc(50% - 12px);
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
  }
  .softland-search-submit-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
}

@media (max-width: 575px) {
  .softland-search-field {
    flex: 1 1 100%;
  }
  .softland-results-grid {
    grid-template-columns: 1fr;
  }
  .softland-results-header {
    padding: 14px 16px;
  }
  .softland-results-body {
    padding: 16px;
  }
}
