/* 서영진 홈페이지 디자인 */
:root {
  --ink: #26221b;
  --ink-2: #4a443a;
  --muted: #6f685c;
  --line: #ebe5d6;
  --bg: #fdfbf6;
  --surface: #ffffff;
  --cream: #fff6dc;
  --yellow: #ffbc00;
  --yellow-2: #ffcf3d;
  --gold-ink: #8a5f00;
  --dark: #2f2b24;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(38,34,27,.04), 0 12px 32px rgba(38,34,27,.07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 18px; line-height: 1.75; word-break: keep-all; letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.035em; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.eyebrow { color: var(--gold-ink); font-weight: 800; letter-spacing: .14em; font-size: 13px; margin: 0 0 12px; text-transform: uppercase; }
.eyebrow b { color: var(--ink); font-size: 15px; letter-spacing: 0; }
.empty { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(38,34,27,.25); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-line { border: 1.5px solid var(--dark); color: var(--dark); }
.btn-line:hover { background: rgba(255,255,255,.4); }
.btn-line-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }

/* header */
#site-header { position: sticky; top: 0; z-index: 20; background: rgba(253,251,246,.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 20px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.brand-mark.big { width: 96px; height: 96px; border-radius: 28px; font-size: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 19px; letter-spacing: -0.03em; }
.brand-text span { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); font-weight: 600; transition: background .15s; }
.nav a:hover { background: var(--cream); }
.nav a.active { color: var(--ink); background: var(--cream); }
.nav a.nav-cta { background: var(--dark); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: #000; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 10px; width: 44px; height: 44px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { background: var(--yellow); position: relative; overflow: hidden; padding: 72px 0 140px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.45), transparent 40%), radial-gradient(circle at 0% 100%, rgba(255,214,90,.9), transparent 45%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; margin: 0 0 22px; background: rgba(255,255,255,.55); padding: 7px 14px; border-radius: 999px; }
.hero-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--dark); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-bottom: 22px; }
.hero-text { font-size: 19px; color: #4b3d17; max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin: 44px 0 0; border-top: 1.5px solid rgba(38,34,27,.18); padding-top: 22px; max-width: 520px; }
.hero-stats div { flex: 1; padding-right: 16px; }
.hero-stats div + div { padding-left: 20px; border-left: 1.5px solid rgba(38,34,27,.18); }
.hero-stats dt { font-size: 13px; color: #5c4a1a; font-weight: 600; }
.hero-stats dd { margin: 2px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.hero-stats small { font-size: 16px; margin-left: 2px; font-weight: 700; }
.hero-visual { position: relative; }
.hero-photo, .hero-art { width: 100%; aspect-ratio: 5/4; border-radius: 28px; object-fit: cover; }
.hero-art { background: linear-gradient(180deg, #ffe08a, #ffd24d); display: flex; align-items: flex-end; overflow: hidden; box-shadow: inset 0 0 0 1.5px rgba(38,34,27,.08); }
.hero-art svg { width: 100%; height: auto; }
.hero-float { position: absolute; left: -28px; bottom: -28px; background: var(--surface); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); max-width: 280px; display: flex; flex-direction: column; gap: 4px; transition: transform .2s; }
.hero-float:hover { transform: translateY(-3px); }
.hero-float .deal-badge { align-self: flex-start; }
.hero-float small { color: var(--muted); font-size: 12px; margin-top: 6px; }
.hero-float strong { font-size: 16px; line-height: 1.4; }

/* category tiles */
.tiles { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: -72px; }
.cat-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 30px 30px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--yellow); }
.cat-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--cream); color: var(--gold-ink); font-weight: 800; font-size: 17px; }
.cat-tile h2 { font-size: 22px; margin-bottom: 4px; }
.cat-tile p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }
.tile-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 18px; transition: background .2s, color .2s; }
.cat-tile:hover .tile-arrow { background: var(--yellow); color: var(--ink); }

