/* single-project-v2.css — v1.1 Lucide icons */

/* Icon helpers */
.sp-bc-icon    { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
.sp-icon-sm    { width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.sp-phase-badge i { display: inline-block; vertical-align: middle; }

:root {
  --sp-primary: #1E3A5F;
  --sp-primary-dark: #152D4A;
  --sp-accent: #F26522;
  --sp-accent-muted: rgba(242,101,34,.1);
  --sp-bg: #F2EFE8;
  --sp-bg-light: #FDFBF7;
  --sp-bg-white: #FFFFFF;
  --sp-border: #E6E1D6;
  --sp-text-primary: #101E33;
  --sp-text-secondary: #334155;
  --sp-text-muted: #64748B;
  --sp-radius-sm: 4px;
  --sp-radius-md: 6px;
  --sp-radius-lg: 8px;
  --sp-radius-xl: 12px;
}

/* Breadcrumb bar */
.sp-breadcrumb {
  background: #FAFAF8;
  border-bottom: 1px solid var(--sp-border);
  padding: 16px 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}
.sp-breadcrumb a { color: var(--sp-text-muted); text-decoration: none; }
.sp-breadcrumb .sp-bc-current { color: var(--sp-primary); font-weight: 600; }
.sp-breadcrumb .sp-bc-sep { color: var(--sp-text-muted); }

/* Hero */
.sp-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.sp-hero__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  width: 100%; height: 100%;
}
.sp-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(248,246,240,.68) 20%, rgba(248,246,240,.96) 100%);
}
.sp-hero__content {
  position: absolute;
  bottom: 0; left: 80px;
  padding-bottom: 48px;
  display: flex; flex-direction: column; gap: 12px;
  width: 800px;
}
.sp-hero__badge {
  display: inline-flex;
  background: var(--sp-accent);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--sp-radius-sm);
  width: fit-content;
}
.sp-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: 48px; font-weight: 700;
  color: var(--sp-text-primary);
  letter-spacing: -0.8px; line-height: 1.1;
  margin: 0;
}
.sp-hero__sub {
  font-size: 16px; color: var(--sp-text-secondary); margin: 0;
}

