:root {
    /* 메인 컬러 시스템 (Airbnb + Forest Green 믹스) */
    --green-main: #2f5d50;
    --green-deep: #1e3d33;
    --green-soft: #e8f3ef;
    --mint: #2ac1a0;

    --sand: #f7f2e9;
    --bg: #fafafa;
    --white: #ffffff;
    --text-main: #222222;
    --text-sub: #777777;
    --line: #e4e4e4;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.10);
    --radius-card: 18px;
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text-main);
    font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  img {
    max-width: 100%;
    display: block;
  }

  /* ================= HEADER ================= */
/* ===== 모던 헤더 디자인 ===== */
.modern-header {
background: #ffffff;
padding: 14px 22px;
width: 100%;
max-width: 1480px;   /* 페이지 폭과 동일하게 */
display: flex;
align-items: center;
border-bottom: 1px solid rgba(0,0,0,0.07);
justify-content: center; /* 가운데 정렬 */
text-align: center;      /* 내부 텍스트도 중앙 */
/* 부드러운 그림자 */
box-shadow: 0 4px 12px rgba(0,0,0,0.05);

/* 나타날 때 모션 효과 */
animation: fadeSlideDown 0.55s ease;
}

/* Fade + Slide Down Motion */
@keyframes fadeSlideDown {
from {
  opacity: 0;
  transform: translateY(-12px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}

/* 로고 영역 */
.logo-area {
display: flex;
align-items: center;
gap: 12px;
margin: 0 auto;      /* 좌우 auto로 중앙 */
}

/* 로고 이미지 */
.logo-icon {
width: 55px;
height: auto;
border-radius: 6px;

/* 로고 미세 3D 효과 */
filter: drop-shadow(0 2px 3px rgba(0,0,0,0.08));
}

/* 브랜드 텍스트 */
.brand-text-zone {
display: flex;
flex-direction: column;
}

.logo-text-main {
font-size: 20px;
font-weight: 700;
color: #222;
margin-bottom: 2px;

/* 모바일에서 풍부하게 보이도록 */
letter-spacing: -0.5px;
}

.sub-headline {
font-size: 13.5px;
color: #555;
font-weight: 500;
margin-top: 0;
line-height: 1.3;
word-break: keep-all !important; /* 플랫폼 같은 단어 중간 끊김 방지(선택) */
}

/* ========== 모바일 반응형 적용 ========== */
@media (max-width: 768px) {

.modern-header {
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  justify-content: center;
  text-align: center;
}

.logo-icon {
  width: 48px;
}

.logo-text-main {
  font-size: 18px;
}

.sub-headline {
  font-size: 12.5px;
  max-width: 240px;
  line-height: 1.32;
}
}

/* 초소형 모바일 (아이폰 SE 같은 사이즈) */
@media (max-width: 430px) {

.logo-area {
  gap: 8px;
}

.logo-icon {
  width: 42px;
}

.logo-text-main {
  font-size: 17px;
}

.sub-headline {
  font-size: 11.5px;
  max-width: 200px;
}
}

  .header-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .header-top {
    max-width: 1480px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-sub);
  }

  .header-top-right a {
    margin-left: 16px;
  }

  .header-top-right a:hover {
    color: var(--green-main);
    font-weight: 500;
  }

  .header-main {
    max-width: 1480px;
    margin: 0 auto;
    padding: 12px 24px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit; 
  }

  .logo-area > div:last-child {
    text-align: center;
  }


  /*
  .main-nav {
    display: flex;
    justify-content: center;
    gap: 62px;
    font-size: 16px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 4px;
    text-align: center;
  }
*/
.main-nav-row {
    display: flex;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--line);
    /* padding-top: 12px; */
    padding: 12px 40px 0; /* ← 좌우 24px 여백 추가 */

    margin-top: 4px;
  }

  .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 62px; 
    font-size: 14px;
    text-align: center;
  }

  .nav-blog-link {
    font-size: 13px;
    color: var(--text-sub);
    margin-left: auto;
    transition: color 0.15s ease;
  }

  .nav-blog-link:hover {
    color: var(--green-main);
    text-decoration: underline;
  }


  .logo-text-main {
    font-size: 2.4rem; /* h1보다 크게 */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
.logo-icon {
width: 64px;       /* 필요 시 크기 조절 */
height: 64px;
object-fit: contain;
}
/*
  .header-main {
    max-width: 1480px;
    margin: 0 auto;
    padding: 12px 24px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c9b48a, #f1e2c2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
  }

  .logo-text-main {
    font-size: 18px;
    font-weight: 700;
  }

  .logo-text-sub {
    font-size: 11px;
    color: var(--text-sub);
  }

  .main-nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
  }
*/
  .main-nav a {
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
  }

  .main-nav a:hover {
    color: var(--green-main);
    border-bottom-color: var(--green-main);
    font-weight: 500;
  }

  /* ================= TOP INSTITUTION LOGOS ================= */

  .inst-logos {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

  .inst-logos-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 32px;
    align-items: center;
    overflow-x: auto;
  }

  .inst-logo-item {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-sub);
  }
  .sub-headline {
    color: var(--text-sub);
    font-weight: 500;
    margin: 4px 0 0;   /* 위/아래 여백 축소 */
    line-height: 1.3;   /* 필요 시 간격 조정 */
  }
  /* ================= LAYOUT ================= */

  .page-container {
    max-width: 1480px;
    margin: 32px auto 40px;
    padding: 0 24px 40px;
    display: flex;
    gap: 32px;
  }

  .sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .main {
    flex: 1;
  }

  .card {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 20px 18px;
  }

  /* ================= SIDEBAR ================= */

  .call-title {
    font-size: 13px;
    color: var(--text-sub);
  }

  .call-number {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 4px;
    color: var(--green-deep);
  }

  .call-desc {
    font-size: 12px;
    color: var(--text-sub);
  }

  .visit-label {
    font-size: 13px;
    color: var(--text-sub);
  }

  .visit-today {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
  }

  .visit-total {
    font-size: 12px;
    color: var(--text-sub);
  }

  .input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid #dddddd;
    background: var(--beige, #f9f6f0);
    font-size: 13px;
    margin-bottom: 10px;
  }

  textarea.input {
    resize: vertical;
    min-height: 80px;
  }

  .btn-primary {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    background: var(--green-main);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .btn-primary:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
  }

  /* 금액별 검색 */

  .price-title {
    text-align: center;
    background: var(--green-main);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: 12px;
    margin: -4px -4px 12px;
  }

  .price-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 13px;
  }

  .price-item:last-child {
    border-bottom: none;
  }

  .label-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--green-soft);
    color: var(--green-deep);
    border: 1px solid #cde2db;
  }

  .price-item:hover {
    background: #f8fbfa;
  }

  /* ===== 지역별 검색 버튼 ===== */
  .region-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3열 */
    gap: 6px;
    margin-top: 8px;
  }

  .region-btn {
    border: 1px solid #e0e0e0;
    background: #f9f6f0;
    border-radius: 999px;
    padding: 6px 0;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  /* 호버 시 살짝 강조 */
  .region-btn:hover {
    background: var(--green-soft);
    color: var(--green-deep);
    border-color: #cde2db;
  }

  /* 선택된 상태 (나중에 JS로 토글해도 됨) */
  .region-btn.active {
    background: var(--green-main);
    color: #fff;
    border-color: var(--green-main);
  }


/* ─────────────────────────────────────
 사이드바 내부 요소 중앙정렬
 ───────────────────────────────────── */
.sidebar .card {
  text-align: center !important;   /* 텍스트와 버튼 모두 중앙 */
}

/* 대표번호 숫자 */
.sidebar .call-number {
  text-align: center !important;
}

/* 방문자 숫자 등 */
.sidebar .visit-label,
.sidebar .visit-today,
.sidebar .visit-total {
  text-align: center !important;
}

/* 입력폼을 중앙정렬 */
.sidebar .input {
  text-align: center !important;
}

/* 버튼도 가운데 정렬 */
.sidebar .btn {
  display: block;
  width: 100%;
  text-align: center !important;
  margin: 0 auto;
}

  /* ================= MAIN ================= */

  /* 상단 카테고리 */

  .top-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
  }
  .top-cat {
border-radius: 18px;
overflow: hidden;
border: 1px solid var(--line);
background: #f4f4f4;
box-shadow: var(--shadow-sm);
position: relative;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: flex-end;
aspect-ratio: 1 / 1;          /* 정사각형 비율 */
}
/* 자세히 보기 → 추가 */
.top-cat::after {
    content: "자세히 보기 →";
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.5px;
    pointer-events: none;
  }
