/* ============================================
   AFER PARK - Premium Residence Website
   Color Scheme: White + Gold Accent
   ============================================ */
/* --- Reset & Base --- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #B8964E;
  --gold-light: #D4AF61;
  --gold-dark: #8B6F3A;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --light-gray: #F5F3EF;
  --gray: #E8E4DD;
  --text-dark: #1A1A1A;
  --text-body: #4A4A4A;
  --text-light: #8A8A8A;
  --overlay: rgba(0,0,0,0.45);
  --section-padding: 100px 0;
  --transition: all 0.3s ease;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* --- Typography --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.section-title strong {
  font-weight: 600;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }
/* --- Gold Divider --- */
.gold-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}
.text-center .gold-divider { margin: 24px auto; }
/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.header.scrolled .logo img {
  filter: none;
}
.nav-menu {
  display: flex;
  gap: 36px;
}
.nav-menu a {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: var(--white); }
.header.scrolled .nav-menu a { color: var(--text-body); }
.header.scrolled .nav-menu a:hover { color: var(--text-dark); }
/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}
.header.scrolled .nav-toggle span { background: var(--text-dark); }
/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 24px;
}
.hero-label {
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
  font-weight: 400;
}
.hero-title {
  font-size: 3.8rem;
  font-weight: 200;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-bottom: 48px;
  letter-spacing: 1px;
  line-height: 1.6;
}
.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: var(--transition);
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--white);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-align: center;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 8px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* ============================================
   ABOUT SECTION
   ============================================ */
.about { padding: var(--section-padding); background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}
.about-image:hover img {
  transform: scale(1.03);
}
.about-image::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 55%; height: 55%;
  border: 1px solid var(--gold);
  z-index: -1;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--gray);
}
.stat-item {}
.stat-value {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 1px;
}
/* Feature Cards */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 80px 0 0;
}
.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--light-gray);
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--white);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}
/* ============================================
   LOCATION SECTION
   ============================================ */
.location {
  padding: var(--section-padding);
  background: var(--white);
}
/* 지도 이미지 - 자연 비율 유지, 크롭 없음 */
.location-map-full {
  margin-top: 60px;
  width: 100%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
.location-map-full img {
  width: 100%;
  height: auto;
  display: block;
}
/* 정보 카드 - 지도 아래 독립 영역 */
.location-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--gray);
}
.location-card {
  padding: 32px 24px;
  border-right: 1px solid var(--gray);
  transition: var(--transition);
}
.location-card:last-child { border-right: none; }
.location-card:hover { background: var(--off-white); }
.location-card h4 {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.location-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.75;
}
/* ============================================
   GALLERY SECTION - Editorial Layout
   Row 1: [Large 2-col hero] [Accent]
   Row 2: [Equal] [Equal] [Equal]
   ============================================ */
.gallery { padding: var(--section-padding); background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 260px;
  gap: 10px;
  margin-top: 60px;
}
/* 첫 번째: 좌상단 히어로 (2컬럼 span) */
.gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--light-gray);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: var(--transition);
}
.gallery-item:hover::after { background: rgba(0,0,0,0.10); }
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
/* ============================================
   PROPERTIES SECTION
   ============================================ */
.properties {
  padding: var(--section-padding);
  background: var(--light-gray);
}
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 28px;
  border: 1px solid var(--gray);
  background: var(--white);
  color: var(--text-body);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--white);
}
.filter-btn.active {
  background: var(--gold);
  color: var(--white);
}
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.property-card {
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
  opacity: 1;
}
.property-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.property-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray);
}
.property-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-image img { transform: scale(1.05); }
.property-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 16px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}
.badge-임대 { background: var(--gold); color: var(--white); }
.badge-매매 { background: var(--text-dark); color: var(--white); }
.badge-분양 { background: #6B7B3A; color: var(--white); }
.property-info { padding: 28px; }
.property-info h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.property-price {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.property-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray);
}
.meta-item {
  font-size: 0.82rem;
  color: var(--text-light);
}
.meta-item strong {
  color: var(--text-body);
  font-weight: 500;
}
.property-status {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  font-size: 0.75rem;
  background: var(--light-gray);
  color: var(--text-body);
  letter-spacing: 0.5px;
}
/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
  font-size: 1rem;
}
/* ============================================
   CONTACT SECTION
   ============================================ */
.contact { padding: var(--section-padding); background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}
.contact-form {}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray);
  background: var(--off-white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit {
  display: inline-block;
  padding: 16px 48px;
  background: var(--gold);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover { background: var(--gold-dark); }
.form-notice {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.contact-aside {}
.contact-info-card {
  background: var(--light-gray);
  padding: 40px;
  margin-bottom: 24px;
}
.contact-info-card h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.contact-info-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.7;
}
.contact-info-card a:hover { color: var(--gold); }
/* ============================================
   AGENCY SECTION
   ============================================ */
.agency {
  padding: var(--section-padding);
  background: var(--text-dark);
  color: var(--white);
}
.agency .section-label { color: var(--gold-light); }
.agency .section-title { color: var(--white); }
.agency .section-desc { color: rgba(255,255,255,0.5); }
.agency .gold-divider { background: var(--gold-light); }
.agency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}
.agency-detail h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 400;
}
.agency-detail p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 6px;
}
.agency-detail a:hover { color: var(--gold-light); }
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.social-link {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  letter-spacing: 0;
}
.social-link:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  background: #111;
  text-align: center;
}
.footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
  line-height: 1.8;
}
/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-width: 500px; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
  .location-cards { grid-template-columns: repeat(3, 1fr); }
  .location-cards .location-card:nth-child(3) { border-right: none; }
  .location-cards .location-card:nth-child(4) { border-top: 1px solid var(--gray); }
  .location-cards .location-card:nth-child(5) { border-top: 1px solid var(--gray); }
  .agency-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-padding: 72px 0; }
  .header { padding: 0 20px; }
  .header-inner { height: 64px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }
  .nav-menu.open { right: 0; }
  .nav-menu a {
    color: var(--text-body) !important;
    font-size: 1rem;
  }
  .hero-title { font-size: 2.4rem; letter-spacing: 4px; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-label { font-size: 0.7rem; letter-spacing: 3px; }
  .section-title { font-size: 1.8rem; }
  .features-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .location-cards { grid-template-columns: 1fr 1fr; }
  .location-cards .location-card:nth-child(2) { border-right: none; }
  .location-cards .location-card:nth-child(3),
  .location-cards .location-card:nth-child(4),
  .location-cards .location-card:nth-child(5) { border-top: 1px solid var(--gray); }
  .location-cards .location-card:nth-child(4) { border-right: none; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 200px 200px;
  }
  .gallery-item:first-child { grid-column: 1 / 3; grid-row: 1; }
  .properties-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .agency-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; letter-spacing: 3px; }
  .features-row { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px 160px;
  }
  .gallery-item:first-child { grid-column: 1 / 3; grid-row: 1; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .filter-bar { gap: 4px; }
  .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}

/* ====== FLOATING CTA ====== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 500;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 0;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.float-call {
  background: var(--text-dark);
  color: #fff;
}
.float-call:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.float-form {
  background: var(--gold);
  color: #fff;
}
.float-form:hover {
  background: #9A7A3A;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,150,78,0.4);
}
@media (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 16px;
    flex-direction: column;
    gap: 8px;
  }
  .float-btn {
    padding: 12px 16px;
    font-size: 0.78rem;
  }
}
