@charset "UTF-8";
/* ==========================================================================
   서희부동산 — 공개 사이트 스타일

   ★ 한 가지만 눈에 띈다: "밤의 사무소 유리창".
     동네 부동산의 얼굴은 유리창에 붙은 매물 전단이다. 첫 화면 오른쪽 판과 추천 매물 띠를
     남색 유리(--navy) 위에 흰 매물지(.sheet)를 붙인 모양으로 만들었다. 나머지는 조용히 둔다.

   ★ 색은 로고에서 잰 값만 쓴다(scripts/MakeBrandAssets.java 로 원본에서 측정).
       남색 #0a1d40  서희부동산 글씨   — 글자·구조·주 버튼 (흰 바탕 16.6:1)
       금색 #bf8837  지붕선           — 선·장식 전용. 흰 바탕 3.1:1 이라 글자에 쓰지 않는다
       금색 글자 #8a5a14              — 금색을 글자로 써야 할 때 (5.9:1)
       분홍 #de4477  하트             — 장식 전용
       분홍 글자 #b0245a              — 월세 도장·강조 글자 (6.5:1)
     명함의 벽돌색(#b3362a)은 인쇄물 색이라 화면에는 쓰지 않았다. 로고가 기준이다.

   ★ 크기는 송골농원 기준을 그대로 따른다: 본문 17px, 누르는 것 48px 이상, 대비 AA 이상.
     부동산 손님도 어르신이 많고, 휴대폰으로 매물을 본다.

   외부 CDN 을 쓰지 않는다. 글꼴은 /fonts/ 에서 우리 서버가 내보낸다.
   ========================================================================== */

@font-face {
    font-family: "Pretendard";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/Pretendard-Regular.subset.woff2") format("woff2");
}

@font-face {
    font-family: "Pretendard";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
}

@font-face {
    font-family: "Pretendard";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/Pretendard-Bold.subset.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   1. 토큰
   -------------------------------------------------------------------------- */
:root {
    --navy: #0a1d40;
    --navy-deep: #06132c;
    --navy-glass: #102a57;
    --navy-mist: #eef1f7;
    --navy-line: #d5dbe6;

    --gold: #bf8837;
    --gold-ink: #8a5a14;
    --gold-soft: #f6ecda;
    --gold-on-navy: #e2b86f;

    --rose: #de4477;
    --rose-ink: #b0245a;
    --rose-soft: #fbe9f0;

    --plate: #f6f2ec;

    --ink: #16203a;
    --muted: #5a6275;
    --line: #dde2ea;
    --paper: #ffffff;
    --page: #ffffff;

    --danger: #b3261e;
    --danger-soft: #fdecec;
    --ok: #2c7a3f;
    --ok-soft: #eaf5ee;

    --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
        "Malgun Gothic", "Noto Sans KR", sans-serif;

    /* 모서리: 종이(매물지)는 거의 각지고, 누르는 것은 조금 둥글다. 한 값으로 통일하지 않는다. */
    --r-sheet: 3px;
    --r-control: 8px;
    --r-pill: 999px;

    --wrap: 1180px;
    --gutter: 20px;
    --header-h: 76px;

    --focus: 0 0 0 3px #ffffff, 0 0 0 6px #1f5fa9;
}

/* --------------------------------------------------------------------------
   2. 바탕
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* 17px */
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--navy-deep);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 4px;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--navy);
}

