/* ==========================================================================
   행복을주는공인중개사 - 프리미엄 모바일 & PC 반응형 디자인 시스템
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ==========================================================================
   Design Tokens & CSS Variables (무료 고품격 한글 폰트 적용)
   ========================================================================== */

:root {
  /* ==========================================================================
   Admin Left Sidebar Layout System
   ========================================================================== */
}
.admin-layout-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.15);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) rgba(15, 23, 42, 0.4);
  scroll-behavior: smooth;
}

/* 🎨 좌측 메뉴화면 상하 스크롤 사용자 커스텀 스크롤바 디자인 */
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 8px;
  margin: 6px 0;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.admin-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.admin-sidebar::-webkit-scrollbar-thumb:active {
  background: #0284c7;
}


.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.sidebar-logo .logo-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 10px;
}

.sidebar-logo h2 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: #ffffff;
}

.sidebar-logo p {
  font-size: 0.75rem;
  color: #38bdf8;
  margin: 2px 0 0 0;
  font-weight: 700;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
  user-select: none;
  flex-shrink: 0;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.55);
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.user-avatar:active {
  transform: scale(0.96);
}

.user-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #0f172a;
  border: 1.5px solid #38bdf8;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.btn-profile-edit {
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-profile-edit:hover {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

.btn-sidebar-logout {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sidebar-logout:hover {
  color: #f87171;
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.user-info strong {
  display: block;
  font-size: 0.88rem;
  color: #f8fafc;
}

.status-online {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 700;
}

.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.sidebar-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-menu li a.active {
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.sidebar-menu li a .icon {
  font-size: 1.15rem;
}

.badge-count {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 6px;
}

.admin-main-content {
  margin-left: 260px;
  flex: 1;
  padding: 30px;
  min-width: 0;
}

/* 📱 스마트폰 전용 상단 미니 바 */
.admin-mobile-top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 56px;
  box-sizing: border-box;
  z-index: 1995;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  justify-content: space-between;
  align-items: center;
}

.admin-mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.admin-mobile-brand-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 165px;
}

/* 📱 테블릿 반응형 상호명 폭 확장 (190px) */
@media (min-width: 480px) and (max-width: 992px) {
  .admin-mobile-brand-title {
    max-width: 190px !important;
  }
}

.admin-mobile-menu-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 📱 모바일 관리자 딤 배경 (Fixed Overlay Backdrop) */
.admin-mobile-backdrop {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1980;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-mobile-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .admin-mobile-top-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  .admin-layout-wrapper {
    flex-direction: column;
    padding-top: 56px !important;
  }

  /* 📌 모바일 관리자 메뉴 정위치 팝업 레이어 (Fixed Overlay Drawer - 본문 밀림 없음) */
  .admin-sidebar {
    width: 100%;
    position: fixed !important;
    top: 56px !important;
    left: 0;
    right: 0;
    z-index: 1990 !important;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    max-height: calc(100vh - 56px) !important;
    overflow-y: auto;
    border-bottom: 4px solid #0284c7;
    animation: adminMenuFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .admin-sidebar.mobile-open {
    display: flex !important;
  }

  .admin-main-content {
    margin-left: 0 !important;
    padding: 16px 12px !important;
  }

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

  .kpi-card {
    padding: 14px !important;
    gap: 10px !important;
  }

  .kpi-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.2rem !important;
  }

  .kpi-val {
    font-size: 1.3rem !important;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch !important;
    padding: 14px !important;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    flex: 1;
    width: 100% !important;
  }

  /* 관리자 페이지 테이블 가로 터치 스크롤 보호 */
  .admin-card, .inquiry-table-card {
    padding: 16px 10px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .inquiry-table th, .inquiry-table td {
    padding: 10px 8px !important;
    font-size: 0.85rem !important;
  }

  .msg-box {
    max-height: 120px !important;
    font-size: 0.84rem !important;
    padding: 8px 10px !important;
  }

  /* 관리자 매물등록 폼 모바일 1열 반응형 최적화 */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .full-width {
    grid-column: span 1 !important;
  }

  .form-card {
    padding: 16px 12px !important;
  }

  .rte-template-bar {
    padding: 8px !important;
    gap: 6px !important;
  }

  .btn-template {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }
}

:root {
  /* Color Palette */
  --primary-navy: #0f172a;
  --primary-accent: #0284c7;
  --primary-accent-hover: #0369a1;
  --accent-gold: #f59e0b;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* 모바일 하단 바 공간 확보 */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

/* ==========================================================================
   Header & Navigation (Top Bar 제거됨)
   ========================================================================== */

.top-bar {
  display: none !important; /* Top bar 전면 제거 */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   PC전용 슬라이딩 섹션 하단 1줄 배열 매물검색 바
   ========================================================================== */

.pc-search-bar-section {
  max-width: 1200px;
  margin: -24px auto 25px; /* 슬라이딩 섹션 아래 입체적으로 걸치는 효과 */
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border: 1.5px solid #cbd5e1;
  position: sticky;
  top: 76px; /* 스크롤 시 상단 헤더 바로 아래 고정 */
  z-index: 990;
  transition: all 0.25s ease;
}

.pc-search-form {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 2fr 1.2fr 1.3fr;
  gap: 12px;
  align-items: flex-end;
}

.pc-search-form .form-group {
  margin-bottom: 0;
}

.pc-search-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.pc-search-form .btn-search-inline {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.pc-search-form .btn-search-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.logo-text p {
  font-size: 0.78rem;
  color: var(--primary-accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  position: relative;
  padding: 6px 4px;
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-accent);
}

.btn-call-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-call-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

/* 📝 매물의뢰하기 헤더 메뉴 강조 버튼 */
.nav-inquiry-btn {
  background: #0284c7;
  color: #ffffff !important;
  padding: 7px 14px !important;
  border-radius: 20px;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: var(--transition-fast);
}

.nav-inquiry-btn:hover,
.nav-inquiry-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-navy);
  padding: 4px 8px;
  border-radius: 8px;
}

/* ==========================================================================
   Hero & Slider Container (Ticker 통합)
   ========================================================================== */

.hero-slider-container {
  position: relative;
  width: 100%;
  background: var(--bg-gradient);
}

.mobile-hero-slider {
  position: relative;
  width: 100%;
  height: 160px;
  min-height: 120px;
  max-height: 180px;
  overflow: hidden;
}

/* 추천 물건 슬라이딩 섹션 하단 내장 Ticker 홍보 섹션 */
.ticker-section {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 10;
}

.ticker-label {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 4px 0 10px rgba(0,0,0,0.3);
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeRightToLeft 25s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-right: 35px;
  text-decoration: none;
}

.ticker-item strong {
  color: var(--accent-gold);
}

@keyframes marqueeRightToLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   🖥️ PC전용 슬라이딩 섹션 바로 하단 1줄 나열 매물검색 바 (제목 + 콤보박스 1줄)
   ========================================================================== */

.pc-search-bar-section {
  max-width: 1240px;
  margin: 16px auto 25px;
  padding: 12px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #cbd5e1;
  position: relative;
  z-index: 100;
}

.pc-search-form-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.pc-search-field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.pc-search-field-inline label {
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0;
}

.form-control-compact {
  height: 38px; /* 콤보박스 적정 높이 축소 */
  padding: 4px 10px;
  font-size: 0.86rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  color: #0f172a;
  width: 100%;
  box-sizing: border-box;
}

.form-control-compact:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-search-compact {
  height: 38px;
  padding: 0 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-search-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.4);
}

.hero-slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  background: #0f172a;
  overflow: hidden;
}

.hero-slide-item img.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  filter: brightness(0.95) contrast(1.08) saturate(1.15);
  transition: transform 6s ease;
}

/* 소프트 그라데이션 오버레이 */
.hero-slide-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-slide-content h2 {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 5px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.4px;
  opacity: 0;
}

.hero-slide-content p {
  font-size: 0.86rem;
  color: #f8fafc;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.2px;
  opacity: 0;
}

/* ✨ 슬라이드 전환 시 타이틀 & 보조설명 모션 애니메이션 */
@keyframes heroTextSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-slide-item.active .hero-slide-content h2 {
  animation: heroTextSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide-item.active .hero-slide-content p {
  animation: heroTextSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}

.hero-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition-fast);
}

