::root {
  --border: #e2e8f0;
  --muted: #64748b;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: #f8fafc;
  color: #111
}

/* === HERO(대문) - 애니메이션 추가 === */
.site-header .hero {
  background: #3a341f;
  color: #f3e9c8;
  padding: 18px 0;
  border-bottom: 1px solid #322d1b;
}

.site-header .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
}

/* 로고 */
.site-header .hero-logo {
  height: 56px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(255, 234, 160, 0.55), 0 10px 30px rgba(230, 180, 60, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: none;
}

.site-header .hero-logo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 28px rgba(255, 234, 160, 0.75), 0 18px 45px rgba(230, 180, 60, 0.45);
}

/* 킹덤부동산 텍스트 */
.site-header .hero-title .kr {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .6px;
  color: #fdf5cc;
  text-shadow: 0 0 32px rgba(255, 215, 0, 0.55), 0 0 48px rgba(255, 184, 0, 0.45);
  position: relative;
  display: inline-block;
  animation: none;
  background-size: 100% 100%;
  background-position: 0 0;
}

.site-header .hero-title .kr::before,
.site-header .hero-title .kr::after {
  display: none;
  animation: none;
}

/* 영문 텍스트 */
.site-header .hero-title .en {
  font-size: 12px;
  opacity: .9;
  letter-spacing: 3px;
  margin-top: 2px;
  color: #fdf5cc;
  text-shadow: 0 0 18px rgba(253, 245, 204, 0.65), 0 0 28px rgba(255, 215, 0, 0.45);
  animation: none;
}


/* 모바일 대응 */
@media (max-width:600px) {
  .site-header .hero-inner {
    min-height: 72px;
    gap: 12px;
  }

  .site-header .hero-logo {
    height: 44px;
  }

  .site-header .hero-title .kr {
    font-size: 22px;
  }
}

/* 카테고리 칩 */
header .filter-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.filter-chips {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center
}

.filter-chips strong {
  margin-right: 6px;
  font-size: 14px
}

.filter-chips label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px
}

.filter-chips input {
  accent-color: #111
}

.filter-tools {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 8px
}

.filter-tools .tab {
  margin-top: 4px
}

.tab {
  padding: 6px 10px;
  background: #fff;
  color: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px
}

/* 카드 그리드 (3열 레이아웃) */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e5e7eb;
  cursor: pointer
}

.meta {
  padding: 10px;
  font-size: 14px
}

.meta-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap
}

.badge {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  margin-right: 4px;
  margin-bottom: 2px
}

.badge.category-badge {
  background: transparent;
  color: #3d2711;
  padding: 4px 12px
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #3d2711;
  background: transparent;
  color: #3d2711;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: none;
  transition: all 0.2s ease
}

.category-badge::before {
  content: '◎';
  font-size: 11px;
  opacity: 0.5;
  color: #3d2711
}

.category-badge:hover {
  border-color: #3d2711;
  color: #3d2711;
  background: rgba(61, 39, 17, 0.08)
}

.deal-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  color: #fff;
  margin-left: 6px
}

.deal-badge.m매매 {
  background: #3b82f6 !important;
  color: #fff !important
}

/* 파란색 - 매매 */
.deal-badge.m월세 {
  background: #fbbf24 !important;
  color: #000 !important
}

/* 노란색 - 월세 */
.deal-badge.m전세 {
  background: #f97316 !important;
  color: #fff !important
}

/* 주황색 - 전세 */
.price-large {
  font-weight: 800;
  font-size: 20px;
  color: #1f2937
}

.listing-no-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  border: 1.5px solid #0f172a;
}

.meta-header .listing-no-chip {
  margin-left: auto
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.detail-title .badge {
  margin-bottom: 0
}

.detail-title .price-main {
  font-weight: 800;
  font-size: 24px
}

.detail-title .listing-no-chip {
  margin-left: 0
}

.info-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 3px
}

.small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4
}

.price {
  font-weight: 700;
  margin-top: 4px;
  font-size: 15px
}

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 12px 12px
}

.btnrow .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #3d2711;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  flex: 1 1 auto;
  min-width: fit-content;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(61, 39, 17, 0.08)
}

.btnrow .tab:hover {
  background: #3d2711;
  color: #fff
}

.btnrow form {
  flex: 1 1 auto;
  min-width: fit-content
}

/* 모달(풀스크린) */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50
}

.modal-body {
  background: #fff;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr
}

@media(max-width:900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.viewer {
  position: relative;
  background: #000
}

.viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000
}

.viewer::after {
  content: '킹덤부동산';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 33%;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 48px);
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  pointer-events: none;
  text-transform: uppercase;
}

.navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer
}

.navbtn.left {
  left: 10px
}

.navbtn.right {
  right: 10px
}

.close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #eee;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10
}

.detail {
  padding: 16px;
  overflow: auto
}

.dtable {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  font-size: 15px
}

@media(max-width:520px) {
  .dtable {
    grid-template-columns: 100px 1fr;
    font-size: 14px
  }
}

.dim {
  color: var(--muted)
}

/* 전화/지도 버튼 */
.callbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px
}

.callbar a {
  flex: 1;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background .2s
}

.callbar a.primary {
  background: #10b981
}

.callbar a.primary:hover {
  background: #059669
}

.callbar button.map {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background .2s;
  border: 0;
  background: #3b82f6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px
}

.callbar button.map:hover:not([disabled]) {
  background: #2563eb
}

.callbar button.map[disabled] {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none
}

/* 표시사항 박스 */
.noticebox {
  margin-top: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
  font-size: 13px;
  line-height: 1.6
}

.noticebox .title {
  font-weight: 700;
  margin-bottom: 6px
}

.noticebox .line {
  margin: 2px 0
}

/* 메인 하단 필수정보 여백 */
.footer-notice {
  margin: 24px 0 40px
}

/* === 네이버 지도 (오른쪽 하단 고정) === */
#map-container {
  position: fixed;
  bottom: 20px;
  right: calc(50% - 580px);
  /* 물건 카드를 가리지 않도록 더 오른쪽으로 */
  width: 380px;
  height: 300px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 40;
}

/* 화면이 작아지면 기본 위치로 */
@media(max-width:1400px) {
  #map-container {
    right: 20px
  }
}

#map {
  width: 100%;
  height: 260px;
}

#map-address {
  height: 40px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 모바일에서는 지도 숨김 */
@media(max-width:768px) {
  #map-container {
    display: none
  }
}

/* === 1:1 채팅 UI === */
/* 채팅 모달 */
#chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

#chat-modal.show {
  display: flex;
}

.chat-container {
  background: #fff;
  width: 100%;
  max-width: 480px;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* 채팅 헤더 */
.chat-header {
  background: linear-gradient(135deg, #3a341f 0%, #4a4228 100%);
  color: #f3e9c8;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #322d1b;
}

.chat-header-title {
  flex: 1;
}

.chat-header-close {
  background: rgba(255, 255, 255, .2);
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  color: #f3e9c8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.chat-header-close:hover {
  background: rgba(255, 255, 255, .3);
}

/* 채팅 메시지 영역 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  gap: 8px;
  max-width: 75%;
  animation: fadeInMessage 0.3s ease-out;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.admin {
  align-self: flex-start;
}

.chat-bubble {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-message.user .chat-bubble {
  background: #3a341f;
  color: #f3e9c8;
  border-color: #3a341f;
}

.chat-message.admin .chat-bubble {
  background: #fff;
  color: #111;
}

.chat-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
  align-self: flex-end;
}

/* 채팅 입력 영역 */
.chat-input-area {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  height: 42px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: #3a341f;
}

.chat-send-btn {
  background: #3a341f;
  color: #f3e9c8;
  border: 0;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: #4a4228;
}

.chat-send-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* 이름 입력 폼 */
.chat-name-form {
  padding: 30px;
  text-align: center;
}

.chat-name-form h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #111;
}

.chat-name-form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chat-name-form input:focus {
  border-color: #3a341f;
}

.chat-name-form button {
  width: 100%;
  background: #3a341f;
  color: #f3e9c8;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-name-form button:hover {
  background: #4a4228;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  .chat-container {
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  #chat-modal {
    padding: 0;
  }

  /* 모바일 안내 문구 스타일 */
  .chat-notice {
    padding: 12px !important;
    margin: 12px !important;
  }

  .chat-notice div {
    font-size: 12px !important;
  }

  .chat-notice a {
    font-size: 12px !important;
  }
}

/* 채팅 버튼 (상세보기에 추가할 버튼) */
.chat-button {
  background: #3a341f;
  color: #f3e9c8;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-button:hover {
  background: #4a4228;
}

.filter-board {
  width: fit-content;
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(61, 39, 17, 0.35);
  background: #fff;
  color: #3d2711;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 6px 18px rgba(61, 39, 17, 0.18);
  flex-wrap: wrap;
  row-gap: 6px
}

.filter-pill:hover {
  border-color: #3d2711;
  box-shadow: 0 10px 26px rgba(61, 39, 17, 0.22)
}

.filter-pill.active {
  background: #3d2711;
  color: #fff;
  box-shadow: 0 14px 34px rgba(61, 39, 17, 0.28)
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f9f5f0;
  color: #3d2711;
  font-size: 11px;
  font-weight: 700
}

