/* 포레 리얼티 — 부동산 전용 구역 (re-). 기본 리조트 스타일(style.css) 위에 얹는다. */

/* ===== 메인 첫 화면 매물 검색 ===== */
.rf-hero__copy { padding-bottom: 230px; }
.re-search { position: absolute; left: 50%; bottom: 0; z-index: 3; width: min(1080px, 100% - var(--gw-gutter) * 2); transform: translateX(-50%); padding: 22px clamp(18px, 3vw, 34px) 26px; background: var(--rf-cream, #f6f2ea); color: var(--gw-ink); }
.re-search__deals { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; }
.re-search__deals label { cursor: pointer; }
.re-search__deals input { position: absolute; opacity: 0; pointer-events: none; }
.re-search__deals span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border: 1px solid var(--gw-line); border-radius: 999px; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.re-search__deals input:checked + span { background: var(--gw-primary); border-color: var(--gw-primary); color: #fff; }
.re-search__deals input:focus-visible + span { outline: 2px solid var(--gw-accent); outline-offset: 2px; }
.re-search__row { display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 8px; }
.re-search__row select, .re-search__row input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--gw-line); border-radius: 0; background: #fff; font: inherit; font-size: 15px; color: var(--gw-ink); }
.re-search__row button { min-height: 52px; padding: 0 30px; border: 0; background: var(--gw-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s; }
.re-search__row button:hover { background: var(--gw-primary); }
@media (max-width: 900px) {
  .rf-hero__copy { padding-bottom: 72px; }
  .re-search { position: relative; left: 0; width: 100%; transform: none; padding: 22px var(--gw-gutter); }
  .re-search__row { grid-template-columns: 1fr 1fr; }
  .re-search__row input, .re-search__row button { grid-column: 1 / -1; }
}

/* ===== 추천 매물 ===== */
.re-featured .rt-grid { margin-top: clamp(28px, 4vw, 48px); }
.re-featured .rf-center { margin-top: clamp(32px, 4vw, 52px); }

/* ===== 매물 종류 바로가기 ===== */
.re-types { background: var(--gw-surface); }
.re-types__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--gw-line); }
.re-types__grid li + li { border-left: 1px solid var(--gw-line); }
.re-types__grid a { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 28px clamp(16px, 2.4vw, 32px); text-decoration: none; color: var(--gw-ink); transition: background .3s; }
.re-types__grid a::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gw-accent); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.re-types__grid a:hover { background: var(--gw-bg); }
.re-types__grid a:hover::after, .re-types__grid a:focus-visible::after { transform: scaleX(1); }
.re-types__grid em { font-family: var(--rf-serif, serif); font-size: clamp(20px, 2vw, 26px); color: var(--rf-bronze, var(--gw-accent)); }
.re-types__grid b { font-family: var(--gw-font-head); font-weight: 400; font-size: 17px; }
.re-types__grid span { margin-top: auto; font-size: 13px; color: var(--gw-muted); }
.re-types__deals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.re-types__deals a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border: 1px solid var(--gw-line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--gw-ink); background: var(--gw-bg); }
.re-types__deals a:hover { border-color: var(--gw-primary); color: var(--gw-primary); }
@media (max-width: 760px) {
  .re-types__grid { grid-template-columns: 1fr 1fr; }
  .re-types__grid li { border-bottom: 1px solid var(--gw-line); }
  .re-types__grid li:nth-child(odd) { border-left: 0; }
  .re-types__grid a { min-height: 120px; }
}