/* (옵션) aspect-ratio 미지원 브라우저 대비 */
.top-cat::before {
content: "";
display: block;
padding-top: 100%;
}
.top-cat > * {
position: absolute;
inset: 0;
}
.top-cat-label {
align-self: flex-end;
padding: 10px 12px;
font-size: 16px;       /* 기존보다 크게 */
font-weight: 700;      /* Bold */
/*  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent); */
background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
}

.top-cat-img {
  background-size: cover;
  background-position: center;
}
  /*
  .top-cat {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f4f4f4;
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .top-cat-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
  }

  .top-cat-label {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  }
*/
  /* 검색 박스 */

  .search-box {
    background: var(--white);
    border-radius: 24px;
    padding: 22px 22px 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    margin-bottom: 34px;
  }

  .search-label-row {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
  }

  .search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }

  .search-row select {
    flex: 1;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #dddddd;
    background: var(--sand);
    font-size: 13px;
  }

  .btn-search {
    padding: 0 22px;
    border-radius: 14px;
    background: var(--mint);
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .btn-search:hover {
    background: #23a58a;
  }

  .keyword-input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #dddddd;
    background: #f7f7f7;
    font-size: 13px;
  }

  .listing-number-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .listing-number-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-sub);
  }

  .listing-number-row {
    display: flex;
    gap: 10px;
  }

  .listing-number-row select {
    flex: 1;
    background: var(--sand);
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #dddddd;
    background: var(--sand);
    font-size: 13px;
  }
  .listing-number-row input {
    flex: 3;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #dddddd;
    background: var(--sand);
    font-size: 13px;
  }

  .listing-number-row input {
    background: #ffffff;
  }

  .btn-listing-search {
    padding: 0 22px;
    border-radius: 14px;
    background: var(--green-main);
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-listing-search:hover {
    background: var(--green-deep);
  }
  /* 섹션 제목 */

  .section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 14px;
  }

  .section-title span {
    font-size: 12px;
    color: var(--text-sub);
    margin-left: 6px;
  }
  .seo-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  /* HOT 매물 */

  .hot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  @media (max-width: 1024px) {
    .hot-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .hot-grid {
      grid-template-columns: 1fr;
    }
  }

  /* 카드 기본 */
  .hot-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 22px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  /* 리본 (공통) */
  .ribbon {
    position: absolute;
    top: 0;
    left: 0;
    padding: 7px 20px 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
    border-bottom-right-radius: 6px;
  }

  /* 리본 자동 매핑 */
  .hot-card[data-type="임대"] .ribbon {
    background-color: #2a9d8f;  /* 임대 - 초록 */
  }

  .hot-card[data-type="매매"] .ribbon {
    background-color: #e63946;  /* 매매 - 빨강 */
  }

  /* 텍스트 */
  .hot-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .hot-desc {
    font-size: 14px;
    margin: 2px 0;
    color: #555;
  }

  .hot-phone {
    margin-top: 10px;
    font-weight: 700;
    color: #0a7c6f;
  }

