/* ==========================================================================
   VEGAS HOMES - REUSABLE UI COMPONENTS (components.css)
   Property Cards, Filter Bars, Badges, Modals, Forms, Accordions
   ========================================================================== */

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-available {
  background-color: var(--status-available-bg);
  color: var(--status-available);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-available .badge-dot { background-color: var(--status-available); }

.badge-reserved {
  background-color: var(--status-reserved-bg);
  color: var(--status-reserved);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-reserved .badge-dot { background-color: var(--status-reserved); }

.badge-sold {
  background-color: var(--status-sold-bg);
  color: var(--status-sold);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-sold .badge-dot { background-color: var(--status-sold); }

.badge-coming {
  background-color: var(--status-coming-bg);
  color: var(--status-coming);
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.badge-coming .badge-dot { background-color: var(--status-coming); }

.badge-featured {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: none;
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Property Card Component */
.property-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(200, 16, 46, 0.4);
}

/* ==========================================================================
   VEGAS HOMES - STANDARDIZED PLOT DISPLAY SYSTEM (REFERENCE SPECIFICATION)
   Exact recreation of the reference design:
   Real Abuja Land Photo + White Dashed Boundary + Gold Corner Beacons +
   Red Location Pin + Bold White SQM Inside + Dark Navy Status Pill Badge
   ========================================================================== */

.vegas-plot-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 235px;
  overflow: hidden;
  background-color: #0b1320;
  border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
  display: block;
}

/* Authentic Land Photo Background */
.plot-photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.property-card:hover .plot-photo-bg {
  transform: scale(1.04);
}

/* Subtle Vignette Scrim for High Contrast & Text Legibility */
.plot-overlay-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.12) 0%, rgba(7, 13, 24, 0.42) 85%),
              linear-gradient(to top, rgba(7, 13, 24, 0.5) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* SVG Boundary Overlay */
.plot-boundary-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.plot-svg-stroke {
  fill: rgba(255, 255, 255, 0.03);
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-dasharray: 7, 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Golden-Yellow Circular Corner Beacons (Exact Match to Reference Image) */
.plot-corner-beacon {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 25%, #f59e0b 70%, #d97706 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.property-card:hover .plot-corner-beacon {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Center Plot Content: Red Pin + SQM + Status Badge */
.plot-center-demarcation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  width: 85%;
  max-width: 320px;
}

/* Red Location Pin */
.plot-location-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

.plot-location-pin svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* SQM Typography Inside the Plot */
.plot-sqm-label {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
  margin: 4px 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.plot-sqm-val {
  font-weight: 800;
}

.plot-sqm-txt {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

/* Dark Navy Pill Status Badge */
.plot-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d1b2a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  padding: 5px 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.plot-status-badge.status-demarcated {
  background: #0f1c30;
  border-color: rgba(255, 255, 255, 0.4);
}

.plot-status-badge.status-available {
  background: #09231f;
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
}

.plot-status-badge.status-reserved {
  background: #251605;
  border-color: rgba(245, 158, 11, 0.6);
  color: #fcd34d;
}

.plot-status-badge.status-sold {
  background: #2d0b10;
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

/* Top Cadastral Tags / Ref Code */
.plot-corner-tags {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

.plot-tag-district {
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.plot-tag-ref {
  background: rgba(200, 16, 46, 0.9);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Price Bar below card body */
.card-price-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid #e2e8f0;
  margin-top: auto;
}

.card-price-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 2px;
}

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

.card-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-location svg {
  color: var(--primary);
  flex-shrink: 0;
}

.card-title {
  font-size: 1.175rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--primary);
}

.card-dev-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.25rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
}

.spec-item svg {
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero Property Search Bar */
.hero-search-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10;
}

.search-intent-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.intent-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.intent-tab:hover {
  color: var(--primary);
  background: rgba(13, 148, 136, 0.05);
}

.intent-tab.active {
  background: var(--dark-slate);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(7, 13, 24, 0.2);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1.5fr 1fr 1.2fr;
  gap: 1rem;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

select.form-control {
  cursor: pointer;
}

/* Development Card Component */
.dev-card {
  background: var(--dark-slate);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: var(--transition);
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff;
}

.dev-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}

.dev-card:hover .dev-card-bg {
  transform: scale(1.08);
}

.dev-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 13, 24, 0.95) 0%, rgba(7, 13, 24, 0.35) 60%, transparent 100%);
  z-index: 2;
}

.dev-card-content {
  position: relative;
  z-index: 3;
}

.dev-units-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 184, 166, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(20, 184, 166, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dev-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.dev-location {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dev-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

.dev-price-from {
  font-size: 0.8rem;
  color: #94a3b8;
}

.dev-price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

/* Location Card Component */
.location-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.location-media {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.location-card:hover .location-media img {
  transform: scale(1.06);
}

.location-body {
  padding: 1.25rem;
}

.location-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.location-district {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.location-price-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Trust Proof & Google Review Box */
.google-proof-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.google-badge-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.google-badge-circle img {
  width: 32px;
  height: 32px;
}

.google-proof-content h4 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.google-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Accordion FAQs */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  user-select: none;
}

.faq-header svg {
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-header svg {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-body {
  display: block;
}
/* Responsive Components */
@media (max-width: 1024px) {
  .search-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .search-form-grid {
    grid-template-columns: 1fr;
  }
  .property-grid {
    grid-template-columns: 1fr;
  }
  .card-media,
  .vegas-plot-display {
    min-height: 210px;
  }
  .plot-sqm-label {
    font-size: 1.7rem;
  }
  .plot-status-badge {
    font-size: 0.68rem;
    padding: 4px 14px;
  }
}


