/* 2026-11-28 개편안 미리보기 — 새 구역 스타일(실제 반영 때 site.css 뒤에 싣는다) */

/* ① 메인 상품 탭 4칸: 위 작은 글은 「분양 업종」 하나, PC 4칸 한 줄 · 휴대폰 2칸×2줄 */
#products [data-home-types] .pm-wrap.rv-pm4{display:block;margin:0 0 28px}
#products [data-home-types] .rv-pm4 .pm-group{display:grid;grid-template-rows:auto 1fr;gap:4px}
#products [data-home-types] .rv-pm4 .pm-row{grid-template-columns:repeat(4,minmax(0,1fr))}
#products [data-home-types] .rv-pm4 .pm-badge{background:var(--brand);color:#fff}
#products [data-home-types] .rv-pm4 .pm-badge.rv-line{background:#fff;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line)}
#products [data-home-types] .rv-pm4 .type-tab[aria-selected=true] .pm-badge.rv-line{color:var(--brand);box-shadow:inset 0 0 0 1.5px var(--brand)}
@media (max-width:760px){
 #products [data-home-types] .rv-pm4 .pm-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 #products [data-home-types] .rv-pm4 .type-tab{padding:12px 4px 14px}
 #products [data-home-types] .rv-pm4 .pm-t{min-height:0;font-size:15px}
 #products [data-home-types] .rv-pm4 .pm-badge{font-size:12px;height:23px;padding:1px 9px 0}
}

/* ② 패널 안 가격 묶음 · 휴대폰은 「이름 → 값 → 신청 단추 → 설명 → 샘플 → 디자인 띠」 차례 */
.rv-pblock .home-type-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
.rv-was{font-size:.56em;font-weight:700;color:var(--muted);text-decoration:line-through;text-decoration-thickness:2px}
.rv-scope{margin:8px 0 0;font-size:13px;color:var(--muted);word-break:keep-all}
.rv-fee{margin:12px 0 0;font-size:15px;line-height:1.7;color:var(--text);word-break:keep-all}
.home-type-panel > .rv-band{grid-column:1/-1}
@media (max-width:767px){
 #products .home-type-panel .home-type-copy{display:flex;flex-direction:column}
 #products .home-type-panel .home-type-copy > h3{order:1}
 #products .home-type-panel .home-type-copy > .rv-pblock{order:2}
 #products .home-type-panel .home-type-copy > .home-type-actions{order:3}
 #products .home-type-panel .home-type-copy > .home-type-features{order:4;margin-top:24px}
 #products .home-type-panel .home-type-copy > .product-tags{order:5}
 #products .home-type-panel .rv-pblock .home-type-price{margin-top:4px}
 #products .home-type-panel > .home-type-art{order:-1}
 #products .home-type-panel > .rv-band{order:3}
}