p {
    margin: 0 0 1em;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

.wrap {
    width: min(var(--wrap), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    border-radius: var(--r-control);
}

.skip-link:focus {
    top: 12px;
}

.site-main {
    min-height: 50vh;
}

.site-main:focus {
    outline: none;
}

/* 로고의 지붕선(접수 완료 화면 머리) */
.roofline {
    display: block;
    width: 150px;
    height: 34px;
    color: var(--gold);
    margin-bottom: 18px;
}

.nowrap {
    white-space: nowrap;
}

.num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------------------------
   3. 버튼·도장
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 22px;
    border: 2px solid var(--navy);
    border-radius: var(--r-control);
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: #fff;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.btn--ghost {
    background: var(--paper);
    color: var(--navy);
}

.btn--ghost:hover {
    background: var(--navy-mist);
    color: var(--navy-deep);
}

/* 남색 판 위에서 쓰는 버튼: 흰 바탕 남색 글자 */
.btn--light {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.btn--light:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    color: var(--navy-deep);
}

.btn--block {
    width: 100%;
}

.btn--big {
    min-height: 56px;
    font-size: 1.125rem;
    padding-inline: 26px;
}

/* --------------------------------------------------------------------------
   4. 머리(헤더)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(6px);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.site-header__logo {
    display: block;
    flex: none;
}

.site-header__logo img {
    height: 44px;
    width: auto;
}

.gnb {
    flex: 1;
}

.gnb__list {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gnb__item {
    position: relative;
}

.gnb__link {
    display: flex;
    align-items: center;
    min-height: var(--header-h);
    padding: 0 14px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.gnb__link:hover,
.gnb__link--active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

.gnb__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 190px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    box-shadow: 0 16px 30px -18px rgba(6, 19, 44, 0.5);
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
}

.gnb__item:hover .gnb__sub,
.gnb__item:focus-within .gnb__sub {
    visibility: visible;
    opacity: 1;
}

.gnb__sub a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.gnb__sub a:hover,
.gnb__sub a[aria-current="page"] {
    background: var(--navy-mist);
    color: var(--navy);
}

.header-call {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 16px 6px 12px;
    border-radius: var(--r-control);
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
}

.header-call:hover {
    background: var(--navy-deep);
    color: #fff;
}

.header-call svg {
    width: 22px;
    height: 22px;
    color: var(--gold-on-navy);
}

.header-call__label {
    display: block;
    font-size: 0.8125rem;
    color: #c9d2e3;
}

.header-call__number {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.01em;
}

.nav-toggle {
    display: none;
    flex: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--paper);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
}

.mobile-nav {
    display: none;
}

@media (max-width: 1080px) {
    .gnb__link {
        padding: 0 9px;
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 64px;
    }

    .gnb,
    .header-call {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-header__logo img {
        height: 38px;
    }

    .mobile-nav {
        display: block;
        border-top: 1px solid var(--line);
        background: var(--paper);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .mobile-nav[hidden] {
        display: none;
    }

    .mobile-nav__group {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .mobile-nav__title {
        margin: 0 0 6px;
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--muted);
    }

    .mobile-nav__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-nav__links a {
        display: flex;
        align-items: center;
        min-height: 48px;
        color: var(--ink);
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-nav__links a[aria-current="page"] {
        color: var(--navy);
        text-decoration: underline;
        text-decoration-color: var(--gold);
        text-decoration-thickness: 3px;
    }

    .mobile-nav__call {
        padding: 16px 0 20px;
    }
}

/* --------------------------------------------------------------------------
   5. 첫 화면 — 사무소 앞 유리창

   구성: 벽(연한 남색 바탕) 안에 알루미늄 창틀(--frame), 그 안에 남색 유리 두 장.
   왼쪽 유리는 시트 글씨(손글씨 흰색판·제목·전화), 오른쪽 유리는 붙여 둔 매물표.
   창틀 바탕 위에 유리 두 장을 틈(gap)을 두고 놓는다 — 그 틈이 문설주다. 한쪽 테두리로 그리지 않는다
   (카드 한쪽에 굵은 색 띠를 두르는 흔한 장식과 구별되지 않는다).
   유리 반사는 사선 두 줄뿐이고 움직이지 않는다.
   -------------------------------------------------------------------------- */
:root {
    --frame: #cdd5e2;
    --frame-dark: #b3bdcd;
}

.storefront {
    padding: 28px 0 56px;
    background: var(--navy-mist);
}

.storefront__frame {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.6fr);
    gap: 10px; /* 문설주 */
    padding: 10px 10px 0;
    border-radius: 6px 6px 0 0;
    background: var(--frame);
    box-shadow: inset 0 0 0 1px var(--frame-dark);
    color: #fff;
}

