:root {
  --navy: #16233f;
  --navy-dark: #0d1729;
  --navy-light: #24365c;
  --accent: #2f6fed;
  --accent-dark: #1f56c9;
  --accent-soft: #eaf1fe;
  --coral: #e2483a;
  --bg: #f7f8fa;
  --bg-light: #f7f8fa;
  --surface: #ffffff;
  --border: #e7e9ed;
  --text: #1c2430;
  --text-sub: #6c7684;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 36px rgba(16, 24, 40, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-dark); color: #aab4c4; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; flex-wrap: wrap; gap: 8px; }
.topbar-inner strong { color: #fff; font-weight: 700; }
.topbar-links a { margin-left: 16px; color: #aab4c4; transition: color .15s; }
.topbar-links a:hover { color: #fff; }
.topbar-links span { margin-left: 16px; color: #fff; }

/* ---------- Header ---------- */
.main-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; flex-wrap: wrap; }
.logo { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px; color: #4b5563;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Hero (네이비 타이틀 영역) ---------- */
/* 단색 네이비를 그대로 쓰지 않고, 은은한 도면(블루프린트) 격자무늬 + 스카이라인 실루엣을 겹쳐
   입체감을 주되, 이전에 별로였던 골드 그라데이션(호텔 느낌)으로는 가지 않도록 톤은 계속 네이비 계열로만 유지. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,255,255,0.07) 0%, transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(255,255,255,0.05) 0%, transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 52px 0 44px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46px;
  opacity: 0.5;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 340px 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='46' viewBox='0 0 340 46'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Crect x='0' y='18' width='26' height='28'/%3E%3Crect x='30' y='8' width='20' height='38'/%3E%3Crect x='54' y='24' width='30' height='22'/%3E%3Crect x='90' y='14' width='18' height='32'/%3E%3Crect x='112' y='2' width='24' height='44'/%3E%3Crect x='140' y='20' width='28' height='26'/%3E%3Crect x='172' y='10' width='20' height='36'/%3E%3Crect x='196' y='26' width='34' height='20'/%3E%3Crect x='234' y='6' width='22' height='40'/%3E%3Crect x='260' y='22' width='26' height='24'/%3E%3Crect x='290' y='12' width='18' height='34'/%3E%3Crect x='312' y='24' width='28' height='22'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  color: #9fb0cf; text-transform: uppercase;
}
.hero h1 { margin: 0 0 10px; font-size: 27px; font-weight: 700; letter-spacing: -0.01em; }
.hero-sub { margin: 0; color: #a9b4c9; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; }

/* 검색창 영역: 네이비 영역과 겹치지 않도록 완전히 분리된 별도 섹션으로 배치 */
.hero-search-section { background: var(--bg); padding: 28px 0 40px; }
.hero-search-card {
  background: #fff; border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-md);
  max-width: 920px; margin: 0 auto; text-align: left; color: var(--text); border: 1px solid var(--border);
}
.search-box { display: flex; gap: 8px; flex-wrap: wrap; }
.search-box select, .search-box input {
  padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px;
  background: #fff; color: var(--text); font-family: inherit;
}
.search-box select:focus, .search-box input:focus { outline: none; border-color: var(--navy); }
.search-box input { flex: 1; min-width: 200px; }
.search-box select { flex: 0 0 auto; }
.search-box button {
  background: var(--navy); color: #fff; border: none;
  padding: 13px 30px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 14.5px;
  letter-spacing: -0.01em; transition: background .15s;
}
.search-box button:hover { background: var(--navy-light); }

.hero-quicklinks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 4px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
}
.hero-quicklinks a {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 12px 6px;
  border-radius: var(--radius-sm); color: var(--text); transition: background .15s;
}
.hero-quicklinks a:hover { background: var(--bg); }
.hero-quicklinks .icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
}
.hero-quicklinks a:hover .icon { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hero-quicklinks span { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding: 56px 0 60px; }
.section h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.section-sub { color: var(--text-sub); margin: 0 0 26px; font-size: 14px; }
.bg-light { background: var(--bg); }

/* ---------- Property grid / cards ---------- */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.property-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.property-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d8dce3; }
.thumb {
  height: 164px; background: #e4e7ec center/cover no-repeat; position: relative;
  display: flex; align-items: center; justify-content: center; color: #99a1ac; font-size: 13px;
}
.thumb.no-image, .thumb-main.no-image { display: flex; align-items: center; justify-content: center; color: #99a1ac; background: #e4e7ec; }
.badge {
  position: absolute; top: 10px; padding: 4px 9px; font-size: 11px; border-radius: 6px; color: #fff; font-weight: 700;
}
.badge-urgent { left: 10px; background: var(--coral); }
.badge-recommend { right: 10px; background: var(--accent); }
.info { padding: 15px; }
.deal-type {
  display: inline-block; font-size: 11.5px; color: var(--accent-dark); font-weight: 700; margin-bottom: 7px;
  background: var(--accent-soft); padding: 2px 8px; border-radius: 5px;
}
.price { display: block; font-size: 17.5px; font-weight: 800; margin-bottom: 7px; color: var(--text); }
.title { margin: 0 0 4px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region { margin: 0; font-size: 12.5px; color: var(--text-sub); }

/* ---------- Category pills (counts list) ---------- */
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.category-pills a {
  display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color .15s, background .15s;
}
.category-pills a:hover { border-color: var(--accent); background: var(--accent-soft); }
.category-pills a em { font-style: normal; color: var(--text-sub); font-weight: 600; }

/* ---------- 지역 신뢰 섹션 (전국이 아닌 우리 지역 매물임을 강조) ---------- */
.area-section .section-sub { margin-bottom: 16px; }
.area-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.area-pills a {
  display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--navy);
  color: var(--navy); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  transition: background .15s, color .15s;
}
.area-pills a:hover { background: var(--navy); color: #fff; }
.area-pills a em { font-style: normal; font-weight: 600; opacity: 0.75; }

/* ---------- News ---------- */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.news-item {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; transition: border-color .15s;
}
.news-item:hover { border-color: var(--accent); }
.news-item strong { font-size: 14.5px; }
.news-item p { color: var(--text-sub); font-size: 13px; margin: 8px 0 0; }
.news-list-page { display: flex; flex-direction: column; gap: 0; }
.news-row { border-bottom: 1px solid var(--border); padding: 18px 4px; display: block; }
.news-row strong { font-size: 15px; }
.news-row p { color: var(--text-sub); font-size: 13.5px; margin: 8px 0; }
.news-meta { font-size: 12.5px; color: var(--text-sub); }
.news-source-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; vertical-align: middle; margin-left: 4px;
}

.pagination { display: flex; gap: 6px; margin-top: 28px; justify-content: center; }
.pagination a { padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; }
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Detail page ---------- */
.detail-page { max-width: 900px; }
.breadcrumb { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }
.detail-gallery { margin-bottom: 26px; }
.thumb-main { height: 380px; background: #e4e7ec center/cover no-repeat; border-radius: var(--radius-md); }
.thumb-list { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb-small { width: 84px; height: 62px; flex-shrink: 0; background: #e4e7ec center/cover no-repeat; border-radius: var(--radius-sm); cursor: pointer; }
.detail-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.detail-badges .badge { position: static; }
.price-big { font-size: 27px; font-weight: 800; color: var(--text); }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; font-size: 14px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { background: var(--bg); width: 130px; font-weight: 700; color: var(--text-sub); }
.description { line-height: 1.9; white-space: pre-line; color: #333; }
.detail-actions { display: flex; gap: 10px; margin: 24px 0; }
.btn-primary, .btn-secondary {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; border: none;
  text-align: center; font-size: 14.5px; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--navy); }

.inquiry-form { background: var(--surface); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius-md); margin: 32px 0; max-width: 480px; }
.inquiry-form h2 { margin-top: 0; font-size: 18px; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
  font-family: inherit; background: var(--bg);
}
.inquiry-form button {
  width: 100%; background: var(--navy); color: #fff; border: none; padding: 13px; border-radius: var(--radius-sm);
  font-weight: 700; cursor: pointer; font-size: 14.5px; transition: background .15s;
}
.inquiry-form button:hover { background: var(--navy-light); }
#inquiryResult { color: var(--accent-dark); font-weight: 700; margin-top: 8px; font-size: 13.5px; }

/* ---------- Auth pages ---------- */
.auth-page { max-width: 420px; margin: 0 auto; text-align: center; }
.auth-page h1 { font-size: 21px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.auth-form input {
  padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
}
.auth-form button {
  background: var(--navy); color: #fff; border: none; padding: 13px; border-radius: var(--radius-sm); font-weight: 700;
  cursor: pointer; font-size: 14.5px; margin-top: 6px; transition: background .15s;
}
.auth-form button:hover { background: var(--navy-light); }
.auth-links { margin-top: 18px; font-size: 13.5px; color: var(--text-sub); }
.auth-links a { color: var(--accent-dark); font-weight: 700; }
.error-msg { color: var(--coral); font-size: 13.5px; background: #fdeceb; padding: 10px 14px; border-radius: var(--radius-sm); }
.success-msg { color: #1a7f4b; font-size: 13.5px; background: #e7f7ee; padding: 10px 14px; border-radius: var(--radius-sm); }

.legal-page h2 { margin-top: 26px; font-size: 15.5px; }
.legal-page p { color: var(--text-sub); font-size: 14px; }
.company-box .spec-table { max-width: 560px; }

.empty { color: var(--text-sub); padding: 48px 0; text-align: center; grid-column: 1/-1; }
.result-count { color: var(--text-sub); margin-bottom: 18px; font-size: 14px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border); padding: 14px; border-radius: var(--radius-md); }
.filter-bar select, .filter-bar input {
  padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 13.5px; font-family: inherit;
}
.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar button {
  background: var(--navy); color: #fff; border: none; padding: 11px 24px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer;
}

/* ---------- Footer ---------- */
.main-footer { background: var(--navy-dark); color: #98a4b5; padding: 0 0 26px; margin-top: 40px; font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; padding: 26px 0 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-links a { color: #d7dee8; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-info { padding-top: 18px; }
.footer-info p { margin: 3px 0; }
.copyright { margin-top: 16px; color: #5d6879; }

.btn-top {
  position: fixed; right: 24px; bottom: 24px; background: var(--navy); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; box-shadow: var(--shadow-md); z-index: 50;
}

/* ---------- 모바일 전용 하단 고정 전환(문의) 바 ---------- */
.mobile-cta-bar { display: none; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 224px; background: var(--navy-dark); color: #fff; padding: 26px 0; flex-shrink: 0; }
.admin-sidebar h2 { padding: 0 22px; font-size: 13px; margin-bottom: 22px; color: #7d889b; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.admin-sidebar a { display: block; padding: 12px 22px; color: #b7c0cf; font-weight: 600; font-size: 14px; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-content { flex: 1; padding: 32px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 20px; font-weight: 800; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border); }
.stat-card span { font-size: 12.5px; color: var(--text-sub); font-weight: 600; }
.stat-card strong { display: block; font-size: 28px; color: var(--navy); font-weight: 800; margin-top: 6px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; font-size: 13.5px; }
.admin-table th { background: var(--bg); font-weight: 700; color: var(--text-sub); }
.admin-form { background: var(--surface); padding: 26px; border-radius: var(--radius-md); max-width: 720px; border: 1px solid var(--border); }
.admin-form label { display: block; margin: 15px 0 6px; font-weight: 700; font-size: 13.5px; color: var(--text); }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
}
.admin-form .checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.admin-form .checkbox-row input { width: auto; }
.admin-form button { margin-top: 22px; background: var(--navy); color: #fff; border: none; padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 14.5px; }
.admin-form button:hover { background: var(--navy-light); }
.btn-danger { background: var(--coral); color: #fff; border: none; padding: 7px 13px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 700; }
.btn-small { padding: 9px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.btn-small:hover { border-color: var(--navy); }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--navy); }
.login-box { background: #fff; padding: 40px; border-radius: var(--radius-lg); width: 340px; box-shadow: var(--shadow-lg); }
.login-box h1 { text-align: center; font-size: 19px; margin-bottom: 20px; font-weight: 800; }
.thumb-strip { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.thumb-strip img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-status-form select {
  padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; background: var(--surface); cursor: pointer;
}
.image-manage-panel { background: var(--surface); padding: 26px; border-radius: var(--radius-md); max-width: 720px; border: 1px solid var(--border); margin-top: 22px; }
.image-manage-panel h2 { font-size: 16px; margin-bottom: 4px; }
.image-manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.image-manage-item { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; text-align: center; background: var(--bg); }
.image-manage-item img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--radius-sm); }
.thumb-badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.image-manage-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.image-manage-actions .btn-small { padding: 6px 10px; font-size: 12px; }
.image-manage-actions .btn-small:disabled { opacity: 0.35; cursor: not-allowed; }

@media (max-width: 700px) {
  .container { padding: 0 16px; }

  /* 상단바/헤더 */
  .topbar-inner { font-size: 11.5px; padding: 6px 16px; }
  .header-inner { padding: 12px 16px; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 2px; }
  .main-nav a { padding: 8px 11px; font-size: 13.5px; }

  /* 히어로 / 검색 */
  .hero { padding: 28px 0; }
  .hero-eyebrow { font-size: 10.5px; margin-bottom: 10px; }
  .hero h1 { font-size: 21px; }
  .hero-sub { font-size: 13.5px; padding: 0 4px; }
  .hero-search-section { padding: 20px 0 28px; }
  .hero-search-card { padding: 14px; }
  .search-box { gap: 8px; }
  .search-box select { flex: 1 1 47%; }
  .search-box input { flex: 1 1 100%; min-width: 0; }
  .search-box button { flex: 1 1 100%; padding: 14px; }
  .hero-quicklinks { grid-template-columns: repeat(4, 1fr); gap: 2px; }
  .hero-quicklinks .icon { width: 38px; height: 38px; }
  .hero-quicklinks .icon svg { width: 18px; height: 18px; }
  .hero-quicklinks span { font-size: 11px; }

  /* 섹션 공통 */
  .section { padding: 36px 0 40px; }
  .section h2 { font-size: 18px; }

  /* 매물 카드 그리드: 모바일에서도 2열 유지 */
  .property-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .thumb { height: 110px; }
  .info { padding: 10px; }
  .price { font-size: 14.5px; }
  .title { font-size: 12.5px; }
  .region { font-size: 11px; }
  .deal-type { font-size: 10.5px; }

  .news-list { grid-template-columns: 1fr; }
  .category-pills { gap: 8px; }
  .category-pills a { padding: 9px 13px; font-size: 12.5px; }
  .area-pills { gap: 8px; }
  .area-pills a { padding: 8px 13px; font-size: 12.5px; }

  /* 검색/필터 바 */
  .filter-bar { padding: 12px; gap: 8px; }
  .filter-bar select { flex: 1 1 47%; }
  .filter-bar input { flex: 1 1 100%; min-width: 0; }
  .filter-bar button { flex: 1 1 100%; }

  /* 매물 상세 */
  .thumb-main { height: 220px; }
  .thumb-small { width: 68px; height: 50px; }
  .price-big { font-size: 21px; }
  .spec-table th { width: 96px; font-size: 12.5px; padding: 10px; }
  .spec-table td { font-size: 13px; padding: 10px; }
  .detail-actions { flex-wrap: wrap; }
  .detail-actions a, .detail-actions button { flex: 1 1 100%; }
  .inquiry-form { padding: 18px; max-width: 100%; }

  /* 로그인/찾기 */
  .login-box { width: 100%; max-width: 340px; padding: 30px 24px; }

  /* 관리자: 사이드바를 상단 가로 스크롤 메뉴로 전환 */
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%; padding: 10px 0; display: flex; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar h2 { display: none; }
  .admin-sidebar a { padding: 10px 16px; white-space: nowrap; }
  .admin-content { padding: 16px; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; }
  .admin-form { padding: 18px; max-width: 100%; }
  .image-manage-panel { padding: 18px; max-width: 100%; }

  /* 관리자 표: 좌우 스크롤로 전환해서 화면 밖으로 안 밀리게 */
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-table th, .admin-table td { white-space: nowrap; }

  /* 하단 고정 전환(전화상담/매물보기) 바 노출 */
  body { padding-bottom: 60px; }
  .btn-top { bottom: 74px; right: 16px; width: 40px; height: 40px; }
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -4px 14px rgba(16,24,40,0.12);
  }
  .mobile-cta-bar a {
    flex: 1; text-align: center; padding: 15px 8px; font-weight: 700; font-size: 14.5px;
  }
  .mobile-cta-call { background: var(--accent); color: #fff; }
  .mobile-cta-browse { background: var(--navy); color: #fff; }
}

@media (max-width: 420px) {
  .hero-quicklinks { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 340px) {
  /* 아주 좁은 화면(구형 소형폰)에서는 매물카드를 1열로 */
  .property-grid { grid-template-columns: 1fr; }
  .thumb { height: 160px; }
}