/* ③ 프리미엄 영업용 — 1번·2번·3번 고르기 */
.rv-pt-pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:420px;margin:0 auto 18px}
.rv-pt-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:6px 4px;border:1.5px solid var(--line);border-radius:14px;background:#fff;color:var(--text);font:inherit;cursor:pointer;transition:border-color .15s,background-color .15s,color .15s}
.rv-pt-btn strong{font-size:16px;font-weight:800;line-height:1.3}
.rv-pt-btn span{font-size:13px;font-weight:600;color:var(--muted);line-height:1.3}
.rv-pt-btn[aria-pressed=true]{border-color:var(--brand);background:var(--brand);color:#fff}
.rv-pt-btn[aria-pressed=true] span{color:rgba(255,255,255,.9)}
.rv-pt-btn:focus-visible{outline:3px solid #15171C;outline-offset:2px}
@media (hover:hover) and (pointer:fine){.rv-pt-btn:hover:not([aria-pressed=true]){border-color:var(--brand);color:var(--brand)}}
.rv-pt-art .flow-stage-pc > .flow-chrome-cta{left:var(--cta-l,81.74%);width:var(--cta-w,16.04%);bottom:var(--cta-b,3.56%);transform:none}
.rv-pt-art .flow-sample-actions .small-note{margin-top:14px;text-align:center}

/* ④ 「원하시는 디자인이 있으시다면 보내 주세요」 강조 띠 */
.rv-band{display:flex;align-items:center;justify-content:space-between;gap:20px 28px;margin-top:8px;padding:26px 30px;border-radius:20px;background:#15171C;color:#fff}
.rv-band-copy{display:flex;align-items:center;gap:18px;min-width:0}
.rv-band-icon{display:grid;place-items:center;flex:none;width:54px;height:54px;border-radius:16px;background:var(--brand);color:#fff}
.rv-band-icon .icon{width:26px;height:26px}
.rv-band-title{margin:0;font-size:21px;font-weight:800;line-height:1.4;letter-spacing:-.01em;word-break:keep-all;text-wrap:balance}
.rv-band-desc{margin:6px 0 0;font-size:14.5px;line-height:1.65;color:rgba(255,255,255,.78);word-break:keep-all}
.rv-band-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:none}
.rv-band-actions .button-kakao{justify-content:center;min-height:50px;padding:0 22px;white-space:nowrap}
.rv-band-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;font-size:14px;font-weight:700;color:#fff;text-decoration:underline;text-underline-offset:3px}
.rv-band-link .icon{width:16px;height:16px}
@media (max-width:767px){
 .rv-band{flex-direction:column;align-items:stretch;padding:22px 20px;gap:18px}
 .rv-band-copy{align-items:flex-start;gap:14px}
 .rv-band-icon{width:44px;height:44px;border-radius:13px}
 .rv-band-icon .icon{width:22px;height:22px}
 .rv-band-title{font-size:18px}
 .rv-band-desc{font-size:14px}
}
.rv-band-wrap{padding-block:8px 64px}
@media (max-width:767px){.rv-band-wrap{padding-block:4px 44px}}

/* ⑤ 더한분양 가로 배너 */

/* 미리보기 전용 — 시안 고르기 단추(실제 사이트에는 넣지 않음) */

/* ⑥ 상세쪽 위 4탭 막대 */
.rv-dtabs .type-tabs-inner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;overflow:visible}
.rv-dtabs .type-tab{min-width:0;min-height:76px;padding:12px 8px;gap:10px}
.rv-dtabs .type-tab-copy{align-items:flex-start;min-width:0}
.rv-dtabs .type-tab-copy strong{font-size:16px;line-height:1.4;word-break:keep-all}
.rv-dtabs .type-tab-copy > span{font-size:13px;font-weight:600;opacity:.8}
.rv-dtabs .rv-dtab-short{display:none}
@media (min-width:768px) and (max-width:1099px){.rv-dtabs .type-tab .icon{display:none}.rv-dtabs .type-tab-copy strong{font-size:15px}}
@media (max-width:767px){
 .rv-dtabs .type-tabs-inner{gap:3px;padding:4px}
 .rv-dtabs .type-tab{min-height:48px;height:48px;padding:6px 2px;font-size:13.5px;line-height:1.3;white-space:nowrap;justify-content:center}
 .rv-dtabs .type-tab-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .rv-dtabs .rv-dtab-short{display:inline}
}
.rv-dtabs-solo{margin-top:24px}
@media (max-width:767px){.rv-dtabs-solo{margin-top:12px}}

/* ⑦ 상담 신청 — 업종 두 갈래 */
.rv-seg,.rv-chips{margin:0 0 22px;padding:0;border:0;min-width:0}
.rv-seg legend,.rv-chips legend{display:flex;align-items:center;gap:4px;margin:0 0 10px;padding:0;font-size:15px;font-weight:700;color:var(--text)}
.rv-seg-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rv-seg-opt{position:relative;display:block;cursor:pointer}
.rv-seg-opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.rv-seg-opt > span{display:flex;flex-direction:column;gap:3px;min-height:72px;justify-content:center;padding:12px 16px;border:1.5px solid var(--line);border-radius:14px;background:#fff;transition:border-color .15s,background-color .15s}
.rv-seg-opt strong{font-size:17px;font-weight:800;line-height:1.35}
.rv-seg-opt small{font-size:13px;color:var(--muted);line-height:1.45;word-break:keep-all}
.rv-seg-opt input:checked + span{border-color:var(--brand);background:var(--t-red,#FFF1F1);box-shadow:inset 0 0 0 1px var(--brand)}
.rv-seg-opt input:checked + span strong{color:var(--brand)}
.rv-seg-opt input:focus-visible + span{outline:3px solid #15171C;outline-offset:2px}
.rv-chip-row{display:flex;flex-wrap:wrap;gap:8px}
.rv-chip{position:relative;cursor:pointer}
.rv-chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.rv-chip > span{display:inline-flex;align-items:center;min-height:42px;padding:0 15px;border:1.5px solid var(--line);border-radius:999px;background:#fff;font-size:14.5px;font-weight:600;line-height:1.3;word-break:keep-all}
.rv-chip input:checked + span{border-color:var(--brand);background:var(--brand);color:#fff}
.rv-chip input:focus-visible + span{outline:3px solid #15171C;outline-offset:2px}
.rv-fast{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:var(--surface);font-size:14px;line-height:1.6;word-break:keep-all}
.rv-fast a{font-weight:800;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.rv-ad-note{margin:14px 0 0;font-size:13.5px;line-height:1.6;color:var(--muted);word-break:keep-all}
.rv-ad-note a{font-weight:700;color:var(--text);text-decoration:underline;text-underline-offset:3px}

/* ⑧ 머리 메뉴 「분양 업종」 펼침 4줄 */
.ui-v13h .header-v13c .rv-cat .nav-support-panel{width:420px}
.ui-v13h .rv-cat .nav-support-panel .nav-product:nth-child(n){background:#faf6f6}
.ui-v13h .rv-cat .nav-support-panel .nav-product:nth-child(n) .nav-product-icon{background:#fae3e3;color:var(--brand)}
.ui-v13h .rv-cat .nav-support-panel .nav-product:nth-child(n) .nav-product-arrow{color:#ac7c7f}

/* ⑨ 간편 신청 — 프리미엄 3가지가 더해진 상품 칸 */
.order-items-grid.rv-oi6{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:767px){.order-items-grid.rv-oi6{grid-template-columns:minmax(0,1fr)}}
.oi .oi-price s{margin-right:6px;font-size:.8em;color:var(--muted)}

/* ⑩ 프리미엄 상세쪽 */
.rv-pt-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.rv-pt-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden}
.rv-pt-card img{display:block;width:100%;height:auto;aspect-ratio:960/600;object-fit:cover;object-position:top}
.rv-pt-card-body{display:flex;flex-direction:column;gap:8px;flex:1;padding:20px 22px 22px}
.rv-pt-card h3{margin:0;font-size:20px;font-weight:800}
.rv-pt-card .rv-pt-card-price{margin:0;font-size:28px;font-weight:900;line-height:1.3;color:var(--text);letter-spacing:-.01em}
.rv-pt-card .rv-pt-card-price .rv-was{font-size:.6em;margin-right:8px}
.rv-pt-card p{margin:0;font-size:14px;line-height:1.6;color:var(--muted);word-break:keep-all}
.rv-pt-card .button{margin-top:auto;justify-content:center}
@media (max-width:899px){.rv-pt-cards{grid-template-columns:minmax(0,1fr);max-width:520px;margin-inline:auto}}
.rv-admin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.rv-admin-box{padding:28px;border-radius:22px;border:1px solid var(--line);background:#fff}
.rv-admin-box h3{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:20px;font-weight:800}
.rv-admin-box h3 .icon{width:24px;height:24px;color:var(--brand)}
.rv-admin-box p{margin:0;font-size:15px;line-height:1.75;color:var(--text);word-break:keep-all}
.rv-admin-box ol{display:grid;gap:10px;margin:16px 0 0;padding:0;list-style:none;counter-reset:rvs}
.rv-admin-box li{position:relative;padding-left:34px;font-size:15px;line-height:1.6;word-break:keep-all;counter-increment:rvs}
.rv-admin-box li::before{content:counter(rvs);position:absolute;left:0;top:1px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;font-weight:800}
.rv-admin-box .rv-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
@media (max-width:767px){.rv-admin{grid-template-columns:minmax(0,1fr)}.rv-admin-box{padding:22px}}
.rv-cmp-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:20px;background:#fff}
.rv-cmp{width:100%;min-width:640px;border-collapse:collapse;font-size:15px;line-height:1.6}
.rv-cmp th,.rv-cmp td{padding:16px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;word-break:keep-all}
.rv-cmp thead th{font-size:16px;font-weight:800;background:var(--surface)}
.rv-cmp thead th small{display:block;font-size:12.5px;font-weight:600;color:var(--muted)}
.rv-cmp tbody th{width:120px;font-weight:700;color:var(--muted);background:#fcfcfd}
.rv-cmp .rv-cur{background:#FFF6F6}
.rv-cmp thead .rv-cur{background:var(--brand);color:#fff}
.rv-cmp thead .rv-cur small{color:rgba(255,255,255,.85)}
.rv-cmp tr:last-child th,.rv-cmp tr:last-child td{border-bottom:0}
.rv-cmp-note{margin:10px 0 0;font-size:13px;color:var(--muted)}

/* ⑪ 숏폼 탭 — 예시 영상 */
#home-panel-short .rv-short-video{display:flex;flex-direction:column;align-items:center;margin:0}
#home-panel-short .rv-short-video video{display:block;width:min(260px,62vw);height:auto;aspect-ratio:9/16;border-radius:26px;background:#000;box-shadow:0 0 0 7px #15171C,0 24px 50px rgba(15,20,30,.26)}
#home-panel-short .rv-short-video figcaption{margin-top:16px;font-size:13px;color:var(--muted)}

/* 미리보기 머리 띠(실제 사이트에는 없음) */

/* ⑤-2 더한분양 배너 — 구글 광고 규격(PC 8:1 얇은 띠 · 휴대폰 3.2:1 가로 띠 그림, 휴대폰도 그림으로) */

/* 취소선 옛 금액은 흐리게 */
.rv-scope s,.sp-price-sub s{color:var(--muted);text-decoration-thickness:1.5px}

/* ── 검수 뒤 고침(11/28) ── */
/* 상세 탭 4칸: 기존 .s16:has(> .s16-panel) nav.type-tabs .type-tabs-inner(2칸) 보다 세게 */
:is(#main,body) .rv-dtabs .type-tabs-inner{grid-template-columns:repeat(4,minmax(0,1fr))}
/* 비교표: 어두운 구역 안 흰 표라 글자색을 직접 준다 */
.rv-cmp{color:#1B1D22}
.rv-cmp thead th{color:#1B1D22}
.rv-cmp thead .rv-cur{color:#fff}
#compare .rv-cmp-note{color:rgba(255,255,255,.72)}
@media (max-width:767px){
 .rv-cmp-wrap{overflow:visible;border:0;background:transparent}
 .rv-cmp{min-width:0;display:block;font-size:14.5px}
 .rv-cmp thead{display:none}
 .rv-cmp tbody{display:grid;gap:10px}
 .rv-cmp tr{display:block;border-radius:16px;background:#fff;overflow:hidden}
 .rv-cmp tbody th{display:block;width:auto;padding:12px 16px 8px;border:0;background:#fff;color:#1B1D22;font-size:15px;font-weight:800}
 .rv-cmp td{display:grid;grid-template-columns:118px 1fr;gap:10px;padding:9px 16px;border:0;border-top:1px solid var(--line)}
 .rv-cmp td::before{content:attr(data-l);color:var(--muted);font-size:13px;font-weight:600}
 .rv-cmp td.rv-cur{background:#FFF6F6;font-weight:700}
 .rv-cmp td.rv-cur::before{color:var(--brand)}
 .rv-cmp tr:last-child td{border-top:1px solid var(--line)}
}
/* 바닥 링크: 상품이 5줄로 늘어 7칸(기존 6칸 subgrid 라 7번째가 겹쳤다) */
html body .site-footer .footer-links>ul{grid-row:1/span 7}
/* 바로 신청 띠: 글자만 떠 있던 「간편 신청」을 단추로 */
html body .consult-band a.consult-primary{flex-direction:row;justify-content:center;align-items:center;gap:6px;min-height:52px;padding:0 28px;border-radius:999px;background:#15171C;color:#fff;font-size:16px;font-weight:800;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.18)}
@media (hover:hover) and (pointer:fine){html body .consult-band a.consult-primary:hover{background:#000}}
/* 미리보기 띠: 휴대폰은 짧게 한 줄 */
/* 바로 신청 띠(휴대폰): 「간편 신청」을 맨 앞 넓은 단추로, 전화·카톡은 그 아래 두 칸 */
@media (max-width:767px){
 html body .consult-band .consult-actions{flex-direction:column;align-items:stretch;gap:10px}
 html body .consult-band a.consult-primary{order:-1;width:100%}
 html body .consult-band .consult-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 html body .consult-band .consult-links .button{justify-content:center;padding:8px 10px;white-space:nowrap}
}
/* 비교표 신청 칸 링크는 링크답게 */
.rv-cmp a{color:var(--brand);font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* 고급형 1·2·3번: 번호 단추가 그림 묶음(.flow-art) 안에 있어 누르면 「올리면·고르면 멈춤」이 걸려 움직임이 멈췄다(대표님 11/28 지적)
   → 이 묶음은 화면 틀 위에 올렸을 때만 멈추고, 번호 단추를 누르거나 올려도 계속 움직인다 */
.rv-pt-art.flow-art:hover .flow-frame.is-flow-ready.is-flow-visible :is(.flow-img,.flow-chrome-head),
.rv-pt-art.flow-art:focus-within .flow-frame.is-flow-ready.is-flow-visible :is(.flow-img,.flow-chrome-head){animation-play-state:running}
@media (hover:hover) and (pointer:fine){.rv-pt-art.flow-art .flow-frame.is-flow-ready.is-flow-visible:hover :is(.flow-img,.flow-chrome-head){animation-play-state:paused}}
/* ── 대표님 수정 의견 반영(11/28 밤) ── */
/* 3·4 숏폼·공식 꼬리표 파란색 */
#products [data-home-types] .rv-pm4 .pm-badge.rv-blue{background:#1E5EFF;color:#fff;box-shadow:none}
/* 8 템플릿 카드 바로 아래 「원하시는 디자인」 띠 */
#templates .rv-band{margin-top:28px}
/* 7 관리자 페이지 — 관리 화면 예시 + 기능 */
.rv-admin2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:32px;align-items:center;margin-bottom:24px}
.rv-admin-shot{margin:0;min-width:0}
.rv-admin-shot img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 34px rgba(17,24,39,.10)}
.rv-admin-shot figcaption{margin-top:10px;font-size:13px;color:var(--muted);text-align:center}
.rv-admin-feats{display:grid;gap:18px;margin:0;padding:0;list-style:none}
.rv-admin-feats li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start}
.rv-af-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#FFF1F1;color:var(--brand)}
.rv-af-icon .icon{width:22px;height:22px}
.rv-admin-feats strong{display:block;font-size:17px;font-weight:800;line-height:1.4}
.rv-admin-feats p{margin:4px 0 0;font-size:14.5px;line-height:1.6;color:var(--muted);word-break:keep-all}
.rv-admin.rv-admin-one{grid-template-columns:minmax(0,1fr)}
@media (min-width:768px){.rv-admin-one .rv-admin-box ol{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:899px){.rv-admin2{grid-template-columns:minmax(0,1fr);gap:20px}}
/* 5 상담 신청 — 분양 업종은 간편 신청 먼저, 공식 분양 상담은 단추로 신청서 열기 */
#contact-form[data-rv-mode=quick] > :not(.rv-seg):not(.rv-quick){display:none}
#contact-form:not([data-rv-mode=quick]) > .rv-quick{display:none}
.rv-quick{display:grid;gap:12px;margin:4px 0 8px;padding:20px;border:1.5px solid var(--brand);border-radius:18px;background:#FFF6F6}
.rv-quick-title{margin:0;font-size:18px;font-weight:800;line-height:1.4;color:var(--text);word-break:keep-all}
.rv-quick-desc{margin:-6px 0 0;font-size:14px;line-height:1.6;color:var(--muted);word-break:keep-all}
.rv-quick-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rv-quick-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);text-decoration:none}
.rv-quick-item strong{font-size:15px;font-weight:800;line-height:1.35;word-break:keep-all}
.rv-quick-item span{grid-column:1;font-size:13px;font-weight:700;color:var(--brand)}
.rv-quick-item .icon{grid-column:2;grid-row:1/span 2;width:18px;height:18px;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.rv-quick-item:hover{border-color:var(--brand)}}
.rv-quick-go{justify-content:center;width:100%;min-height:52px;font-size:16px}
.rv-quick-more{justify-self:center;padding:6px 4px;border:0;background:none;color:var(--muted);font:inherit;font-size:14px;line-height:1.5;cursor:pointer;text-align:center;word-break:keep-all}
.rv-quick-more span{color:var(--text);font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media (max-width:767px){.rv-quick{padding:16px}.rv-quick-items{grid-template-columns:minmax(0,1fr)}}