/* section head */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; white-space: nowrap; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); }
.more:hover { background: var(--ink); color: #fff; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-media { overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s; }
.card:hover .card-img { transform: scale(1.04); }
.card-img--empty { display: flex; align-items: flex-end; padding: 18px; font-weight: 800; font-size: 15px; color: var(--ink-2); background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='%23ffbc00' fill-opacity='.35'%3E%3Crect x='8' y='30' width='22' height='50' rx='2'/%3E%3Crect x='36' y='12' width='26' height='68' rx='2'/%3E%3Crect x='68' y='38' width='18' height='42' rx='2'/%3E%3Crect x='92' y='22' width='22' height='58' rx='2'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: bottom right; background-size: 180px auto; }
.card-img--empty span { background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 999px; }
.ph-deals { background-color: #ffe9a8; }
.ph-market { background-color: #f4efe3; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 13px; color: var(--gold-ink); font-weight: 800; }
.card h3 { font-size: 19px; margin: 8px 0 8px; line-height: 1.45; }
.card p { font-size: 15px; color: var(--muted); margin: 0 0 14px; line-height: 1.65; }
.card time { font-size: 13px; color: var(--muted); margin-top: auto; }
.deal-badge { display: inline-block; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.deal-facts { font-size: 13px !important; color: var(--muted); margin: 10px 0 0 !important; }

/* deals band */
.deals-band { background: var(--cream); position: relative; }
.deals-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--yellow); }

/* intro */
.intro { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.intro-photo img, .photo-empty { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; }
.photo-empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--cream), #ffe7a3); }
.intro-copy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 18px; }
.intro-copy p { color: var(--ink-2); margin: 0 0 30px; font-size: 18px; }

/* process */
.process { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 40px; width: 8px; height: 8px; border-top: 2px solid var(--yellow); border-right: 2px solid var(--yellow); transform: rotate(45deg); }
.step-num { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--gold-ink); }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }
.steps--plain li { background: var(--surface); }

/* CTA band */
.cta-band { background: var(--dark); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.cta-band .eyebrow { color: var(--yellow); }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.72); margin: 10px 0 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* page head */
.page-head { background: var(--yellow); padding: 72px 0 60px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.3); }
.page-head .wrap { position: relative; }
.page-head .eyebrow { color: var(--ink-2); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; margin: 0 0 12px; }
.page-head p { color: #4b3d17; margin: 0; max-width: 640px; }

/* about */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.about-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: 15px; }
.about-card p { color: var(--muted); margin: 4px 0 10px; }
.about-card a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.about-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.sub { font-size: 22px; margin: 48px 0 18px; font-weight: 800; }
.career { padding: 0; list-style: none; margin: 0 0 40px; border-top: 1px solid var(--line); }
.career li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); position: relative; }
.career li::before { content: ""; position: absolute; left: 0; top: 24px; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); }

