/* ──────────────────────────────────────────────
   사슴골공인중개사 — Daily Listing
   디자인 톤: oneaday.co.kr 매칭
   컬러: white(#fff) · orange(#f48424) · red(#e92e2e) · ink(#222) · gray(#777)
   ────────────────────────────────────────────── */
:root {
  --orange: #f48424;
  --orange-dark: #d96e0e;
  --orange-light: #fff1e1;
  --red: #e92e2e;
  --red-dark: #c61f1f;
  --ink: #222222;
  --ink-light: #444444;
  --gray-1: #555555;
  --gray-2: #777777;
  --gray-3: #999999;
  --gray-4: #c4c4c4;
  --gray-5: #e8e8e8;
  --gray-6: #f5f5f5;
  --gray-7: #fafafa;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.05);
  --shadow-md: 0 6px 18px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,.12);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Topbar ───────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--orange); }
.topbar .topbar-left { letter-spacing: .5px; }
.topbar .topbar-right { display: flex; gap: 14px; }

/* ── Header ───────────────────────────────────── */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gray-5);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 50;
}
.header .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.brand-name {
  font-size: 18px; font-weight: 800; color: var(--ink);
  letter-spacing: -.5px; line-height: 1.2;
}
.brand-name .accent { color: var(--orange); }
.brand-sub { font-size: 11px; color: var(--gray-2); margin-top: 2px; letter-spacing: .5px; }
.header-cta {
  display: flex; gap: 8px; align-items: center;
}
.btn-call {
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn-call:hover { background: var(--orange-dark); }
.btn-blog {
  border: 1px solid var(--gray-4);
  color: var(--gray-1);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  transition: border-color .15s ease, color .15s ease;
}
.btn-blog:hover { border-color: var(--ink); color: var(--ink); }

/* ── Tagline strip ──────────────────────────── */
.tagline-strip {
  background: var(--orange-light);
  color: var(--ink);
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: .5px;
}
.tagline-strip strong { color: var(--orange-dark); font-weight: 800; }
.tagline-strip em {
  font-style: normal;
  color: var(--orange);
  letter-spacing: 4px;
  margin-right: 6px;
  font-weight: 800;
}

/* ── Hero (오늘의 매물) ───────────────────────── */
.today-section {
  padding: 48px 0 40px;
  background: #fff;
}
.today-head {
  text-align: center;
  margin-bottom: 28px;
}
.today-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.today-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.today-title .highlight {
  color: var(--orange);
}
.today-sub {
  font-size: 14px;
  color: var(--gray-2);
}
.today-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 12px;
}
.today-date-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.today-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-5);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  position: relative;
}
.today-card .ribbon {
  position: absolute;
  top: 24px; left: 0;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 18px;
  letter-spacing: 2px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.today-image-wrap {
  position: relative;
  background: var(--gray-7);
  min-height: 380px;
  overflow: hidden;
}
.today-image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.today-card:hover .today-image { transform: scale(1.04); }
.today-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}

.today-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.today-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gray-6);
  color: var(--ink);
}
.tag-cat { background: var(--orange); color: #fff; }
.tag-id  { background: var(--gray-6); color: var(--gray-2); font-family: "JetBrains Mono", monospace; }

.today-listing-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.today-listing-region {
  font-size: 14px;
  color: var(--gray-2);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 6px;
}
.today-listing-region::before { content: "📍"; }

.today-price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 18px;
  border-top: 1px solid var(--gray-5);
  border-bottom: 1px solid var(--gray-5);
  padding: 16px 0;
}
.price-label {
  font-size: 12px;
  color: var(--gray-2);
  font-weight: 700;
  letter-spacing: 1px;
}
.price-value {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -.5px;
}

.today-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.spec-item {
  background: var(--gray-7);
  padding: 10px 12px;
  border-radius: var(--radius);
  text-align: center;
}
.spec-item .lbl { font-size: 10px; color: var(--gray-2); font-weight: 700; letter-spacing: 1px; }
.spec-item .val { font-size: 14px; color: var(--ink); font-weight: 800; margin-top: 4px; }

.today-summary {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 22px;
}