/* 유리 한 장 */
.storefront__pane {
    padding: 40px 36px 36px;
    min-width: 0;
    background:
        linear-gradient(112deg,
            transparent 0 22%, rgba(255, 255, 255, 0.055) 22% 30%, transparent 30% 34%,
            rgba(255, 255, 255, 0.035) 34% 37%, transparent 37%),
        var(--navy);
    box-shadow: 0 0 0 1px var(--frame-dark);
}

.storefront__pane--sheets {
    display: flex;
    align-items: center;
}

.storefront__slogan {
    width: auto;
    height: clamp(40px, 5vw, 60px);
    margin-bottom: 26px;
}

.storefront__title {
    color: #fff;
    font-size: clamp(1.625rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.03em;
}

.storefront__lead {
    margin: 16px 0 26px;
    color: #c9d2e3;
    font-size: 1.125rem;
}

.storefront__owner {
    margin: 18px 0 0;
    color: #c9d2e3;
    font-size: 0.9375rem;
}

.storefront__owner a {
    color: #fff;
    font-weight: 700;
    text-decoration-color: var(--gold-on-navy);
    text-decoration-thickness: 2px;
}

.storefront__sheets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 창턱: 창틀 아래 흰 선반. 거래별 매물 수와 찾기 */
.sill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 16px 20px;
    background: var(--paper);
    border: 10px solid var(--frame);
    border-top-width: 6px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 18px 30px -24px rgba(6, 19, 44, 0.5);
}

.sill__deals {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.sill__deals a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.sill__deals a:hover {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}

.sill__deals strong {
    color: var(--navy);
}

.sill__all {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.sill__search {
    display: flex;
    gap: 8px;
    flex: 1 1 460px;
    max-width: 620px;
}

.sill__search .select {
    flex: 0 0 150px;
}

.sill__search .input {
    flex: 1;
    min-width: 0;
}

.deal-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--navy);
}

.deal-dot--jeonse {
    background: var(--gold-ink);
}

.deal-dot--monthly {
    background: var(--rose-ink);
}

