:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --dark: #0a0a0f;
  --dark2: #12121a;
  --dark3: #1a1a26;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --accent: #4c7bc9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  padding: 0 2.5rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title span { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.btn {
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border: 2px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid rgba(201,168,76,0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  transform: translateY(-2px);
}

/* ── SECTION HEADERS ── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 3rem;
  border-radius: 2px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  position: relative;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
}

.photo-frame svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%);
}

.photo-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
}

.photo-corner.tl { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.photo-corner.br { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-content h3 {
  font-size: 1rem;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: border-color 0.2s;
}

.highlight-item:hover { border-color: rgba(201,168,76,0.3); }

.contact-line {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-line strong { color: var(--gold); }

/* ── PARTNERS ── */
#partners { background: var(--dark2); max-width: 100%; }
#partners > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
#partners section { padding: 6rem 2.5rem; }

.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.partner-card {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.partner-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.partner-card:hover::before { opacity: 1; }

.partner-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.partner-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.partner-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.partner-link {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── PORTFOLIO ── */
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.portfolio-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.portfolio-count span { color: var(--gold); font-weight: 700; }

/* Rental properties list */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 5rem;
}

.rental-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rental-card:hover {
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.03);
}

.rental-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.6;
}

.rental-address {
  font-size: 0.9rem;
  font-weight: 500;
}

.rental-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── PROJECTS (Before/After) ── */
.projects-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.projects-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark2);
  display: flex;
}

.project-thumb img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.project-thumb .thumb-label {
  position: absolute;
  bottom: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.7);
  padding: 3px 8px;
  border-radius: 2px;
  color: #fff;
}

.project-thumb .thumb-label.before { left: 8px; }
.project-thumb .thumb-label.after { right: 8px; }

.project-thumb .divider-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(201,168,76,0.6);
  z-index: 2;
}

.project-info {
  padding: 1.25rem 1.5rem;
}

.project-address {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-photo-count {
  color: var(--gold);
  font-size: 0.75rem;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.lightbox-title {
  font-size: 1rem;
  font-weight: 600;
}

.lightbox-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.lightbox-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover { color: #fff; }

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
  overflow: hidden;
}

.lightbox-panel {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

.lightbox-panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox-panel img {
  max-width: 100%;
  max-height: calc(100% - 2rem);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.lb-nav-btn {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.lb-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lb-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: center;
}

.lb-counter span { color: var(--gold); }

/* ── MAP ── */
#portfolio-map {
  width: 100%;
  height: 560px;
  background: var(--dark2);
  position: relative;
  z-index: 1;
}

/* Override Leaflet for dark theme */
.leaflet-container {
  background: #0d0d14;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.leaflet-popup-content-wrapper {
  background: #1a1a26 !important;
  border: 1px solid rgba(201,168,76,0.3) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
  color: #ffffff !important;
}

.leaflet-popup-tip {
  background: #1a1a26 !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  color: #ffffff !important;
}

.map-popup-address {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff !important;
}

.map-popup-city {
  font-size: 0.8rem;
  color: #c9a84c !important;
  margin-top: 4px;
}

.leaflet-control-zoom a {
  background: #1a1a26 !important;
  color: #c9a84c !important;
  border-color: rgba(201,168,76,0.2) !important;
}

.leaflet-control-zoom a:hover {
  background: #252535 !important;
}

.leaflet-control-attribution {
  background: rgba(10,10,15,0.7) !important;
  color: #555 !important;
  font-size: 0.65rem !important;
}

.leaflet-control-attribution a { color: #777 !important; }

/* Cluster styles */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background-clip: padding-box;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(201,168,76,0.85) !important;
  color: #0a0a0f !important;
  font-weight: 700;
  font-size: 0.8rem;
}

.marker-cluster-small { background-color: rgba(201,168,76,0.2) !important; }
.marker-cluster-medium { background-color: rgba(201,168,76,0.25) !important; }
.marker-cluster-large { background-color: rgba(201,168,76,0.3) !important; }

.gold-cluster {
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-cluster .cluster-inner {
  background: rgba(201,168,76,0.9);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.8rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  #portfolio-map { height: 380px; }
}
[data-phone]::after { content: attr(data-phone); }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer strong { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  #bg-canvas { display: none; }

  nav { padding: 1rem 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark2);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  section { padding: 4rem 1.25rem; }
  #hero { padding: 0 1.25rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .photo-frame { aspect-ratio: 1/1; max-width: 180px; margin: 0 auto; }

  .photo-frame img { object-position: center top; }

  .highlights { grid-template-columns: 1fr; }

  .partners-inner { padding: 4rem 1.25rem; }
  .partners-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }
  .rental-grid { grid-template-columns: 1fr; }

  .lightbox-body {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .lightbox-panel { max-width: 100%; }

  .portfolio-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .contact-line { flex-direction: column; gap: 0.5rem; }
}
