/* ============================================================
   텐 부동산 — 디자인 시스템 (모바일 우선)
   ASP.NET Core 10 / Razor  ·  라이트+다크 대응
   ============================================================ */

:root {
    /* 텐 브랜드 팔레트(실제 ten.co.kr) — 파란 TEN + 주황 지붕 */
    --brand-50:#eaf2fd; --brand-100:#d4e6fa; --brand-300:#8fbcf0;
    --brand-500:#2f87ec; --brand-600:#1f5fb5; --brand-700:#17498c; --brand-900:#152a69;
    --accent:#f47a21; --accent-ink:#c75e12;
    --mint:#12b886; --amber:#f59f00; --gold:#e8b100;

    --bg:#f5f6f8; --surface:#ffffff; --surface-2:#f0f2f5; --surface-3:#e7eaf0;
    --ink:#121722; --ink-2:#424a58; --ink-3:#6b7382; --ink-4:#97a0b0;
    --line:#e3e7ee; --line-2:#d3d9e3;
    --shadow-sm:0 1px 2px rgba(17,23,34,.06),0 1px 3px rgba(17,23,34,.08);
    --shadow-md:0 4px 12px rgba(17,23,34,.08),0 2px 4px rgba(17,23,34,.05);
    --shadow-lg:0 12px 32px rgba(17,23,34,.14);
    --r-sm:8px; --r-md:12px; --r-lg:18px; --r-xl:26px;
    --wrap:1180px; --header-h:60px; --tabbar-h:60px;
    --font:"Pretendard","Pretendard Variable",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:#0d1017; --surface:#161b25; --surface-2:#1d2430; --surface-3:#273040;
        --ink:#eef1f6; --ink-2:#c3cad6; --ink-3:#95a0b0; --ink-4:#6b7788;
        --line:#273040; --line-2:#323c4d;
        --brand-50:#16233d; --brand-100:#1b2f52;
        --shadow-sm:0 1px 2px rgba(0,0,0,.4);
        --shadow-md:0 6px 18px rgba(0,0,0,.45);
        --shadow-lg:0 16px 40px rgba(0,0,0,.55);
        color-scheme: dark;
    }
}
/* 수동 다크 토글(시스템과 무관하게 적용) */
:root[data-theme="dark"] {
    --bg:#0d1017; --surface:#161b25; --surface-2:#1d2430; --surface-3:#273040;
    --ink:#eef1f6; --ink-2:#c3cad6; --ink-3:#95a0b0; --ink-4:#6b7788;
    --line:#273040; --line-2:#323c4d;
    --brand-50:#16233d; --brand-100:#1b2f52;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow-md:0 6px 18px rgba(0,0,0,.45);
    --shadow-lg:0 16px 40px rgba(0,0,0,.55);
    color-scheme: dark;
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
    margin:0; font-family:var(--font); background:var(--bg); color:var(--ink);
    font-size:15px; line-height:1.5; letter-spacing:-.01em;
    padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px));
    -webkit-font-smoothing:antialiased;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; }
[hidden]{ display:none!important; }
.wrap { width:100%; max-width:var(--wrap); margin:0 auto; padding-inline:16px; }
.skip-link { position:absolute; left:-999px; }
.skip-link:focus { left:16px; top:10px; z-index:200; background:var(--surface); padding:8px 14px; border-radius:8px; box-shadow:var(--shadow-md); }