.slider-dot.active {
  background: var(--accent-gold);
  width: 20px;
  border-radius: 10px;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 30px;
  font-weight: 400;
}

/* 모바일 빠른 카테고리 칩 스크롤바 */
.category-chips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4px 15px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.category-chips-scroll::-webkit-scrollbar {
  display: none;
}

.chip-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: var(--transition-fast);
}

.chip-item.active, .chip-item:hover {
  background: #ffffff;
  color: var(--primary-navy);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Search Card */
.search-card-wrapper {
  max-width: 1050px;
  margin: -40px auto 0;
  position: relative;
  z-index: 20;
  padding: 0 20px;
}

.search-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-hover-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) 130px;
  gap: 14px;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-search {
  background: var(--primary-navy);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition-fast);
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-search:hover {
  background: var(--primary-accent);
}

/* ==========================================================================
   Property Cards Layout
   ========================================================================== */

.section {
  padding: 60px 20px;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title-group h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
}

.section-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 30px;
}

.filter-tab-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab-btn.active {
  background: #ffffff;
  color: var(--primary-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.property-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(2, 132, 199, 0.4);
}

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

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-badge-group {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
  flex-wrap: wrap;
}

/* 🌐 썸네일 좌측 하단(7시 방향) 블로그 & 유튜브 링크 뱃지 */
.card-img-media-links {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.card-media-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 1;
  color: #ffffff !important;
  cursor: pointer;
}

.card-media-icon.icon-blog {
  background: rgba(3, 199, 90, 0.92); /* 네이버 대표 그린 */
  border-color: rgba(3, 199, 90, 0.5);
}

.card-media-icon.icon-blog:hover {
  background: #03c75a;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(3, 199, 90, 0.6);
  border-color: #ffffff;
}

.card-media-icon.icon-youtube {
  background: rgba(220, 38, 38, 0.92); /* 유튜브 레드 */
  border-color: rgba(220, 38, 38, 0.5);
}

.card-media-icon.icon-youtube:hover {
  background: #dc2626;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
  border-color: #ffffff;
}

.card-media-icon .media-icon-svg {
  flex-shrink: 0;
  display: block;
}

/* 🏷️ 매물 이미지 하단 우측(5시 방향) 물건번호 Overlay (Hxxxx) */
.card-img-code-overlay,
.card-img-price-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 10;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-img-code-overlay .code-accent,
.card-img-price-overlay .code-accent,
.code-accent {
  color: #ff7a00 !important; /* 🍊 선명하고 눈에 띄는 오렌지 컬러 */
  font-weight: 900;
}

.badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.badge-trade-sale { background: #0284c7; }
.badge-trade-rent { background: #16a34a; }
.badge-featured { background: var(--accent-gold); color: #000; }
.badge-status-completed { background: #64748b; }

.badge-cat-factory { background: #1e3a8a; }
.badge-cat-warehouse { background: #0d9488; }
.badge-cat-house { background: #059669; }
.badge-cat-land { background: #d97706; }
.badge-cat-farm { background: #dc2626; }
.badge-cat-default { background: #64748b; }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-location {
  font-size: 0.85rem;
  color: var(--primary-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 14px;
}

.factory-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #f1f5f9;
  margin-bottom: 16px;
  font-size: 0.84rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  color: #475569;
}

.spec-item strong {
  color: var(--primary-navy);
  font-weight: 700;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.btn-detail {
  color: var(--primary-accent);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   ➕ 매물 더보기 (Load More / 무한 스크롤) 스타일
   ========================================================================== */

.load-more-container {
  text-align: center;
  margin-top: 45px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.3px;
}

.btn-load-more:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.btn-load-more:active {
  transform: translateY(-1px) scale(0.99);
}

.load-more-icon {
  font-size: 1.15rem;
}

.load-more-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 2px;
}

.load-more-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0284c7;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 50px;
}

.no-more-properties {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  padding: 14px 20px;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 700;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Detail Page & Media Embeds
   ========================================================================== */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 35px;
  align-items: start;
}

.detail-main-header {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 22px;
}

.detail-gallery {
  background: #fff;
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 22px;
}

.main-img-box {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1e293b;
  margin-bottom: 12px;
}

.main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb-item {
  width: 85px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.thumb-item.active, .thumb-item:hover {
  opacity: 1;
  border-color: var(--primary-accent);
}

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

.specs-table-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 22px;
}

.specs-table-card h3 {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-navy);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th, .specs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.specs-table th {
  background: #f8fafc;
  color: #475569;
  width: 25%;
  text-align: left;
  font-weight: 700;
}

.specs-table td {
  color: var(--primary-navy);
  font-weight: 600;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  margin-top: 15px;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sticky-sidebar {
  position: sticky;
  top: 90px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--card-hover-shadow);
  border: 2px solid var(--primary-accent);
  text-align: center;
}

.btn-contact-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: #dc2626;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-contact-call:hover {
  background: #b91c1c;
}

.btn-contact-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #fee500;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

/* ==========================================================================
   🏢 상세보기 하단 동일 유형 추천 매물 썸네일 리스트뷰 & 페이징 스타일
   ========================================================================== */

.related-properties-section {
  margin-top: 45px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.related-prop-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-prop-item {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  align-items: center;
}

.related-prop-item:hover {
  border-color: #0284c7;
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
  background: #f8fafc;
}

.related-thumb-wrap {
  width: 175px;
  height: 125px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #cbd5e1;
}

.related-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-prop-item:hover .related-thumb-wrap img {
  transform: scale(1.06);
}

.related-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* 🏷️ 추천 매물 썸네일 5시 방향 물건번호 Overlay (물건번호 : Hxxxx) */
.related-code-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.related-code-badge .code-accent {
  color: #ff7a00 !important; /* 🍊 오렌지 */
  font-weight: 900;
}

.related-info-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.related-loc {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.related-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.related-prop-item:hover .related-title {
  color: #0284c7;
}

.related-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 8px;
}

.related-specs-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #475569;
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 8px;
}

.related-specs-row span strong {
  color: #0f172a;
  font-weight: 700;
}

/* 페이징 */
.related-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px dashed #e2e8f0;
}

.related-pagination-pc {
  display: flex;
}

.related-pagination-mobile {
  display: none;
}

.rel-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.rel-page-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.rel-page-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.rel-page-nav {
  font-weight: 800;
  background: #f8fafc;
}


/* ==========================================================================
   Consultation Banner & Footer
   ========================================================================== */

.inquiry-banner {
  background: var(--bg-gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  box-shadow: var(--card-hover-shadow);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  align-items: center;
}

.inquiry-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
}

.inquiry-info p {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 20px;
}

.inquiry-form {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--text-main);
}

.site-footer {
  background: var(--primary-navy);
  color: #94a3b8;
  padding: 50px 20px 30px;
  margin-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  max-width: 1240px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   📱 모바일 전용 하단 고정 Quick Action 바 & 중앙 둥근 탭 물건검색
   ========================================================================== */

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: var(--mobile-bar-shadow);
}

.mobile-bottom-bar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  position: relative;
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-bar-btn span.icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 🌟 유튜브 & 네이버 블로그 공식 플랫폼 원형 아이콘 */
.mobile-platform-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-bar-btn:hover .mobile-platform-icon,
.mobile-bar-btn:active .mobile-platform-icon {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mobile-platform-icon svg {
  display: block;
}

.mobile-bar-btn-call {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff !important;
  font-size: 0.78rem;
  padding: 8px 4px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* 11시, 1시 방향 둥근 모서리 중앙 솟아오른 물건검색 탭 */
.mobile-search-tab-center {
  flex: 1.25;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border-radius: 20px 20px 0 0 !important; /* 11시, 1시 둥근 모서리 */
  padding: 10px 4px 8px !important;
  margin-top: -18px; /* 위로 돌출 효과 */
  box-shadow: 0 -6px 18px rgba(2, 132, 199, 0.4);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 2005;
}

.mobile-search-tab-center span.icon {
  font-size: 1.35rem;
}

/* ==========================================================================
   📱 모바일 슬라이딩 검색 드로어 (Bottom Sheet Drawer)
   ========================================================================== */

.mobile-search-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2090;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-search-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-search-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2100;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  overflow-y: auto;
}

.mobile-search-sheet.active {
  transform: translateY(0);
}

@media (min-width: 993px) {
  .mobile-search-sheet,
  .mobile-search-backdrop {
    display: none !important;
  }
}

.sheet-handle-bar {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
  margin: 0 auto 16px;
  cursor: pointer;
}

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

.sheet-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.sheet-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   📱 모바일 디바이스 최적화 미디어 쿼리 (Responsive Media Queries)
   ========================================================================== */

@media (max-width: 992px) {
  .mobile-bottom-bar {
    display: block;
  }
  .pc-search-bar-section {
    display: none; /* 모바일에서는 하단 둥근 탭 슬라이딩 검색으로 작동하므로 숨김 */
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .inquiry-banner {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .main-img-box {
    height: 320px;
  }
}

/* 📱 미디어 바로가기 버튼 그룹 (블로그 / 유튜브) */
.detail-media-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.btn-media-item {
  flex: 1;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-media-blog {
  background: #03c75a;
  color: #ffffff !important;
}

.btn-media-youtube {
  background: #ff0000;
  color: #ffffff !important;
}

.btn-media-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 45px 16px 65px;
  }
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .search-card-wrapper {
    margin-top: -30px;
    padding: 0 12px;
  }
  .search-card {
    padding: 18px;
    border-radius: var(--radius-md);
  }
  .search-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .btn-search {
    height: 44px;
  }
  .section {
    padding: 25px 12px 60px !important;
  }
  .property-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-img-wrap {
    height: 200px;
  }
  .card-body {
    padding: 16px;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-price {
    font-size: 1.2rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* 📱 모바일 상세보기(detail.php) 정밀 비율 & 레이아웃 최적화 */
  .detail-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .detail-main-header {
    padding: 18px 14px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  .detail-main-header h1 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  .detail-media-btns {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .btn-media-item {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    font-size: 0.9rem !important;
  }

  .detail-gallery {
    padding: 12px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  .main-img-box {
    height: 240px !important;
    border-radius: 8px !important;
  }

  .thumb-item {
    width: 65px !important;
    height: 48px !important;
  }

  .specs-table-card {
    padding: 16px 12px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  .specs-table-card h3 {
    font-size: 1.08rem !important;
    margin-bottom: 12px !important;
  }

  .specs-table {
    display: block !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .specs-table tbody {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .specs-table tr {
    display: grid !important;
    grid-template-columns: 105px 1fr !important;
    width: 100% !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-sizing: border-box !important;
  }

  .specs-table th,
  .specs-table td {
    padding: 10px 8px !important;
    font-size: 0.84rem !important;
    border: none !important;
    box-sizing: border-box !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    display: flex !important;
    align-items: center !important;
  }

  .specs-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
  }

  .specs-table td {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .sticky-sidebar {
    position: static !important;
    width: 100% !important;
  }

  .contact-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  /* 🏢 하단 동일 유형 추천 매물 썸네일 리스트뷰 모바일: 썸네일 상단 + 제목/가격/스펙 전체폭 레이아웃 */
  .related-properties-section {
    padding: 18px 12px !important;
    margin-top: 25px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  .related-prop-item {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .related-thumb-wrap {
    width: 100% !important;
    height: 180px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
  }

  .related-info-wrap {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .related-meta-top {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
    flex-wrap: wrap !important;
  }

  .related-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    color: #0f172a !important;
    display: block !important;
  }

  .related-price {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
    margin-bottom: 8px !important;
  }

  .related-specs-row {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    font-size: 0.82rem !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
  }

  /* 📄 스마트폰 화면 전용 페이징 바 (3개 블록 단위 컴팩트 & 터치 최적화) */
  .related-pagination-pc {
    display: none !important;
  }

  .related-pagination-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 22px !important;
    padding-top: 16px !important;
    padding-bottom: 8px !important;
    border-top: 1px dashed #e2e8f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }

  .related-pagination-mobile .rel-page-btn {
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 0.92rem !important;
    border-radius: 8px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
  }

  .related-pagination-mobile .rel-page-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4) !important;
  }
}

/* ==========================================================================
   ✨ 플로팅 퀵 액션 버튼 (우측 하단 원형 고정 버튼: 유튜브, 블로그, 카카오톡 채널)
   ========================================================================== */
/* ==========================================================================
   💬 우측 하단 플로팅 퀵버튼 디자인 & 우->좌 슬라이딩 라벨 애니메이션
   ========================================================================== */
.floating-action-container {
  position: fixed;
  right: 28px;
  bottom: 35px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn-item {
  height: 52px;
  min-width: 52px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
}

.floating-btn-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-btn-label {
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.35s ease, 
              padding 0.45s ease;
  padding-left: 0;
  padding-right: 0;
  letter-spacing: -0.3px;
}

/* 🌟 호버 시 또는 JS 특정시간 슬라이딩 활성화(.is-expanded) 시 우->좌 확장 */
.floating-btn-item:hover,
.floating-btn-item.is-expanded {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn-item:hover .floating-btn-label,
.floating-btn-item.is-expanded .floating-btn-label {
  max-width: 180px;
  opacity: 1;
  padding-left: 14px;
  padding-right: 4px;
}

/* 카카오톡 채널 채팅 버튼 (Yellow) */
.floating-btn-kakao {
  background: #FEE500;
  color: #191919;
  animation: kakaoPulse 2.8s infinite;
}
.floating-btn-kakao .floating-btn-label {
  color: #3C1E1E;
}

@keyframes kakaoPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.18);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(254, 229, 0, 0), 0 6px 18px rgba(0, 0, 0, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(254, 229, 0, 0), 0 6px 18px rgba(0, 0, 0, 0.18);
  }
}

/* 유튜브 채널 버튼 (Red) */
.floating-btn-youtube {
  background: #FF0000;
  color: #FFFFFF;
}
.floating-btn-youtube .floating-btn-label {
  color: #FFFFFF;
}

/* 네이버 블로그 버튼 (Green) */
.floating-btn-blog {
  background: #03C75A;
  color: #FFFFFF;
}
.floating-btn-blog .floating-btn-label {
  color: #FFFFFF;
}

/* 툴팁 라벨 (PC/태블릿 호버 시 보조 말풍선) */
.floating-btn-tooltip {
  display: none !important;
}

/* 📱 모바일/스마트폰 (768px 이하): 유튜브/블로그는 하단 바에 있으므로 숨기고, 카카오톡 플로팅 버튼만 고정 */
@media (max-width: 768px) {
  .floating-action-container {
    right: 16px;
    bottom: 80px;
    gap: 0;
    z-index: 990;
  }

  .floating-btn-youtube,
  .floating-btn-blog {
    display: none !important;
  }

  .floating-btn-kakao {
    height: 52px;
    width: 52px;
    min-width: 52px;
    border-radius: 26px;
    display: flex !important;
  }

  .floating-btn-kakao .floating-btn-icon {
    width: 48px;
    height: 48px;
  }

  .floating-btn-tooltip,
  .floating-btn-label {
    display: none !important;
  }
}

/* ==========================================================================
   🎨 프리미엄 커스텀 UI 다이얼로그 (Alert & Confirm & Toast) 스타일
   ========================================================================== */
.custom-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-dialog-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 26px 24px 22px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  box-sizing: border-box;
}

.custom-dialog-box.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.custom-dialog-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.custom-dialog-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.custom-dialog-icon-wrap.icon-info {
  background: #e0f2fe;
  color: #0284c7;
}

.custom-dialog-icon-wrap.icon-success {
  background: #dcfce7;
  color: #16a34a;
}

.custom-dialog-icon-wrap.icon-warning {
  background: #fef3c7;
  color: #d97706;
}

.custom-dialog-icon-wrap.icon-danger {
  background: #fee2e2;
  color: #dc2626;
}

.custom-dialog-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.custom-dialog-body {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: keep-all;
  padding: 0 8px;
}

.custom-dialog-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.custom-dialog-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.custom-dialog-btn-confirm {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.custom-dialog-btn-confirm:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.custom-dialog-btn-danger {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.custom-dialog-btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.custom-dialog-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.custom-dialog-btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* 🍞 플로팅 토스트 컨테이너 */
.custom-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.custom-toast-item {
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-16px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.custom-toast-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.custom-toast-icon {
  font-size: 1.15rem;
}

/* ==========================================================================
   Admin Profile & Password Change Modal System
   ========================================================================== */
.admin-profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-profile-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-profile-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.admin-profile-modal-overlay.active .admin-profile-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.admin-profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 20px 20px 0 0;
}

.admin-profile-modal-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.admin-profile-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-profile-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

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

.profile-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.profile-preview-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.form-group-field {
  margin-bottom: 16px;
}

.form-group-field .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-group-field .required-star {
  font-size: 0.72rem;
  color: #ef4444;
  font-weight: 700;
}

.form-group-field .optional-badge {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.form-control-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  font-weight: 500;
  transition: all 0.2s;
  outline: none;
}

.form-control-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-control-input {
  padding-right: 42px;
}

.btn-toggle-pw {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.05rem;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s;
}

.btn-toggle-pw:hover {
  background: #f1f5f9;
}

.form-help-text {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.35;
}

.modal-section-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-section-divider::before,
.modal-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.modal-section-divider span {
  padding: 0 10px;
}

.password-match-indicator {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.password-match-indicator.match {
  color: #16a34a;
}

.password-match-indicator.mismatch {
  color: #dc2626;
}

.profile-tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #166534;
  line-height: 1.4;
  margin-top: 14px;
}

.admin-profile-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
}

.btn-profile-cancel {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-profile-cancel:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.btn-profile-submit {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-profile-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

.btn-profile-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}