/* ===== 대표 공인중개사 ===== */
.re-agent__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.re-agent__photo { margin: 0; }
.re-agent__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.re-agent__text h2 { margin: 14px 0 22px; font-family: var(--gw-font-head); font-weight: 300; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.02em; }
.re-agent__text h2 small { display: block; margin-bottom: 6px; font-size: 14px; letter-spacing: .04em; color: var(--gw-muted); }
.re-agent__greet { font-weight: 300; line-height: 1.95; color: #45473a; }
.re-agent__ids { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 28px; border-top: 1px solid var(--gw-accent); }
.re-agent__ids > div { padding: 14px 0; border-bottom: 1px solid var(--gw-line); }
.re-agent__ids dt { font-size: 12px; letter-spacing: .04em; color: var(--gw-muted); }
.re-agent__ids dd { margin: 4px 0 0; font-size: 15px; }
.re-agent__career { margin-top: 24px; font-size: 14px; font-weight: 300; color: #45473a; }
.re-agent__career li { position: relative; padding: 4px 0 4px 16px; }
.re-agent__career li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 1px; background: var(--gw-accent); }
.re-agent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
@media (max-width: 900px) {
  .re-agent__in { grid-template-columns: 1fr; }
  .re-agent__photo { max-width: 360px; }
  .re-agent__ids { grid-template-columns: 1fr; }
}

/* ===== 중개 안내 ===== */
.re-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-bottom: clamp(32px, 4vw, 52px); }
.re-svc > li { padding: clamp(26px, 3vw, 40px); background: var(--gw-surface); border-top: 2px solid var(--gw-accent); }
.re-svc__en { font-family: var(--rf-serif, serif); font-size: 20px; color: var(--rf-bronze, var(--gw-accent)); }
.re-svc h3 { margin: 6px 0 12px; font-family: var(--gw-font-head); font-weight: 400; font-size: 22px; }
.re-svc p { font-weight: 300; line-height: 1.85; }
.re-svc ul { margin-top: 16px; font-size: 14px; color: var(--gw-muted); }
.re-svc ul li { position: relative; padding: 3px 0 3px 16px; }
.re-svc ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gw-accent); }
@media (max-width: 760px) { .re-svc { grid-template-columns: 1fr; } }

.re-fee .rf-tablewrap + .rf-tablewrap { margin-top: 36px; }
.re-fee__table caption { padding-bottom: 10px; text-align: left; font-family: var(--gw-font-head); font-size: 17px; }
.re-fee__table td { font-family: inherit !important; font-size: 17px !important; }
.re-fee__table th:first-child, .re-fee__table td:first-child { text-align: left; }
.re-fee__etc { margin-top: 28px; padding: 20px 24px; background: var(--gw-surface); }
.re-fee__etc > div + div { margin-top: 12px; }
.re-fee__etc dt { font-size: 14px; color: var(--gw-muted); }
.re-fee__etc dd { margin: 2px 0 0; font-size: 16px; }
.re-fee .rf-notes li + li { margin-top: 6px; }
.re-fee .rf-notes a { color: var(--gw-primary); }

.re-check__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gw-line); border: 1px solid var(--gw-line); counter-reset: chk; }
.re-check__list li { display: flex; flex-direction: column; gap: 8px; padding: 28px 26px; background: var(--gw-bg); counter-increment: chk; }
.re-check__list li::before { content: counter(chk, decimal-leading-zero); font-family: var(--rf-serif, serif); font-size: 22px; color: var(--rf-bronze, var(--gw-accent)); }
.re-check__list b { font-family: var(--gw-font-head); font-weight: 400; font-size: 18px; }
.re-check__list span { font-size: 14px; font-weight: 300; color: var(--gw-muted); line-height: 1.75; }
@media (max-width: 900px) { .re-check__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .re-check__list { grid-template-columns: 1fr; } }

/* ===== 기타 ===== */
.re-contact__note { margin: 18px 0 10px; font-size: 14px; font-weight: 300; color: var(--gw-muted); line-height: 1.75; }
.re-visit { padding-top: 0; }
.re-visit__text { padding: 26px 28px; background: var(--gw-surface); text-align: center; font-weight: 300; line-height: 1.85; }
.re-visit__text a { color: var(--gw-primary); }

/* 푸터 법정 표기: 한 줄씩 또렷하게 */
.rf-footer__legal { margin-top: 14px; color: inherit; opacity: .9; }
.rf-footer__legal span:first-child { font-weight: 500; }

/* 플러그인 화면(매물 목록·상세)과 이 스킨 맞추기 */
.rt-card { border-radius: 0; }
.rt-pagehead { padding-top: calc(var(--rf-hh, 80px) + 40px); }
.rf-plain .rt-view { padding-top: clamp(20px, 3vw, 36px); }

/* 도시 야경 일러스트(창문 불빛)는 무늬가 촘촘해 글자가 묻힌다: 덮개를 진하게, 글자에 그림자 */
.rf-hero::before { background: linear-gradient(180deg, rgba(18, 22, 14, .66) 0%, rgba(18, 22, 14, .5) 34%, rgba(18, 22, 14, .56) 62%, rgba(18, 22, 14, .8) 100%); }
.rf-pagehead::before { background: linear-gradient(180deg, rgba(18, 22, 14, .72), rgba(18, 22, 14, .58) 45%, rgba(18, 22, 14, .74)); }
.rf-hero__copy, .rf-pagehead__in { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.rf-hero__text, .rf-pagehead__desc { color: #fff; font-weight: 400; }