/*
  .hot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .hot-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 18px 16px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    font-size: 13px;
  }

  .hot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
  }

  .tag-green {
    background: var(--green-main);
  }

  .tag-red {
    background: #e05b4f;
  }

  .hot-title {
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
  }

  .hot-desc {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 4px;
  }

  .hot-phone {
    font-size: 13px;
    font-weight: 600;
    color: var(--green-deep);
  }
*/
  /* 기타 매물 테이블 */

  .table-box {
    margin-top: 32px;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    /* padding: 18px 18px 8px; */
    padding: 18px 20px 14px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  th, td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f1f1;
    text-align: left;
  }

  th {
    font-size: 12px;
    color: var(--text-sub);
  }

  .td-title {       /* 제목은 한 줄만, 길면 … 처리 */
    max-width: 260px;       /* 너비는 상황 봐서 조절 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .td-amount,
  .td-rooms,
  .td-sales {
    text-align: right;
  }

  .listing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .listing-table th,
  .listing-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f1f1;
    text-align: left;
  }


  .listing-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    background: #ffffff;
    border-top: 1px solid #e3e3e3;     /* ↑ 위 선 추가 */
    border-bottom: 1px solid #e3e3e3;
    padding: 8px 8px;   /* 살짝 낮춰서 컴팩트하게 */
  }

  .listing-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .listing-table tbody tr:hover {
    background: #fafdf8; /* 아주 옅은 연두 느낌 */
  }

  /* 거래형태 배지 */
  .deal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
  }

  /* 매매 = 핑크/레드 계열 */
  .deal-sale {
    background: #f25b7a;
  }

  /* 임대 = 청록 계열 */
  .deal-rent {
    background: #12a4a4;
  }

  /* 토지 = 흙색 */
  .deal-land {
    background: #a8743a;
  }

  /* 공지사항 */
  .notice-box {
    margin-top: 32px;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 18px;
  }

  .notice-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 13px;
  }

  .notice-item:last-child {
    border-bottom: none;
  }

  .notice-date {
    color: var(--text-sub);
    font-size: 12px;
  }
  /* ================= 상담문의 리스트 (공지 대체) ================= */

  .consult-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    padding: 10px 4px;
 /*   border-bottom: 1px solid #eee; */
 border-bottom: 1px solid #e8e4db; /* 베이지 라인 */
    font-size: 13px;
    gap: 10px;
  }

  .consult-item:last-child {
    border-bottom: none;
  }

  .consult-badge {
    /* 포레스트 그린*/
    background: #3c5f4b;  
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
  }

  .consult-title {
   /* color: #333; */
   color: #2f2f2f;         /* 부드러운 딥그레이 */
    font-weight: 500;
  }

  .consult-phone {
    /* color: #666; */
    color: #6f6f6f;         /* 흐린 회색 */
    font-size: 12px;
    white-space: nowrap;
  }

  /* ===== 기관 로고 슬라이드 ===== */
  .logo-slider-box {
max-width: 980px;
margin: 40px auto;
padding: 10px 0;
}

