/* =========================================
   DP Art Residence — Modern Redesign
   ========================================= */

:root {
  --color-primary: #1f6f43;
  --color-primary-dark: #155030;
  --color-primary-light: #2d8a55;
  --color-accent: #f5a623;
  --color-accent-dark: #d98e10;
  --color-dark: #0f1c2e;
  --color-text: #1a2b42;
  --color-muted: #5b6b80;
  --color-light: #f6f8fa;
  --color-border: #e4e8ee;
  --color-white: #ffffff;
  --color-success: #2d8a55;
  --shadow-sm: 0 2px 8px rgba(15, 28, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 28, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 28, 46, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.icon-sm { font-size: 18px !important; }
.icon-lg { font-size: 30px !important; }

html { scroll-behavior: smooth; }

/* ---------- Animations ---------- */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Header slides down on load */
.site-header {
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.brand { animation: fadeIn 0.8s 0.3s ease both; }
.nav a { animation: fadeUp 0.5s ease both; }
.nav a:nth-child(1) { animation-delay: 0.35s; }
.nav a:nth-child(2) { animation-delay: 0.42s; }
.nav a:nth-child(3) { animation-delay: 0.49s; }
.nav a:nth-child(4) { animation-delay: 0.56s; }
.nav a:nth-child(5) { animation-delay: 0.63s; }
.header-cta > * { animation: fadeUp 0.5s 0.6s ease both; }

/* Hero staggered entrance */
.hero-eyebrow { animation: fadeUp 0.7s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero h1 { animation: fadeUp 0.8s 0.55s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero p { animation: fadeUp 0.8s 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-actions { animation: fadeUp 0.8s 0.85s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-stats { animation: fadeUp 0.8s 1s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-eyebrow .dot { animation: pulse 2s ease-in-out infinite; }

/* Page hero entrance */
.page-hero h1 { animation: fadeUp 0.7s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both; }
.page-hero p { animation: fadeUp 0.7s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both; }
.page-hero .breadcrumb { animation: fadeUp 0.7s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* Button micro-interactions */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::after { transform: translateX(100%); }

/* Card lift refinement */
.apartment-card, .feature-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}


body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 28, 46, 0.08);
  background: rgba(255, 255, 255, 0.98);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--color-dark);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.brand-text small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: -2px;
}
.brand-break { display: none; }
.brand-text { white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
}
.nav a:hover, .nav a.active { color: var(--color-primary); background: rgba(31, 111, 67, 0.07); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.header-phone svg { width: 18px; height: 18px; color: var(--color-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px auto;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero .container { max-width: var(--container); padding-left: 24px; padding-right: 24px; margin: 0 auto; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 28, 46, 0.78) 0%, rgba(31, 111, 67, 0.55) 100%),
    url('../DP%20Art%20Residence/225118333.jpg') center/cover;
  z-index: -1;
}
.hero-content { max-width: var(--container); width: 100%; }
.hero-content h1, .hero-content > .hero-eyebrow, .hero-content > .hero-actions, .hero-content > .hero-stats { max-width: 760px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--color-accent); }
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  max-width: 560px;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
}
.hero-stat span { font-size: 13px; opacity: 0.85; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.section-subtitle { color: var(--color-muted); font-size: 1.05rem; }

/* ---------- Apartments Cards ---------- */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.apartment-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.apartment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.apartment-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-light);
}
.apartment-slider { position: absolute; inset: 0; display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.apartment-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.apartment-card:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: white; transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.slider-dot.active { background: white; width: 22px; border-radius: 4px; }
.apartment-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.apartment-card { position: relative; cursor: pointer; }
.apartment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.apartment-card .apartment-footer .btn { position: relative; z-index: 2; }
.apartment-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: white;
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.apartment-rating {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-primary);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.apartment-body { padding: 26px; }
.apartment-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.apartment-location svg { width: 14px; height: 14px; }
.apartment-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-dark);
}
.apartment-card p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.apartment-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-light);
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-text);
  font-weight: 500;
}
.feature-tag svg { width: 14px; height: 14px; color: var(--color-primary); }
.apartment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.apartment-price { color: var(--color-muted); font-size: 13px; }
.apartment-price strong { display: block; color: var(--color-dark); font-size: 1.4rem; font-weight: 800; }