/* Body layout */
.sp-body {
  background: var(--sp-bg);
  padding: 40px 72px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.sp-main { flex: 1; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.sp-sidebar { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }

/* Card base */
.sp-card {
  background: var(--sp-bg-white);
  border-radius: var(--sp-radius-lg);
  padding: 32px;
}

/* Summary bar */
.sp-summary-bar {
  background: var(--sp-bg-white);
  border-radius: var(--sp-radius-lg);
  display: flex;
  align-items: stretch;
}
.sp-stat {
  flex: 1; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.sp-stat__val { font-size: 22px; font-weight: 700; color: var(--sp-text-primary); line-height: 1.2; }
.sp-stat__val--accent { color: var(--sp-accent); }
.sp-stat__label { font-size: 13px; color: var(--sp-text-muted); }
.sp-stat-divider { width: 1px; height: 60px; align-self: center; background: var(--sp-border); }

/* Section header with bar */
.sp-sec-header {
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.sp-sec-bar { width: 4px; height: 20px; background: var(--sp-primary); border-radius: 2px; flex-shrink: 0; }
.sp-sec-title { font-size: 16px; font-weight: 700; color: var(--sp-text-primary); font-family: 'Inter', sans-serif; }

/* Section title h2 */
.sp-h2 { font-size: 18px; font-weight: 700; color: var(--sp-text-primary); font-family: 'Inter', sans-serif; margin: 0; }

/* Divider */
.sp-divider { height: 1px; background: var(--sp-border); width: 100%; }

/* Gallery */
.sp-gallery-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.sp-gallery-row { display: flex; gap: 12px; height: 320px; width: 100%; }
.sp-gallery-main { flex: 1; border-radius: var(--sp-radius-md); overflow: hidden; background-size: cover; background-position: center; }
.sp-gallery-thumbs { width: 220px; display: flex; flex-direction: column; gap: 12px; }
.sp-gallery-thumb { flex: 1; border-radius: var(--sp-radius-sm); overflow: hidden; background-size: cover; background-position: center; position: relative; }
.sp-gallery-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
}
.sp-gallery-thumb-overlay span:first-child { font-size: 22px; font-weight: 700; }
.sp-gallery-thumb-overlay span:last-child { font-size: 11px; opacity: .82; }

/* Gallery hover / clickable */
.sp-gallery-main[data-sp-full],
.sp-gallery-thumb[data-sp-full] { cursor: pointer; transition: filter .2s, transform .2s; }
.sp-gallery-main[data-sp-full]:hover { filter: brightness(.92); }
.sp-gallery-thumb[data-sp-full]:hover { filter: brightness(.85); transform: scale(1.03); }

/* ═══════════════════════════════════════════════════════════
   Lightbox Popup
   ═══════════════════════════════════════════════════════════ */
.sp-lb-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.sp-lb-overlay.sp-lb-active { opacity: 1; visibility: visible; }

.sp-lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Close */
.sp-lb-close {
  position: absolute; top: 20px; right: 24px; z-index: 10;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 32px; line-height: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.sp-lb-close:hover { background: rgba(255,255,255,.25); transform: scale(1.1); }

/* Counter */
.sp-lb-counter {
  position: absolute; top: 24px; left: 24px; z-index: 10;
  background: rgba(0,0,0,.55);
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 6px 16px; border-radius: 99px;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(4px);
}

/* Navigation arrows */
.sp-lb-nav {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.sp-lb-nav:hover { background: rgba(255,255,255,.28); transform: translateY(-50%) scale(1.1); }
.sp-lb-prev { left: 20px; }
.sp-lb-next { right: 20px; }

/* Image container */
.sp-lb-img-wrap {
  position: relative; z-index: 5;
  max-width: 90vw; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sp-lb-img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity .3s ease;
  opacity: 0;
  user-select: none;
  -webkit-user-select: none;
}
.sp-lb-img.sp-lb-loaded { opacity: 1; }

/* Toolbar */
.sp-lb-toolbar {
  position: absolute; bottom: 24px; left: 50%; z-index: 10;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 99px;
  padding: 6px 8px;
  display: flex; align-items: center; gap: 4px;
}
.sp-lb-tool {
  background: none; border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.sp-lb-tool:hover { background: rgba(255,255,255,.18); }
.sp-lb-zoom-label {
  color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600;
  min-width: 44px; text-align: center;
  font-family: 'Inter', monospace;
}

/* Responsive lightbox */
@media (max-width: 640px) {
  .sp-lb-nav { width: 40px; height: 40px; }
  .sp-lb-prev { left: 8px; }
  .sp-lb-next { right: 8px; }
  .sp-lb-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 26px; }
  .sp-lb-counter { top: 16px; left: 16px; font-size: 12px; padding: 4px 12px; }
  .sp-lb-toolbar { bottom: 16px; padding: 4px 6px; }
  .sp-lb-tool { width: 32px; height: 32px; }
}

/* Description content */
.sp-desc-text {
  font-size: 14px; color: var(--sp-text-secondary);
  line-height: 1.8; font-family: 'Inter', sans-serif;
  margin: 0;
}

/* Info table */
.sp-info-table {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  overflow: hidden;
  width: 100%;
}
.sp-info-row { display: flex; width: 100%; }
.sp-info-key {
  width: 220px; flex-shrink: 0;
  background: #F8F9FB;
  padding: 14px 16px;
  font-size: 13px; color: var(--sp-text-muted); font-weight: 500;
  font-family: 'Inter', sans-serif;
}
.sp-info-val {
  flex: 1;
  background: var(--sp-bg-white);
  padding: 14px 16px;
  font-size: 13px; color: var(--sp-text-primary); font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.sp-info-row:nth-child(odd) .sp-info-key,
.sp-info-row:nth-child(odd) .sp-info-val { background: #F8F9FB; }
.sp-info-row:nth-child(even) .sp-info-key,
.sp-info-row:nth-child(even) .sp-info-val { background: var(--sp-bg-white); }
.sp-status-badge {
  display: inline-flex; align-items: center;
  background: #FFF3E0; color: #E65100;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}

/* Location */
.sp-loc-desc { font-size: 14px; color: var(--sp-text-secondary); line-height: 1.7; margin: 0; }
.sp-loc-map { border-radius: var(--sp-radius-md); overflow: hidden; height: 280px; background: #e0e0e0; }
.sp-loc-map iframe, .sp-loc-map #sp-map-el { width: 100%; height: 100%; border: 0; }
.sp-loc-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-loc-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--sp-bg-light);
  border-radius: var(--sp-radius-sm);
  padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--sp-text-primary);
}

/* Amenities grid */
.sp-amen-grid { display: flex; flex-direction: column; gap: 12px; }
.sp-amen-row { display: flex; gap: 12px; }
.sp-amen-card {
  flex: 1;
  background: var(--sp-bg);
  border-radius: var(--sp-radius-md);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.sp-amen-icon {
  width: 44px; height: 44px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.sp-amen-card-title { font-size: 14px; font-weight: 600; color: var(--sp-text-primary); margin: 0; }
.sp-amen-card-desc { font-size: 12px; color: var(--sp-text-muted); line-height: 1.6; margin: 0; }
.sp-amen-banner { border-radius: var(--sp-radius-md); overflow: hidden; height: 200px; background-size: cover; background-position: center; }

/* Developer */
.sp-dev-content { display: flex; gap: 32px; }
.sp-dev-logo-col { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sp-dev-logo { width: 180px; height: 120px; border-radius: var(--sp-radius-md); overflow: hidden; background-size: cover; background-position: center; }
.sp-dev-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sp-accent-muted); color: var(--sp-accent);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 99px;
}
.sp-dev-text-col { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sp-dev-name { font-size: 20px; font-weight: 700; color: var(--sp-text-primary); margin: 0; }
.sp-dev-desc { font-size: 14px; color: var(--sp-text-secondary); line-height: 1.8; margin: 0; }
.sp-dev-stats { display: flex; gap: 24px; }
.sp-dev-stat { display: flex; flex-direction: column; gap: 4px; }
.sp-dev-stat-val { font-size: 22px; font-weight: 700; color: var(--sp-accent); }
.sp-dev-stat-label { font-size: 12px; color: var(--sp-text-muted); }

/* Design / Floor plan */
.sp-des-tabs {
  display: flex;
  background: var(--sp-bg-light);
  border-radius: var(--sp-radius-sm);
  padding: 4px;
}
.sp-des-tab {
  flex: 1; padding: 8px 20px;
  border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--sp-text-muted);
  border-radius: var(--sp-radius-sm);
  font-family: 'Inter', sans-serif;
  text-align: center;
}
.sp-des-tab.active { background: var(--sp-primary); color: #fff; font-weight: 600; }
.sp-des-img-row { display: flex; gap: 16px; }
.sp-des-main-img { flex: 1; height: 300px; border-radius: var(--sp-radius-md); overflow: hidden; background-size: cover; background-position: center; }
.sp-des-thumbs { width: 140px; display: flex; flex-direction: column; gap: 10px; }
.sp-des-thumb { flex: 1; height: 90px; border-radius: 6px; overflow: hidden; background-size: cover; background-position: center; cursor: pointer; }

/* Policy */
.sp-pol-cards { display: flex; gap: 16px; }
.sp-pol-card { flex: 1; padding: 20px; border-radius: var(--sp-radius-md); display: flex; flex-direction: column; gap: 12px; }
.sp-pol-card-top { display: flex; align-items: center; gap: 10px; }
.sp-pol-card-title { font-size: 14px; font-weight: 700; }
.sp-pol-card-desc { font-size: 12px; color: var(--sp-text-secondary); line-height: 1.6; margin: 0; }
.sp-pol-table-title {
  display: flex; align-items: center; gap: 8px;
}
.sp-pol-table-title-label {
  font-size: 12px; font-weight: 600; color: var(--sp-text-muted);
  white-space: nowrap; flex-shrink: 0;
}
.sp-pol-table {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
}
.sp-pol-table-row { display: flex; }
.sp-pol-table-row.header { background: var(--sp-primary); }
.sp-pol-table-row.header .sp-pol-table-cell { color: #fff; font-weight: 700; font-size: 12px; }
.sp-pol-table-cell { flex: 1; padding: 10px 16px; font-size: 13px; font-family: 'Inter', sans-serif; }
.sp-pol-table-row.alt { background: #F8F9FB; }
.sp-pol-pct { color: var(--sp-primary); font-weight: 700; }
.sp-pol-note { color: var(--sp-text-muted); font-size: 12px; }

/* Progress */
.sp-progress { display: flex; flex-direction: column; gap: 20px; }
.sp-phase { display: flex; flex-direction: column; gap: 8px; }
.sp-phase-header { display: flex; justify-content: space-between; align-items: center; }
.sp-phase-label { font-size: 13px; font-weight: 600; color: var(--sp-text-primary); }
.sp-phase-pct { font-size: 13px; font-weight: 700; }
.sp-phase-track { background: var(--sp-border); border-radius: 5px; height: 10px; position: relative; overflow: hidden; }
.sp-phase-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 5px; }
.sp-phase-meta { display: flex; align-items: center; gap: 12px; }
.sp-phase-date { font-size: 12px; color: var(--sp-text-muted); }
.sp-phase-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 99px;
}

/* Sidebar contact form */
.sp-contact-box {
  background: var(--sp-bg-white);
  border-radius: var(--sp-radius-xl);
  padding: 32px;
  border: 2px solid var(--sp-accent);
  display: flex; flex-direction: column; gap: 16px;
}
.sp-contact-title { font-size: 16px; font-weight: 700; color: var(--sp-text-primary); margin: 0; font-family: 'Inter', sans-serif; }
.sp-contact-subtitle { font-size: 13px; color: var(--sp-text-muted); margin: 0; }
.sp-form-input {
  width: 100%; height: 46px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 0 14px;
  font-size: 13px; color: var(--sp-text-primary);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  background: #fff;
  outline: none;
}
.sp-form-input:focus { border-color: var(--sp-accent); }
.sp-form-select {
  width: 100%; height: 46px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 0 14px;
  font-size: 13px; color: var(--sp-text-primary);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.sp-form-submit {
  width: 100%; height: 50px;
  background: var(--sp-accent);
  color: #fff;
  border: none; border-radius: var(--sp-radius-sm);
  font-size: 15px; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s;
}
.sp-form-submit:hover { background: #d4571e; }
.sp-contact-hotline { font-size: 12px; color: var(--sp-text-muted); text-align: center; }

/* Sidebar location box */
.sp-loc-box {
  background: var(--sp-bg-white);
  border-radius: var(--sp-radius-xl);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.sp-loc-box-title { font-size: 15px; font-weight: 700; color: var(--sp-text-primary); margin: 0; font-family: 'Inter', sans-serif; }
.sp-loc-box-map { height: 200px; border-radius: var(--sp-radius-sm); overflow: hidden; background: #e0e0e0; }
.sp-loc-box-map iframe, .sp-loc-box-map #sp-map-sidebar { width: 100%; height: 100%; border: 0; }
.sp-loc-box-addr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sp-text-secondary); }
.sp-loc-box-addr i { color: var(--sp-accent); }

/* Responsive */
@media (max-width: 1024px) {
  .sp-body { padding: 24px 24px; flex-direction: column; }
  .sp-sidebar { width: 100%; position: static; }
  .sp-hero__content { left: 24px; width: calc(100% - 48px); }
  .sp-breadcrumb { padding: 14px 24px; }
  .sp-hero__title { font-size: 32px; }
  .sp-pol-cards { flex-direction: column; }
  .sp-dev-content { flex-direction: column; }
  .sp-amen-row { flex-direction: column; }
}
@media (max-width: 640px) {
  .sp-summary-bar { flex-wrap: wrap; }
  .sp-stat-divider { display: none; }
  .sp-stat { width: 50%; }
  .sp-gallery-thumbs { display: none; }
  .sp-des-thumbs { display: none; }
  .sp-des-img-row { flex-direction: column; }
}
