/* ============================================================
   PropertyPulse public.css v2 — modern, matches admin panel
============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.55;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
a { color: #0f172a; text-decoration: none; transition: color 0.15s; }
a:hover { color: #2563eb; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: #0f172a; margin: 0; }
.pub-muted { color: #64748b; }

/* === HEADER === */
.pub-header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid #e2e8f0;
  z-index: 100;
  padding: 14px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.pub-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: #0f172a; letter-spacing: -0.01em; }
.pub-logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; letter-spacing: -0.02em;
}
.pub-nav { display: flex; gap: 26px; font-size: 13.5px; }
.pub-nav a { color: #475569; font-weight: 500; }
.pub-nav a:hover { color: #0f172a; }
.pub-cta { display: flex; gap: 8px; align-items: center; }

.pub-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  border: 0.5px solid transparent;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
}
.pub-btn-primary {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: #fff;
}
.pub-btn-primary:hover { color: #fff; background: linear-gradient(135deg, #1e3a8a, #172554); }
.pub-btn-outline { background: #fff; color: #334155; border-color: #e2e8f0; }
.pub-btn-outline:hover { background: #f8fafc; color: #0f172a; }
.pub-btn-light { background: rgba(255,255,255,0.12); color: #fff; border: 0.5px solid rgba(255,255,255,0.25); }
.pub-btn-light:hover { background: rgba(255,255,255,0.2); color: #fff; }
.pub-btn-white { background: #fff; color: #0f172a; }
.pub-btn-white:hover { background: #f8fafc; color: #0f172a; }
.pub-btn-gold, .pub-btn-accent { background: #f59e0b; color: #fff; }
.pub-btn-gold:hover, .pub-btn-accent:hover { background: #d97706; color: #fff; }

/* === HERO === */
.pub-hero {
  position: relative; min-height: 520px;
  overflow: hidden; background: #0f172a; color: #fff;
  padding-bottom: 80px;
}
.pub-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.pub-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.85) 100%);
}
.pub-hero-content {
  position: relative; max-width: 1100px;
  margin: 0 auto; padding: 80px 28px 0;
  text-align: center; z-index: 2;
}
.pub-hero h1 {
  font-size: 44px; color: #fff; margin: 0 0 14px;
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
}
.pub-hero-sub {
  font-size: 16px; color: #cbd5e1; margin: 0 0 28px; font-weight: 400;
}
.pub-hero-features { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.pub-hero-feature strong {
  display: block; font-size: 22px;
  color: #fff; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pub-hero-feature span { color: #94a3b8; font-size: 12px; }

/* === SEARCH BAR === */
.pub-search {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 940px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.15);
  z-index: 4; overflow: hidden;
  border: 0.5px solid #e2e8f0;
}
.pub-search-tabs { display: flex; border-bottom: 0.5px solid #e2e8f0; background: #fafbfc; }
.pub-search-tabs button {
  flex: 1; padding: 12px; border: 0; background: transparent;
  cursor: pointer; font-size: 12.5px; font-weight: 500; color: #64748b;
  font-family: inherit;
}
.pub-search-tabs button.active { background: #fff; color: #0f172a; font-weight: 600; border-bottom: 2px solid #2563eb; margin-bottom: -0.5px; }
.pub-search-body { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 0; }
.pub-search-body > * {
  background: #fff; padding: 14px 16px;
  border: 0; border-right: 0.5px solid #e2e8f0;
  font-family: inherit; font-size: 13.5px; outline: none;
  color: #0f172a;
}
.pub-search-body > *:last-child { border-right: 0; }
.pub-search-body button {
  background: #0f172a; color: #fff;
  padding: 0 28px; font-weight: 600; cursor: pointer;
  font-size: 13px; letter-spacing: 0.2px;
}
.pub-search-body button:hover { background: #1e293b; }
@media(max-width: 760px) { .pub-search-body { grid-template-columns: 1fr; } }

/* === SECTIONS === */
.pub-section { padding: 64px 28px; }
.pub-container { max-width: 1200px; margin: 0 auto; }
.pub-section-head { text-align: center; margin-bottom: 40px; }
.pub-section-eyebrow {
  font-size: 11px; color: #2563eb;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 10px; font-weight: 600;
}
.pub-section-head h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.03em; }
.pub-section-head p { color: #64748b; font-size: 15px; max-width: 600px; margin: 0 auto; }
.pub-section.alt { background: #f8fafc; }

/* === STATS STRIP === */
.pub-stats { padding: 40px 28px; border-bottom: 0.5px solid #e2e8f0; background: #fff; }
.pub-stats-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.pub-stat strong { display: block; font-size: 28px; color: #0f172a; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pub-stat span { color: #64748b; font-size: 12px; font-weight: 500; }

/* === PROPERTY CARDS === */
.pub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pub-card {
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid #e2e8f0;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pub-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.08); color: inherit; }
.pub-card-image {
  position: relative; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  overflow: hidden;
}
.pub-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.95); color: #0f172a;
  padding: 3px 10px; border-radius: 10px;
  font-size: 10.5px; font-weight: 600;
}
.pub-card-price {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(15,23,42,0.85); color: #fff;
  padding: 4px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pub-card-body { padding: 14px 16px; }
.pub-card-body h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.pub-card-meta { font-size: 12px; color: #64748b; }

/* === CTA / FEATURE BLOCKS === */
.pub-cta-block {
  padding: 48px 40px;
  background: #f8fafc;
  border: 0.5px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
  margin: 48px auto;
  max-width: 780px;
}
.pub-cta-block h2 { font-size: 26px; margin-bottom: 10px; letter-spacing: -0.02em; }
.pub-cta-block p { color: #64748b; font-size: 15px; margin-bottom: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* === FEATURE GRID === */
.pub-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pub-feature {
  background: #fff; border: 0.5px solid #e2e8f0; border-radius: 12px;
  padding: 20px; text-align: left;
}
.pub-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #eff6ff; color: #1e40af;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.pub-feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.pub-feature p { color: #64748b; font-size: 13px; margin: 0; line-height: 1.5; }

/* === FOOTER === */
.pub-footer { background: #0f172a; color: #94a3b8; padding: 48px 28px 20px; }
.pub-footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.pub-footer h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.pub-footer a { color: #cbd5e1; font-size: 13px; display: block; margin-bottom: 6px; }
.pub-footer a:hover { color: #fff; }
.pub-footer-bottom { max-width: 1100px; margin: 36px auto 0; padding-top: 20px; border-top: 0.5px solid rgba(255,255,255,0.08); font-size: 12px; color: #64748b; text-align: center; }
@media(max-width: 760px) { .pub-footer-grid { grid-template-columns: 1fr; } }

/* === PROPERTY DETAIL === */
.pub-prop-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding: 32px 0; }
.pub-prop-gallery { aspect-ratio: 16/10; background: linear-gradient(135deg, #cbd5e1, #94a3b8); border-radius: 12px; }
.pub-prop-price { font-size: 32px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pub-prop-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.pub-prop-spec-item { background: #f8fafc; border-radius: 10px; padding: 12px; text-align: center; }
.pub-prop-spec-item strong { display: block; font-size: 18px; color: #0f172a; font-weight: 600; margin-bottom: 2px; }
.pub-prop-spec-item span { font-size: 11px; color: #64748b; }

/* === FORM === */
.pub-form {
  background: #fff; border: 0.5px solid #e2e8f0; border-radius: 12px;
  padding: 24px;
}
.pub-form label { display: block; font-size: 12px; color: #64748b; font-weight: 500; margin-bottom: 4px; }
.pub-form input, .pub-form select, .pub-form textarea {
  width: 100%; padding: 9px 12px;
  border: 0.5px solid #e2e8f0; border-radius: 8px;
  font-size: 13.5px; font-family: inherit; margin-bottom: 12px;
  box-sizing: border-box; background: #fff;
}
.pub-form input:focus, .pub-form select:focus, .pub-form textarea:focus {
  outline: 0; border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