@media (max-width: 1080px) {
    .storefront__frame {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .storefront {
        padding: 16px 0 40px;
    }

    .storefront__frame {
        gap: 6px;
        padding: 6px 6px 0;
    }

    .sill {
        border-width: 6px;
        border-top-width: 4px;
        padding: 12px 14px;
    }

    .storefront__pane {
        padding: 28px 20px;
    }

    .storefront__pane--sheets {
        padding: 24px 0 24px 20px;
    }

    /* 휴대폰: 매물표를 옆으로 넘겨 본다(유리에 나란히 붙은 그대로) */
    .storefront__sheets {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 20px 8px 0;
    }

    .storefront__sheets > li {
        scroll-snap-align: start;
    }

    .storefront .sheet--notice {
        margin-right: 20px;
    }

    .storefront .actions .btn {
        flex: 1 1 100%;
    }

    .sill__search {
        flex-wrap: wrap;
    }

    .sill__search .select,
    .sill__search .input,
    .sill__search .btn {
        flex: 1 1 100%;
    }
}

/* 남색 유리 위의 보조 버튼: 테두리만 있는 흰 글씨 */
.btn--glass {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. 구역
   -------------------------------------------------------------------------- */
.section {
    padding: 64px 0;
}

.section--mist {
    background: var(--navy-mist);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section__title {
    font-size: 1.75rem;
    font-weight: 700;
}

.section__desc {
    margin: 6px 0 0;
    color: var(--muted);
}

.section__more {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .section {
        padding: 44px 0;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .section__head {
        flex-wrap: wrap;
    }
}

/* --------------------------------------------------------------------------
   7. 매물지 — 인쇄 매물표

   종이 한 장이다: 모서리는 거의 각지고(2px), 그림자는 종이가 유리에서 살짝 뜬 만큼만.
   맨 위 색 띠가 거래 형태, 큰 숫자가 가격, 작은 표가 면적·층·위치.
   -------------------------------------------------------------------------- */
.sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sheet {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 0 1px 0 rgba(10, 29, 64, 0.05);
}

/* 유리에 붙은 종이: 테두리 없이 그림자만 — 테두리와 넓은 그림자를 겹치지 않는다 */
.storefront .sheet {
    border: 0;
    box-shadow: 0 16px 26px -18px rgba(0, 0, 0, 0.85);
}

.sheet__band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 6px 14px;
    background: var(--navy);
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 2px 2px 0 0;
}

.sheet__band--jeonse {
    background: var(--gold-ink);
}

.sheet__band--monthly {
    background: var(--rose-ink);
}

.sheet__band strong {
    font-size: 1.0625rem;
    letter-spacing: 0.04em;
}

.sheet__type {
    margin-left: 4px;
    font-weight: 600;
    font-size: 0.9375rem;
    opacity: 0.92;
}

.sheet__no {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.92;
}

/* 안내문(매물이 없을 때): 색 띠 대신 흰 띠에 금색 밑줄 */
.sheet__band--notice {
    background: var(--paper);
    color: var(--navy);
    font-weight: 700;
    border-bottom: 3px solid var(--gold);
}

.sheet--notice {
    width: 100%;
    max-width: 520px;
    height: auto;
}

.sheet__notice-title {
    margin: 4px 0 8px;
    font-size: 1.25rem;
}

.sheet--notice p {
    color: var(--muted);
}

.sheet__link {
    color: inherit;
    text-decoration: none;
}

/* 매물표 전체가 눌리게: 제목 링크를 매물표 크기로 늘린다 */
.sheet__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2px;
}

.sheet__link:focus-visible {
    box-shadow: none;
}

.sheet__link:focus-visible::after {
    box-shadow: var(--focus);
}

.sheet:hover .sheet__title {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}

.sheet__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy-mist);
}

.sheet__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sheet__nophoto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.9375rem;
    text-align: center;
}

.sheet__nophoto svg {
    width: 56px;
    height: 40px;
    color: var(--gold);
}

.sheet__photo-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 0 8px;
    border-radius: 2px;
    background: rgba(6, 19, 44, 0.78);
    color: #fff;
    font-size: 0.8125rem;
    line-height: 1.8;
}

.sheet__featured {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 0 8px;
    border-radius: 2px;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.9;
}

.sheet__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
    flex: 1;
}

.sheet__price {
    margin: 0;
    color: var(--navy);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.sheet__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

/* 인쇄 매물표의 작은 표 */
.sheet__specs {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 3px 12px;
    margin: auto 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--navy-line);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.sheet__specs dt {
    color: var(--muted);
}

.sheet__specs dd {
    margin: 0;
    color: var(--ink);
}

/* 매물이 없을 때(목록 화면) */
.empty {
    padding: 40px 28px;
    border: 1px dashed var(--navy-line);
    border-radius: var(--r-control);
    background: var(--paper);
    text-align: left;
}

.empty__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: var(--navy);
}

.empty p {
    color: var(--muted);
    max-width: 40em;
}

.empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* --------------------------------------------------------------------------
   8. 첫 화면 아래쪽: 집주인 · 계산기 · 사무소 · 공지
   상자를 두르지 않는다. 두 단은 세로선 하나로 나눈다.
   -------------------------------------------------------------------------- */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.duo__col {
    padding: 4px 48px 4px 0;
    min-width: 0;
}

.duo__col + .duo__col {
    padding: 4px 0 4px 48px;
    border-left: 1px solid var(--line);
}

