/* ===== 헤더 ===== */
.p-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.p-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-logo {
  font-size: 1.1rem;
  font-weight: 900;
  color: #333;
  text-decoration: none;
}

.p-logo:hover { color: #555; }

.p-call {
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  transition: all 0.2s;
}

.p-call:hover {
  border-color: #444;
  background: #f5f5f5;
}


/* ===== 페이지 히어로 ===== */
.p-hero {
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
  padding: 52px 20px 48px;
  text-align: center;
}

.p-hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.p-hero-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.p-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #222;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.p-hero-desc {
  font-size: 0.92rem;
  color: #999;
  font-weight: 400;
}


/* ===== 필터 바 ===== */
.filter-bar {
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  position: sticky;
  top: 64px;
  z-index: 50;
}

.filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
  margin-bottom: -1px;
}

.filter-btn:hover { color: #333; }

.filter-btn.active {
  color: #222;
  border-bottom-color: #222;
  font-weight: 700;
}


/* ===== 정렬 바 ===== */
.sort-bar {
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
}

.sort-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.sort-btn {
  padding: 5px 14px;
  background: #f5f5f5;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}

.sort-btn:hover {
  background: #eee;
  color: #333;
}

.sort-btn.active {
  background: #222;
  border-color: #222;
  color: #fff;
  font-weight: 700;
}


/* ===== 우선노출 섹션 ===== */
.featured-section {
  background: #fffbf0;
  border-top: 1px solid #f0e8c8;
  border-bottom: 2px solid #f0e8c8;
  padding: 28px 20px;
}

.featured-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.featured-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.p-card-featured {
  border-color: #f0c040;
}

.p-card-featured:hover {
  border-color: #d4a000;
}


/* ===== 매물 목록 ===== */
.list-main {
  background: #fff;
  min-height: 60vh;
  padding: 40px 20px 80px;
}

.list-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.result-count {
  font-size: 0.83rem;
  color: #999;
  margin-bottom: 24px;
}

.result-count span {
  font-weight: 700;
  color: #333;
}

/* 그리드 */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* 매물 카드 */
.p-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.p-card:hover {
  border-color: #aaa;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* 카드 이미지 */
.p-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.p-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.p-card:hover .p-card-img img {
  transform: scale(1.03);
}

/* 이미지 없을 때 */
.p-card-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #ccc;
  font-size: 2.5rem;
}

/* ✅ 공통 배지 (Badge) 스타일 */
.p-card-badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 리스트 페이지용 개별 배지 위치 */
.p-card-img .p-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.badge-featured { background: #7c3aed !important; color: #fff !important; }
.badge-new { background: #222 !important; color: #fff !important; }
.badge-hot { background: #e53935 !important; color: #fff !important; }

/* 배지 래퍼 (공통) */
.badge-wrapper {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 11;
}
.badge-wrapper .p-card-badge { position: static; }


/* 카드 본문 */
.p-card-body {
  padding: 18px 20px 20px;
}

.p-card-type {
  font-size: 0.72rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.p-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.4;
}

.p-card-address {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 14px;
}

.p-card-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: #222;
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

.p-card-price-note {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 14px;
}

/* 카드 하단 메타 */
.p-card-specs {
  display: flex;
  gap: 14px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.p-card-spec {
  font-size: 0.78rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-card-spec::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #ccc;
  border-radius: 50%;
}

.p-card-spec:first-child::before { display: none; }

/* 빈 상태 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #ccc;
}

.empty-state p {
  font-size: 0.92rem;
  margin-top: 12px;
  color: #bbb;
}


/* ===== 페이지네이션 ===== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 60px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: #444;
  color: #222;
}

.page-btn.active {
  background: #222;
  border-color: #222;
  color: #fff;
  font-weight: 700;
}

.page-btn.page-arrow {
  font-size: 1.1rem;
  color: #aaa;
}

.page-btn.disabled {
  opacity: 0.3;
  cursor: default;
}


/* ===== 상세 페이지 ===== */
.breadcrumb {
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 40px;
}

.breadcrumb a {
  font-size: 0.83rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #333; }

.view-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.view-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ✅ 상세 페이지 이미지 배지 위치 수정 */
.view-main-img-wrapper {
  position: relative; /* 배지 위치의 기준점 */
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.view-badge-wrapper {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.view-main-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: #f0f0f0;
  cursor: zoom-in;
}

.view-main-img-empty {
  width: 100%;
  height: 460px;
  background: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #ddd;
}

.view-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.view-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
}

.view-thumb:hover,
.view-thumb.active {
  border-color: #333;
  opacity: 1;
}

.view-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.view-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #222;
  line-height: 1.3;
  margin-bottom: 6px;
}

.view-address {
  font-size: 0.88rem;
  color: #999;
  margin-bottom: 20px;
}

.view-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #222;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.view-price-note {
  font-size: 0.83rem;
  color: #aaa;
  margin-bottom: 8px;
}

.view-viewcount {
  font-size: 0.78rem;
  color: #bbb;
  margin-bottom: 20px;
}

.view-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}

.view-spec-item {
  background: #fff;
  padding: 14px 16px;
}

.view-spec-label {
  font-size: 0.72rem;
  color: #999;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.view-spec-value {
  font-size: 0.92rem;
  color: #222;
  font-weight: 700;
}

.view-desc-title {
  font-size: 1 rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 38px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.view-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.85;
  white-space: pre-line;
}

.view-sidebar {
  position: sticky;
  top: 128px;
}

.view-contact-card {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 28px 24px;
  background: #fff;
}

.view-contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.view-contact-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #222;
  margin-bottom: 20px;
}

.btn-view-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 10px;
}

.btn-view-call:hover { background: #444; }

.btn-view-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #444;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1.5px solid #ccc;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-view-back:hover {
  border-color: #444;
  background: #f5f5f5;
}

.view-contact-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.view-contact-info li {
  font-size: 0.78rem;
  color: #aaa;
  list-style: none;
}


/* ===== 상담 배너 ===== */
.consult-banner {
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 56px 20px;
  text-align: center;
}

.consult-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

.consult-banner p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.consult-banner h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #222;
  margin-bottom: 28px;
  line-height: 1.4;
}

.btn-banner-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-banner-call:hover {
  background: #444;
  transform: translateY(-1px);
}


/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .p-header-inner { padding: 0 20px; }
  .filter-inner   { padding: 0 20px; }
  .sort-inner     { padding: 10px 20px; }

  .list-main { padding: 28px 16px 60px; }

  .featured-section { padding: 20px 16px; }

  .property-grid { grid-template-columns: 1fr; }

  .view-main { padding: 24px 20px 60px; }

  .view-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .view-main-img,
  .view-main-img-empty { height: 260px; }

  .view-sidebar {
    position: relative;
    top: 0;
  }

  .breadcrumb-inner { padding: 12px 20px; }
}

@media (max-width: 480px) {
  .view-specs { grid-template-columns: 1fr; }
}