/* ---------- Features Section ---------- */
.features-section { background: var(--color-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  padding: 32px 26px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(31, 111, 67, 0.1);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--color-muted); font-size: 14px; }

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}
.about-content p { color: var(--color-muted); margin-bottom: 16px; }
.about-list { list-style: none; margin: 24px 0; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-weight: 500;
}
.about-list .material-symbols-outlined {
  color: var(--color-primary);
  flex-shrink: 0;
  font-size: 22px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta-section p { font-size: 1.1rem; opacity: 0.92; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-outline { color: white; border-color: white; }
.cta-section .btn-outline:hover { background: white; color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand { font-size: 24px; font-weight: 800; color: white; margin-bottom: 14px; }
.footer-col h5 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 18px; letter-spacing: 1px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #0f1c2e 0%, #1f6f43 100%);
  color: white;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.page-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 14px;
  opacity: 0.85;
  margin-top: 20px;
}
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- Apartment Detail Page ---------- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 50px;
}
.gallery > div {
  background: var(--color-light);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery > div:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery > div:hover img { transform: scale(1.05); }
.gallery-more {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 28, 0.94);
  z-index: 1000;
  display: none;
  flex-direction: column;
  animation: fadeIn 0.25s ease;
}
.lightbox.open { display: flex; }
.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}
.lightbox-counter { opacity: 0.85; }
.lightbox-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 80px;
  overflow: hidden;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  z-index: 2;
}
.lightbox-nav:hover { background: white; transform: translateY(-50%) scale(1.08); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }
.lightbox-nav .material-symbols-outlined { font-size: 28px; }

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  padding: 16px 28px 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: center;
}
.lightbox-thumb {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.lightbox-thumb.active { opacity: 1; border-color: white; }
.lightbox-thumb:hover { opacity: 1; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery > div { cursor: pointer; }

@media (max-width: 760px) {
  .lightbox-stage { padding: 0 12px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-thumbs { padding: 12px; }
  .lightbox-thumb { width: 60px; height: 42px; }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}
.detail-main h2 { font-size: 1.8rem; margin-bottom: 12px; font-weight: 800; letter-spacing: -0.5px; }
.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.rating-badge {
  background: var(--color-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
}
.detail-section { padding: 30px 0; border-bottom: 1px solid var(--color-border); }
.detail-section h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.amenity svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }

.booking-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.booking-price { font-size: 2rem; font-weight: 800; color: var(--color-dark); }
.booking-price small { font-size: 14px; font-weight: 500; color: var(--color-muted); }
.booking-info { color: var(--color-muted); font-size: 14px; margin: 6px 0 22px; }
.booking-meta { display: grid; gap: 12px; margin-bottom: 22px; }
.booking-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 12px 14px;
  background: var(--color-light);
  border-radius: 10px;
}
.booking-meta-item strong { color: var(--color-dark); white-space: nowrap; flex-shrink: 0; margin-left: 12px; }

/* ---------- Inquiry Form (sidebar) ---------- */
.inquiry-form { display: grid; gap: 12px; margin-bottom: 18px; }
.inquiry-title { font-size: 1.15rem; font-weight: 700; color: var(--color-dark); margin-bottom: 2px; }
.inquiry-sub { font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }
.inquiry-form .form-group { margin: 0; }
.inquiry-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.inquiry-form input, .inquiry-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border 0.2s;
}
.inquiry-form input:focus, .inquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 67, 0.1);
}
.inquiry-form textarea { resize: vertical; min-height: 80px; }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Form submission banner */
.dpar-form-msg {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  line-height: 1.4;
}
.dpar-form-msg.success {
  display: block;
  background: rgba(31, 111, 67, 0.1);
  color: #1f6f43;
  border: 1px solid rgba(31, 111, 67, 0.25);
}
.dpar-form-msg.error {
  display: block;
  background: rgba(220, 53, 69, 0.08);
  color: #b1273b;
  border: 1px solid rgba(220, 53, 69, 0.25);
}
.dpar-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Booking Widget (HBook mockup) ---------- */
.booking-widget {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.booking-date-field {
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.booking-date-field:first-child { border-right: 1.5px solid var(--color-border); }
.booking-date-field:hover { background: var(--color-light); }
.booking-date-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.booking-date-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 15px;
  padding: 0;
  outline: none;
  cursor: pointer;
}
.booking-guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
}
.booking-guests label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
}
.booking-guests-value { font-weight: 600; color: var(--color-dark); }
.guest-controls { display: flex; align-items: center; gap: 8px; }
.guest-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: white;
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.guest-btn:hover { border-color: var(--color-primary); background: var(--color-primary); color: white; }
.guest-count { min-width: 20px; text-align: center; font-weight: 700; }