.logoSwiper .swiper-slide {
display: flex;
justify-content: center;
align-items: center;
}

.logoSwiper img {
width: 120px;
height: auto;
object-fit: contain;
filter: grayscale(0.2);
transition: 0.3s ease;
}

.logoSwiper img:hover {
filter: grayscale(0);
transform: scale(1.05);
}



  /* ================= FOOTER ================= */

  .footer {
    background: #f3f1eb;
    border-top: 1px solid #ded7c4;
    padding: 28px 24px 34px;
    color: var(--text-main);
  }

  .footer-inner {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .footer-left {
    max-width: 70%;
    font-size: 13px;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .footer-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c9b48a, #f1e2c2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
  }

  .footer-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--green-deep);
  }

  .footer-info {
    margin: 0;
    line-height: 1.8;
    color: var(--text-sub);
  }

  .footer-right {
    text-align: right;
    font-size: 13px;
  }

  .footer-call-title {
    color: var(--green-main);
    font-weight: 500;
    margin-bottom: 4px;
  }

  .footer-call-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 10px;
  }

  .kakao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffe812;
    color: #381e1f;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
  }

  /* 기관로고 (footer 위에) */

  .footer-logos {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .footer-logos-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 32px;
    align-items: center;
    overflow-x: auto;
  }

  .footer-logo-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
  }

  /* ================= FLOATING SOCIAL ================= */

  .social_icon_zone {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
  }

  .social_icon_zone div {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .social_icon_zone div:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  }

  .social_icon_zone h5 {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--green-deep);
  }
