/* BrandNewHomes.in — New Projects Directory Stylesheet */

.projects-hero {
  background: linear-gradient(135deg, #0b1528 0%, #172a4d 50%, #0f1f3d 100%);
  color: #ffffff;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(30, 58, 138, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Search Bar */
.projects-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.search-input-wrap {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: #0f172a;
}

.search-icon {
  color: #64748b;
  flex-shrink: 0;
}

.search-select-wrap {
  flex: 1 1 160px;
}

.search-select-wrap select {
  width: 100%;
  height: 100%;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}

.btn-search-projects {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-search-projects:hover {
  background: #1d4ed8;
}

/* Quick Filter Chips */
.quick-chips-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.chip:hover, .chip.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

/* Results Section */
.projects-results-section {
  padding: 3rem 1.5rem;
  background: #f8fafc;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.results-stats h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.results-count {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
  display: block;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.sort-controls select {
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.85rem;
}

/* Canonical Project Card Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
}

.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-status-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  margin-bottom: 0.5rem;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: block;
}

.project-name:hover {
  color: #2563eb;
}

.builder-name {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.15rem;
}

.builder-name:hover {
  color: #0f172a;
}

.project-location {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
}

.project-configurations {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.card-pricing-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.price-label {
  font-size: 0.75rem;
  color: #64748b;
}

.price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

/* Controlled RERA Trust Badges */
.rera-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.badge-rera-checked {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-rera-supplied {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-card-view {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-card-view:hover {
  background: #1d4ed8;
}

.btn-card-enquire {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-card-enquire:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Browse Cities */
.browse-cities-section {
  padding: 3rem 1.5rem;
  background: #ffffff;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.city-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.city-card {
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.city-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-2px);
}

.city-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.city-info p {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.city-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  margin-top: 2rem;
}

.empty-state.hidden {
  display: none;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.btn-reset-filters {
  padding: 0.6rem 1.2rem;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .projects-hero {
    padding: 2.5rem 1rem 2rem;
  }
  .projects-search-bar {
    flex-direction: column;
  }
  .search-select-wrap, .btn-search-projects {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
