/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, a { min-height: 44px; min-width: 44px; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  background: #1a2b4a;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.header-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.header-logo span { color: #f0c040; }
.header-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.header-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { background: rgba(255,255,255,.15); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7a 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 em { color: #f0c040; font-style: normal; }
.hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0c040;
  color: #1a2b4a;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,192,64,.4); }

/* ===== Category Nav ===== */
.category-nav {
  background: #f5f6f8;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}
.category-nav .container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.cat-btn:hover, .cat-btn.active {
  background: #1a2b4a;
  color: #fff;
  border-color: #1a2b4a;
}

/* ===== Property Cards ===== */
.section { padding: 48px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-sub {
  color: #666;
  margin-bottom: 28px;
  font-size: 1rem;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.property-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.property-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.badge-selling { background: #e8f5e9; color: #2e7d32; }
.badge-upcoming { background: #fff3e0; color: #e65100; }
.card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a2b4a, #2d4a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.card-body { padding: 20px; }
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.card-location {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.card-tag {
  padding: 4px 10px;
  background: #f0f2f5;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #555;
}
.card-desc {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: #1a2b4a;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .2s;
}
.card-cta:hover { background: #2d4a7a; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: #f5f6f8;
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 800; color: #1a2b4a; }
.stat-label { font-size: 0.9rem; color: #666; margin-top: 4px; }

/* ===== Expert Section ===== */
.expert-section {
  background: #1a2b4a;
  color: #fff;
  padding: 48px 0;
}
.expert-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.expert-section p { opacity: .85; line-height: 1.8; margin-bottom: 16px; }

/* ===== Footer ===== */
.footer {
  background: #111;
  color: #aaa;
  padding: 40px 0 32px;
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer strong { color: #fff; }
.footer-links { margin-top: 16px; }
.footer-links a {
  color: #888;
  margin-right: 16px;
  transition: color .2s;
}
.footer-links a:hover { color: #f0c040; }

/* ===== Bottom Fixed Bar ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.bottom-bar .bar-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #e53935;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  min-height: 44px;
  transition: background .2s;
}
.bottom-bar .bar-call:hover { background: #c62828; }
.bottom-bar .bar-email {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: .9;
}
.bottom-bar .bar-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #1565c0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  min-height: 44px;
  transition: background .2s;
}
.bottom-bar .bar-main:hover { background: #0d47a1; }
body { padding-bottom: 100px; }

/* ===== Detail Page ===== */
.detail-hero {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7a 50%, #3a5a8a 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.detail-hero .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.detail-hero .location {
  font-size: 1.05rem;
  opacity: .8;
  margin-bottom: 20px;
}
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.detail-info-item {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
}
.detail-info-item .label {
  font-size: 0.8rem;
  opacity: .7;
  margin-bottom: 4px;
}
.detail-info-item .value {
  font-size: 1.1rem;
  font-weight: 700;
}
.detail-content {
  padding: 48px 0;
}
.detail-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a2b4a;
  letter-spacing: -0.5px;
}
.detail-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}
.detail-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #1a2b4a;
}
.detail-sidebar {
  background: #f5f6f8;
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}
.detail-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-list { list-style: none; }
.related-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  font-weight: 600;
  color: #1a2b4a;
  transition: color .2s;
}
.related-list a:hover { color: #2d4a7a; }

/* ===== Widget Section ===== */
.widget { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.widget-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; color: #1a2b4a; display: flex; align-items: center; gap: 8px; }
.widget-icon { font-size: 1.4rem; }

/* Price Simulator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.calc-field label { display: block; font-size: 0.85rem; color: #666; margin-bottom: 4px; font-weight: 600; }
.calc-field input, .calc-field select {
  width: 100%; padding: 12px; border: 1.5px solid #d0d0d0; border-radius: 10px;
  font-size: 1rem; min-height: 44px; font-family: inherit;
}
.calc-field input:focus, .calc-field select:focus { border-color: #1a2b4a; outline: none; }
.calc-btn {
  width: 100%; padding: 14px; background: #1a2b4a; color: #fff; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; min-height: 44px;
}
.calc-btn:hover { background: #2d4a7a; }
.calc-result {
  margin-top: 16px; padding: 20px; background: #f0f4ff; border-radius: 12px;
  text-align: center; display: none;
}
.calc-result .amount { font-size: 1.8rem; font-weight: 800; color: #1a2b4a; }
.calc-result .detail { font-size: 0.9rem; color: #666; margin-top: 8px; }

/* Comparison Table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th { background: #1a2b4a; color: #fff; padding: 12px 10px; text-align: left; font-weight: 700; }
.compare-table td { padding: 12px 10px; border-bottom: 1px solid #e8e8e8; }
.compare-table tr:hover td { background: #f5f8ff; }
.compare-table .highlight { background: #f0f4ff; font-weight: 700; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: #d0d8e4; border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px;
  background: #1a2b4a; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #1a2b4a;
}
.timeline-item.active::before { background: #e53935; box-shadow: 0 0 0 2px #e53935; }
.timeline-date { font-size: 0.8rem; color: #e53935; font-weight: 700; margin-bottom: 2px; }
.timeline-text { font-size: 0.95rem; font-weight: 600; color: #1a2b4a; }
.timeline-sub { font-size: 0.85rem; color: #666; margin-top: 2px; }

/* Neighborhood */
.infra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.infra-item {
  padding: 16px 12px; background: #f5f6f8; border-radius: 12px; text-align: center;
  transition: transform .15s;
}
.infra-item:hover { transform: translateY(-2px); }
.infra-icon { font-size: 1.6rem; margin-bottom: 6px; }
.infra-name { font-size: 0.85rem; font-weight: 700; color: #1a2b4a; }
.infra-dist { font-size: 0.8rem; color: #666; margin-top: 2px; }

/* Expert Quote */
.expert-quote {
  background: linear-gradient(135deg, #1a2b4a, #2d4a7a); color: #fff;
  padding: 24px; border-radius: 16px; position: relative;
}
.expert-quote::before { content: '"'; font-size: 4rem; opacity: .2; position: absolute; top: -8px; left: 16px; font-family: Georgia; }
.expert-quote p { font-size: 1rem; line-height: 1.8; margin-bottom: 12px; position: relative; z-index: 1; }
.expert-quote .expert-name { font-size: 0.85rem; opacity: .7; text-align: right; }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; padding: 16px 0; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: #1a2b4a; text-align: left;
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
  font-family: inherit;
}
.faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: #999; transition: transform .2s; }
.faq-q.open::after { content: '−'; color: #e53935; }
.faq-a { padding: 0 0 16px; font-size: 0.95rem; line-height: 1.7; color: #555; display: none; }
.faq-a.show { display: block; }

/* Alert Box */
.alert-box { display: flex; gap: 10px; flex-wrap: wrap; }
.alert-box input {
  flex: 1; min-width: 200px; padding: 12px 16px; border: 1.5px solid #d0d0d0;
  border-radius: 10px; font-size: 1rem; min-height: 44px; font-family: inherit;
}
.alert-box input:focus { border-color: #1a2b4a; outline: none; }
.alert-box button {
  padding: 12px 24px; background: #e53935; color: #fff; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; min-height: 44px;
  white-space: nowrap;
}
.alert-box button:hover { background: #c62828; }
.alert-msg { margin-top: 12px; font-size: 0.9rem; color: #2e7d32; font-weight: 600; display: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 1.5rem; }
  .property-grid { grid-template-columns: 1fr; }
  .header-nav { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { font-size: 0.8rem; }
}
