/* =================================================-----------------------------
   파일명: style.css
   설명: 부동산 매물 관리 웹 애플리케이션 메인 스타일시트 (Vanilla CSS)
   ================================================================------------- */

/* 1. 디자인 시스템 토큰 & 변수 설정 */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-secondary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary-navy: #0f172a;
  --primary-hover: #1e293b;
  --accent-emerald: #10b981;
  --border-light: #e2e8f0;
  
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 0px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. 전역 리셋 & 폰트 설정 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* 3. 헤더 (Navbar) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-text h1 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-admin-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-emerald);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-admin-add:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* 4. 히어로 섹션 */
.hero-section {
  position: relative;
  border-bottom: 1px solid var(--border-light);
  padding: 80px 24px;
  overflow: hidden;
  background-color: #0f172a;
}

/* 히어로 자동 배경 슬라이드 */
.hero-slider-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-track {
  display: flex;
  width: 500%; /* 5개의 슬라이드 */
  height: 100%;
  animation: heroBgSlide 25s ease-in-out infinite;
}

.slide-item {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* এক 장씩 멈췄다가 넘어가는 슬라이드 애니메이션 효과 */
@keyframes heroBgSlide {
  0%, 15%   { transform: translateX(0); }
  20%, 40%  { transform: translateX(-20%); }
  45%, 65%  { transform: translateX(-40%); }
  70%, 90%  { transform: translateX(-60%); }
  95%, 100% { transform: translateX(-80%); }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 8px);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  font-weight: 700;
  padding: clamp(4px, 1.2vw, 6px) clamp(8px, 2.5vw, 14px);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  white-space: nowrap;
}

.dot-live {
  width: clamp(5px, 1.2vw, 8px);
  height: clamp(5px, 1.2vw, 8px);
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.hero-title {
  font-size: clamp(0.6rem, 2.3vw, 1.65rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.hero-subtitle {
  color: #e2e8f0;
  font-size: clamp(0.5rem, 1.6vw, 1.1rem);
  max-width: 650px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* 5. 검색 및 필터 컨트롤 */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
}

.filter-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.filter-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-navy);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.property-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.property-count strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.category-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.btn-tag {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.btn-tag:hover {
  background-color: #e2e8f0;
}

.btn-tag.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* 6. 매물 카드리스트 그리드 */
.property-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-image {
  transform: scale(1.05);
}

.card-badge-type {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.card-badge-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.card-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.card-footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 7. 백드롭 블러 모달 (Modal System) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-close-modal:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* 갤러리 슬라이더 */
.gallery-slider {
  position: relative;
  width: 100%;
  height: 420px;
  background-color: var(--primary-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.gallery-main-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.gallery-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }

.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.thumb-img {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumb-img.active {
  opacity: 1;
  border-color: var(--primary-navy);
}

/* 모달 상세 스펙 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.spec-box {
  background-color: var(--bg-main);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-description-box {
  background-color: var(--bg-main);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  line-height: 1.7;
  white-space: pre-line;
  color: var(--text-secondary);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.btn-contact {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

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

/* 8. 관리자 폼 스타일 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  background-color: var(--bg-main);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-navy);
  background-color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

/* 9. 이미지 미리보기 썸네일 스타일 */
.preview-item {
  position: relative;
  width: 90px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-badge-main {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.preview-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.preview-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* 10. 심플 푸터 (Footer) 전용 스타일 */
.footer-site {
  background-color: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

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

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 20px;
  max-width: 480px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.footer-contact-info div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #10b981;
  padding-left: 4px;
}

.footer-cs-box {
  background-color: #1e293b;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 0.775rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal {
  color: #94a3b8;
}

.footer-copy {
  line-height: 1.6;
}

/* 11. 유튜브 플레이어 전용 반응형 스타일 */
.youtube-player-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background-color: #000000;
}

.youtube-player-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 12. 매물 진행 상태 전용 뱃지 스타일 */
.badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 0px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* 1) 매입준비중 */
.badge-status-ready {
  background-color: #8b5cf6; /* 퍼플 */
  color: #ffffff;
}

/* 2) 계약 */
.badge-status-contract {
  background-color: #f59e0b; /* 앰버/오렌지 */
  color: #ffffff;
}

/* 3) 인테리어중 */
.badge-status-interior {
  background-color: #0284c7; /* 스카이블루/인디고 */
  color: #ffffff;
}

/* 4) 매매진행중 */
.badge-status-progress {
  background-color: #10b981; /* 에메랄드 그린 */
  color: #ffffff;
}

/* 5) 매매완료 */
.badge-status-completed {
  background-color: #64748b; /* 슬레이트 다크 */
  color: #ffffff;
}

/* 13. 모바일 전용 3선(햄버거) 버튼 및 드로어 메뉴 스타일 */
.btn-mobile-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-mobile-hamburger:hover {
  background: #1e293b;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 0px;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-container {
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active .mobile-drawer-container {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.mobile-drawer-body .btn-admin,
.mobile-drawer-body .btn-admin-add {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.9rem;
}

/* 반응형 모바일 & 태블릿 스마트폰 폭 자동 조절 대응 (화면 가로 768px 이하) */
@media screen and (max-width: 768px) {
  /* PC 버전 우측 3개 버튼 숨기기 */
  header .nav-actions,
  #navActions {
    display: none !important;
  }

  /* 모바일 3선 햄버거 버튼 보이기 */
  header .btn-mobile-hamburger,
  #btnMobileMenuToggle {
    display: flex !important;
  }

  .navbar-container {
    padding: 12px 16px;
  }
  
  .brand-text h1 {
    font-size: 1rem;
  }
  
  .brand-text span {
    font-size: 0.55rem;
  }
  
  .btn-admin-add {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  
  .hero-section {
    padding: 32px 16px;
  }

  .hero-title {
    /* 모바일에서 clamp()가 동작하도록 고정 크기 제거 */
  }

  .hero-subtitle {
    /* 모바일에서도 clamp()가 동작하도록 고정 크기 제거 */
  }

  .main-container {
    padding: 20px 12px 60px 12px;
  }

  .filter-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
  }

  .search-box {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .property-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

/* 초소형 세로 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
  .property-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
  }

  .modal-container {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 0px;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-body {
    padding: 14px;
  }

  .gallery-slider {
    height: 220px;
    border-radius: var(--radius-md);
  }

  .gallery-nav {
    width: 34px;
    height: 34px;
  }

  .spec-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .spec-box {
    padding: 12px 10px;
  }

  .spec-label {
    font-size: 0.7rem;
  }

  .spec-value {
    font-size: 0.85rem;
  }

  .modal-footer {
    padding: 12px 16px;
  }

  .btn-contact {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
