/* Lightweight styles inspired by the existing Next.js homepage */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #111827;
}

.reference-layout {
  min-height: 100vh;
  background: #ffffff;
}

.ref-header {
  background: #ffffff;
  padding: 1.25rem 2.5rem 0.75rem;
}

.ref-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.ref-nav {
  display: flex;
  gap: 1.5rem;
}

.ref-nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: #4b5563;
}

.ref-nav-link:hover {
  color: #111827;
}

.site-footer {
  padding: 1.5rem 2.5rem 2rem;
  font-size: 0.85rem;
  color: #6b7280;
}

main {
  padding: 0 0 3rem;
}

.ref-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 0.75rem;
}

/* Hero inspired by the JS homepage */

.home-hero {
  margin-top: 1.5rem;
  padding: 3.5rem 2.75rem 2.75rem;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  color: #f9fafb;
  background: radial-gradient(circle at 0% 0%, #1f2937, #111827 32%, #020617 80%);
  box-shadow:
    10px 10px 24px rgba(163, 177, 198, 0.7),
    -10px -10px 24px rgba(255, 255, 255, 0.9);
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.2)),
    url('https://i.ibb.co/jPqSm9s5/herobg.jpg');
  background-size: cover;
  background-position: center 90%;
  opacity: 0.7;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.home-hero-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bfdbfe;
  margin-bottom: 0.5rem;
}

.home-hero-title {
  font-size: clamp(2.4rem, 3.5vw + 1rem, 3.4rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.home-hero-subtitle {
  font-size: 1rem;
  max-width: 520px;
  color: #e5e7eb;
}

.home-search-form {
  margin-top: 2.25rem;
  background: rgba(17, 24, 39, 0.78);
  border-radius: 999px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  backdrop-filter: blur(16px);
}

.home-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.home-search-field {
  flex: 1 1 130px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

.home-search-field label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.home-search-field input,
.home-search-field select {
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: rgba(17, 24, 39, 0.9);
  color: #e5e7eb;
  padding: 0 0.75rem;
  font-size: 0.85rem;
}

.home-search-actions {
  display: flex;
  align-items: flex-end;
}

.home-search-actions button {
  height: 2.6rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.home-search-actions button:hover {
  filter: brightness(1.05);
}

.home-section {
  padding: 2.75rem 0 1.5rem;
}

.home-section-header {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
}

.home-section-header h3 {
  font-size: 1.4rem;
}

.property-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.property-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.property-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.property-title {
  font-size: 1rem;
  font-weight: 600;
}

.property-pill {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #e0f2fe;
  color: #0369a1;
}

.property-meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.property-price-row {
  margin-top: 0.5rem;
}

.property-price {
  font-weight: 700;
  font-size: 1rem;
  color: #4f46e5;
}

.property-grid--compact .property-card--compact {
  padding: 0.9rem 1rem;
}

.home-section-cta {
  padding-bottom: 3rem;
}

.home-cta-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.home-cta-card {
  background: #111827;
  color: #e5e7eb;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
}

.home-cta-card--secondary {
  background: #020617;
}

.home-cta-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  background: #fbbf24;
  color: #111827;
}

.home-cta-button:hover {
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .ref-header {
    padding: 1rem 1.25rem 0.5rem;
  }

  .ref-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ref-container {
    padding: 0 1.25rem;
  }

  .home-hero {
    padding: 2.5rem 1.5rem 1.75rem;
  }

  .home-search-form {
    border-radius: 1.25rem;
  }

  .home-search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Ad Slot Styling */
.ad-slot {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-slot-property-above-parcel,
.ad-slot-property-sidebar-below-similar {
  margin: 1.5rem 0;
}

/* ── Auction nav item — cyberpunk style ───────────────────────────────────── */

@keyframes pp-auction-glow {
  0%, 100% { text-shadow: 0 0 6px #00e5ff, 0 0 12px #00e5ff44; }
  50%       { text-shadow: 0 0 10px #ff00ea, 0 0 20px #ff00ea44; }
}

.ref-nav-link--auction {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #00e5ff 0%, #b700ff 60%, #ff00ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pp-auction-glow 2.4s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.ref-nav-link--auction:hover {
  opacity: 0.85;
}

.ref-nav-auction-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #00e5ff, #ff00ea);
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #000;
  color: #000;
  line-height: 1.5;
  vertical-align: middle;
}

/* ── Auction modal ────────────────────────────────────────────────────────── */

#pp-auction-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#pp-auction-modal.is-open {
  display: flex;
}

.pp-auction-card {
  background: #0d1117;
  border: 1px solid #00e5ff44;
  box-shadow: 0 0 40px #00e5ff22, 0 0 80px #b700ff11, 0 8px 32px rgba(0,0,0,0.6);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  color: #e2e8f0;
  text-align: center;
}

.pp-auction-card-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}

.pp-auction-card-close:hover {
  color: #e2e8f0;
}

.pp-auction-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.pp-auction-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
  background: linear-gradient(90deg, #00e5ff, #b700ff 60%, #ff00ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-auction-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00e5ff;
  margin: 0 0 1.25rem;
}

.pp-auction-body {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.pp-auction-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00e5ff;
  margin: 0 0 0.5rem;
}

.pp-auction-group-hint {
  font-size: 0.75rem;
  color: #475569;
  margin: 0 0 0.5rem;
}

.pp-auction-copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #161b22;
  border: 1px solid #1e2936;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.pp-auction-copy-link {
  flex: 1;
  font-size: 0.75rem;
  color: #7dd3fc;
  font-family: monospace;
  word-break: break-all;
  text-align: left;
  user-select: all;
}

.pp-auction-copy-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #00e5ff22, #b700ff22);
  border: 1px solid #00e5ff44;
  color: #00e5ff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.pp-auction-copy-btn:hover {
  background: linear-gradient(135deg, #00e5ff33, #b700ff33);
}

.pp-auction-copy-btn.copied {
  color: #34d399;
  border-color: #34d39944;
}


