/* Shared chrome. Logo, footer backgrounds, content and destinations from 제로방. */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #E4E7ED; }
.site-header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; max-width: 1440px; min-height: 72px; margin: 0 auto; padding: 12px 32px; }
.site-brand { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.site-brand img { width: 121px; height: 34px; object-fit: contain; }
.site-brand span { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #E6EBF8; color: #0040D6; font-size: 14px; font-weight: 650; line-height: 1.3; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 2.8vw, 44px); }
.site-nav a { color: #171C26; font-size: 15px; font-weight: 650; white-space: nowrap; padding: 10px 0; }
.housing-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 8px 18px; border: 1px solid #7A8FC0; border-radius: 12px; color: #0040D6; font-size: 14px; font-weight: 650; white-space: nowrap; }
.site-nav a:hover, .footer-links a:hover { color: #0040D6; }
.housing-link:hover { background: #F0F3F9; }
html { scroll-padding-top: var(--gnb-header-h, 73px); } /* 페이지 안 이동 시 헤더에 딱 붙게 (실제 높이는 gnb.js 가 넣음) */
.site-footer { color: #7C7C7C; background: url("brand/footer-bg.svg") center top / cover no-repeat; padding-top: 145px; font-weight: 500; }
.footer-main, .footer-contacts { width: 80%; margin: 0 auto; }
.footer-social { display: flex; align-items: center; justify-content: flex-end; gap: 25px; margin-bottom: 34px; }
.footer-social a { display: block; }
.footer-social img { width: 26px; height: 26px; }
.footer-companies { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 36px; }
.footer-companies p { font-size: 13px; line-height: 1.9; }
.footer-contact-band { margin-top: 47px; border-top: 1px solid rgb(0 212 170 / 20%); border-bottom: 1px solid rgb(0 212 170 / 20%); }
.footer-contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid rgb(0 212 170 / 20%); }
.footer-contacts p { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 57px; padding: 8px; border-right: 1px solid rgb(0 212 170 / 20%); font-size: 16px; line-height: 1.8; }
.footer-contacts a { color: #1F62FF; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 36px max(32px, 8%) 65px; }
.footer-notice { color: rgb(124 124 124 / 50%); font-size: 12px; line-height: 1.6; }
.footer-links { display: flex; align-items: center; flex-shrink: 0; font-size: 13px; line-height: 1.5; }
.footer-links a + a { margin-left: 20px; padding-left: 20px; border-left: 1px solid #95ACE2; }
@media (max-width: 1170px) {
  .site-header-inner { gap: 20px; padding-inline: 24px; }
  .site-brand { gap: 10px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 14px; }
  .footer-contacts p { font-size: 13px; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  html { scroll-padding-top: var(--gnb-header-h, 61px); }
  .site-footer { padding-top: 72px; background-image: url("brand/m-footer-bg.svg"); }
  .footer-main { width: calc(100% - 48px); max-width: 768px; }
  .footer-companies { align-items: flex-start; gap: 28px; }
  .footer-companies > div { flex: 1 1 300px; }
  .footer-companies p { font-size: 12px; }
  .footer-contacts { width: 90%; grid-template-columns: 1fr; }
  .footer-contacts p + p { border-top: 1px solid rgb(0 212 170 / 20%); }
  .footer-bottom { padding: 36px 24px 56px; flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-links { order: -1; }
}
@media (max-width: 600px) {
  .site-brand { gap: 8px; }
  .site-brand img { width: 102px; height: auto; }
  .site-brand span { padding: 4px 8px; font-size: 11px; }
  .housing-link { min-height: 34px; padding: 6px 10px; gap: 5px; border-radius: 9px; font-size: 11px; }
  .footer-social { margin-bottom: 28px; }
  .footer-companies p { font-size: 11px; }
  .footer-notice { font-size: 10px; }
  .footer-links { font-size: 12px; }
  .footer-links a + a { margin-left: 14px; padding-left: 14px; }
}
@media (max-width: 359px) {
  .site-header-inner { padding-inline: 12px; column-gap: 8px; }
  .site-brand img { width: 90px; }
  .site-brand { gap: 6px; }
}

/* ===== 카카오톡 상담 버튼 (화면 오른쪽 아래, 모든 페이지) ===== */
.kakao-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #FEE500; color: #191919; font-size: 15px; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); text-decoration: none; }
.kakao-float svg { width: 24px; height: 24px; fill: #191919; }
.kakao-float:hover { filter: brightness(.96); }
@media (max-width: 767px) { .kakao-float { right: 14px; bottom: 14px; height: 48px; padding: 0 14px 0 12px; font-size: 14px; } }

/* 새 로고 (소개서 로고) */
.site-brand img, .site-logo img { width: 130px; height: 40px; object-fit: contain; }
@media (max-width: 767px) { .site-brand img, .site-logo img { width: 104px; height: 32px; } }

/* 로고 조금 작게 (제로방 글자만) */
.site-brand img, .site-logo img { width: 107px; height: 32px; }
@media (max-width: 767px) { .site-brand img, .site-logo img { width: 90px; height: 27px; } }
/* 지도보기 버튼: 색을 채워서 잘 보이게 */
.housing-link { background: #2F6BF6; border-color: #2F6BF6; color: #fff; font-weight: 700; }
.housing-link:hover { background: #1F58DE; border-color: #1F58DE; color: #fff; }

/* ===== 새 푸터 (어두운 회색, 다방 스타일) ===== */
.site-footer.zf { background: #333 none; color: #A5A5A5; padding: 0; font-weight: 400; clip-path: none; }
.zf a { color: inherit; text-decoration: none; }
.zf-top { max-width: 1240px; margin: 0 auto; display: flex; align-items: stretch; border-bottom: 1px solid #4A4A4A; }
.zf-links { flex: 1; display: flex; flex-wrap: wrap; align-items: center; padding: 22px 20px; font-size: 14px; }
.zf-links a { color: #C8C8C8; }
.zf-links a + a::before { content: ""; display: inline-block; width: 1px; height: 11px; background: #5E5E5E; margin: 0 14px; vertical-align: -1px; }
.zf-links a strong { color: #fff; font-weight: 700; }
.zf-links a:hover { color: #fff; }
.zf-search { display: flex; align-items: center; width: 280px; border-left: 1px solid #4A4A4A; padding: 0 14px 0 16px; }
.zf-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; outline: none; }
.zf-search input::placeholder { color: #8C8C8C; }
.zf-search button { width: 32px; height: 32px; border: 0; background: none; color: #C8C8C8; cursor: pointer; padding: 0; }
.zf-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zf-totop { width: 72px; border: 0; border-left: 1px solid #4A4A4A; background: none; color: #E0E0E0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.zf-totop span { font-size: 11px; }
.zf-body { max-width: 1240px; margin: 0 auto; padding: 30px 20px 34px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.zf-info p { margin: 0; font-size: 13px; line-height: 1.75; }
.zf-info p i { display: inline-block; width: 16px; }
.zf-info .zf-gap { margin-top: 16px; }
.zf-info p a:hover { color: #fff; }
.zf-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.zf-btns a { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 4px; background: #4A4A4A; color: #E6E6E6; font-size: 13px; font-weight: 700; }
.zf-btns a:hover { background: #575757; }
.zf-btns a.is-blue { background: #2F6BF6; color: #fff; }
.zf-btns a.is-blue:hover { background: #1F57DB; }
.zf-copy { margin-top: 18px !important; color: #8C8C8C; }
.zf-sns { display: flex; gap: 10px; }
.zf-sns a { width: 40px; height: 40px; border-radius: 50%; background: #3A3A3A; border: 1px solid #555; color: #fff; display: flex; align-items: center; justify-content: center; }
.zf-sns a:hover { background: #4A4A4A; }
.zf-sns svg { width: 20px; height: 20px; }
.zf-sns b { font-size: 11px; font-weight: 800; letter-spacing: -.3px; }
@media (max-width: 760px) {
  .zf-top { flex-wrap: wrap; }
  .zf-links { flex-basis: 100%; padding: 16px 16px; font-size: 13px; border-bottom: 1px solid #4A4A4A; }
  .zf-links a + a::before { margin: 0 10px; }
  .zf-search { flex: 1; width: auto; border-left: 0; height: 50px; }
  .zf-body { flex-direction: column; align-items: flex-start; padding: 24px 16px 90px; }
  .zf-info p i { display: block; height: 0; }
}

/* ===== 사이트 가로폭 통일: 내용 1200px (다방·직방 수준) — 지도보기는 화면 꽉 차게 그대로 ===== */
@media (min-width: 1024px) {
  body .site-header-inner { max-width: 1240px; padding-left: 20px; padding-right: 20px; }
  body .site-nav { position: static; transform: none; grid-column: 3; justify-content: center; gap: clamp(18px, 2vw, 34px); }
  body .site-auth { margin-right: 0; }
  body .site-brand .site-mode-switch { margin-left: 0; }
}

/* ===== 메뉴줄 다시 배치 (다방처럼): 로고 맨 왼쪽, 로그인·회원가입 맨 오른쪽 =====
   임차인|임대인 = 내용 왼쪽 끝 + 33px (지난 위치에서 약 2.5cm 왼쪽), 로고와는 최소 16px 떨어지게
   지도보기     = 첫 화면 검색칸 왼쪽 끝 줄 (지난 위치에서 약 1cm 왼쪽)
   메뉴(공실 광고하기~제휴서비스) = 오른쪽 끝을 첫 화면 검색칸 오른쪽 끝에 맞춤
   화면이 좁으면(1360px 미만) 겹치지 않게 차례대로 놓여요. 지도보기 페이지는 그대로. */
@media (min-width: 1360px) {
  body .site-header-inner { max-width: none; padding-left: 32px; padding-right: 32px; position: relative; }
  body .site-brand .site-mode-switch { position: absolute; top: 50%; transform: translateY(-50%); left: max(155px, calc(50% - 567px)); margin: 0; }
  body .site-header-inner > .housing-link { position: absolute; grid-column: auto; grid-row: auto; top: 50%; transform: translateY(-50%); left: max(322px, calc(50% - 400px)); }   /* 임차인|임대인 바로 옆 (12px 간격) */
  body .site-header-inner .site-nav { position: absolute; grid-column: auto; grid-row: auto; top: 50%; left: auto; right: max(calc(50% - 600px), 220px); transform: translateY(-50%); gap: 28px; }   /* 오른쪽 끝 = 파란 배너 오른쪽 끝 (넘지 않게), 로그인과는 안 겹치게 */
  body .site-auth { grid-column: 4; justify-self: end; margin-right: 0; }
}
.zf-notice { margin-top: 16px !important; padding: 10px 12px; border-radius: 6px; background: #3B3B3B; color: #BDBDBD; font-size: 12.5px !important; line-height: 1.6 !important; max-width: 760px; }
/* 맨 아래 앱 내려받기 버튼 (직방처럼) */
.zf-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.zf-store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 180px; height: 48px; border: 1px solid #BDBDBD; border-radius: 10px; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.zf-store:hover { border-color: #fff; background: #3D3D3D; }
.zf-store svg { width: 22px; height: 22px; }
.zf-store-soon { font-size: 12.5px; color: #8C8C8C; }
@media (max-width: 760px) { .zf-store { width: 150px; height: 44px; font-size: 14.5px; } }
/* 맨 아래 안내 문구 한 줄로 */
.zf-info { flex: 1; min-width: 0; }
.zf-notice { max-width: none; width: fit-content; }
@media (min-width: 1240px) { .zf-notice { white-space: nowrap; } }
/* 맨 아래: 버튼 줄이 빠진 만큼 간격 */
.zf-stores { margin-top: 18px; }
/* 카톡 상담 버튼: 화면 구석이 아니라 내용 오른쪽 바깥 여백 가운데쯤에 (넓은 화면만, 지도보기 제외) */
@media (min-width: 1500px) {
  body .kakao-float { right: calc((100% - 1240px) / 4 - 62px); bottom: 48px; }
}
@media (max-width: 760px) { .zf-hours { display: block; } }

/* 임차인 화면: 메뉴 3개를 화면 가운데에, 적당한 간격으로 */
@media (min-width: 1360px) {
  body:has(.site-mode-switch a.is-on[href="/"]) .site-header-inner .site-nav { left: 50%; right: auto; transform: translate(-50%, -50%); gap: 48px; }
}

/* 메뉴 위치 통일: 임차인·임대인 모두 '지도보기' 바로 오른쪽에서 시작, 간격 36px */
@media (min-width: 1360px) {
  body .site-header-inner .site-nav,
  body:has(.site-mode-switch a.is-on[href="/"]) .site-header-inner .site-nav {
    left: max(456px, calc(50% - 266px)); right: auto; transform: translateY(-50%); gap: 36px; justify-content: flex-start;
  }
}
/* 새 로고(SVG) 크기 */
.site-brand img, .site-logo img { width: auto; height: 34px; }
@media (max-width: 767px) { .site-brand img, .site-logo img { width: auto; height: 28px; } }
/* 지도보기: 꽉 찬 파랑 대신 연한 파랑 (임차인/임대인 전환 버튼과 겹치지 않게) */
.site-header .housing-link { background: #EEF3FE; border: 1px solid #C9D8FB; color: #1F4FD1; box-shadow: none; }
.site-header .housing-link:hover { background: #E1EAFD; }
