/* 모듈 C — 방·상가 전용 (style.css 토큰만 사용, 시안 모양 유지) */

/* 목록 카드 저장 하트: 사진 모서리 작게 */
.rcard .th { position: relative; }
.rcard .th .ph { position: absolute; inset: 0; }
.rl-heart.hearton { width: 26px; height: 26px; right: 4px; top: 4px; }
.rl-heart.hearton .ic { width: 14px; height: 14px; }

/* chip f 펼침 */
a.chip { cursor: pointer; }
.rl-pop { background: var(--bg-2); border-radius: var(--r); padding: 8px; margin: -4px 0 10px; flex-wrap: wrap; }
.rl-pop[hidden] { display: none; }
.rl-poplabel { flex: none; align-self: center; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 0 4px; }
.chip.f.on:after { color: rgba(255, 255, 255, .7); }

/* 건수 · 정렬 */
.rl-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); margin: 2px 0 10px; flex-wrap: wrap; }
.rl-bar a { color: var(--ink-3); }
.rl-bar > span > a { text-decoration: underline; }
.rl-sort { display: flex; gap: 10px; }
.rl-sort a.on { color: var(--ink); font-weight: 750; }

/* 상세 사진 · 갤러리 */
.rl-photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-2); }
.rl-photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-photo.dim .ph { opacity: .55; }
.rl-count { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 3px 9px; }
.rl-count b { font-weight: 800; }
.rl-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.rl-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.rl-thumbs button.on { border-color: var(--red); }
.rl-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-tools { justify-content: flex-start; margin-top: 6px; }
.rl-tools button { display: inline-flex; align-items: center; gap: 4px; }
.rl-tools .ic { width: 14px; height: 14px; }
.rl-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.rl-who { margin-top: 14px; }
.rl-who > b { display: block; font-size: 15px; margin-top: 2px; }
.rl-who .kv th { width: 28%; }
.rl-owner { border-color: var(--ink); }
.rl-ownbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-phone.shown { background: var(--ink); }
.rl-newlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 등록 폼 */
.rn-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
.rn-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
.rn-form .grid > * { min-width: 0; }
.rn-form .input { font-size: 15px; }
.rn-form select.input { padding-left: 12px; }
.rn-form .seg span { padding: 12px 2px; }
.tags[data-name] span { cursor: pointer; user-select: none; }
.rl-chk { cursor: pointer; position: relative; }
.rl-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rl-chk input:checked + i { background: var(--red); border-color: var(--red); }
.rl-chk input:checked + i:after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.rl-chk input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }
.rn-payback { margin: 8px 0 0; background: var(--sun-bg, #FFF6DC); border-radius: var(--r); padding: 10px 12px; font-size: 13.5px; font-weight: 650; }
.rn-payback small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.rn-off { display: none !important; }
@media (max-width: 420px) {
  .rn-form .input { font-size: 14px; padding: 12px 10px; }
}

/* 아파트 단지 */
.apt-bar rect { transition: height .6s ease, y .6s ease; }
.apt-chips { margin-top: 12px; }
.apt-empty { padding: 30px 0; text-align: center; color: var(--ink-3); font-size: 13px; }

/* 단지 이야기 탭(링크형 세그먼트) — .seg span 과 같은 모양 */
.seg > a { border: 1px solid var(--line-2); border-radius: var(--r); text-align: center; padding: 12px 4px; font-weight: 650; font-size: 14px; color: var(--ink-2); }
.seg > a.on { border: 1.5px solid var(--red); background: var(--red-bg); color: var(--red-ink); font-weight: 750; }

/* 상단 안내 띠: 모바일은 화면 끝까지, PC는 본문 카드 위쪽에 붙임 */
.content > main > .rl-rib:first-child, .content > main > .tg-flash + .rl-rib { margin: 0 -16px; }
@media (min-width: 960px) {
  .content > main > .rl-rib:first-child, .content > main > .tg-flash + .rl-rib { margin: -8px -28px 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .rl-pconly { display: flex !important; }
}
.rl-pconly { display: none !important; }