.pill-count-green {
  background: #dcfce7;
  color: #047857
}

.pill-caret {
  font-size: 12px
}

.filter-reset {
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  cursor: pointer
}

.filter-reset:hover {
  background: #e5e7eb
}

.filter-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 8px;
  width: 100%;
  max-width: 620px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
  padding: 16px;
  display: none;
  z-index: 40
}

.filter-dropdown::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 1px solid #d1d5db;
  border-top: 1px solid #d1d5db
}

.dropdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.dropdown-head strong {
  font-size: 14px;
  color: #111827
}

.dropdown-reset {
  border: 0;
  background: #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer
}

.dropdown-reset:hover {
  background: #d1d5db
}

.dropdown-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.dropdown-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  cursor: pointer
}

.dropdown-option input {
  accent-color: #2563eb
}

.filter-wrap {
  position: relative;
  padding: 18px 0;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  display: block
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.filter-panel {
  flex: 1 1 calc(100% - 180px);
  max-width: calc(100% - 180px)
}

.listing-button {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: #3d2711;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(61, 39, 17, 0.32);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease
}

.listing-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(61, 39, 17, 0.28)
}

.listing-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(61, 39, 17, 0.25)
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 30
}

.filter-overlay.show {
  display: block
}

.slider-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px
}

.slider-role {
  font-weight: 700;
  color: #1f2937
}

.slider-readout {
  font-weight: 600;
  color: #2563eb
}

.slider-row-max .slider-readout {
  color: #f97316
}

.slider-block-rent .slider-row-min .slider-readout {
  color: #7c3aed
}

.slider-block-rent .slider-row-max .slider-readout {
  color: #059669
}

.slider-track {
  position: relative;
  height: 38px;
  display: flex;
  align-items: center
}

.slider-track input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #e5e7eb;
  outline: none;
  border: 0;
  transition: background .2s ease
}

.slider-track input[type=range]::-webkit-slider-runnable-track {
  height: 16px;
  border-radius: 999px;
  background: transparent
}

.slider-track input[type=range]::-moz-range-track {
  height: 16px;
  border-radius: 999px;
  background: transparent
}

.slider-track input[type=range]::-ms-track {
  height: 16px;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  color: transparent
}

.slider-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid currentColor;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  cursor: pointer
}

.slider-track input[type=range]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid currentColor;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  cursor: pointer
}

.slider-track input[type=range]::-ms-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid currentColor;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  cursor: pointer
}

.slider-value-chip {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(37, 99, 246, 0.25);
  transition: left .15s ease, background .2s ease
}

.slider-row-max .slider-value-chip {
  background: #f97316;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.25)
}

.slider-block-rent .slider-row-min input[type=range] {
  color: #7c3aed
}

.slider-block-rent .slider-row-max input[type=range] {
  color: #059669
}

.slider-block-deposit .slider-row-min input[type=range] {
  color: #2563eb
}

.slider-block-deposit .slider-row-max input[type=range] {
  color: #f97316
}

.slider-block-rent .slider-row-min .slider-value-chip {
  background: #7c3aed;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25)
}

.slider-block-rent .slider-row-max .slider-value-chip {
  background: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25)
}

.filter-pill span {}

.filter-pill .pill-count {
  min-width: 38px;
  padding: 0 10px
}

.filter-pill .pill-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(61, 39, 17, 0.12);
  color: #3d2711;
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.listing-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120
}

.listing-form-modal.show {
  display: flex
}

.listing-form-dialog {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 28px 26px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.listing-form-dialog h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827
}

.listing-form-guide {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  background: #f9fafc;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 12px 14px
}

.listing-form-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 0;
  font-size: 22px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer
}

.listing-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #374151
}

.listing-field input,
.listing-field select,
.listing-field textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease
}

.listing-field input:focus,
.listing-field select:focus,
.listing-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none
}

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

.listing-submit {
  width: 100%;
  padding: 12px 0;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 246, 0.32);
  transition: transform .15s ease, box-shadow .15s ease
}

.listing-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28)
}

.listing-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 246, 0.25)
}

@media (max-width:640px) {
  .filter-chips {
    justify-content: flex-start
  }

  .dropdown-panel {
    left: 0;
    right: auto;
    transform: none;
    min-width: 200px
  }

  .dropdown-panel::before {
    left: 24px
  }

  .filter-inner {
    flex-direction: column;
    gap: 12px;
    align-items: stretch
  }

  .filter-panel {
    flex: 1 1 100%;
    max-width: 100%
  }

  .listing-button {
    width: 100%;
    text-align: center
  }
}