﻿/* ================================================================
   Upcoming Projects — Premium Page Styles
   ================================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.up-page {
  min-height: 100vh;
  background: #f0f4f8;
  font-family: 'Manrope', sans-serif;
}

.page-wrapper {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.up-hero {
  position: relative;
  background: linear-gradient(135deg, #060d1f 0%, #0f2044 45%, #1a3a8f 80%, #1e40af 100%);
  padding: 64px 32px 56px;
  overflow: hidden;
  margin-bottom: 0;
}

/* Decorative blobs */
.up-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.up-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 8%;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.28) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* Hero grid dots overlay */
.up-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
}

.up-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.up-hero-tag i { font-size: 0.68rem; color: #fbbf24; }

.up-hero-title {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.up-hero-title span {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 60%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.up-hero-sub {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.68);
  margin: 0 0 34px;
  max-width: 580px;
  line-height: 1.65;
}

/* Hero stats row */
.up-hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.up-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  margin-right: 12px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
  min-width: 110px;
}
.up-hero-stat strong {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.up-hero-stat span {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.52);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.al-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 18px 0 10px;
  flex-wrap: wrap;
}
.al-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}
.al-breadcrumb a:hover { color: #2563eb; }
.al-breadcrumb .sep { color: #cbd5e1; }
.al-breadcrumb .current { color: #1e293b; font-weight: 600; }

/* ── Filter row ──────────────────────────────────────────────── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0 10px;
}

/* ── Filter pill (also used by property-filters-bar.css globally) */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.filter-pill:hover {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 2px 10px rgba(37,99,235,0.12);
}
.filter-pill.fp-selected {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.fp-chev {
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* Dropdown */
.fp-drop {
  position: relative;
}
.fp-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.14);
  z-index: 9000;
  overflow: hidden;
  animation: fpFadeIn 0.18s ease;
}
@keyframes fpFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fp-drop.fp-open .fp-panel { display: block; }
.fp-drop.fp-open .fp-chev { transform: rotate(180deg); }
.fp-opt {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.fp-opt:hover { background: #f0f6ff; color: #2563eb; }
.fp-opt.active { background: #eff6ff; color: #2563eb; }

/* Search input */
.up-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.up-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.up-search-input::placeholder { color: #94a3b8; }

/* ── Description section ─────────────────────────────────────── */
.description-section {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 20px;
  margin: 8px 0 16px;
}
.description-section p {
  font-size: 0.84rem;
  color: #3b5e9e;
  margin: 0;
  line-height: 1.55;
}

/* ── Additional filters bar ──────────────────────────────────── */
.additional-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8edf5;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.af-result-count {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.af-result-count strong {
  color: #1e293b;
  font-weight: 800;
  font-size: 1rem;
}

.af-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.filter-select {
  padding: 7px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s;
}
.filter-select:focus { border-color: #2563eb; }

.up-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  background: #fef2f2;
  transition: background 0.15s;
}
.up-clear-filters:hover { background: #fee2e2; }

/* ── Two-column layout ───────────────────────────────────────── */
.up-columns.listing-columns {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 60px;
}
.up-columns .listing-main-col {
  flex: 0 0 68%;
  min-width: 0;
}
.up-columns .listing-sidebar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Project grid ────────────────────────────────────────────── */
.up-proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ── Glass card base ─────────────────────────────────────────── */
.glass-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 4px 24px rgba(15,23,42,0.07);
}

/* ── Project card ────────────────────────────────────────────── */
.up-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.8);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.26s, transform 0.26s;
  position: relative;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
  cursor: pointer;
}
.up-card:hover {
  box-shadow: 0 16px 48px rgba(37,99,235,0.15);
  transform: translateY(-5px);
  border-color: #bfdbfe;
}

/* Card image */
.up-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}
.up-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.up-card:hover .up-img { transform: scale(1.06); }
.up-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,42,0.76) 0%, rgba(10,20,42,0.15) 45%, transparent 70%);
}

/* Status badge */
.up-status-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.up-status-badge.pre-launch {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.up-status-badge.reg-open {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
}
.up-status-badge.coming-soon {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
}
.up-status-badge.new-launch {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}
/* Real upcoming_projects.status enum values (Upcoming / Under Construction / Ready To Move / Sold Out) */
.up-status-badge.upcoming {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
}
.up-status-badge.construction {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.up-status-badge.ready {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
}
.up-status-badge.sold-out {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
}

/* Possession chip */
.up-possession-chip {
  position: absolute;
  bottom: 13px;
  left: 13px;
  background: rgba(10,20,42,0.80);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.up-possession-chip i { color: #34d399; }

/* Builder chip */
.up-builder-chip {
  position: absolute;
  bottom: 13px;
  right: 13px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  color: #1e293b;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.up-builder-chip i { color: #16a34a; flex-shrink: 0; }

/* Card body */
.up-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.up-proj-name {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 5px;
  line-height: 1.28;
}
.up-card:hover .up-proj-name { color: #2563eb; }

.up-proj-loc {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 13px;
}
.up-proj-loc i { color: #f59e0b; flex-shrink: 0; }

/* Price strip */
.up-price-strip {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.up-price-main {
  font-size: 1.22rem;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
}
.up-price-sep { color: #94a3b8; font-size: 0.9rem; }
.up-price-max { font-size: 0.95rem; font-weight: 700; color: #475569; }
.up-price-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  align-self: center;
}

/* Specs chips row */
.up-specs-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.up-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e8edf5;
}
.up-spec-chip i { color: #7c3aed; font-size: 9px; }
.up-spec-chip.type-chip {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}
.up-spec-chip.type-chip i { color: #2563eb; }

/* Amenity pills */
.up-amenities-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.up-amenity-pill {
  font-size: 0.64rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.up-amenity-pill i { color: #2563eb; font-size: 9px; }

/* Card footer */
.up-card-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.up-interest-btn {
  flex: 1;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}
.up-interest-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(37,99,235,0.40);
  transform: translateY(-1px);
}
.up-details-btn {
  padding: 10px 14px;
  border: 1.5px solid #2563eb;
  border-radius: 9px;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: inherit;
}
.up-details-btn:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
}

/* ── Empty state ─────────────────────────────────────────────── */
.up-empty {
  grid-column: 1 / -1;
  padding: 70px 32px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  border: 1.5px dashed #cbd5e1;
}
.up-empty i {
  font-size: 3.2rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 18px;
}
.up-empty h3 { font-size: 1.1rem; color: #1e293b; margin: 0 0 8px; font-weight: 800; }
.up-empty p { font-size: 0.85rem; color: #64748b; margin: 0; }
.up-empty a { color: #2563eb; text-decoration: none; font-weight: 600; }
.up-empty a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR — Contact Expert Card (cc-*)
   ════════════════════════════════════════════════════════════════ */
.contact-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(15,23,42,0.10);
}

.cc-header {
  padding: 22px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #f8fbff, #eff6ff);
}
.cc-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cc-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}
.cc-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

/* Expert row */
.cc-expert-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafcff;
}
.cc-expert-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.cc-expert-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.18);
}
.cc-verified-badge {
  position: absolute;
  bottom: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-expert-info { flex: 1; min-width: 0; }
.cc-expert-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-expert-title {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1px;
}
.cc-contact-preview {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Form */
.cc-form-section {
  padding: 18px 22px 10px;
}
.cc-form-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #374151;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cc-input-group { margin-bottom: 10px; }
.cc-input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
.cc-input-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
  background: #fff;
}

/* Phone input wrapper */
.cc-phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cc-phone-input-wrapper:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
  background: #fff;
}
.cc-country-code {
  padding: 10px 10px 10px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  background: #f1f5f9;
  border-right: 1.5px solid #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}
.cc-phone-input {
  flex: 1;
  padding: 10px 13px;
  border: none;
  outline: none;
  font-size: 0.84rem;
  color: #1e293b;
  background: transparent;
  font-family: inherit;
}

/* Consent */
.cc-consent-wrapper {
  padding: 8px 22px 14px;
}
.cc-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.cc-checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.cc-custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #2563eb;
  border-radius: 5px;
  background: #eff6ff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background 0.15s;
}
.cc-checkbox-container input:checked + .cc-custom-checkbox {
  background: #2563eb;
}
.cc-custom-checkbox svg {
  fill: #fff;
  width: 11px; height: 11px;
}
.cc-consent-text {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
}

/* Submit button */
.cc-submit-btn {
  display: block;
  width: calc(100% - 44px);
  margin: 0 22px 14px;
  padding: 13px;
  background: linear-gradient(135deg, #1e40af, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(37,99,235,0.30);
  letter-spacing: 0.02em;
}
.cc-submit-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(37,99,235,0.42);
  transform: translateY(-1px);
}
.cc-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Security badge */
.cc-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #94a3b8;
  padding: 0 22px 18px;
  font-weight: 600;
}
.cc-security-badge svg { fill: #94a3b8; }

/* ── Alert subscription widget ───────────────────────────────── */
.up-alert-box {
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 18px rgba(37,99,235,0.07);
}
.up-alert-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.up-alert-title i { color: #2563eb; }
.up-alert-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 14px;
}
.up-alert-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.up-alert-input {
  padding: 10px 14px;
  border: 1.5px solid #bfdbfe;
  border-radius: 9px;
  font-size: 0.82rem;
  color: #1e293b;
  outline: none;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.up-alert-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.up-alert-btn {
  padding: 10px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.up-alert-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Why Invest Early sidebar widget ─────────────────────────── */
.up-invest-box {
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15,23,42,0.06);
}
.up-invest-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.up-invest-title i { color: #f59e0b; }
.up-invest-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.up-invest-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.78rem;
  color: #374151;
  line-height: 1.48;
}
.up-invest-list li strong { color: #1e293b; }
.up-invest-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.up-invest-icon i { color: #2563eb; font-size: 11px; }

/* ── Shake validation animation ──────────────────────────────── */
.up-shake {
  animation: upShake 0.5s ease-in-out;
  border-color: #ef4444 !important;
}
@keyframes upShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

/* ── Filter (old class aliases for compatibility) ────────────── */
.up-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.up-ftab {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.up-ftab:hover { border-color: #2563eb; color: #2563eb; }
.up-ftab.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ── Premium listing page wrapper (from .up-page) ────────────── */
.premium-listing-page { color: #1e293b; }

/* ── Project card overrides (agent-hcard shared with /agents) ── */
.up-page .ahc-rating-chip {
  border-radius: 0;
}

.up-page .ahc-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.up-page .ahc-name a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.up-page .ahc-name-loc {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.up-page .ahc-name-loc i { color: #2563eb; font-size: 11px; }

.up-page .ahc-features {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.up-page .ahc-feature {
  padding: 7px 8px;
  font-size: 11.5px;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 980px) {
  .up-page .ahc-features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .up-page .ahc-name { flex-direction: column; align-items: flex-start; gap: 2px; }
  .up-page .ahc-features { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ════════════════════════════════════════════════════════════════ */

/* Tablet ≤ 980px */
@media (max-width: 980px) {
  .up-hero { padding: 48px 20px 44px; }
  .up-columns.listing-columns {
    flex-direction: column;
  }
  .up-columns .listing-main-col { flex: none; width: 100%; }
  .up-columns .listing-sidebar-col { display: none; }
  .page-wrapper { padding: 0 18px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .up-hero { padding: 40px 16px 36px; }
  .up-hero-stats { gap: 0; }
  .up-hero-stat {
    padding: 12px 18px;
    margin-right: 8px;
    margin-bottom: 8px;
    min-width: 90px;
  }
  .up-hero-stat strong { font-size: 1.3rem; }
  .up-proj-grid { grid-template-columns: 1fr; gap: 14px; }
  .additional-filters { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-row { padding: 14px 0 8px; }
  .up-search-input { max-width: 100%; }
  .description-section { padding: 12px 16px; }
}

/* ≤ 640px */
@media (max-width: 640px) {
  .up-hero-title { font-size: 1.55rem; }
  .up-hero-sub { font-size: 0.88rem; }
  .up-hero-stat { padding: 10px 14px; min-width: 80px; }
  .up-hero-stat strong { font-size: 1.15rem; }
  .page-wrapper { padding: 0 14px; }
  .filter-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-row::-webkit-scrollbar { height: 0; }
  .fp-panel { min-width: 150px; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .up-hero { padding: 32px 14px 28px; }
  .up-hero-tag { font-size: 0.65rem; padding: 5px 12px; }
  .up-hero-title { font-size: 1.35rem; }
  .up-hero-stats { gap: 0; }
  .up-hero-stat { padding: 9px 12px; min-width: 72px; margin-right: 6px; }
  .up-hero-stat strong { font-size: 1rem; }
  .up-hero-stat span { font-size: 0.6rem; }
  .up-card-body { padding: 14px; }
  .up-proj-name { font-size: 0.94rem; }
  .up-price-main { font-size: 1.08rem; }
  .up-img-wrap { height: 180px; }
  .page-wrapper { padding: 0 12px; }
  .additional-filters { padding: 12px 14px; }
  .cc-submit-btn { width: calc(100% - 28px); margin: 0 14px 14px; }
  .cc-header, .cc-expert-row, .cc-form-section, .cc-consent-wrapper { padding-left: 14px; padding-right: 14px; }
  .cc-security-badge { padding: 0 14px 14px; }
}

/* ── Ad Banner (shared across listing pages) ── */
.ad-banner-card {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
  border-radius: 18px;
  overflow: hidden;
  padding: 22px 28px;
  margin: 6px 0;
  box-shadow: 0 8px 32px rgba(37,99,235,0.22), 0 2px 8px rgba(37,99,235,0.12);
 }
.ad-banner-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none;
}
.ad-banner-label {
  position: absolute; top: 10px; right: 14px;
  background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.85);
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.25);
}
.ad-banner-inner {
  display: flex; align-items: center; gap: 20px; position: relative; z-index: 1;
}
.ad-banner-icon-wrap {
  flex-shrink: 0; width: 56px; height: 56px;
  background: rgba(255,255,255,0.15); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
}
.ad-banner-icon-wrap i { font-size: 1.5rem; color: #fff; }
.ad-banner-text { flex: 1; min-width: 0; }
.ad-banner-title {
  font-size: clamp(0.95rem,1.4vw,1.1rem); font-weight: 700;
  color: #fff; margin: 0 0 4px; line-height: 1.3;
}
.ad-banner-sub {
  font-size: clamp(0.75rem,1vw,0.82rem);
  color: rgba(255,255,255,0.78); margin: 0; line-height: 1.4;
}
.ad-banner-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #1e3a8a; font-size: 0.82rem; font-weight: 700;
  padding: 10px 20px; border-radius: 10px; text-decoration: none;
  white-space: nowrap; transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.ad-banner-cta:hover { background: #f0f9ff; color: #1e40af; transform: translateY(-1px); }
@media (max-width: 600px) {
  .ad-banner-card { padding: 16px 18px; }
  .ad-banner-inner { flex-wrap: wrap; gap: 14px; }
  .ad-banner-icon-wrap { display: none; }
  .ad-banner-cta { width: 100%; justify-content: center; }
}

/* ── Inline-style replacement classes ── */
.up-fi-fire  { color: #f59e0b; font-size: 10px; }
.up-fi-check { color: #16a34a; font-size: 10px; }
.up-fi-clock { color: #7c3aed; font-size: 10px; }
.ad-banner-card--full { grid-column: 1 / -1; }
.up-alert-box  { margin-top: 16px; }
.up-invest-box { margin-top: 16px; }
.up-btn-icon   { margin-right: 5px; }