/* ---------- Header ---------- */
/* ten.co.kr 2단 헤더 그대로 */
.site-header { position:sticky; top:0; z-index:100; background:#fff; padding-top:env(safe-area-inset-top,0px); }
.brand { display:flex; align-items:center; gap:9px; flex:none; margin-right:10px; }
.brand-logo { height:34px; width:auto; display:block; }
.brand-logo.sm { height:20px; vertical-align:middle; }

/* 상단 유틸 바 */
.navbar-top { border-bottom:1px solid var(--line); }
.nav-top-inner { display:flex; align-items:center; gap:5px 6px; min-height:48px; flex-wrap:wrap; }
.top-pills { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.header_button { display:inline-flex; align-items:center; height:26px; padding:0 .5rem; border:1px solid #d5dbe5;
    border-radius:15px; font-size:13px; line-height:20px; color:#000; letter-spacing:-1.5px; font-weight:600; white-space:nowrap; }
.header_button:hover { background:var(--surface-2); }
.point_r { color:#e64b40; } .point_b { color:#00aeef; } .point_b_02 { color:#005bbb; } .point_o { color:#ff7250; }
.b600 { font-weight:600; }
.header_navi { display:flex; list-style:none; margin:0 0 0 auto; padding:0; }
.header_navi li { padding:0 10px; border-left:1px solid var(--line-2); line-height:1; }
.header_navi li:first-child { border-left:0; padding-left:0; }
.header_navi li a { color:#666; font-size:13px; letter-spacing:-1.2px; }
.header_navi li a:hover { color:var(--brand-600); }

/* GNB 바 */
.gnb-bar { border-bottom:1px solid #cccccc; background:#fff; }
.gnb-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.gnb_box { display:flex; align-items:center; list-style:none; margin:0; padding:0; min-width:0; }
.gnb_box li { display:flex; align-items:center; }
.gnb_box li a { display:inline-block; padding:14px 16px; font-size:15px; font-weight:600; letter-spacing:-1px;
    color:#000; border-bottom:3px solid transparent; white-space:nowrap; }
.gnb_box li a:hover { color:var(--brand-600); }
.gnb_box li a.active { color:#1f5fb5; border-bottom-color:#0dbdfd; }
.gnb_box li .division { color:#bbb; font-size:13px; padding:0 2px; }
.gnb-actions { display:flex; align-items:center; gap:8px; flex:none; }
.tenclip_studio_bt, .mae_center_bt { display:inline-block; height:40px; width:170px; line-height:40px; text-align:center;
    border:0; border-radius:30px; font-size:16px; font-weight:600; color:#fff; letter-spacing:-1px; text-indent:25px;
    background-repeat:no-repeat; background-position:18px 8px; cursor:pointer; }
.tenclip_studio_bt { background-color:#e60000; background-image:url("/img/tenclip_studio_ic.png"); letter-spacing:-2.3px; }
.mae_center_bt { background-color:#ff9400; background-image:url("/img/mae_center_ic.png"); }
.tenclip_studio_bt:hover, .mae_center_bt:hover { filter:brightness(.95); color:#fff; }

/* ---------- Buttons / chips ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px;
    padding:11px 18px; border-radius:11px; font-weight:700; font-size:15px; border:1px solid transparent; transition:.15s; }
.btn-primary { background:var(--brand-600); color:#fff; }
.btn-primary:hover { background:var(--brand-700); }
.btn-ghost { background:var(--surface); color:var(--ink); border-color:var(--line-2); }
.btn-ghost:hover { background:var(--surface-2); }
.btn-block { width:100%; }
.chip { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:999px;
    background:var(--surface-2); color:var(--ink-2); font-size:13px; font-weight:600; border:1px solid var(--line); }
.chip.on { background:var(--brand-600); color:#fff; border-color:var(--brand-600); }
.chip.accent { background:#fff0f0; color:var(--accent-ink); border-color:#ffd6d6; }

.badge { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:800; padding:3px 8px; border-radius:7px; letter-spacing:-.02em; }
.badge.verify { background:rgba(18,184,134,.12); color:#0b7a56; }
.badge.trade { background:var(--brand-50); color:var(--brand-700); }
.badge.hot { background:#fff0ef; color:var(--accent-ink); }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .badge.verify{color:#5be0b4;} :root:not([data-theme="light"]) .badge.hot{color:#ff9b9e;} :root:not([data-theme="light"]) .chip.accent{background:#3a1f22;border-color:#5a2e31;color:#ff9b9e;} :root:not([data-theme="light"]) .header-search button{box-shadow:none;} }

/* ---------- Hero ---------- */
.hero { position:relative; background:
    radial-gradient(1200px 400px at 80% -20%, rgba(244,122,33,.22), transparent 60%),
    linear-gradient(160deg,var(--brand-900),#1a458f 58%,var(--brand-500));
    color:#fff; overflow:hidden; }
.hero::after { content:""; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E"); }
.hero-inner { position:relative; z-index:1; padding:46px 0 54px; }
.hero h1 { font-size:30px; line-height:1.25; font-weight:800; letter-spacing:-.03em; margin:0 0 8px; }
.hero p { margin:0 0 22px; color:#d7e3ff; font-size:15px; }
.search-card { background:var(--surface); color:var(--ink); border-radius:var(--r-lg); box-shadow:var(--shadow-lg); padding:14px; }
.trade-tabs { display:flex; gap:6px; margin-bottom:10px; }
.trade-tabs button { flex:1; padding:10px; border:1px solid var(--line); background:var(--surface); color:var(--ink-2); border-radius:10px; font-weight:700; }
.trade-tabs button.on { background:var(--brand-600); color:#fff; border-color:var(--brand-600); }
.search-row { display:flex; gap:8px; }
.search-row input { flex:1; min-width:0; border:1px solid var(--line-2); border-radius:11px; padding:13px 14px; font-size:15px; background:var(--surface); color:var(--ink); outline:none; }
.search-row input:focus { border-color:var(--brand-500); box-shadow:0 0 0 3px var(--brand-50); }
.quick-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.quick-tags a { font-size:13px; color:var(--ink-3); background:var(--surface-2); padding:6px 11px; border-radius:999px; font-weight:600; }

/* ---------- Sections ---------- */
.section { padding:30px 0; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:16px; }
.section-head h2 { font-size:20px; font-weight:800; letter-spacing:-.03em; margin:0; }
.section-head a { color:var(--brand-600); font-weight:700; font-size:14px; }
.sub { color:var(--ink-3); font-size:13px; }

/* ---------- Property grid / card ---------- */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.pcard { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; box-shadow:var(--shadow-sm); transition:.18s; }
.pcard:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.pcard .thumb { position:relative; aspect-ratio:4/3; background:var(--surface-3); overflow:hidden; }
.pcard .thumb img { width:100%; height:100%; object-fit:cover; }
.pcard .thumb .tl { position:absolute; left:8px; top:8px; display:flex; gap:5px; }
.pcard .thumb .tr { position:absolute; right:8px; top:8px; }
.pcard .body { padding:12px 13px 14px; }
.pcard .price { font-size:18px; font-weight:800; letter-spacing:-.03em; }
.pcard .price .won { font-size:13px; color:var(--ink-3); font-weight:600; margin-left:1px; }
.pcard .title { margin:4px 0 2px; font-weight:700; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pcard .meta { color:var(--ink-3); font-size:13px; }
.pcard .tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.pcard .tags span { font-size:11.5px; color:var(--ink-2); background:var(--surface-2); padding:3px 8px; border-radius:6px; }
.heart { position:absolute; right:8px; top:8px; width:30px; height:30px; border-radius:50%; background:rgba(0,0,0,.35); display:grid; place-items:center; color:#fff; border:0; backdrop-filter:blur(2px); }
.heart.on { color:var(--accent); }

/* ---------- Region tiles ---------- */
.region-scroll { display:grid; grid-auto-flow:column; grid-auto-columns:140px; gap:12px; overflow-x:auto; padding-bottom:6px; scroll-snap-type:x mandatory; }
.region-tile { scroll-snap-align:start; border-radius:var(--r-md); overflow:hidden; position:relative; aspect-ratio:4/3; box-shadow:var(--shadow-sm); }
.region-tile img { width:100%; height:100%; object-fit:cover; }
.region-tile .ov { position:absolute; inset:0; background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,.7)); display:flex; flex-direction:column; justify-content:flex-end; padding:10px; color:#fff; }
.region-tile .ov b { font-size:14px; font-weight:800; }
.region-tile .ov small { font-size:12px; opacity:.85; }

/* ---------- List page layout ---------- */
.listing { display:grid; grid-template-columns:260px 1fr; gap:22px; padding:22px 0; align-items:start; }
.filters { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:16px; position:sticky; top:calc(var(--header-h) + 14px); }
.filters h3 { font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3); margin:0 0 10px; }
.fgroup { padding:12px 0; border-top:1px solid var(--line); }
.fgroup:first-of-type { border-top:0; padding-top:0; }
.fgroup .ftitle { font-weight:700; font-size:14px; margin-bottom:9px; }
.fopts { display:flex; flex-wrap:wrap; gap:7px; }
.fopts label { position:relative; }
.fopts input { position:absolute; opacity:0; }
.fopts span { display:inline-block; padding:7px 12px; border-radius:9px; border:1px solid var(--line-2); font-size:13.5px; font-weight:600; color:var(--ink-2); background:var(--surface); }
.fopts input:checked + span { background:var(--brand-600); color:#fff; border-color:var(--brand-600); }
.range-row { display:flex; align-items:center; gap:8px; }
.range-row input { width:100%; padding:9px 10px; border:1px solid var(--line-2); border-radius:9px; background:var(--surface); color:var(--ink); font-size:13px; }

.result-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:10px; }
.result-head .cnt b { color:var(--brand-600); }
.sort-select { border:1px solid var(--line-2); border-radius:9px; padding:9px 12px; background:var(--surface); color:var(--ink); font-weight:600; font-size:14px; }

.pagination { display:flex; justify-content:center; gap:6px; margin:26px 0 6px; }
.pagination a, .pagination span { min-width:38px; height:38px; display:grid; place-items:center; border-radius:9px; border:1px solid var(--line); background:var(--surface); font-weight:600; color:var(--ink-2); padding:0 10px; }
.pagination .cur { background:var(--brand-600); color:#fff; border-color:var(--brand-600); }
.pagination .disabled { opacity:.4; pointer-events:none; }

/* mobile filter trigger + sheet */
.filter-bar { display:none; position:sticky; top:calc(var(--header-h)); z-index:40; background:var(--bg); padding:10px 0; gap:8px; }
.sheet-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:150; opacity:0; pointer-events:none; transition:.2s; }
.sheet-backdrop.open { opacity:1; pointer-events:auto; }
.sheet { position:fixed; left:0; right:0; bottom:0; z-index:151; background:var(--surface); border-radius:20px 20px 0 0; padding:8px 16px calc(18px + env(safe-area-inset-bottom,0px)); max-height:84vh; overflow:auto; transform:translateY(100%); transition:transform .25s cubic-bezier(.2,.8,.2,1); }
.sheet.open { transform:translateY(0); }
.sheet .grab { width:40px; height:4px; border-radius:2px; background:var(--line-2); margin:8px auto 14px; }
.sheet-foot { position:sticky; bottom:0; background:var(--surface); padding-top:12px; display:flex; gap:10px; }

/* ---------- Detail ---------- */
.detail { padding:18px 0 40px; }
.gallery { display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:1fr 1fr; gap:6px; border-radius:var(--r-md); overflow:hidden; max-height:420px; }
.gallery a:first-child { grid-row:1/3; grid-column:1; }
.gallery a { position:relative; background:var(--surface-3); aspect-ratio:auto; }
.gallery img { width:100%; height:100%; object-fit:cover; }
.gallery .more { position:absolute; inset:0; background:rgba(0,0,0,.5); color:#fff; display:grid; place-items:center; font-weight:700; }
.dlayout { display:grid; grid-template-columns:1fr 340px; gap:26px; margin-top:22px; align-items:start; }
.dprice { font-size:28px; font-weight:800; letter-spacing:-.03em; }
.dtitle { font-size:19px; font-weight:700; margin:6px 0 2px; }
.spec-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; margin:18px 0; }
.spec-grid .cell { background:var(--surface); padding:14px 16px; }
.spec-grid .k { color:var(--ink-3); font-size:12.5px; margin-bottom:3px; }
.spec-grid .v { font-weight:700; font-size:15px; }
.prose { color:var(--ink-2); line-height:1.7; font-size:15px; white-space:pre-line; }
.aside-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:18px; box-shadow:var(--shadow-sm); position:sticky; top:calc(var(--header-h) + 14px); }
.realtor-row { display:flex; align-items:center; gap:12px; }
.realtor-row img { width:46px; height:46px; border-radius:12px; object-fit:cover; }
.cta-call { margin-top:16px; }
.mapbox { height:200px; border-radius:var(--r-md); background:var(--surface-2); border:1px solid var(--line); display:grid; place-items:center; color:var(--ink-3); font-size:13px; margin-top:12px; }

/* ---------- Realtor ---------- */
.rlist { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.rcard { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:16px; display:flex; gap:13px; box-shadow:var(--shadow-sm); }
.rcard img { width:56px; height:56px; border-radius:14px; object-fit:cover; flex:none; }
.rcard .rname { font-weight:800; font-size:15.5px; }
.rcard .rmeta { color:var(--ink-3); font-size:13px; margin-top:2px; }
.stars { color:var(--gold); font-size:13px; }

/* ---------- Footer ---------- */
.site-footer { border-top:1px solid var(--line); background:var(--surface); margin-top:30px; padding:26px 0 30px; }
.foot-brand { font-weight:800; display:flex; align-items:center; gap:8px; }
.foot-note { color:var(--ink-3); font-size:13px; margin:8px 0 4px; }
.foot-sub { color:var(--ink-4); font-size:12px; }

/* ---------- Tabbar (mobile) ---------- */
.tabbar { display:none; position:fixed; left:0; right:0; bottom:0; z-index:120; background:var(--surface);
    border-top:1px solid var(--line); height:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px));
    padding-bottom:env(safe-area-inset-bottom,0px); }
.tab { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--ink-4); font-size:11px; font-weight:600; }
.tab svg { width:23px; height:23px; }
.tab.is-active { color:var(--brand-600); }

.empty { text-align:center; padding:60px 20px; color:var(--ink-3); }
.empty svg { width:54px; height:54px; opacity:.4; margin-bottom:12px; }

/* ---------- Lightbox ---------- */
#lightbox { position:fixed; inset:0; z-index:200; background:rgba(0,0,0,.9); display:none; place-items:center; padding:20px; }
#lightbox.open { display:grid; }
#lightbox img { max-width:96vw; max-height:92vh; border-radius:10px; object-fit:contain; }

/* ---------- Header extras ---------- */
.icon-link { position:relative; display:grid; place-items:center; width:40px; height:40px; border-radius:10px; color:var(--ink-2); flex:none; }
.icon-link:hover { background:var(--surface-2); color:var(--ink); }
.icon-link.is-active { color:var(--accent); }
.header-cta { flex:none; padding:9px 14px; font-size:14px; }
.fav-badge { position:absolute; top:2px; right:2px; min-width:16px; height:16px; padding:0 4px; border-radius:999px;
    background:var(--accent); color:#fff; font-size:10.5px; font-weight:800; display:grid; place-items:center; line-height:1; }
.fav-badge.tab-badge { top:4px; right:50%; transform:translateX(16px); }

/* ---------- Notices / alerts ---------- */
.notice-box { background:#fff8e6; border:1px solid #ffe3a3; color:#8a5d00; border-radius:var(--r-md); padding:12px 14px; font-size:13.5px; margin-bottom:16px; }
.alert-ok { background:rgba(18,184,134,.1); border:1px solid rgba(18,184,134,.35); color:#0b7a56; border-radius:var(--r-md); padding:12px 14px; font-weight:600; margin-bottom:16px; }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .notice-box{background:#2e2410;border-color:#5a4718;color:#f0c674;} }

/* ---------- Registration form ---------- */
.reg-form { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:20px; box-shadow:var(--shadow-sm); }
.field { margin-bottom:16px; }
.field-row { display:flex; gap:12px; }
.field-row .field { flex:1; }
.flabel { display:block; font-weight:700; font-size:13.5px; margin-bottom:7px; }
.req { color:var(--accent); }
.finput { width:100%; border:1px solid var(--line-2); border-radius:10px; padding:11px 13px; font-size:15px; background:var(--surface); color:var(--ink); outline:none; font-family:inherit; }
.finput:focus { border-color:var(--brand-500); box-shadow:0 0 0 3px var(--brand-50); }
textarea.finput { resize:vertical; }
.val-msg { color:var(--accent-ink); font-size:12.5px; display:block; margin-top:5px; }
.val-summary:not(:empty) { background:#fff0f0; border:1px solid #ffd6d6; color:var(--accent-ink); border-radius:10px; padding:10px 14px; margin-bottom:14px; font-size:13.5px; }
.val-summary ul { margin:0; padding-left:18px; }

@media (max-width:760px){
    .header-cta, .icon-link { display:none; }
    .field-row { flex-direction:column; gap:0; }
}

/* ---------- Location box (detail) ---------- */
.loc-box { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
    background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-md); padding:14px 16px; }
.loc-addr { font-weight:600; font-size:14.5px; }

/* ---------- Theme toggle ---------- */
.theme-toggle { display:inline-flex; align-items:center; gap:7px; margin-top:12px; padding:8px 13px; border-radius:999px;
    border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2); font-size:13px; font-weight:600; cursor:pointer; }
.theme-toggle:hover { background:var(--surface-2); color:var(--ink); }
.theme-toggle svg { width:16px; height:16px; }

/* ---------- Search autocomplete ---------- */
.ac-wrap { position:relative; }
.ac-list { position:absolute; left:0; right:0; top:calc(100% + 6px); background:var(--surface); border:1px solid var(--line);
    border-radius:12px; box-shadow:var(--shadow-lg); overflow:hidden; z-index:90; }
.ac-list button { display:flex; align-items:center; gap:9px; width:100%; text-align:left; border:0; background:transparent;
    padding:11px 14px; font-size:14px; color:var(--ink); cursor:pointer; }
.ac-list button:hover, .ac-list button.active { background:var(--brand-50); }
.ac-list svg { width:15px; height:15px; color:var(--ink-4); flex:none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1024px){
    .listing { grid-template-columns:1fr; }
    .filters { display:none; }
    .filter-bar { display:flex; }
    .dlayout { grid-template-columns:1fr; }
    .aside-card { position:static; }
}
@media (max-width:900px){
    .top-pills, .gnb-actions { display:none; }
    .gnb_box li a { padding:12px 10px; font-size:14px; }
}
@media (max-width:760px){
    .gnb-bar { display:none; }
    .header_navi li:not(:last-child) { display:none; }
    .nav-top-inner { min-height:44px; }
    .tabbar { display:flex; }
    .hero-inner { padding:30px 0 34px; }
    .hero h1 { font-size:24px; }
    .section { padding:22px 0; }
    .section-head h2 { font-size:18px; }
    .grid { grid-template-columns:repeat(2,1fr); gap:11px; }
    .pcard .price { font-size:16px; }
    .pcard .title { font-size:13px; }
    .pcard .body { padding:10px; }
    .gallery { grid-template-columns:1fr; grid-template-rows:none; max-height:none; }
    .gallery a:first-child { grid-row:auto; }
    .gallery a:not(:first-child):not(:nth-child(2)) { display:none; }
    .dprice { font-size:24px; }
    .spec-grid { grid-template-columns:repeat(2,1fr); }
    .brand-name { display:none; }
}
@media (max-width:380px){
    .grid { grid-template-columns:1fr; }
}