.duo__title {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.duo__lead {
    color: var(--muted);
    max-width: 34em;
}

.steps {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 6px 0 6px 40px;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    line-height: 28px;
}

/* 오시는 길 화면이 쓰는 두 단 · 테두리 상자 */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel {
    padding: 30px 30px 28px;
    border-radius: var(--r-control);
    background: var(--paper);
    border: 1px solid var(--line);
}

.panel__title {
    margin-bottom: 10px;
    font-size: 1.375rem;
}

.panel p {
    color: var(--muted);
}

.office {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.office__plate {
    padding: 18px;
    border-radius: 50% 46% 48% 50% / 44% 50% 46% 52%;
    background: var(--plate);
}

.facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 20px;
    margin: 18px 0 24px;
}

.facts dt {
    color: var(--muted);
    font-weight: 600;
}

.facts dd {
    margin: 0;
}

.news {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--navy);
}

.news li {
    border-bottom: 1px solid var(--line);
}

.news a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    align-items: center;
    padding: 10px 4px;
    color: var(--ink);
    text-decoration: none;
}

.news a:hover .news__title {
    text-decoration: underline;
}

.news__date {
    flex: none;
    color: var(--muted);
    font-size: 0.9375rem;
}

.pin {
    display: inline-block;
    margin-right: 6px;
    padding: 0 7px;
    border-radius: 2px;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    vertical-align: 2px;
}

@media (max-width: 880px) {
    .duo,
    .split,
    .office {
        grid-template-columns: 1fr;
    }

    .duo__col,
    .duo__col + .duo__col {
        padding: 0;
    }

    .duo__col + .duo__col {
        margin-top: 36px;
        padding-top: 36px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .office__plate {
        max-width: 260px;
    }

    .panel {
        padding: 24px 20px;
    }
}

/* --------------------------------------------------------------------------
   9. 서브페이지 머리
   -------------------------------------------------------------------------- */
.page-head {
    padding: 36px 0 28px;
    background: var(--navy-mist);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb__sep {
    color: #9aa3b5;
}

.page-head__title {
    font-size: 2.125rem;
    font-weight: 700;
}

.page-head__lead {
    margin: 8px 0 0;
    max-width: 42em;
    color: var(--muted);
}

.page-body {
    padding: 40px 0 72px;
}

@media (max-width: 640px) {
    .page-head {
        padding: 24px 0 20px;
    }

    .page-head__title {
        font-size: 1.75rem;
    }

    .page-body {
        padding: 28px 0 56px;
    }
}

/* --------------------------------------------------------------------------
   10. 매물 목록 필터
   -------------------------------------------------------------------------- */
.deal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.deal-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 18px;
    border: 1px solid var(--navy-line);
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.deal-tabs a[aria-current="page"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.deal-tabs__count {
    font-weight: 600;
    font-size: 0.9375rem;
    opacity: 0.8;
}

.filter-bar {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 180px auto;
    gap: 10px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--paper);
}

.filter-bar label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 24px 0 16px;
    color: var(--muted);
}

.result-meta strong {
    color: var(--navy);
}

.result-meta__count {
    display: flex;
    gap: 16px;
}

@media (max-width: 880px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar__q,
    .filter-bar__submit {
        grid-column: 1 / -1;
    }
}

/* --------------------------------------------------------------------------
   11. 입력칸 공통
   -------------------------------------------------------------------------- */
.input,
.select,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b9c2d3;
    border-radius: var(--r-control);
    background: var(--paper);
    color: var(--ink);
}

.textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(31, 95, 169, 0.25);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

/* --------------------------------------------------------------------------
   12. 매물 상세
   -------------------------------------------------------------------------- */
.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    grid-template-areas:
        "gallery summary"
        "info    summary";
    gap: 0 40px;
    align-items: start;
}

.detail__gallery {
    grid-area: gallery;
}

.detail__summary {
    grid-area: summary;
}