/* ===== 로그인 모달 ===== */
.login-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
display: none;
align-items: center;
justify-content: center;
z-index: 999;
}

.login-modal {
width: 340px;
max-width: 92%;
background: #ffffff;
border-radius: 18px;
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
padding: 26px 24px 24px;
position: relative;
text-align: center;
animation: modalFadeIn 0.25s ease-out;
}

.login-title {
font-size: 20px;
font-weight: 700;
margin: 15px 0 6px;
}

.login-subtitle {
margin: 0 0 25px;
font-size: 13px;
color: var(--text-sub);
}

.login-close-btn {
position: absolute;
top: 14px;
right: 16px;
border: none;
background: none;
font-size: 18px;
cursor: pointer;
color: #999;
}

.login-close-btn:hover {
color: #555;
}

.login-form {
display: flex;
flex-direction: column;
gap: 10px;
}

.login-input {
width: 100%;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid #dddddd;
background: var(--sand);
font-size: 13px;
}

/* 옵션 줄 (비번저장 / 보안접속) */
.login-option-row {
margin-top: 4px;
display: flex;
justify-content: space-between;
gap: 10px;
font-size: 12px;
}

.login-option {
display: inline-flex;
align-items: center;
gap: 4px;
cursor: pointer;
color: var(--text-sub);
}

.login-option input[type="checkbox"] {
display: none;
}

.login-option-icon {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid #ddd;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 11px;
}

