/* ============================================================
   EXAMPLE-LEAD-DETAIL PAGE — Page-specific styles only
   Base resets, fonts, container, and navbar come from style.css
   Colors reference --hubpro-* variables from style.css :root
   ============================================================ */

/* Semantic token layer — mirrors example-leads.css so both pages
   share the same tokens while loading their CSS independently. */
:root {
  --el-page-bg:        var(--hubpro-navy);
  --el-header-from:    var(--hubpro-navy-dark);
  --el-header-to:      var(--hubpro-navy);
  --el-card-bg:        rgba(33, 71, 110, 0.6);
  --el-card-border:    rgba(255, 255, 255, 0.05);
  --el-input-bg:       rgba(26, 58, 92, 0.6);
  --el-input-border:   rgba(255, 255, 255, 0.1);
  --el-divider:        rgba(255, 255, 255, 0.05);
  --el-hover-bg:       rgba(255, 255, 255, 0.02);
  --el-accent-bg:      rgba(255, 106, 0, 0.1);
  --el-c-heading:      #ffffff;
  --el-c-body:         var(--hubpro-steel);
  --el-c-label:        var(--hubpro-steel);
  --el-c-muted:        rgba(160, 179, 200, 0.6);
  --el-c-accent:       var(--hubpro-orange);
  --el-btn-pri-bg:     var(--hubpro-orange);
  --el-btn-pri-hover:  var(--hubpro-orange-dark);
  --el-btn-sec-bg:     rgba(33, 71, 110, 0.6);
  --el-btn-sec-border: rgba(255, 255, 255, 0.1);
  --el-btn-sec-color:  var(--hubpro-steel);
  --el-btn-sec-hov:    #ffffff;
  --el-btn-sec-hov-bd: rgba(255, 106, 0, 0.3);
}

body.light-mode {
  --el-page-bg:        #f9fafb;
  --el-header-from:    #ffffff;
  --el-header-to:      #f9fafb;
  --el-card-bg:        #ffffff;
  --el-card-border:    #e5e7eb;
  --el-input-bg:       #f9fafb;
  --el-input-border:   #e5e7eb;
  --el-divider:        #f3f4f6;
  --el-hover-bg:       #f9fafb;
  --el-accent-bg:      #fff7ed;
  --el-c-heading:      #111827;
  --el-c-body:         #4b5563;
  --el-c-label:        #6b7280;
  --el-c-muted:        #9ca3af;
  --el-c-accent:       #ea580c;
  --el-btn-pri-bg:     #ea580c;
  --el-btn-pri-hover:  #c2410c;
  --el-btn-sec-bg:     #ffffff;
  --el-btn-sec-border: #e5e7eb;
  --el-btn-sec-color:  #4b5563;
  --el-btn-sec-hov:    #111827;
  --el-btn-sec-hov-bd: #fb923c;
}

body { background-color: var(--el-page-bg); transition: background-color 0.3s, color 0.3s; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--hubpro-navy-dark); }
::-webkit-scrollbar-thumb { background: var(--hubpro-steel); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--hubpro-orange); }