.detail__info {
    grid-area: info;
}

.gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--r-sheet);
    background: var(--navy-mist);
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0d1a33;
}

.gallery__thumbs {
    display: flex;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0 0 4px;
    list-style: none;
    overflow-x: auto;
}

.gallery__thumb {
    flex: none;
    width: 88px;
    height: 66px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--r-sheet);
    overflow: hidden;
    background: none;
    cursor: pointer;
}

.gallery__thumb[aria-current="true"] {
    border-color: var(--navy);
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 0 24px 22px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
    box-shadow: 0 16px 30px -24px rgba(6, 19, 44, 0.45);
}

/* 요약 상자 머리는 매물표와 같은 색 띠 — 목록에서 누른 그 매물표를 크게 편 것이다 */
.summary__band {
    margin: 0 -24px 16px;
}

.summary__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.summary__no {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.9375rem;
}

.summary__price {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.summary__price-long {
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 0.9375rem;
}

.summary__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.summary__oneline {
    color: var(--muted);
}

.summary__actions {
    display: grid;
    gap: 10px;
    margin: 20px 0 16px;
}

.summary__small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.summary__checked {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px 12px;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.summary__checked dd {
    margin: 0;
}

.block {
    margin-top: 40px;
}

.block__title {
    margin-bottom: 14px;
    font-size: 1.375rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--navy);
}

.spec-table th,
.spec-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    width: 9.5em;
    background: var(--navy-mist);
    color: var(--navy);
    font-weight: 600;
}

.description {
    white-space: pre-line;
    max-width: 72ch;
}

/* 법정 표시: 중개사무소 정보. 매물 광고마다 붙어야 한다 */
.office-box {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: var(--r-sheet);
    background: var(--navy-mist);
    font-size: 0.9375rem;
}

.office-box__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

.office-box dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 16px;
    margin: 0;
}

.office-box dt {
    color: var(--muted);
}

.office-box dd {
    margin: 0;
}

.notice-line {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9375rem;
}

@media (max-width: 960px) {
    .detail {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "summary"
            "info";
    }

    .detail__summary {
        margin-top: 16px;
    }

    .summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .spec-table th {
        width: 7em;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px;
    }

    .summary__price {
        font-size: 1.875rem;
    }
}

/* --------------------------------------------------------------------------
   13. 폼 (상담 신청)
   -------------------------------------------------------------------------- */
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    gap: 40px;
    align-items: start;
}

.form {
    display: grid;
    gap: 22px;
}

.field__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--navy);
}

.field__req {
    margin-left: 4px;
    color: var(--rose-ink);
    font-size: 0.9375rem;
    font-weight: 600;
}

.field__hint {
    margin: 6px 0 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.field__error {
    margin: 6px 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--danger);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

fieldset.field {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

fieldset.field legend {
    padding: 0;
}

.choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #b9c2d3;
    border-radius: var(--r-control);
    background: var(--paper);
    cursor: pointer;
    font-weight: 600;
}

.choice input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--navy);
    flex: none;
}

.choice:has(input:checked) {
    border-color: var(--navy);
    background: var(--navy-mist);
    box-shadow: inset 0 0 0 1px var(--navy);
}

.choice:has(input:focus-visible) {
    box-shadow: var(--focus);
}

.agree {
    padding: 18px;
    border-radius: var(--r-control);
    background: var(--navy-mist);
}

.agree__table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.agree__table th,
.agree__table td {
    padding: 6px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--navy-line);
}

.agree__table th {
    width: 7em;
    color: var(--muted);
    font-weight: 600;
}

.agree__check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    font-weight: 700;
    cursor: pointer;
}

.agree__check input {
    width: 22px;
    height: 22px;
    accent-color: var(--navy);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--r-control);
    border: 1px solid;
    font-weight: 600;
}

.alert--error {
    background: var(--danger-soft);
    border-color: #e8bcb9;
    color: var(--danger);
}