/* 체크됐을 때 아이콘 강조 */
.login-option input[type="checkbox"]:checked + .login-option-icon {
border-color: var(--green-main);
}

  /* 로그인 버튼 */
  .login-submit-btn {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    background: var(--green-main);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .login-submit-btn:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
  }

  /* 하단 링크 */
  .login-links {
    margin-top: 8px;
    font-size: 12px;
  }

  .login-link {
    color: var(--text-sub);
    text-decoration: none;
  }

  .login-link:hover {
    text-decoration: underline;
  }

  .login-divider {
    margin: 14px 0 10px;
    border-top: 1px solid #eee;
  }

  .login-bottom {
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 4px;
  }

  .login-bottom a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--text-main);
  }

  /* 모달 공통 애니메이션 (회원가입이랑 같이 사용) */
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


  /* ===== 회원가입 모달 ===== */
  .signup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;                 /* 기본은 숨김 */
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  .signup-modal {
    width: 340px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
    padding: 26px 22px 24px;
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.25s ease-out;
  }

  .signup-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 30px;
  }

  .signup-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
  }

  .signup-close-btn:hover {
    color: #555;
  }

  .signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .signup-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dddddd;
    background: var(--sand);
    font-size: 13px;
    margin: 1px 0;      /* 위아래 여백 추가 */
  }

  /* 약관 영역 */
  .signup-terms-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-sub);
  }

  .signup-terms-left {
    text-decoration: underline;
    cursor: pointer;
  }

  .signup-terms-right {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .signup-terms-right input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }
  /* 버튼: 사이트 톤 맞춰서 포레스트 그린 */
  .signup-submit-btn {
    margin-top: 25px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    background: var(--green-main);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .signup-submit-btn:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
  }
  /* 캡차 영역 */
  /* 숫자 코드 캡차 영역(앞에 이미 대부분 있음) */
  .signup-captcha-row {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    justify-content: space-between;
  }

  .captcha-label {
    color: var(--text-sub);
    white-space: nowrap;
  }

  .captcha-question {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
  }

  .signup-captcha-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #dddddd;
    background: #fff;
    font-size: 12px;
  }

  /* ✅ honeypot: 화면에서는 완전 숨김 */
  .hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }




  /* 간단한 등장 애니메이션 */
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }



  /* ================= RESPONSIVE ================= */

  @media (max-width: 1024px) {
    .page-container {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      flex-direction: row;
      flex-wrap: wrap;
    }
    .sidebar .card {
      flex: 1 1 240px;
    }
    .hot-grid {
      grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .header-main {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    .main-nav {
      flex-wrap: wrap;
      row-gap: 6px;
    }
    .footer-inner {
      flex-direction: column;
      text-align: left;
    }
    .footer-right {
      text-align: left;
    }
  }

  @media (max-width: 720px) {
    .top-categories {
      grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .hot-grid {
      grid-template-columns: 1fr;
    }
    .search-row {
      flex-direction: column;
    }
    .btn-search {
      width: 100%;
    }
    .sidebar {
      flex-direction: column;
    }
  }
/* ====== 호텔·모텔 리스트 페이지 전용 ====== */

/* 상단 타이틀 영역 */
.category-hero {
margin-bottom: 18px;
}

.category-hero-title {
font-size: 22px;
font-weight: 700;
margin: 0 0 4px;
}

.category-hero-desc {
margin: 0;
font-size: 13px;
color: var(--text-sub);
}

/* 필터 박스 (지역 버튼 + 정렬) */
.list-filter-wrap {
background: #ffffff;
border-radius: 18px;
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
padding: 14px 18px 10px;
margin-bottom: 18px;
}

.list-filter-row {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 6px;
}

.list-filter-label {
font-size: 13px;
font-weight: 600;
margin-top: 4px;
min-width: 48px;
}

.list-region-tabs {
flex: 1;
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.region-btn {
padding: 6px 14px;
border-radius: 999px;
border: 1px solid #dddddd;
background: #ffffff;
font-size: 13px;
cursor: pointer;
}

.region-btn.active {
background: var(--green-main);
color: #ffffff;
border-color: var(--green-main);
}

.region-btn:hover:not(.active) {
background: #f6f6f6;
}

/* 결과 개수 + 정렬 */
.list-filter-bottom {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
color: var(--text-sub);
margin-top: 4px;
}

.list-sort-select {
padding: 4px 10px;
border-radius: 999px;
border: 1px solid #dddddd;
font-size: 12px;
background: #ffffff;
}
/* 🔹 필터 상단 칩 영역 (황금색 스타일) */
.filter-top-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 6px;
}

.filter-chip-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

/* 🔹 필터 상단 칩 영역 (네모 + 황금톤) */
.filter-chip {
padding: 6px 12px;
border-radius: 6px;           /* ← 999px 말고 6px */
border: 1px solid #e0e0e0;
background: #f8f5ed;
font-size: 12px;
color: #555;
cursor: pointer;
white-space: nowrap;
}

.filter-chip-main {
border-radius: 6px;           /* 메인 칩도 같이 네모 */
background: #cdb68b;
color: #ffffff;
border-color: #c4a973;
font-weight: 600;
}

/* hover 시 살짝 강조 (메인 칩 제외) */
.filter-chip:hover:not(.filter-chip-main) {
background: #f1e7d6;
}

/* 오른쪽: 지도 버튼 */
.filter-top-right {
display: flex;
align-items: center;
gap: 8px;
}

.filter-view-btn {
padding: 6px 14px;
border-radius: 999px;
border: 1px solid #dddddd;
background: #ffffff;
font-size: 12px;
cursor: pointer;
}

.filter-view-btn:hover {
background: #f6f6f6;
}

/* 2행: 지역 버튼 줄 (그대로 사용) */
.filter-region-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 6px;
}

/* 🔹 필터 2행: 지역 선택 버튼 크기 p-b-list랑 통일 */
.filter-region-row .region-btn {
padding: 6px 12px;  /* 살짝 더 짧게 */
font-size: 12px;    /* 글자도 p-b-list랑 동일하게 */
}

/* 매물 카드 그리드 */
.list-grid {
margin-top: 12px;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
}

/* 반응형 */
@media (max-width: 1200px) {
.list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 900px) {
.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 600px) {
.list-grid {
  grid-template-columns: 1fr;
}
}

/* 개별 매물 카드 */
.listing-card {
position: relative;
background: #ffffff;
border-radius: 18px;
overflow: hidden;
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listing-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
}

/* 번호 / 추천 뱃지 */
.listing-no {
position: absolute;
top: 8px;
left: 8px;
background: #d32f2f;
color: #ffffff;
font-size: 11px;
font-weight: 700;
padding: 4px 9px;
border-radius: 999px;
}

.listing-badge {
position: absolute;
top: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.70);
color: #ffffff;
font-size: 11px;
font-weight: 600;
padding: 4px 9px;
border-radius: 999px;
}

/* 카드 상단 빨간 타이틀 바 느낌 */
.listing-top-title {
position: absolute;
left: 0;
right: 0;
top: 40px;
padding: 7px 12px;
/* background: #e53935;  빨간 띠 / #FFCC80 살구/크림 오렌지 */
background: #F6D46B;    /* 노란 띠 #ffca28 | #F6D46B – 살짝 톤다운된 골드 | #FFCC80 – 살구/크림 오렌지 느낌 | #FFF3CD | */
/*  color: #ffffff;  흰색 폰트 */
color: #333333;        /* 진회색 텍스트 */
font-size: 13px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

/* 선택 옵션: 살짝 더 금속 느낌 내고 싶으면 (추후 고민)  */
box-shadow:
  0 1px 0 rgba(255, 255, 255, 0.4),   /* 위쪽 살짝 하이라이트 */
  inset 0 -1px 0 rgba(0, 0, 0, 0.10); /* 아래쪽 아주 약한 그림자 */

}

/* 썸네일 */
.listing-thumb {
width: 100%;
height: 220px;
background-size: cover;
background-position: center;
/*추가 아래*/
background-color: #ffffff;    /* 🔸 흰색 박스 */
background-image: none !important;  /* 🔸 인라인 background-image 덮어쓰기 */
}

/* 텍스트 영역 */
.listing-body {
padding: 12px 14px 14px;
font-size: 13px;
}

.listing-location {
font-size: 12px;
color: var(--text-sub);
margin-bottom: 6px;
}

.listing-price {
font-size: 14px;
font-weight: 700;
margin-bottom: 4px;
}

.listing-meta {
font-size: 12px;
color: var(--text-sub);
}

/* 페이징 */
.list-pagination {
margin: 24px 0 0;
display: flex;
justify-content: center;
gap: 6px;
}

.page-btn {
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid #dddddd;
background: #ffffff;
font-size: 13px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.page-btn.active {
background: var(--green-main);
color: #ffffff;
border-color: var(--green-main);
}

/* 오버레이 전체 */
.detail-overlay {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
}

/* 처음엔 안 보이게 */
.detail-overlay.hidden {
display: none;
}

/* 반투명 검은 배경 */
.detail-overlay-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.55);
}

/* 안쪽 컨텐츠 박스 */
.detail-overlay-content {
position: relative;
width: 90%;
max-width: 1200px;
height: 90%;
background: #fff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
z-index: 1;
}

/* 닫기 버튼 */
.detail-overlay-close {
position: absolute;
top: 10px;
right: 12px;
z-index: 2;
border: none;
background: rgba(0, 0, 0, 0.55);
color: #fff;
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 22px;
cursor: pointer;
}

/* 상세 내용 iframe */
#detailFrame {
width: 100%;
height: 100%;
}