.booking-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}
.booking-total span { color: var(--color-muted); font-size: 14px; }
.booking-total strong { font-size: 1.3rem; color: var(--color-dark); }

.booking-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 12px;
  justify-content: center;
}
.booking-note .material-symbols-outlined { font-size: 16px; color: var(--color-success); }

/* ---------- Availability Calendar ---------- */
.availability-section { background: var(--color-light); }
.calendar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.calendar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calendar-header h4 { font-size: 1rem; font-weight: 700; }
.calendar-nav {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.calendar-nav:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  padding: 6px 0;
}
.calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.calendar-day.empty { visibility: hidden; }
.calendar-day.available { color: var(--color-dark); }
.calendar-day.available:hover { background: var(--color-primary); color: white; }
.calendar-day.booked {
  color: #c8c8c8;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #f3f3f3;
}
.calendar-day.today {
  border: 2px solid var(--color-primary);
  font-weight: 700;
}
.calendar-day.selected {
  background: var(--color-primary);
  color: white;
  font-weight: 700;
}
.calendar-day.in-range {
  background: rgba(31, 111, 67, 0.12);
  color: var(--color-primary-dark);
}
.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--color-muted);
  justify-content: center;
  flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; }
.legend-dot.available { background: white; border: 1.5px solid var(--color-border); }
.legend-dot.booked { background: #f3f3f3; border: 1.5px solid #e0e0e0; }
.legend-dot.selected { background: var(--color-primary); }

@media (max-width: 760px) {
  .calendar-wrap { grid-template-columns: 1fr; padding: 20px; }
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--color-light);
  padding: 36px;
  border-radius: var(--radius-lg);
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 46px;
  height: 46px;
  background: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 14px; font-weight: 600; color: var(--color-muted); margin-bottom: 4px; }
.contact-item p { font-size: 16px; font-weight: 600; color: var(--color-dark); }

.contact-form { display: grid; gap: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 67, 0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.map-wrap {
  margin-top: 50px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: block; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-text { line-height: 1.15; white-space: normal; }
  .brand-text small { display: none; }
  .brand-break { display: inline; }
  .header-inner { padding: 12px 18px; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 10px 16px; font-size: 14px; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 14px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav.open a { width: 100%; }
  .apartments-grid, .features-grid, .about-grid, .detail-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  section { padding: 60px 0; }
  .hero { min-height: auto; padding: 130px 0 60px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gallery { height: 360px; grid-template-columns: 1fr 1fr; }
  .gallery > div:first-child { grid-column: 1 / 3; grid-row: 1; }
  .booking-card { position: static; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    flex: 0 0 auto;
    padding: 14px 18px;
    font-size: 15px;
    white-space: normal;
    text-align: center;
  }
  .btn-lg { padding: 14px 18px; font-size: 15px; }
  .amenities-grid { grid-template-columns: 1fr; }
  .gallery { height: 260px; gap: 6px; }
  .hero-stat strong { font-size: 1.5rem; }
  .hero { padding: 110px 0 50px; min-height: auto; }
  .hero h1 { font-size: 2rem !important; letter-spacing: -0.5px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 36px; }
  .page-hero { padding: 110px 0 50px; }
  .page-hero h1 { font-size: 1.7rem; word-break: break-word; }
  .page-hero p { font-size: 14px; padding: 0 8px; }
  .section-title { font-size: 1.5rem !important; }
  .booking-card { padding: 20px; }
  .inquiry-form .form-row { grid-template-columns: 1fr; }
  .detail-rating { flex-wrap: wrap; }
  .gallery-more { padding: 8px 12px; font-size: 12px; bottom: 8px; right: 8px; }
  .apartment-body { padding: 20px; }
  .apartment-card h3 { font-size: 1.2rem; }
  .apartment-features { gap: 6px; }
  .feature-tag { padding: 5px 10px; font-size: 11px; }
  .contact-info-card { padding: 24px; }
  .calendar-legend { font-size: 11px; gap: 12px; }
  section { padding: 50px 0; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .header-cta .btn { padding: 9px 12px; font-size: 13px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .gallery { height: 220px; }
  .hero h1 { font-size: 1.7rem !important; }
  .page-hero h1 { font-size: 1.5rem; }
}