/* ── THEME TOGGLE (fixed pill) ──────────────────────────────── */
.el-theme-toggle {
  position: fixed; top: 96px; right: 1rem; z-index: 500;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-radius: 9999px;
  background-color: var(--hubpro-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--hubpro-steel); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.el-theme-toggle:hover { color: #fff; border-color: rgba(255, 106, 0, 0.3); }
body.light-mode .el-theme-toggle { background-color: #fff; border-color: #e5e7eb; color: #4b5563; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
body.light-mode .el-theme-toggle:hover { color: #111827; border-color: #fb923c; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb-bar { background-color: var(--el-header-from); transition: background-color 0.3s; padding-top: 64px; }
@media (min-width: 1024px) { .breadcrumb-bar { padding-top: 72px; } }
.breadcrumb-inner { padding: 1rem 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; flex-wrap: wrap; }
.breadcrumb-back { display: flex; align-items: center; gap: 4px; color: var(--el-c-body); text-decoration: none; transition: color 0.2s; }
.breadcrumb-back:hover { color: #f97316; }
.breadcrumb-sep { color: var(--el-c-muted); }
.breadcrumb-item { color: var(--el-c-body); }
.breadcrumb-current { color: var(--el-c-heading); font-weight: 500; }

/* ── LEAD HEADER ────────────────────────────────────────────── */
.ld-header { background: linear-gradient(to bottom, var(--el-header-from), var(--el-header-to)); border-bottom: 1px solid var(--el-divider); transition: all 0.3s; }
.ld-header-inner { padding: 2rem 0; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .ld-header-inner { flex-direction: row; } }

.ld-badges { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge-active {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  border-radius: 9999px; border: 1px solid; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background-color: rgba(34, 197, 94, 0.1); color: var(--hubpro-green); border-color: rgba(34, 197, 94, 0.2);
}
body.light-mode .badge-active { background-color: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.badge-type-tag {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: 9999px; border: 1px solid; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background-color: var(--el-accent-bg); color: var(--el-c-accent); border-color: rgba(255, 106, 0, 0.2);
}
body.light-mode .badge-type-tag { border-color: #fed7aa; }
.badge-posted { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--el-c-body); }

.ld-title { font-family: "Oswald", sans-serif; font-size: 1.875rem; font-weight: 700; color: var(--el-c-heading); margin-bottom: 0.5rem; line-height: 1.1; transition: color 0.3s; }
@media (min-width: 768px) { .ld-title { font-size: 2.25rem; } }
.ld-subtitle { font-size: 18px; color: var(--el-c-body); margin-bottom: 1rem; }

.ld-stats-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.ld-stat-item { display: flex; align-items: center; gap: 0.5rem; }
.ld-stat-icon { width: 40px; height: 40px; background-color: var(--el-accent-bg); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--el-c-accent); }
.ld-stat-label { font-size: 12px; color: var(--el-c-label); line-height: 1.2; }
.ld-stat-value { font-family: "Oswald", sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--el-c-heading); line-height: 1.1; }

.ld-actions { display: flex; flex-direction: column; gap: 0.75rem; flex-shrink: 0; }
@media (min-width: 1024px) { .ld-actions { width: 224px; } }
.btn-full { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s; border: none; }
.btn-full-pri { background-color: var(--el-btn-pri-bg); color: #fff; }
.btn-full-pri:hover { background-color: var(--el-btn-pri-hover); }
.btn-full-sec { background-color: var(--el-btn-sec-bg); border: 1px solid var(--el-btn-sec-border); color: var(--el-btn-sec-color); font-family: "Source Sans 3", sans-serif; }
.btn-full-sec:hover { color: var(--el-btn-sec-hov); border-color: var(--el-btn-sec-hov-bd); }
.btn-full-sec.saved { background-color: var(--el-accent-bg); border-color: rgba(255, 106, 0, 0.3); color: var(--el-c-accent); }
body.light-mode .btn-full-sec.saved { border-color: #fdba74; }
.action-row-btns { display: flex; gap: 0.5rem; }
.action-row-btns .btn-full { flex: 1; padding: 0.625rem 1rem; }

/* ── MAIN CONTENT LAYOUT ────────────────────────────────────── */
.ld-main { padding: 2.5rem 0; background-color: var(--el-page-bg); transition: background-color 0.3s; }
.ld-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .ld-grid { grid-template-columns: 2fr 1fr; } }
.ld-left { display: flex; flex-direction: column; gap: 2rem; }
.ld-right { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── DETAIL CARDS ───────────────────────────────────────────── */
.detail-card { background-color: var(--el-card-bg); border: 1px solid var(--el-card-border); border-radius: 0.75rem; padding: 1.5rem; transition: background-color 0.3s, border-color 0.3s; }
.card-section-title { display: flex; align-items: center; gap: 0.5rem; font-family: "Oswald", sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--el-c-heading); margin-bottom: 1rem; }
.card-section-title svg { color: var(--el-c-accent); flex-shrink: 0; }
.detail-desc { color: var(--el-c-body); line-height: 1.7; }

.inner-card { background-color: var(--el-input-bg); border: 1px solid var(--el-card-border); border-radius: 0.5rem; padding: 1rem; margin-top: 1rem; transition: all 0.3s; }
.inner-card-title { font-size: 14px; font-weight: 600; color: var(--el-c-heading); margin-bottom: 0.5rem; }
.scope-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .scope-grid { grid-template-columns: repeat(2, 1fr); } }
.scope-item { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--el-c-body); }
.scope-check { color: var(--hubpro-green); flex-shrink: 0; }

/* ── CONTACTS ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { background-color: var(--el-input-bg); border: 1px solid var(--el-card-border); border-radius: 0.5rem; padding: 1rem; transition: all 0.3s; }
.contact-card-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.contact-avatar-person { width: 48px; height: 48px; background-color: var(--hubpro-orange); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-family: "Oswald", sans-serif; font-weight: 700; color: #fff; font-size: 18px; flex-shrink: 0; }
.contact-avatar-org { width: 48px; height: 48px; background-color: var(--hubpro-navy-light); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--el-c-label); flex-shrink: 0; }
body.light-mode .contact-avatar-org { background-color: #e5e7eb; }
.contact-name { font-size: 14px; font-weight: 600; color: var(--el-c-heading); }
.contact-role { font-size: 12px; color: var(--el-c-accent); }
.contact-role-sec { font-size: 12px; color: var(--el-c-label); }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-link { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--el-c-body); text-decoration: none; transition: color 0.2s; }
.contact-link svg { color: var(--el-c-accent); flex-shrink: 0; }
.contact-link:hover { color: #f97316; }
.contact-muted { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--el-c-muted); }
.contact-org-desc { font-size: 14px; color: var(--el-c-body); line-height: 1.6; }
.copy-btn { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--el-c-accent); background: none; border: none; cursor: pointer; margin-top: 0.75rem; padding: 0; }
.copy-btn:hover { text-decoration: underline; }

/* ── TIMELINE ───────────────────────────────────────────────── */
.timeline-wrap { position: relative; }
.timeline-line { position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background-color: rgba(255, 255, 255, 0.1); }
body.light-mode .timeline-line { background-color: #e5e7eb; }
.timeline-items { display: flex; flex-direction: column; gap: 1.5rem; }
.timeline-item { display: flex; align-items: flex-start; gap: 1rem; position: relative; }
.timeline-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; background-color: var(--hubpro-navy-light); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--el-c-label); }
body.light-mode .timeline-dot { background-color: #fff; border-color: #e5e7eb; }
.timeline-dot.deadline { background-color: rgba(255, 106, 0, 0.2); border: 2px solid var(--hubpro-orange); color: var(--el-c-accent); }
body.light-mode .timeline-dot.deadline { background-color: #fff7ed; border-color: #f97316; color: #ea580c; }
.timeline-content { padding-top: 0.5rem; }
.timeline-event { font-size: 14px; font-weight: 600; color: var(--el-c-heading); }
.timeline-event.deadline { color: var(--el-c-accent); }
.timeline-date { font-size: 12px; color: var(--el-c-label); }

/* ── SIMILAR PROJECTS ───────────────────────────────────────── */
.similar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.view-all-link { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--el-c-accent); text-decoration: none; }
.view-all-link:hover { text-decoration: underline; }
.similar-items-list { display: flex; flex-direction: column; gap: 0.75rem; }
.similar-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background-color: var(--el-input-bg); border-radius: 0.5rem; cursor: pointer; transition: background-color 0.2s; }
.similar-item:hover { background-color: var(--el-hover-bg); }
body.light-mode .similar-item { background-color: #f9fafb; }
body.light-mode .similar-item:hover { background-color: #f3f4f6; }
.similar-icon-box { width: 40px; height: 40px; background-color: var(--el-accent-bg); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--el-c-accent); }
.similar-info { flex: 1; min-width: 0; }
.similar-name { font-size: 14px; font-weight: 600; color: var(--el-c-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.similar-item:hover .similar-name { color: var(--hubpro-orange); }
.similar-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 12px; color: var(--el-c-label); margin-top: 2px; }
.similar-loc { display: flex; align-items: center; gap: 4px; }
.similar-type-badge { padding: 1px 6px; background-color: var(--el-accent-bg); color: var(--el-c-accent); border-radius: 4px; font-size: 10px; font-weight: 600; }
.similar-right { text-align: right; flex-shrink: 0; }
.similar-value { font-family: "Oswald", sans-serif; font-size: 14px; font-weight: 700; color: var(--el-c-accent); display: block; }
.similar-date { font-size: 12px; color: var(--el-c-label); }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar-sticky { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background-color: var(--el-card-bg); border: 1px solid var(--el-card-border); border-radius: 0.75rem; padding: 1.5rem; transition: all 0.3s; }
.sidebar-title { font-family: "Oswald", sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--el-c-heading); margin-bottom: 1rem; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--el-divider); }
.summary-row:last-child { border-bottom: none; }
.summary-label { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--el-c-label); }
.summary-label svg { color: var(--el-c-accent); flex-shrink: 0; }
.summary-value { font-size: 14px; font-weight: 600; color: var(--el-c-heading); }
.summary-value.status-active { color: var(--hubpro-green); }

/* ── MAP ────────────────────────────────────────────────────── */
.map-card { background-color: var(--el-card-bg); border: 1px solid var(--el-card-border); border-radius: 0.75rem; overflow: hidden; transition: all 0.3s; }
.map-area { height: 192px; background-color: rgba(42, 79, 122, 0.3); display: flex; align-items: center; justify-content: center; }
body.light-mode .map-area { background-color: #f3f4f6; }
.map-center { text-align: center; }
.map-location { font-size: 14px; color: var(--el-c-body); font-weight: 500; margin-top: 0.5rem; }
.map-county { font-size: 12px; color: var(--el-c-muted); margin-top: 4px; }
.map-footer { padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.map-label { font-size: 12px; color: var(--el-c-label); }
.directions-btn { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--el-c-accent); background: none; border: none; cursor: pointer; padding: 0; }
.directions-btn:hover { text-decoration: underline; }

/* ── TRUST CARD ──────────────────────────────────────────────── */
.trust-card { background-color: var(--el-card-bg); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: 0.75rem; padding: 1.25rem; transition: all 0.3s; }
body.light-mode .trust-card { border-color: #bbf7d0; }
.trust-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.trust-title { font-family: "Oswald", sans-serif; font-size: 1rem; font-weight: 700; color: var(--el-c-heading); }
.trust-desc { font-size: 14px; color: var(--el-c-body); line-height: 1.6; }
.trust-items { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--el-c-body); }