.alert--ok {
    background: var(--ok-soft);
    border-color: #b7dcc4;
    color: var(--ok);
}

.aside-card {
    padding: 24px;
    border-radius: var(--r-control);
    background: var(--navy);
    color: #fff;
}

.aside-card h2 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.aside-card p {
    color: #c9d2e3;
}

.aside-card__tel {
    display: block;
    margin: 8px 0 14px;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
}

.aside-card__tel:hover {
    color: var(--gold-on-navy);
}

.aside-card .steps li::before {
    background: rgba(226, 184, 111, 0.18);
    color: var(--gold-on-navy);
}

.aside-card .steps li {
    color: #e4e9f2;
}

.listing-ref {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--paper);
}

.listing-ref img {
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: var(--r-sheet);
}

.listing-ref p {
    margin: 0;
}

.listing-ref__price {
    font-weight: 700;
    color: var(--navy);
}

@media (max-width: 880px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   14. 중개보수 계산기
   -------------------------------------------------------------------------- */
.calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.calc__form {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--paper);
}

.money-input {
    position: relative;
}

.money-input .input {
    padding-right: 64px;
    font-size: 1.25rem;
    font-weight: 700;
}

.money-input__unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 600;
}

.money-hint {
    min-height: 1.5em;
    margin: 6px 0 0;
    color: var(--gold-ink);
    font-weight: 600;
    font-size: 0.9375rem;
}

.result {
    padding: 26px;
    border-radius: var(--r-control);
    background: var(--navy);
    color: #fff;
}

.result h2 {
    color: #c9d2e3;
    font-size: 1rem;
    font-weight: 600;
}

.result__fee {
    margin: 4px 0 2px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.result__vat {
    margin: 0 0 18px;
    color: var(--gold-on-navy);
    font-weight: 600;
}

.result dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result dt {
    color: #c9d2e3;
}

.result dd {
    margin: 0;
}

.result__note {
    margin: 16px 0 0;
    font-size: 0.9375rem;
    color: #c9d2e3;
}

.result--empty {
    background: var(--navy-mist);
    color: var(--ink);
}

.result--empty h2 {
    color: var(--navy);
    font-size: 1.25rem;
}

.result--empty p {
    color: var(--muted);
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    border-top: 2px solid var(--navy);
}

.rate-table caption {
    text-align: left;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.125rem;
    padding-bottom: 8px;
}

.rate-table th,
.rate-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.rate-table thead th {
    background: var(--navy-mist);
    color: var(--navy);
}

.rate-table tr.is-hit td {
    background: var(--gold-soft);
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
}

.rate-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 880px) {
    .calc,
    .rate-tables {
        grid-template-columns: 1fr;
    }

    .result__fee {
        font-size: 2rem;
    }
}

/* --------------------------------------------------------------------------
   15. 글 (소개·정책·공지)
   -------------------------------------------------------------------------- */
.prose {
    max-width: 72ch;
}

.prose h2 {
    margin: 36px 0 12px;
    font-size: 1.5rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin: 24px 0 8px;
    font-size: 1.1875rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1em;
    padding-left: 1.3em;
}

.prose li {
    margin-bottom: 6px;
}

.prose li::marker {
    color: var(--gold);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.2em;
    font-size: 0.9375rem;
}

.prose th,
.prose td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--navy-mist);
}

.prose .pre-line {
    white-space: pre-line;
}

.lead {
    font-size: 1.1875rem;
    color: var(--muted);
    max-width: 42em;
}

.with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

/* 긴 본문 옆의 짧은 옆칸(전화·로고)이 빈 공간에 떠 있지 않게 스크롤을 따라온다 */
.with-aside > aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

@media (max-width: 960px) {
    .with-aside {
        grid-template-columns: 1fr;
    }

    .with-aside > aside {
        position: static;
    }
}

.aside-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

/* 구성원 */
.people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.person {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-sheet);
    background: var(--paper);
}

