:root {
  --blue: #0071e3;
  --blue-dark: #0068d1;
  --black: #1d1d1f;
  --gray: #6e6e73;
  --gray-light: #86868b;
  --bg-alt: #f5f5f7;
  --white: #ffffff;
  --line: #d2d2d7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  line-height: 1.5;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

p { color: var(--gray); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 1.02rem;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: scale(1.03); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary { background: var(--black); color: var(--white); }
.btn-secondary:hover { background: #000; }

.btn-text {
  background: none;
  color: var(--blue);
  padding: 13px 8px;
  font-weight: 400;
}
.btn-text:hover { color: var(--blue-dark); transform: none; }

.btn-block { display: block; width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}
.header-nav a:hover { color: var(--gray); }
.header-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 7px 18px;
  border-radius: 980px;
  font-size: 0.88rem !important;
}
.header-cta:hover { background: var(--blue-dark); }

/* Hero */
.hero {
  padding: 150px 22px 100px;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--gray-light); }
.hero-sub {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--gray);
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Trust bar */
.trust-bar { background: var(--bg-alt); padding: 26px 22px; }
.trust-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
}
.trust-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-icon { font-size: 1.1rem; }

/* Listings */
.listings { padding: 120px 22px; max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.025em; margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; }

.photo-count-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.mini-card {
  background: var(--bg-alt);
  border-radius: 22px;
  overflow: hidden;
}
.mini-photo {
  position: relative;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}
.mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mini-photo:hover .mini-img { transform: scale(1.06); }
.mini-photo.placeholder {
  height: 200px;
  background: linear-gradient(135deg, #e8e8ed, #d9d9de);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ph-icon { font-size: 2.4rem; opacity: 0.6; }
.ph-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mini-body { padding: 30px 32px; }
.mini-body h3 { font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.mini-meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 12px; }
.mini-price {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.mini-price span { font-size: 0.95rem; font-weight: 400; color: var(--gray); }

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 13px;
  border-radius: 980px;
  margin-bottom: 14px;
}
.status-available { background: #d1f5df; color: #0a7c3f; }
.status-remodel { background: #fde8cc; color: #a85e00; }
.status-occupied { background: #e4e4e9; color: var(--gray); }

/* Why us */
.why-us { background: var(--black); padding: 120px 22px; }
.why-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.why-inner h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 70px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 48px;
  text-align: left;
}
.feature-icon { font-size: 2rem; margin-bottom: 18px; }
.feature h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature p { color: #a1a1a6; font-size: 0.95rem; line-height: 1.55; }

/* Apply section */
.apply-section { background: var(--bg-alt); padding: 120px 22px; }
.apply-inner { max-width: 620px; margin: 0 auto; }
.apply-head { text-align: center; margin-bottom: 48px; }
.apply-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.025em; margin-bottom: 16px; }
.apply-head p { font-size: 1.08rem; }

.apply-form {
  background: var(--white);
  padding: 44px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.apply-form label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 18px;
  margin-bottom: 4px;
}
.apply-form input,
.apply-form select,
.apply-form textarea {
  font-family: var(--font);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
  background: var(--white);
  color: var(--black);
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.apply-form button { margin-top: 26px; }
.form-disclaimer { font-size: 0.8rem; color: var(--gray-light); text-align: center; margin-top: 14px; }

.form-success {
  background: var(--white);
  padding: 56px 44px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.form-success h3 { margin-bottom: 10px; font-size: 1.4rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  padding: 6px 16px;
  border-radius: 980px;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  color: var(--gray);
  text-align: center;
  padding: 56px 22px;
  border-top: 1px solid var(--line);
}
.footer-inner .logo { display: inline-block; margin-bottom: 12px; color: var(--black); }
.footer-inner p { font-size: 0.92rem; }
.footer-phone {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  margin: 14px 0;
}
.footer-copy { font-size: 0.8rem; margin-top: 20px; color: var(--gray-light); }

/* Responsive */
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-media { min-height: 280px; }
  .showcase-text { padding: 40px 32px; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 22px 70px; }
  .header-nav { gap: 14px; }
  .logo { font-size: 0.8rem; }
  .header-nav a { font-size: 0.8rem; }
  .header-cta { padding: 6px 12px; }
  .why-us, .listings, .apply-section { padding-left: 20px; padding-right: 20px; }
  .apply-form { padding: 30px 24px; }
}