/* post */
.post .back { display: inline-block; color: var(--muted); font-weight: 700; font-size: 15px; margin-bottom: 24px; }
.post .back:hover { color: var(--ink); }
.post h1 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; margin: 12px 0 10px; }
.post time { color: var(--muted); font-size: 14px; }
.post-cover { width: 100%; border-radius: var(--radius); margin: 32px 0 8px; }
.prose { margin-top: 28px; font-size: 18px; }
.prose p { margin: 0 0 1.2em; }
.prose img { border-radius: 14px; margin: 24px 0; height: auto; }
.prose h2, .prose h3 { margin: 44px 0 14px; font-weight: 800; }
.prose h3 { font-size: 22px; padding-left: 14px; border-left: 4px solid var(--yellow); }
.prose a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose blockquote { margin: 24px 0; padding: 18px 24px; background: var(--cream); border-radius: 14px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.deal-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 28px 0 0; }
.deal-info div { background: var(--surface); padding: 16px 18px; }
.deal-info dt { font-size: 12px; color: var(--muted); }
.deal-info dd { margin: 2px 0 0; font-weight: 800; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 56px 0 0; }
.post-nav a { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); font-weight: 700; font-size: 15px; line-height: 1.5; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--yellow); }
.post-nav a.next { text-align: right; }
.post-nav small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-bottom: 2px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card--main { background: var(--dark); color: #fff; border-color: var(--dark); }
.contact-card--main .label, .contact-card--main .arrow { color: rgba(255,255,255,.7); }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-size: 22px; margin-bottom: 10px; }
.contact-card .label { color: var(--muted); font-size: 14px; }
.contact-card strong { font-size: 22px; letter-spacing: -0.02em; }
.contact-card .arrow { color: var(--gold-ink); font-weight: 700; font-size: 14px; margin-top: 8px; }
.office { margin: 48px 0 0; border-top: 2px solid var(--ink); }
.office div { display: grid; grid-template-columns: 140px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.office dt { color: var(--muted); }
.office dd { margin: 0; font-weight: 600; }

/* footer */
#site-footer { background: #1f1c17; color: rgba(255,255,255,.62); padding: 56px 0 40px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand p { margin: 0; }
.footer-info p { margin: 3px 0; }
.footer-info b { color: #fff; }
.footer-note { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* mobile bottom bar */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .hero-float { left: 16px; bottom: -24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .intro { grid-template-columns: 300px 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .header-inner { height: 64px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 10px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(0,0,0,.06); }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding: 44px 0 110px; }
  .hero-text { font-size: 17px; }
  .hero-stats dd { font-size: 26px; }
  .hero-visual { display: none; }
  .tiles { grid-template-columns: 1fr; margin-top: -70px; gap: 12px; }
  .cat-tile { padding: 22px 20px; gap: 16px; }
  .cat-num { width: 44px; height: 44px; font-size: 15px; }
  .tile-arrow { width: 38px; height: 38px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .section-head { flex-wrap: wrap; }
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .intro-photo { max-width: 280px; }
  .steps { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding-top: 56px; padding-bottom: 56px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-side { position: static; max-width: 320px; }
  .office div { grid-template-columns: 96px 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  body.has-mobile-bar { padding-bottom: 76px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(253,251,246,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; font-weight: 800; font-size: 16px; }
  .mb-call { background: var(--yellow); color: var(--ink); }
  .mb-ask { background: var(--dark); color: #fff; }
}

/* 사진 모음 (계약사례 · 글) */
.post .back { display: block; }
.post-lead { font-size: 19px; font-weight: 600; color: var(--ink-2); margin: 28px 0 0; padding: 18px 22px; background: var(--cream); border-radius: 14px; }
.gallery { display: grid; gap: 8px; margin: 28px 0 0; border-radius: 20px; overflow: hidden; }
.g-item { position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--cream); overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.g-item:hover img { transform: scale(1.04); }
.g-1 { grid-template-columns: 1fr; }
.g-1 .g-item { aspect-ratio: 16/10; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-2 .g-item { aspect-ratio: 4/5; }
.g-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16/10; }
.g-3 .g-item:first-child { grid-row: 1 / 3; }
.g-4 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); aspect-ratio: 16/11; }
.g-4 .g-item:first-child { grid-row: 1 / 4; }
.g-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16/9; }
.g-5 .g-item:first-child { grid-row: 1 / 3; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; font-weight: 800; }
.photo-count { position: absolute; right: 12px; bottom: 12px; background: rgba(38,34,27,.78); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-media { position: relative; }
.hero-float.has-thumb { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; max-width: 320px; }
.hf-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.hero-float.has-thumb > :not(.hf-thumb) { flex-basis: calc(100% - 78px); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,14,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 30px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lb-close { top: 20px; right: 20px; font-size: 20px !important; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@media (max-width: 760px) {
  .gallery { border-radius: 14px; gap: 4px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .g-3, .g-4, .g-5 { aspect-ratio: 4/3; }
  .g-4 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 2fr 1fr; }
  .g-4 .g-item:first-child { grid-row: auto; grid-column: 1 / 4; }
  .lb-prev, .lb-next { bottom: 24px; top: auto; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
/* ── 숫자 카운터 ── */
.hero-stats-wrap { margin-top: 40px; max-width: 660px; }
.hero-stats-wrap .hero-stats { margin: 0; max-width: none; }
.hero-stats.n-4 dd { font-size: clamp(22px, 2.4vw, 30px); }
.hero-stats .countup { font-variant-numeric: tabular-nums; }
.stats-note { font-size: 12px; color: #6b5413; margin: 10px 0 0; }

/* ── 오늘의 상담 기록 ── */
.live { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.live::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,188,0,.22), transparent 65%); }
.live-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.live-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--yellow); background: rgba(255,188,0,.12); padding: 7px 14px; border-radius: 999px; margin: 0 0 22px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 0 rgba(255,77,61,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,61,.65); } 70% { box-shadow: 0 0 0 12px rgba(255,77,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,61,0); } }
.live-copy h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; margin-bottom: 16px; }
.live-copy > p { color: rgba(255,255,255,.68); margin: 0 0 28px; }
.live-sum { display: flex; gap: 28px; margin: 0 0 32px; }
.live-sum dt { font-size: 13px; color: rgba(255,255,255,.55); }
.live-sum dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.live-sum b { color: var(--yellow); font-size: 28px; }

.live-phone { background: #fff; color: var(--ink); border-radius: 28px; padding: 22px 22px 8px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.lp-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.lp-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.lp-title svg { color: var(--gold-ink); }
.lp-date { font-size: 13px; color: var(--muted); }
.lp-window { height: 340px; overflow: hidden; position: relative; transition: opacity .5s; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.lp-window.is-fading { opacity: 0; }
.lp-track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; transition: transform 1.1s cubic-bezier(.25,.8,.25,1); }
.lp-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 16px; border-radius: 16px; background: var(--bg); border: 1.5px solid transparent; transition: background .5s, border-color .5s, transform .5s, opacity .5s; }
.lp-time { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lp-body { display: flex; flex-direction: column; min-width: 0; }
.lp-body strong { font-size: 16px; line-height: 1.4; }
.lp-body span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.lp-state { font-size: 12px; font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.lp-state em, .lp-state s, .lp-state .eq { display: none; font-style: normal; text-decoration: none; }
.lp-row.is-next { opacity: .45; }
.lp-row.is-done { opacity: .75; }
.lp-row.is-done .lp-state s { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.lp-row.is-done .lp-state s::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 11px; }
.lp-row.is-active { background: var(--cream); border-color: var(--yellow); transform: scale(1.02); box-shadow: 0 8px 20px rgba(255,188,0,.25); }
.lp-row.is-active .lp-time { color: var(--gold-ink); }
.lp-row.is-active .lp-state em { display: inline; color: var(--ink); background: var(--yellow); padding: 4px 10px; border-radius: 999px; }
.lp-row.is-active .lp-state .eq { display: inline-flex; }
.eq { gap: 2px; align-items: flex-end; height: 14px; }
.eq b { width: 3px; background: var(--gold-ink); border-radius: 2px; animation: eq 0.9s infinite ease-in-out; }
.eq b:nth-child(2) { animation-delay: .15s; }
.eq b:nth-child(3) { animation-delay: .3s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

@media (max-width: 960px) {
  .live-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
  .hero-stats.n-4 div, .hero-stats.n-3 div { flex: 1 1 45%; }
  .hero-stats.n-4 div:nth-child(3) { padding-left: 0; border-left: 0; }
  .live-phone { padding: 16px 14px 4px; border-radius: 22px; }
  .lp-window { height: 330px; }
  .lp-row { grid-template-columns: 50px 1fr; padding: 14px; gap: 10px; }
  .lp-state { grid-column: 2; }
  .lp-row.is-next .lp-state, .lp-row:not(.is-active):not(.is-done) .lp-state { display: none; }
  .lp-time { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .eq b { animation: none; }
  .lp-track, .lp-row { transition: none; }
}

#live, #stats { scroll-margin-top: 90px; }

/* 계약사례 카드 사진 4칸 */
.deal-media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 3px; aspect-ratio: 16/11; background: var(--surface); }
.dm-cell { position: relative; overflow: hidden; background: #ffe9a8; }
.dm-cell:first-child { grid-row: 1 / 4; }
.dm-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .dm-cell img { transform: scale(1.05); }
.dm-empty { background-color: #fff1c7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath fill='%23e8c45a' d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 12h14l-4.5-6-3.5 4.5-2.5-3L5 17zm3-7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 34%; }
.dm-empty:first-child { background-size: 22%; background-color: #ffe9a8; }
.dm-empty em { position: absolute; left: 12px; bottom: 12px; font-style: normal; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.9); padding: 3px 10px; border-radius: 999px; }

/* 첫 화면: 프로필 사진 + 최근 계약사례 3건 */
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-visual .hero-photo { aspect-ratio: 4/5; max-height: 560px; width: 82%; margin-left: auto; border-radius: 28px; object-fit: cover; object-position: center top; box-shadow: 0 24px 48px rgba(74,60,10,.2); }
.hero-deals { position: absolute; left: 0; bottom: 0; width: 300px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-radius: 20px; padding: 16px; box-shadow: 0 20px 44px rgba(38,34,27,.2); display: flex; flex-direction: column; gap: 6px; }
.hd-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; margin: 0 4px 4px; color: var(--ink-2); }
.hd-item { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; transition: background .2s; }
.hd-item:hover { background: var(--cream); }
.hd-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.hd-thumb--empty { display: grid; place-items: center; background: var(--yellow); font-size: 12px; font-weight: 800; color: var(--ink); }
.hd-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.hd-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 10px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 700; }

@media (max-width: 960px) {
  .hero-visual .hero-photo { width: 70%; }
}
@media (max-width: 760px) {
  .hero-visual { display: block; margin-top: 36px; padding-bottom: 0; }
  .hero-visual .hero-photo { width: 100%; max-height: 420px; aspect-ratio: 4/4.4; }
  .hero-deals { position: relative; width: auto; margin: -70px 12px 0; }
}
/* 조정: 사진이 더 보이도록 */
@media (min-width: 761px) {
  .hero-visual { padding-bottom: 0; }
  .hero-visual .hero-photo { width: 76%; max-height: 600px; }
  .hero-deals { width: 270px; bottom: -36px; padding: 12px; gap: 2px; }
  .hd-item { grid-template-columns: 40px 1fr; gap: 10px; padding: 6px; }
  .hd-thumb { width: 40px; height: 40px; }
  .hd-text strong { font-size: 14px; }
  .hd-more { padding: 8px; }
}
.hero-stats dd { white-space: nowrap; }
.hero-stats.n-4 { gap: 0; }
.hero-stats.n-4 div { padding-right: 12px; }
.hero-stats.n-4 div + div { padding-left: 14px; }
.hero-stats.n-4 dd { font-size: clamp(20px, 2.1vw, 28px); }
.hero-visual .hero-photo { border: 6px solid #fff; background: #fff; }
@media (max-width: 760px) { .hero-stats.n-4, .hero-stats.n-3 { row-gap: 18px; } .hero-stats.n-4 div:nth-child(odd) { padding-left: 0; border-left: 0; } }
.lp-track { padding: 8px 6px; }

/* 안내 메시지 (전화번호 복사 등) */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 200; background: var(--dark); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 96px; white-space: normal; width: calc(100% - 32px); text-align: center; border-radius: 16px; } }
.footer-tel { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }

/* ── 상담 신청서 ── */
.apply-form { display: flex; flex-direction: column; gap: 28px; }
.hp { position: absolute; left: -9999px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 14px; padding: 0; }
.q legend em, .agree-check em { font-style: normal; font-size: 12px; font-weight: 700; color: #c0392b; background: #fdecea; padding: 2px 8px; border-radius: 999px; }
.q legend em.opt { color: var(--muted); background: var(--line); }
.q-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); font-size: 15px; }
.chips { display: grid; gap: 12px; }
.chips-2 { grid-template-columns: 1fr 1fr; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px; padding: 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; text-align: center; }
.chip b { font-size: 22px; letter-spacing: -0.03em; }
.chip small { font-size: 14px; color: var(--muted); }
.chip:hover span { border-color: var(--yellow-2); }
.chip input:checked + span { border-color: var(--ink); background: var(--yellow); box-shadow: 0 8px 20px rgba(255,188,0,.35); transform: translateY(-2px); }
.chip input:checked + span small { color: var(--ink-2); }
.chip input:checked + span b::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); width: 100%; transition: border-color .15s; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.agree { background: var(--cream); border-radius: 16px; padding: 18px 20px; }
.agree-check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.agree-check input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; }
.agree details { margin-top: 8px; font-size: 14px; color: var(--muted); }
.agree summary { cursor: pointer; text-decoration: underline; }
.agree ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.q-error .chip span, .q-error .field input { border-color: #e74c3c; }
.agree.q-error { box-shadow: 0 0 0 2px #e74c3c; }
.form-error { margin: -8px 0 0; color: #c0392b; font-weight: 700; background: #fdecea; padding: 12px 16px; border-radius: 12px; }
.btn-submit { justify-content: center; font-size: 18px; padding: 18px; border: 0; cursor: pointer; width: 100%; font-family: inherit; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.form-alt { text-align: center; color: var(--muted); font-size: 15px; margin: -12px 0 0; }
.form-alt a { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.apply-done { text-align: center; padding: 40px 0; }
.done-icon { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--yellow); font-size: 40px; font-weight: 900; }
.apply-done h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.apply-done p { color: var(--muted); margin: 0 0 28px; }
@media (max-width: 760px) {
  .fields { grid-template-columns: 1fr; }
  .chip span { min-height: 84px; }
  .chip b { font-size: 20px; }
}
.apply-form[hidden], .apply-done[hidden], .form-error[hidden] { display: none; }

/* ── 상가시세 한눈에 보기 (지도) ── */
.map-wrap { padding-top: 40px; }
.map-notice { background: #fdecea; color: #a93226; font-weight: 700; padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; font-size: 15px; }
.map-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.map-box { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
#rent-map { height: 620px; background: #eee; z-index: 1; }
.map-info { position: absolute; left: 16px; bottom: 16px; z-index: 500; width: 300px; max-width: calc(100% - 32px); background: rgba(255,255,255,.97); border-radius: 16px; padding: 16px 18px; box-shadow: 0 12px 30px rgba(0,0,0,.18); pointer-events: none; }
.map-info.on { border-top: 5px solid var(--ink); }
.mi-empty { margin: 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.mi-chip { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; }
.mi-name { margin: 6px 0 2px; font-weight: 800; font-size: 17px; }
.mi-name small { font-weight: 600; color: var(--muted); font-size: 12px; margin-left: 4px; }
.mi-rent { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.mi-sample { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.mi-memo { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.mi-date { margin: 8px 0 0; font-size: 12px; color: var(--gold-ink); font-weight: 700; }
.map-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ml-item { width: 100%; display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .15s; }
.ml-item:hover, .ml-item.on { border-color: var(--c); transform: translateX(-3px); }
.ml-chip { width: 18px; height: 18px; border-radius: 5px; background: var(--c); }
.ml-text { display: flex; flex-direction: column; line-height: 1.4; }
.ml-text strong { font-size: 16px; }
.ml-text small { font-size: 13px; color: var(--muted); }
.map-foot { margin: 20px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.map-foot a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.rent-tip { font-family: inherit; font-size: 13px; border-radius: 10px; padding: 6px 10px; }
.leaflet-container { font-family: inherit; }
/* 메뉴가 6개라 조금 좁게 */
@media (min-width: 761px) and (max-width: 1180px) { .nav a { padding: 8px 9px; font-size: 14px; } }
@media (max-width: 960px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-legend { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  #rent-map { height: 460px; }
  .map-box { border-radius: 14px; }
  .map-info { left: 10px; bottom: 10px; padding: 12px 14px; }
  .mi-rent { font-size: 17px; }
  .map-legend { grid-template-columns: 1fr; }
}
.leaflet-container svg { width: auto; height: auto; fill: initial; max-width: none; }
.leaflet-container img { max-width: none; }
@media (min-width: 761px) { .map-info { left: auto; right: 16px; bottom: auto; top: 16px; } }
@media (max-width: 760px) { .map-info { position: relative; left: 0; bottom: 0; width: auto; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); } .map-info.on { border-top: 5px solid var(--ink); } #rent-map { height: 400px; } }
.map-unit { margin: 16px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* 지도: PC는 커서 옆 설명, 고정 카드는 휴대폰에서만 */
@media (hover: hover) and (min-width: 761px) { .map-info { display: none; } }
.leaflet-tooltip.rent-tip { background: #fff; color: var(--ink); border: 0; border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 28px rgba(0,0,0,.22); white-space: normal; width: 270px; font-size: 13px; line-height: 1.5; }
.leaflet-tooltip.rent-tip::before { display: none; }
.rt-head { display: flex; align-items: center; gap: 6px; }
.rt-head b { font-size: 15px; }
.rt-head small { color: var(--muted); font-size: 11px; }
.rt-rent { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.rt-sample { color: var(--ink-2); margin-top: 4px; }
.rt-memo { color: var(--muted); margin-top: 2px; }
.rt-date { color: var(--gold-ink); font-weight: 700; font-size: 11px; margin-top: 6px; }

/* 직통번호 버튼 */
.btn-tel { padding: 12px 26px 12px 14px; gap: 12px; }
.bt-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 18px; }
.bt-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.bt-text small { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #6b4e00; }
.bt-text b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* 카카오맵 커서 옆 설명 */
.rent-tip-wrap { pointer-events: none; }
.rent-tip { background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 28px rgba(0,0,0,.22); width: 270px; font-size: 13px; line-height: 1.5; white-space: normal; }
#rent-map { z-index: 1; }

/* 빈 목록 안내, 첫 화면 간격, 그림 대체 */
.empty-box { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-box p { color: var(--muted); margin: 0 0 22px; line-height: 1.8; }
.empty-box b { color: var(--ink); font-size: 19px; }
.tiles-gap { height: 72px; }
.hero-visual .hero-art { display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(180deg, #ffe08a, #ffd24d); }
.hero-visual .hero-art svg { width: 100%; height: auto; }
.footer-note a { color: #fff; text-decoration: underline; }
.policy h3 { border-left: 4px solid var(--yellow); padding-left: 12px; }
.policy ul { padding-left: 1.2em; }
/* 커서 옆 설명 (지도 상자 위에 떠 있음) */
.map-box > .rent-tip-wrap { position: absolute; left: 0; top: 0; z-index: 600; pointer-events: none; will-change: transform; }
.map-box > .rent-tip-wrap[hidden] { display: none; }

/* 첫 화면: 상가시세 한눈에 보기 */
.rentmap-home { background: var(--bg); border-top: 1px solid var(--line); }
.rentmap-home .map-wrap { padding-top: 88px; }
.rm-lead { margin: -14px 0 22px; color: var(--muted); }
.rm-lead b { color: var(--ink); }
.rentmap-home #rent-map { height: 540px; }
@media (max-width: 760px) { .rentmap-home .map-wrap { padding-top: 60px; } .rentmap-home #rent-map { height: 400px; } }

/* 구역 목록 오른쪽 평당 월세 */
.ml-item { grid-template-columns: 18px 1fr auto; }
.ml-pp { font-size: 17px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; padding-left: 8px; }
.rt-pp { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 800; background: var(--yellow); color: var(--ink); padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
@media (max-width: 960px) and (min-width: 761px) { .ml-pp { font-size: 15px; } }
@media (min-width: 961px) { .map-layout { grid-template-columns: 1fr 350px; } }
.ml-text small { white-space: nowrap; }

/* ── 평당 월세 배지 (34만/평) ── */
.ml-item { position: relative; overflow: hidden; }
.ml-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.ml-pp { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 92px; padding: 8px 12px 9px; margin: -6px -6px -6px 6px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); font-size: inherit; }
.pp-val { display: flex; align-items: baseline; gap: 2px; line-height: 1; color: var(--ink); }
.pp-val b { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pp-val small { font-size: 12px; font-weight: 800; color: color-mix(in srgb, var(--c) 55%, #26221b); }
.pp-bar { width: 64px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, #fff); overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ml-item:hover .ml-pp, .ml-item.on .ml-pp { background: var(--c); border-color: var(--c); }
.ml-item:hover .pp-val, .ml-item.on .pp-val, .ml-item:hover .pp-val small, .ml-item.on .pp-val small { color: #fff; }
.ml-item:hover .pp-bar, .ml-item.on .pp-bar { background: rgba(255,255,255,.35); }
.ml-item:hover .pp-bar i, .ml-item.on .pp-bar i { background: #fff; }
.ml-item.on { box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 30%, transparent); }
/* 노랑은 흰 글씨가 잘 안 보여서 진하게 */
.ml-item[data-id="yellow"]:hover .pp-val, .ml-item[data-id="yellow"].on .pp-val, .ml-item[data-id="yellow"]:hover .pp-val small, .ml-item[data-id="yellow"].on .pp-val small { color: var(--ink); }
.ml-item[data-id="yellow"]:hover .pp-bar i, .ml-item[data-id="yellow"].on .pp-bar i { background: var(--ink); }
@media (max-width: 760px) { .pp-val b { font-size: 22px; } .ml-pp { min-width: 84px; } }

/* ── 1층 / 상층부 전환 버튼 ── */
.floor-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px; margin: 0 0 18px; box-shadow: 0 6px 18px rgba(38,34,27,.06); }
.ft-btn { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 800; color: var(--muted); padding: 11px 26px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .25s; }
.ft-btn small { font-size: 12px; font-weight: 600; opacity: .8; margin-left: 2px; }
.ft-btn.on { color: var(--ink); }
.ft-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ft-glider { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--yellow); box-shadow: 0 4px 12px rgba(255,188,0,.4); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.floor-toggle.is-up .ft-glider { transform: translateX(100%); }
.floor-switching .map-legend { animation: legendIn .35s ease; }
@keyframes legendIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 시세 준비 중 */
.ml-pp--soon { justify-content: center; align-items: center; background: #f4f1ea; border: 1px dashed #d8d1c2; min-height: 44px; }
.ml-pp--soon small { font-size: 13px; font-weight: 800; color: var(--muted); }
.ml-item--soon .ml-text small { color: #a49d90; }
.ml-item--soon:hover .ml-pp--soon, .ml-item--soon.on .ml-pp--soon { background: #ece6da; border-color: #c9c0ae; }
.ml-item--soon:hover .ml-pp--soon small, .ml-item--soon.on .ml-pp--soon small { color: var(--ink); }
@media (max-width: 760px) { .floor-toggle { display: grid; width: 100%; } .ft-btn { padding: 11px 10px; font-size: 15px; } }

/* 목록: 배지가 오른쪽으로 밀리지 않도록 (글자 칸이 줄어들게) */
.ml-item { grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 12px; padding-right: 12px; }
.ml-text { min-width: 0; }
.ml-text strong { overflow-wrap: anywhere; }
.ml-text small { white-space: normal; }
.ml-pp { margin: -4px 0 -4px 0; flex-shrink: 0; }

/* ── 권리금 분위기 (평당 배지 오른쪽, 불빛 3칸) ── */
.ml-item { grid-template-columns: 18px minmax(0, 1fr) auto auto; }
.ml-prem { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 54px; padding-left: 10px; border-left: 1px dashed var(--line); line-height: 1; }
.ml-prem small { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: -0.02em; }
.ml-prem em { font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pm-lights { display: inline-flex; gap: 3px; }
.pm-lights i { width: 9px; height: 9px; border-radius: 50%; background: #e7e2d6; box-shadow: inset 0 1px 1px rgba(0,0,0,.08); }
.pm-hi i.on { background: #e74c3c; box-shadow: 0 0 6px rgba(231,76,60,.7); }
.pm-mid i.on { background: #f39c12; box-shadow: 0 0 6px rgba(243,156,18,.7); }
.pm-lo i.on { background: #27ae60; box-shadow: 0 0 6px rgba(39,174,96,.6); }
.ml-prem:has(.pm-hi) em { color: #c0392b; }
.ml-prem:has(.pm-mid) em { color: #b9770e; }
.ml-prem:has(.pm-lo) em { color: #1e8449; }
/* 마우스 옆 설명 / 휴대폰 카드 */
.rt-prem { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.rt-prem span { color: var(--muted); font-weight: 700; }
.rt-prem b { font-weight: 800; }
@media (min-width: 1100px) { .map-layout { grid-template-columns: 1fr 400px; } }
@media (max-width: 760px) { .ml-prem { min-width: 50px; padding-left: 8px; } }

/* 첫 화면 제목의 "서영진 공인중개사" 강조 */
.hero-name { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.hero-name::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .36em; background: rgba(255,255,255,.75); border-radius: 6px; z-index: -1; }
.hero h1 .nw { white-space: nowrap; }

/* 최근 계약 실적 롤링 카드 */
.hd-title { justify-content: flex-start; }
.hd-count { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--cream); padding: 2px 8px; border-radius: 999px; }
.hd-window { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6px, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(180deg, transparent 0, #000 6px, #000 calc(100% - 10px), transparent); }
.hd-window.static { -webkit-mask-image: none; mask-image: none; }
.hd-track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; will-change: transform; }
.hd-track .hd-item { cursor: default; }
.hd-track .hd-item:hover { background: transparent; }
.hero-deals:hover .hd-track .hd-item:hover { background: var(--cream); }
.hd-logo { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; }

/* 첫 화면 사진: 위로 올리고, 계약 카드는 얼굴 아래로 */
@media (min-width: 961px) {
  .hero-grid { align-items: start; }
  .hero-visual { align-self: start; margin-top: -28px; }
  .hero-deals { bottom: -96px; left: -28px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .hero-deals { bottom: -80px; }
}
@media (min-width: 961px) and (max-width: 1100px) { .hero-deals { bottom: -120px; left: -36px; width: 250px; } }
@media (min-width: 761px) and (max-width: 960px) { .hero-deals { bottom: -36px; } .hero { padding-bottom: 150px; } }

/* 블로그 원문 보기 버튼 (글 맨 아래) */
.blog-src { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; margin: 44px 0 0; padding: 18px 20px; border-radius: 16px; background: #f1faf3; border: 1.5px solid #bfe6c8; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.blog-src:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3,199,90,.15); border-color: #03c75a; }
.bs-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #03c75a; color: #fff; font-weight: 900; font-size: 20px; }
.bs-text { display: flex; flex-direction: column; line-height: 1.35; }
.bs-text small { font-size: 13px; color: var(--muted); }
.bs-text b { font-size: 17px; }
.bs-arrow { font-size: 20px; color: #03a64b; }

/* 계약사례 사진 3칸 자리 표시 (미리보기 전용) */
.g-slot { cursor: default; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #fff6d6 0 14px, #fff0c2 14px 28px); border: 2px dashed #e8c45a; }
.g-slot span { display: grid; gap: 4px; text-align: center; font-weight: 800; color: #8a6a10; font-size: 18px; }
.g-slot small { font-weight: 600; font-size: 13px; color: #a88a3a; }
.slot-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }

/* 휴대폰 전화 버튼: 전화 / 문자 / 연락처 저장 선택창 */
.tel-sheet { position: fixed; inset: 0; z-index: 9999; }
.ts-back { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.ts-panel { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-radius: 22px; display: grid; gap: 8px; transform: translateY(110%); transition: transform .22s ease-out; max-width: 480px; margin: 0 auto; }
.tel-sheet.show .ts-back { opacity: 1; }
.tel-sheet.show .ts-panel { transform: none; }
.ts-title { margin: 0 0 6px; text-align: center; font-size: 14px; color: var(--ink-2); display: grid; gap: 2px; }
.ts-title b { font-size: 22px; color: var(--ink); letter-spacing: .02em; }
.ts-btn { display: block; width: 100%; padding: 15px; border: 0; border-radius: 14px; background: #f5f1e6; color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.ts-call { background: var(--yellow); }
.ts-cancel { background: transparent; color: var(--ink-2); font-weight: 600; }