.person__role {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.person__qual {
    padding: 0 8px;
    border-radius: 2px;
    background: var(--navy-mist);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.875rem;
}

.person__name {
    margin: 2px 0 10px;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
}

.person__contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.person__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

/* 오시는 길 */
.address-card {
    padding: 26px;
    border-radius: var(--r-control);
    background: var(--navy);
    color: #fff;
}

.address-card h2 {
    color: #fff;
    font-size: 1.25rem;
}

.address-card__addr {
    margin: 10px 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
}

.address-card__detail {
    margin: 0 0 18px;
    color: #c9d2e3;
}

.address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 공지 목록·보기 */
.board-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--navy);
}

.board-list li {
    border-bottom: 1px solid var(--line);
}

.board-list a {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 60px;
    padding: 12px 6px;
    color: var(--ink);
    text-decoration: none;
}

.board-list a:hover .board-list__title {
    text-decoration: underline;
}

.board-list__no {
    flex: none;
    width: 3em;
    color: var(--muted);
    text-align: center;
}

.board-list__title {
    flex: 1;
    font-weight: 600;
}

.board-list__date {
    flex: none;
    color: var(--muted);
    font-size: 0.9375rem;
}

.article {
    max-width: 72ch;
}

.article__head {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--navy);
}

.article__title {
    font-size: 1.5rem;
}

.article__meta {
    display: flex;
    gap: 16px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.article__body {
    white-space: pre-line;
}

.article__foot {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* 페이지 이동 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    color: var(--ink);
    text-decoration: none;
}

.pagination a[aria-current="page"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 700;
}

.pagination .is-disabled {
    color: #9aa3b5;
}

/* 오류 화면 */
.error-page {
    padding: 80px 0 96px;
}

.error-page__code {
    margin: 0;
    color: var(--gold-ink);
    font-weight: 700;
}

.error-page h1 {
    margin: 6px 0 12px;
    font-size: 2rem;
}

.error-page p {
    color: var(--muted);
    max-width: 36em;
}

.error-page .actions {
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   16. 바닥(푸터)
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 48px 0 40px;
    background: var(--navy-deep);
    color: #c9d2e3;
    font-size: 0.9375rem;
}

.site-footer a {
    color: #fff;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__brand {
    max-width: 420px;
}

.site-footer__name {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.site-footer__slogan {
    margin: 0;
    color: var(--gold-on-navy);
}

.site-footer__call {
    text-align: right;
}

.site-footer__tel {
    display: block;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

.site-footer__biz {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 6px 28px;
    margin: 24px 0;
}

.site-footer__biz div {
    display: flex;
    gap: 10px;
}

.site-footer__biz dt {
    flex: none;
    color: #93a0b8;
}

.site-footer__biz dd {
    margin: 0;
    color: #e4e9f2;
}

.site-footer__biz .is-wide {
    grid-column: 1 / -1;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-bottom: 14px;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
}

.site-footer__legal {
    margin: 0 0 8px;
    color: #93a0b8;
}

.site-footer__copy {
    margin: 0;
    color: #93a0b8;
}

@media (max-width: 640px) {
    .site-footer__call {
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   17. 휴대폰 아래 고정 띠 — 전화 · 상담
   부동산 손님은 매물을 보다가 바로 전화한다. 스크롤을 올려 번호를 찾게 하지 않는다.
   -------------------------------------------------------------------------- */
.callbar {
    display: none;
}

@media (max-width: 960px) {
    .callbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 8px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 20px -14px rgba(6, 19, 44, 0.5);
    }

    .callbar .btn {
        min-height: 50px;
        padding-inline: 10px;
    }

    body {
        padding-bottom: 76px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .gnb__sub {
        transition: opacity 0.12s ease, visibility 0.12s;
    }
}

@media print {
    .site-header,
    .callbar,
    .site-footer__links {
        display: none;
    }
}