.today-highlights {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
}
.highlight-pill {
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.today-actions {
  display: flex; gap: 8px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--orange); color: #fff; flex: 1; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--gray-4); }
.btn-secondary:hover { border-color: var(--ink); }

/* ── 매물 카운터 ──────────────────────────────── */
.counter-strip {
  background: var(--gray-7);
  border-top: 1px solid var(--gray-5);
  border-bottom: 1px solid var(--gray-5);
  padding: 24px 0;
}
.counter-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}
.counter-item .lbl { font-size: 11px; color: var(--gray-2); letter-spacing: 1px; font-weight: 700; }
.counter-item .val {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: -.5px;
}
.counter-item .val .small { font-size: 12px; color: var(--gray-3); margin-left: 4px; }

/* ── All Listings Grid ───────────────────────── */
.listings-section {
  padding: 56px 0;
  background: #fff;
}
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
}
.section-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray-2);
}
.section-sub strong {
  color: var(--orange);
  font-weight: 800;
}

.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--gray-4);
  color: var(--gray-1);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.filter-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-2);
  background: var(--gray-5);
  border-radius: 999px;
}
.filter-btn.active .filter-count {
  color: var(--orange);
  background: #fff;
}

/* 3-column grid (oneaday 매칭) */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listing-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-5);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-4);
}
.listing-card.is-today {
  border-color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.listing-card .img-wrap {
  position: relative;
  aspect-ratio: 1/1;          /* oneaday 정사각 */
  background: var(--gray-7);
  overflow: hidden;
}
.listing-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.listing-card .img-wrap .badge-today {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}
.listing-card .img-wrap .badge-cat {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(34,34,34,.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.listing-card .body {
  padding: 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-card .region {
  font-size: 11px;
  color: var(--gray-2);
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.listing-card .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -.3px;
  /* 2 lines max */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.listing-card .meta {
  font-size: 12px;
  color: var(--gray-2);
  margin-bottom: 12px;
}
.listing-card .price {
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -.5px;
  margin-top: auto;
  padding-top: 8px;
}
.listing-card .price-meta {
  display: block;
  font-size: 11px;
  color: var(--gray-3);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0;
}

/* ── About Strip ─────────────────────────────── */
.about-section {
  background: var(--gray-7);
  color: var(--ink);
  padding: 64px 0;
  border-top: 1px solid var(--gray-5);
  border-bottom: 1px solid var(--gray-5);
}
.about-section .wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 4px; margin-bottom: 16px; }
.about-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--ink);
}
.about-title .gold { color: var(--orange); }
.about-text {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-text strong { color: var(--ink); font-weight: 800; }
.about-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--gray-4);
  padding-top: 20px;
}
.about-meta dt { font-size: 11px; color: var(--orange); letter-spacing: 1px; font-weight: 800; margin-bottom: 4px; }
.about-meta dd { font-size: 14px; color: var(--ink); font-weight: 600; }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 32px 0;
  font-size: 13px;
  text-align: center;
}
.footer p { line-height: 1.8; }
.footer strong { color: #fff; font-weight: 800; }
.footer .reg { display: block; margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.4); }
.footer-cta {
  display: inline-block;
  margin-top: 12px;
  background: var(--orange);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 800;
}
.footer-cta:hover { background: var(--orange-dark); }

/* ── Floating call button ────────────────────── */
.fab-call {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: flex; align-items: center; gap: 8px;
  transition: transform .15s ease, background .15s ease;
}
.fab-call:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 980px) {
  .today-card { grid-template-columns: 1fr; }
  .today-image-wrap { min-height: 260px; aspect-ratio: 16/10; }
  .today-info { padding: 28px 24px; }
  .listings-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about-section .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .topbar .topbar-left { display: none; }
  .header .wrap { gap: 8px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }
  .btn-blog { display: none; }
  .btn-call { padding: 8px 14px; font-size: 13px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .listing-card .body { padding: 12px; }
  .listing-card .title { font-size: 14px; min-height: 38px; }
  .listing-card .price { font-size: 17px; }
  .counter-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .today-specs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .spec-item { padding: 8px 6px; }
  .spec-item .val { font-size: 12px; }
  .today-actions { flex-direction: column; }
  .today-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fab-call { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 13px; }
  .tagline-strip { font-size: 12px; padding: 10px 0; }
  .tagline-strip em { letter-spacing: 2px; }
}
