body { font-family: 'Pretendard', 'Malgun Gothic', sans-serif; background: #FAF7F1; margin: 0; padding: 12px; user-select: none; -webkit-user-select: none; color: #1e293b; }

/* 조건 필터 모달 — 다른 필터/본문과 구분되도록 전용 글꼴 적용 (사무적이면서 모던한 느낌의 Pretendard) */
#filterModal, #filterModal * { font-family: 'Pretendard', 'Malgun Gothic', sans-serif; }
  .container { max-width: 1400px; margin: 0 auto; }

  /* 최상단 헤더 — 로고/타이틀(클릭시 새로고침) + 설정(톱니바퀴) */
  .site-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .site-header-brand { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 4px 2px; cursor: pointer; }
  .site-header-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
  .site-header-title { font-size: 17px; font-weight: 900; color: #0f172a; }
  .settings-wrap { position: relative; }
  .settings-gear-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e2e8f0; background: white; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .settings-gear-btn.spin { animation: settingsGearSpin 0.4s ease; }
  @keyframes settingsGearSpin { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
  .settings-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: white; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); z-index: 500; min-width: 260px; padding: 10px 0; }
  .settings-dropdown.open { display: block; animation: ddFadeIn 0.15s ease; }
  .settings-dropdown-title { font-size: 13px; font-weight: 800; color: #0f172a; padding: 4px 16px 10px; border-bottom: 1px solid #f1f5f9; margin-bottom: 4px; }
  .settings-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; cursor: pointer; }
  .settings-toggle-row:hover { background: #f8fafc; }
  .settings-toggle-text { font-size: 12.5px; font-weight: 700; color: #334155; }
  .settings-sub { font-size: 11px; font-weight: 400; color: #94a3b8; }

  .search-wrapper { background: white; padding: 16px 18px; border-radius: 22px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 12px; border: 1px solid #e2e8f0; }
  .search-grid { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
  .search-grid input { flex: 1; padding: 11px 16px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 999px; outline: none; }
  .btn-search { padding: 11px 26px; background: #4F9D75; color: white; border: none; border-radius: 999px; cursor: pointer; font-weight: bold; font-size: 14px; }
  .btn-filter-trigger { padding: 11px 18px; background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; border-radius: 999px; cursor: pointer; font-weight: bold; font-size: 13px; display: flex; align-items: center; gap: 4px; }
  .btn-filter-trigger:hover { background: #e2e8f0; }
  .filter-badge { background: #0891b2; color: white; border-radius: 50%; padding: 2px 6px; font-size: 11px; font-weight: bold; display: none; }

  .filter-chips-row { display: flex; align-items: center; padding-top: 12px; border-top: 1px dashed #e2e8f0; flex-wrap: nowrap; overflow-x: auto; width: 100%; box-sizing: border-box; }
  .filter-left-wrapper { display: flex; align-items: center; gap: 14px; overflow-x: auto; flex: 1; min-width: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; user-select: none; }
  .filter-left-wrapper::-webkit-scrollbar { display: none; }
  .filter-divider { width: 1.5px; height: 26px; background: #cbd5e1; flex-shrink: 0; }
  .chip-group { display: flex; align-items: center; gap: 5px; flex-shrink: 0; flex-wrap: wrap; }
  .chip-label { font-size: 12px; font-weight: bold; color: #64748b; width: 52px; min-width: 52px; }
  .chip { padding: 6px 12px; font-size: 12.5px; background: #fff; border: 1px solid #cbd5e1; border-radius: 20px; cursor: pointer; font-weight: bold; color: #475569; transition: all 0.1s ease; white-space: nowrap; }
  .chip:hover { background: #f8fafc; }
  .chip.active { background: #E8F4EC; border-color: #4F9D75; color: #4F9D75; }
  .btn-main-reset { padding: 6px 12px; font-size: 12.5px; background: #fff; border: 1px solid #0891b2; color: #0891b2; border-radius: 20px; cursor: pointer; font-weight: bold; margin-left: auto; flex-shrink: 0; white-space: nowrap; }
  .btn-main-reset:hover { background: #ecfeff; }

  .section-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 8px 0 4px 0; font-size: 13px; font-weight: 800; color: #475569; }
  .section-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
  .section-divider.archive-div { color: #7c3aed; }
  .section-divider.archive-div::after { background: #ede9fe; }

  .grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; margin-bottom: 30px; }

  .card { background: white; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); position: relative; display: flex; flex-direction: column; }
  .card.completed { background: #f1f5f9 !important; opacity: 0.45; }
  .deal-complete-badge { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 20; background: rgba(30,41,59,0.85); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
  .card.pinned-card { border: 2px solid #0891b2; box-shadow: 0 4px 12px rgba(8,145,178,0.18); }
  .card.pinned-card .pin-badge-label { display: block; background: #0891b2; color: white; font-size: 11px; font-weight: bold; padding: 3px 10px; text-align: center; letter-spacing: 0.5px; }
  .pin-badge-label { display: none; }

  .card.archive-card { border: 1.5px solid #c4b5fd; background: #faf5ff; }
  .card.archive-card .archive-badge { display: block; }
  .archive-badge { display: none; background: #7c3aed; color: white; font-size: 11px; font-weight: bold; padding: 3px 10px; text-align: center; letter-spacing: 0.5px; }

  .btn-pin { position: absolute; top: 8px; right: 8px; z-index: 10; background: rgba(255,255,255,0.92); border: 1.5px solid #cbd5e1; border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.10); transition: all 0.15s; line-height: 1; }
  .btn-card-map { position: absolute; top: 44px; right: 8px; z-index: 10; background: rgba(255,255,255,0.92); border: 1.5px solid #cbd5e1; border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.10); transition: all 0.15s; line-height: 1; }
  .btn-card-map:hover { background: #f0f9ff; border-color: #0891b2; }

  /* 카드 지도 팝업 */
  .card-map-popup { position: absolute; z-index: 9999; width: 320px; height: 260px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.22); background: #f1f5f9; opacity: 0; transform: scale(0.92) translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; }
  .card-map-popup.card-map-visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
  .card-map-inner { width: 100%; height: 100%; }
  .btn-pin:hover { background: #f0f9ff; border-color: #0891b2; transform: scale(1.08); }
  .btn-pin.pinned { background: #e0f2fe; border-color: #0891b2; color: #0891b2; }

  .card-img-box { width: 100%; height: 185px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 12px; overflow: hidden; border-bottom: 1px solid #edf2f7; }
  .card-img-box.thumb-pending { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: thumb-shimmer 1.4s infinite; }
  .thumb-loading-text { font-size: 11.5px; color: #94a3b8; }
  @keyframes thumb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  .card-img { width: 100%; height: 100%; object-fit: cover; }

  .card-body { padding: 14px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .price { font-size: 19px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
  .addr { font-size: 13.5px; color: #334155; margin-bottom: 5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .meta-details { font-size: 12.5px; color: #64748b; margin-bottom: 7px; font-weight: bold; }

  .contact-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 12px; }
  .contact-table td { padding: 1.5px 0; vertical-align: middle; }
  .ct-label { color: #64748b; font-weight: bold; width: 50px; min-width: 50px; white-space: nowrap; }
  .ct-val { color: #0f172a; font-weight: 900; }
  .ct-rel { color: #64748b; font-size: 11px; font-weight: normal; margin-left: 3px; }
  .ct-movein { color: #4F9D75; font-weight: bold; padding-left: 6px; }

  .btn-group { display: flex; gap: 6px; }
  .btn-ledger { flex: 1.2; padding: 9px; font-size: 12px; background: #4F9D75; color: white; border: none; border-radius: 14px; cursor: pointer; font-weight: bold; text-align: center; text-decoration: none; display: block; }
  .btn-detail { flex: 1; padding: 9px; font-size: 12px; background: #475569; color: white; border: none; border-radius: 14px; cursor: pointer; font-weight: bold; }
  .btn-ledger-disabled { flex: 1.2; padding: 9px; font-size: 12px; background: #e2e8f0; color: #94a3b8; border: none; border-radius: 14px; cursor: default; font-weight: bold; text-align: center; }

  .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(1.5px); }
  .modal-content { background: white; width: 94%; max-width: 540px; border-radius: 22px; padding: 22px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); max-height: 90vh; overflow-y: auto; }
  .modal-header { font-size: 16px; font-weight: 800; margin-bottom: 16px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; display: flex; justify-content: space-between; align-items: center; color: #0f172a; }
  .btn-reset-text { font-size: 13px; font-weight: 800; color: #4F9D75; cursor: pointer; }
  .modal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 13px; margin-bottom: 16px; color: #334155; }
  .modal-grid > div { padding: 4px 0; border-bottom: 1px dashed #f1f5f9; }
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .section-title { font-size: 14px; font-weight: 800; color: #0f172a; margin: 16px 0 8px 0; border-left: 3px solid #4F9D75; padding-left: 6px; }
  .input-range-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .input-range-row input[type="text"] { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; font-weight: bold; background: #f8fafc; }
  .slider-bar { width: 100%; accent-color: #4F9D75; margin: 6px 0 12px 0; }
  /* 범위 슬라이더 (min/max 두 개) */
  .range-slider-wrap { margin-bottom: 12px; }
  .range-input-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
  .range-input-row input[type=number] { padding: 5px 8px; border: 1.5px solid #e2e8f0; border-radius: 6px; font-size: 12px; text-align: center; }
  .range-slider-track { position: relative; height: 36px; display: flex; align-items: center; }
  .range-track-fill { position: absolute; height: 4px; background: #4F9D75; border-radius: 2px; pointer-events: none; z-index: 1; }
  .range-slider-track input[type=range] { position: absolute; width: 100%; height: 4px; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; z-index: 2; }
  .range-slider-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #4F9D75; cursor: pointer; pointer-events: all; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
  .range-slider-track input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #4F9D75; cursor: pointer; pointer-events: all; border: 2px solid white; }
  .range-slider-track::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; background: #e2e8f0; border-radius: 2px; }
  .checkbox-row-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .filter-item-box { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: bold; color: #334155; padding: 8px 12px; border-radius: 6px; background: #f8fafc; cursor: pointer; border: 1px solid #e2e8f0; flex: 1; min-width: 110px; justify-content: center; }
  .filter-item-box input[type="checkbox"] { width: 16px; height: 16px; accent-color: #4F9D75; cursor: pointer; margin: 0; }
  .btn-filter-apply { width: 100%; padding: 12px; background: #4F9D75; color: white; border: none; border-radius: 14px; font-weight: bold; cursor: pointer; font-size: 14px; margin-top: 15px; }
  .btn-modal-close-action { width: 100%; padding: 11px; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; font-weight: bold; color: #475569; margin-top: 5px; font-size: 13px; }

  #loadingIndicator { text-align: center; font-weight: bold; color: #4F9D75; padding: 15px; display: none; }
  .pagination-controls { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 16px 0 24px; flex-wrap: wrap; }
  .page-btn { padding: 7px 13px; font-size: 13px; font-weight: bold; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #475569; cursor: pointer; min-width: 36px; }
  .page-btn:hover:not(:disabled):not(.active) { background: #f1f5f9; }
  .page-btn.active { background: #4F9D75; border-color: #4F9D75; color: #fff; }
  .page-btn:disabled { opacity: 0.4; cursor: default; }
  .archive-too-many-notice { grid-column: 1/-1; text-align: center; color: #7c3aed; background: #faf5ff; border: 1px solid #ede9fe; border-radius: 8px; padding: 14px; font-size: 12.5px; font-weight: bold; margin-top: 8px; }

  .view-tab-bar { display: flex; gap: 6px; margin-bottom: 12px; align-items: center; }
  .view-tab-btn { padding: 9px 20px; font-size: 13px; font-weight: bold; border-radius: 999px; border: 1px solid #cbd5e1; cursor: pointer; background: #fff; color: #475569; transition: all 0.15s; }
  .view-tab-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }
  .view-tab-btn:hover:not(.active) { background: #f1f5f9; }
  .pin-count-badge { background: #dc2626; color: white; border-radius: 10px; padding: 2px 7px; font-size: 11px; font-weight: bold; margin-left: 4px; }
  .favorite-count-badge { background: #f59e0b; color: white; border-radius: 10px; padding: 2px 7px; font-size: 11px; font-weight: bold; margin-left: 4px; }
  .cart-count-badge { background: #4F9D75; color: white; border-radius: 10px; padding: 2px 7px; font-size: 11px; font-weight: bold; margin-left: 4px; }

  /* 내 페이지 드롭다운 탭 */
  .my-page-tab-wrap { position: relative; }
  .view-tab-btn.my-page-tab { border-color: #6d5b97; color: #6d5b97; }
  .view-tab-btn.external-tab { border-color: #d97706; color: #d97706; }
  .view-tab-btn.external-tab.active { background: #d97706; border-color: #d97706; color: #fff; }
  .view-tab-btn.my-page-tab.active { background: #6d5b97; border-color: #6d5b97; color: #fff; }
  .my-page-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: white; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 200; min-width: 150px; overflow: hidden; }
  .my-page-dropdown.open { display: block; animation: ddFadeIn 0.15s ease; }
  @keyframes ddFadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
  .my-page-menu-item { display: block; width: 100%; padding: 10px 16px; font-size: 13px; font-weight: bold; color: #475569; background: none; border: none; text-align: left; cursor: pointer; white-space: nowrap; }
  .my-page-menu-item:hover { background: #f8fafc; color: #6d5b97; }
  .my-page-dropdown { transition: none; } /* hover 제거 후 깜빡임 방지 */

  /* 미팅 테이블 미니카드 그리드 */
  .meeting-card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .meeting-mini-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; font-size: 11.5px; }
  .mini-card-img { width: 100%; height: 90px; object-fit: cover; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .mini-card-body { padding: 6px 7px; }
  .mini-card-price { font-weight: 900; color: #0f172a; font-size: 12px; }
  .mini-card-addr { color: #475569; font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-card-meta { color: #94a3b8; font-size: 10.5px; margin-top: 2px; }
  .my-page-menu-item.active { background: #f4f2f9; color: #6d5b97; }

  /* 담긴 매물 버튼 — 카드 좌상단 */
  .btn-cart { position: absolute; top: 8px; left: 8px; z-index: 10; background: rgba(255,255,255,0.92); border: 1.5px solid #cbd5e1; border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.10); transition: all 0.15s; line-height: 1; }
  .btn-cart:hover { background: #EEF7F1; border-color: #4F9D75; }
  .btn-cart.in-cart { background: #DCEEE1; border-color: #4F9D75; color: #4F9D75; }

  /* 즐겨찾기 버튼 — 카드 좌상단 (담기 위) */
  .btn-favorite-card { position: absolute; top: 8px; left: 8px; z-index: 10; background: rgba(255,255,255,0.92); border: 1.5px solid #cbd5e1; border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.10); transition: all 0.15s; line-height: 1; }
  .btn-favorite-card:hover { background: #fffbeb; border-color: #f59e0b; }
  .btn-favorite-card.active { background: #fef3c7; border-color: #f59e0b; color: #f59e0b; }

  /* 담긴 매물 / 미팅 테이블 공통 */
  .cart-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
  .cart-view-btns { display: flex; gap: 4px; }
  .cart-view-btn { padding: 6px 14px; font-size: 12px; font-weight: bold; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #475569; cursor: pointer; }
  .cart-view-btn.active { background: #6d5b97; border-color: #6d5b97; color: #fff; }
  .cart-clear-btn { padding: 6px 14px; font-size: 12px; font-weight: bold; border: none; border-radius: 999px; background: #fee2e2; color: #dc2626; cursor: pointer; }
  .cart-clear-btn:hover { background: #fecaca; }

  /* 미팅 테이블 한줄 보기 */
  .meeting-line-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
  .meeting-line-table th { background: #f8fafc; padding: 7px 8px; font-weight: bold; color: #475569; border: 1px solid #e2e8f0; text-align: center; white-space: nowrap; }
  .meeting-line-table td { padding: 6px 8px; border: 1px solid #e2e8f0; color: #0f172a; vertical-align: middle; }
  .meeting-line-table tr:hover td { background: #f8fafc; }
  /* 제거 열 — 실수로 매물이 빠지지 않도록 눈에 띄게 빨간색으로 강조 */
  .meeting-line-table th.meeting-remove-col { background: #fee2e2; color: #dc2626; }
  .meeting-line-table td.meeting-remove-col { background: #fef2f2; }
  .btn-remove-cart { background: none; border: 1px solid #dc2626; color: #dc2626; cursor: pointer; font-size: 14px; font-weight: bold; padding: 2px 6px; border-radius: 4px; }
  .btn-remove-cart:hover { color: #fff; background: #dc2626; }

  /* 매물 정리 텍스트 출력 */
  .meeting-text-output { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; font-family: monospace; margin-top: 12px; }

  /* 플로팅 핀 지도 버튼 */
  #floatPinMapBtn { transition: all 0.2s; animation: floatPulse 2s ease-in-out infinite; }
  #floatPinMapBtn:hover { background: #0e7490; transform: scale(1.06); animation: none; }
  @keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(8,145,178,0.35); }
    50% { box-shadow: 0 4px 28px rgba(8,145,178,0.65), 0 0 0 6px rgba(8,145,178,0.15); }
  }

  /* 구글맵 InfoWindow X버튼 — img 깨짐 방지, 텍스트 × 대체 */
  .gm-ui-hover-effect { opacity: 1 !important; display: flex !important; visibility: visible !important; align-items: center !important; justify-content: center !important; width: 24px !important; height: 24px !important; top: 4px !important; right: 4px !important; background: rgba(0,0,0,0.08) !important; border-radius: 50% !important; cursor: pointer !important; }
  .gm-ui-hover-effect img, .gm-ui-hover-effect span { display: none !important; }
  .gm-ui-hover-effect::after { content: '×'; font-size: 16px; font-weight: 700; color: #475569; line-height: 1; }
  .gm-ui-hover-effect:hover { background: rgba(0,0,0,0.18) !important; }
  /* InfoWindow 내용 패딩 조정 */
  .gm-style .gm-style-iw-c { padding: 8px 12px 8px !important; border-radius: 10px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important; }
  .gm-style .gm-style-iw-d { overflow: auto !important; }

  /* 추천/LH·SH 캐러셀 — 반반 레이아웃 */
  .carousel-wrap { display: flex; align-items: stretch; gap: 0; }
  .carousel-section { flex: 1; min-width: 0; overflow: hidden; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
  .carousel-section.recommend-section { background: #fdf6ee; }
  .carousel-section.lhsh-section { background: #f0eee8; }
  .carousel-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
  .carousel-section-header .header-title { font-size: 12px; font-weight: 800; color: #78350f; }
  .carousel-section-header button { background: none; border: 1px solid #d4c5a9; border-radius: 4px; cursor: pointer; font-size: 10px; color: #78350f; padding: 1px 7px; }
  .carousel-divider { width: 8px; flex-shrink: 0; }
  /* LH/SH 범례 — 헤더 타이틀 인라인 */
  .lhsh-legend { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
  .legend-dot { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; color: #475569; white-space: nowrap; font-weight: 400; }
  .legend-dot::before { content: '●'; font-size: 8px; }
  .legend-dot.lh::before { color: #f59e0b; }
  .legend-dot.sh::before { color: #16a34a; }
  .legend-dot.lhsh::before { background: linear-gradient(to right, #f59e0b 50%, #16a34a 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .carousel-track { overflow: hidden; position: relative; width: 100%; flex: 1; }
  .carousel-track-inner { display: flex; gap: 8px; will-change: transform; }
  .carousel-mini-card { flex-shrink: 0; width: 120px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; transition: box-shadow 0.15s; }
  .carousel-mini-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
  .carousel-mini-card.lh-card { border-left: 3px solid #f59e0b; }
  .carousel-mini-card.sh-card { border-left: 3px solid #16a34a; }
  .carousel-mini-card.lhsh-card { border-left: 3px solid transparent; background: linear-gradient(white,white) padding-box, linear-gradient(to bottom,#f59e0b,#16a34a) border-box; }
  .carousel-mini-img { width: 100%; height: 76px; object-fit: cover; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 10px; overflow: hidden; }
  .carousel-mini-img img { width: 100%; height: 100%; object-fit: cover; }
  .carousel-mini-body { padding: 5px 7px; }
  .carousel-mini-price { font-size: 11px; font-weight: 900; color: #0f172a; }
  .carousel-mini-addr { font-size: 10px; color: #475569; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 거래완료 전광판 — marquee 태그 사용으로 CSS 불필요 */

  /* QR 영역 — 출력 전용 */
  @page { size: A4 landscape; margin: 12mm; }
  /* 6번: 적용 버튼 */
  .btn-main-apply { padding:5px 14px; font-size:12px; font-weight:700; border-radius:999px; border:1.5px solid #4F9D75; background:#EEF7F1; color:#4F9D75; cursor:pointer; }
  .btn-main-apply:hover { background:#4F9D75; color:white; }

  /* 인쇄용 손님조건+빈칸 영역 */
  #meetingPrintArea { display:none; }

  /* ═══ 모바일 전용 (max-width: 768px) ═══ */
  /* 탭 텍스트 — PC는 풀버전, 모바일은 숏버전 */
  .tab-short { display: none; }
  .mobile-only { display: none; }
  .tab-full { display: inline; }

  @media (max-width: 768px) {
    .tab-short { display: inline; }
    .tab-full { display: none; }
    /* 화면 넘침 방지 */
    body { overflow-x: hidden; }
    .container { padding: 8px; box-sizing: border-box; max-width: 100vw; }

    /* 최상단 헤더 */
    .site-header-title { font-size: 15px; }
    .site-header-logo { width: 24px; height: 24px; }
    .settings-dropdown { min-width: 220px; right: -4px; }

    /* 검색창 */
    .search-bar { gap: 6px; }
    .search-bar input { font-size: 13px; }
    .search-grid input { min-width: 0; }
    .btn-filter-trigger { font-size: 12px; padding: 6px 8px; white-space: nowrap; flex-shrink: 0; }
    .btn-search { padding: 8px 12px; font-size: 13px; flex-shrink: 0; }

    /* 간이 필터 줄 */
    .filter-bar { flex-wrap: nowrap; gap: 5px; overflow-x: auto; }
    .filter-left-wrapper { gap: 6px; flex-shrink: 1; }
    .chip { font-size: 11px; padding: 4px 8px; white-space: nowrap; }
    .chip-label { display: none !important; }
    .btn-main-apply, .btn-main-reset { font-size: 11px; padding: 4px 8px; white-space: nowrap; }
    #mainFilterActionWrap { gap: 4px !important; }
    .btn-main-reset { margin-left: 0 !important; padding: 4px 7px !important; font-size: 13px !important; }

    /* 간이 필터 - 모바일 노출 항목 제한 (전세/월세, 원룸/투룸/쓰리룸, 주차/동물/대출만 표시) */
    #mTrade_all, #mTrade_short, #mTrade_maemae,
    #mRoom_all, #mRoom_four,
    #filterDividerDist, #chipGroupDistrict { display: none !important; }

    /* 탭바 모바일 */
    .view-tab-bar { gap: 4px; flex-wrap: nowrap; }
    #tabList { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
    #tabList::after { content: none; }
    #tabList .tab-full-text { display: none; }
    /* 목록보기 → 목록 */
    #tabList { font-size: 12px; padding: 6px 8px; }
    .view-tab-btn { font-size: 12px; padding: 6px 8px; min-height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
    .my-page-tab-wrap { flex-shrink: 0; }
    #tabMyPage { font-size: 12px; padding: 6px 8px; }

    /* 직원용 토글 — 탭바 오른쪽 끝 고정 */
    .guest-toggle-wrap { margin-left: auto; flex-shrink: 0; gap: 4px; }
    .guest-toggle-label { font-size: 11px; }
    /* 거래완료 전광판 — 모바일에서 숨김, 완료 탭으로 대체 */
    #tickerWrap, #tickerRestoreBtn { display: none !important; }

    /* 모바일 전용 완료 탭 표시 */
    .mobile-only { display: inline-flex !important; }
    .completed-tab { border-color: #dc2626; color: #dc2626; }
    .completed-tab.active { background: #dc2626; color: #fff; }

    /* 검색창 버튼 크기 통일 */
    .btn-filter-trigger, .btn-search { height: 40px; padding: 0 12px; font-size: 13px; white-space: nowrap; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }

    /* 매물 카드 */
    .grid-layout { grid-template-columns: 1fr; gap: 12px; }
    .card-img-box { height: 200px; }

    /* 캐러셀 — 모바일에서는 상시 숨김 */
    #carouselWrap { display: none !important; }
    .carousel-wrap { flex-direction: column; gap: 8px; }
    .carousel-divider { width: 100%; height: 1px; margin: 0; }
    .carousel-mini-card { width: 110px; }
    .carousel-mini-img { height: 66px; }

    /* 모달 */
    .modal-content { width: 95vw; max-height: 92vh; }
    #detailModal .modal-content { padding: 14px; }
    .detail-grid { grid-template-columns: 1fr; }
    .modal-x-btn { font-size: 32px !important; padding: 4px 10px !important; line-height: 1; }

    /* 신규매물 등록 폼 — 2단 그리드를 1단으로 */
    #addListingPanel > div { width: 96vw !important; max-width: none !important; padding: 16px 14px !important; }
    .al-grid-2col { grid-template-columns: 1fr !important; }
    .al-contact-2col { grid-template-columns: 1fr !important; }

    /* 담긴 매물 / 미팅 테이블 */
    .cart-toolbar { gap: 6px; }
    .cart-view-btn, .cart-clear-btn { font-size: 11px; padding: 6px 10px; }
    .meeting-card-grid { grid-template-columns: repeat(2, 1fr); }
    #meetingContainer { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .meeting-line-table { min-width: 720px; }

    /* 지도보기 */
    #googleMap { height: 380px; }
    #cartMap { height: 320px !important; }
    .map-mode-bar { flex-wrap: wrap; }
  }

  @media print {
    /* 헤더/푸터 완전 제거 */
    @page { margin: 10mm; size: landscape; }
    head, header, footer { display: none !important; }

    body > *:not(#meetingPrintArea) { display:none !important; }
    #meetingPrintArea { display:block !important; font-size:13px; }

    /* 테이블 폰트 크기 키우고 컬럼 너비 최적화 */
    .meeting-line-table { width:100%; border-collapse:collapse; font-size:13px; }
    .meeting-line-table th, .meeting-line-table td { border:1px solid #cbd5e1; padding:5px 6px; }
    .meeting-line-table th.meeting-remove-col, .meeting-line-table td:first-child { display:none !important; }
    .meeting-remove-col { display: none !important; }

    /* 주차/동물/대출 — 내용 길이만큼 */
    .meeting-line-table th:nth-child(8),
    .meeting-line-table td:nth-child(8),
    .meeting-line-table th:nth-child(9),
    .meeting-line-table td:nth-child(9),
    .meeting-line-table th:nth-child(10),
    .meeting-line-table td:nth-child(10) { width: 36px; text-align: center; white-space: nowrap; }

    /* 주소/호실 — 조금 좁게 */
    .meeting-line-table th:nth-child(3),
    .meeting-line-table td:nth-child(3) { max-width: 120px; }

    /* 비고 칸 높이 2배 */
    .print-note-box { min-height: 80px !important; }

    /* QR 코드 — 한 줄에 7개 */
    #meetingQrGrid { display: flex !important; flex-wrap: wrap; gap: 8px; }
    #meetingQrGrid > div { width: calc(100% / 7 - 8px); }
    #meetingQrGrid canvas, #meetingQrGrid img { width: 100% !important; height: auto !important; }

    #meetingQrArea { display: block !important; }
    .btn-remove-cart { display: none !important; }
    .view-tab-bar, .search-bar, .filter-bar, .cart-toolbar,
    #filterModal, #detailModal, #completedTicker, #tickerWrap,
    #tickerRestoreBtn, #floatPinMapBtn { display: none !important; }
    body, .container { padding: 0 !important; margin: 0 !important; }
  }

  #mapView { display: none; background: white; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }
  #googleMap { width: 100%; height: 600px; }
  #mapStatusBar { padding: 10px 14px; font-size: 12.5px; font-weight: bold; color: #64748b; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  #mapStatusBar .map-count-badge { background: #4F9D75; color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
  #mapLoadingMsg { padding: 40px; text-align: center; color: #4F9D75; font-weight: bold; display: none; }
  .map-mode-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
  .map-mode-btn { padding: 6px 14px; font-size: 12.5px; font-weight: bold; border-radius: 6px; border: 1px solid #cbd5e1; cursor: pointer; background: #fff; color: #475569; }
  .map-mode-btn.active { background: #4F9D75; color: #fff; border-color: #4F9D75; }
  #noPinMsg { padding: 60px 20px; text-align: center; color: #94a3b8; font-size: 14px; font-weight: bold; display: none; }

  .gmap-info-box { background: white; border-radius: 10px; padding: 12px 15px; box-shadow: 0 6px 20px rgba(0,0,0,0.18); border: 1px solid #e2e8f0; min-width: 200px; max-width: 260px; font-family: 'Malgun Gothic', sans-serif; }
  .gmap-info-box .ov-addr { font-size: 12px; color: #334155; font-weight: bold; margin-bottom: 6px; }
  .gmap-info-box .ov-item { border-top: 1px dashed #f1f5f9; padding-top: 6px; margin-top: 6px; font-size: 12px; color: #475569; line-height: 1.6; }
  .gmap-info-box .ov-item-click:hover { background: #f8fafc; border-radius: 4px; }
  .gmap-info-box .ov-price { font-size: 14px; font-weight: 900; color: #4F9D75; }
  .gmap-info-box .ov-sub { font-size: 11px; color: #94a3b8; }
  .gmap-info-box .ov-multi { margin-top: 5px; font-size: 10.5px; color: #4F9D75; font-weight: bold; }
  .gmap-detail-btn { display: block; width: 100%; margin-top: 8px; padding: 7px; background: #0f172a; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: bold; text-align: center; font-family: 'Malgun Gothic', sans-serif; box-sizing: border-box; }
  .gmap-detail-btn:hover { background: #1e293b; }
  .gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 10px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important; overflow: hidden !important; }
  .gm-style .gm-style-iw-d { overflow: auto !important; padding: 0 !important; }
  .gm-style .gm-style-iw-chr { position: absolute !important; top: 6px !important; right: 6px !important; z-index: 100; margin: 0 !important; padding: 0 !important; }
  .gm-style .gm-style-iw-chr button { width: 22px !important; height: 22px !important; background: rgba(241,245,249,0.95) !important; border-radius: 50% !important; box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .gm-style .gm-style-iw-chr button span, .gm-style .gm-style-iw-chr button img { width: 11px !important; height: 11px !important; }

  /* 추가 유틸 클래스 */
  .view-title-bar { font-size:14px; color:#334155; margin:4px 0 12px 4px; font-weight:bold; }
  /* 신규매물 미리보기 제목 옆 회색 실선 — 카드 목록 위 중복 구분선(.section-divider) 대신 여기로 옮김 */
  .view-title-bar.view-title-with-line { display:flex; align-items:center; gap:10px; }
  .view-title-bar.view-title-with-line::after { content:''; flex:1; height:1px; background:#e2e8f0; }
  .loading-init-msg { grid-column:1/-1; text-align:center; color:#64748b; padding:40px; font-weight:bold; }
  .search-loading-msg { grid-column:1/-1; text-align:center; padding:45px; font-weight:bold; color:#4F9D75; }
  .no-result-msg { grid-column:1/-1; text-align:center; color:#dc2626; padding:40px; font-weight:bold; }
  .photo-link-text { color:#4F9D75; font-size:12px; font-weight:bold; word-break:break-all; }
  .map-geo-status { margin-left:auto; color:#94a3b8; }
  .no-pin-sub { font-size:12px; color:#cbd5e1; font-weight:normal; margin-top:6px; display:block; }
  .detail-landlord { color:#e11d48; font-weight:900; font-size:14px; background:#fff1f2; padding:2px 6px; border-radius:4px; }
  .detail-tenant { color:#0284c7; font-weight:900; font-size:14px; background:#f0f9ff; padding:2px 6px; border-radius:4px; }
  .detail-movein { color:#4F9D75; font-weight:bold; }
  .detail-note-box { background:#f8fafc; padding:12px; border-radius:8px; border:1px solid #e2e8f0; margin-top:4px; word-break:break-all; }
  .detail-note-text { color:#475569; font-size:12.5px; line-height:1.4; }
  .detail-photo-wrap { text-align:center; margin-top:8px; }
  .detail-photo-btn { display:block; padding:11px; background:#4F9D75; color:white; font-weight:bold; border-radius:6px; text-decoration:none; }
  .detail-ledger-btn { display:inline-block; padding:7px 14px; background:#4F9D75; color:white; font-weight:bold; border-radius:6px; text-decoration:none; font-size:12.5px; margin-top:6px; }
  .archive-footer-note { background:#f5f3ff; padding:10px; border-radius:8px; border:1px solid #ede9fe; margin-top:8px; font-size:12px; color:#7c3aed; font-weight:bold; }
  .ov-movein { font-size:11px; color:#4F9D75; margin-top:2px; }

  /* 손님용 토글 */
  .guest-toggle-wrap { margin-left: auto; display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
  .guest-toggle-label { font-size: 12px; font-weight: bold; color: #64748b; white-space: nowrap; }
  .guest-toggle { width: 44px; height: 24px; background: #cbd5e1; border-radius: 12px; cursor: pointer; position: relative; transition: background 0.2s; flex-shrink: 0; }
  .guest-toggle.on { background: #0891b2; }
  .guest-toggle-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,0.18); transition: left 0.2s; }
  .guest-toggle.on .guest-toggle-knob { left: 23px; }
  /* 손님모드 — 연락처/비밀번호 숨김 */
  body.guest-mode .ct-val.phone-hide,
  body.guest-mode .phone-hide,
  body.guest-mode .detail-landlord,
  body.guest-mode .detail-tenant,
  body.guest-mode .guest-hide { color: transparent !important; background: #e2e8f0; border-radius: 4px; user-select: none; pointer-events: none; }
  /* 손님모드 — 즐겨찾기(담기) 버튼 완전히 숨김 (직원 전용 기능) */
  body.guest-mode .guest-hide-block { display: none !important; }

  /* 즐겨찾기(담기) 버튼 — 눈에 띄지 않게, 직원 전용 */
  .btn-favorite { background: none; border: none; cursor: pointer; font-size: 14px; color: #cbd5e1; padding: 0 2px; line-height: 1; flex-shrink: 0; transition: color 0.15s; }
  .btn-favorite:hover { color: #f59e0b; }
  .btn-favorite.active { color: #f59e0b; }

  /* 인라인 편집 UI */
  .edit-field { display: inline; }
  .edit-val { cursor: default; padding-bottom: 1px; }
  .edit-mode .edit-val { cursor: pointer; border-bottom: 1px dashed #0891b2; }
  .edit-mode .edit-val:hover { background: #f0f9ff; border-radius: 3px; }
  .edit-input { width: 90px; padding: 2px 5px; border: 1px solid #0891b2; border-radius: 4px; font-size: 12px; font-family: 'Malgun Gothic', sans-serif; }
  .edit-btn-ok { padding: 2px 7px; background: #4F9D75; color: white; border: none; border-radius: 4px; font-size: 11px; cursor: pointer; margin-left: 3px; }
  .edit-btn-cancel { padding: 2px 6px; background: #e2e8f0; color: #475569; border: none; border-radius: 4px; font-size: 11px; cursor: pointer; margin-left: 2px; }
  .edit-field[data-orig] span.edit-val { transition: background 0.3s; }
  /* 추천/LH/SH 태그 행 — 수정모드에서는 항상 표시, 보기모드에서는 태그가 없으면 숨김 */
  /* 추천/LH/SH — 수정모드에선 체크박스 줄(.tag-edit-row), 보기모드에선 선택된 것만 읽기전용 배지(.tag-view-row) */
  .tag-edit-row { display: none; }
  #detailModal.edit-mode .tag-edit-row { display: flex; }
  .tag-view-row { display: none; }
  #detailModal:not(.edit-mode) .tag-view-row.has-tags { display: flex; }
  .tag-badge { padding: 3px 12px; border-radius: 14px; font-weight: 700; font-size: 12px; }
  .tag-badge.tag-rec { background: #FBBF24; color: #78350f; }
  .tag-badge.tag-lh { background: #f59e0b; color: #fff; }
  .tag-badge.tag-sh { background: #16a34a; color: #fff; }
  .tag-badge.tag-lhsh { background: linear-gradient(90deg,#f59e0b,#16a34a); color: #fff; }
  /* 거래완료 처리 버튼 — 수정모드에서만 노출 */
  .edit-only-row { display: none; }
  #detailModal.edit-mode .edit-only-row { display: block; }

/* ==================== 관리자 승격(거래완료 → 메인DB) 패널 전용 스타일 ====================
   전부 #adminPromoPanel 안에서만 적용되도록 감싸서, 사이트 전체 table/button/input
   스타일에 영향을 주지 않게 했습니다. (기존 스프레드시트 부속 관리자 도구 Sidebar.html의
   스타일을 그대로 이식) */
#adminPromoPanel { font-size: 13px; color: #333; }
#adminPromoPanel #promoToastBar { display:none; position:fixed; top:0; left:0; right:0; z-index:99999;
  padding:10px 18px; font-size:13px; font-weight:bold; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.2); }
#adminPromoPanel #promoToastBar.info    { background:#2563eb; display:block; }
#adminPromoPanel #promoToastBar.success { background:#16a34a; display:block; }
#adminPromoPanel #promoToastBar.warn    { background:#ea580c; display:block; }
#adminPromoPanel #promoToastBar.error   { background:#dc2626; display:block; }

#adminPromoPanel .control-panel { display:flex; flex-wrap:wrap; gap:12px; align-items:center;
  background:#f0f4f8; padding:12px; border-radius:6px; margin-bottom:15px; }
#adminPromoPanel .control-group { display:flex; flex-direction:column; }
#adminPromoPanel .control-group.flex-main { flex:2; min-width:160px; }
#adminPromoPanel .control-group.flex-sub  { flex:1.2; min-width:130px; }
#adminPromoPanel .control-group.flex-limit{ width:90px; }
#adminPromoPanel .filter-options { display:flex; flex-direction:column; gap:4px; justify-content:center; padding-left:5px; }
#adminPromoPanel input[type="text"],
#adminPromoPanel input[type="number"],
#adminPromoPanel select { width:100%; box-sizing:border-box; padding:6px; height:32px; border:1px solid #cbd5e1; border-radius:4px; }
#adminPromoPanel .checkbox-container { display:flex; align-items:center; gap:6px; font-weight:bold; cursor:pointer; font-size:12px; }
#adminPromoPanel .checkbox-container.disabled { opacity:0.38; pointer-events:none; }
#adminPromoPanel .search-btn-wrapper { margin-top:15px; }
#adminPromoPanel .result-header-wrapper { display:flex; justify-content:space-between; align-items:center; margin-top:10px; margin-bottom:6px; }

#adminPromoPanel .table-container { border:1px solid #dee2e6; background:#fff; height:300px; overflow:auto; border-radius:4px; }
#adminPromoPanel table { width:100%; border-collapse:collapse; text-align:left; table-layout:fixed; min-width:1360px; }
#adminPromoPanel th, #adminPromoPanel td { padding:4px 5px; border-bottom:1px solid #dee2e6; border-right:1px solid #e2e8f0; vertical-align:middle; white-space:nowrap; overflow:hidden; }
#adminPromoPanel th { background:#f8f9fa; font-weight:bold; color:#475569; border-bottom:2px solid #cbd5e1; position:sticky; top:0; z-index:10; font-size:12px; text-align:center; }
#adminPromoPanel .col-chk   { width:45px; text-align:center; }
#adminPromoPanel .col-addr  { width:100px; font-weight:bold; background:#f8fafc; text-align:center; }
#adminPromoPanel .col-tel   { width:105px; }
#adminPromoPanel .col-type  { width:60px; }
#adminPromoPanel .col-name  { width:165px; }
#adminPromoPanel .col-age   { width:45px; text-align:center; }
#adminPromoPanel .col-bld   { width:110px; }
#adminPromoPanel .col-htype { width:90px; }
#adminPromoPanel .col-remark{ width:220px; }
#adminPromoPanel .col-pwd   { width:70px; }
#adminPromoPanel .col-excl  { width:70px; text-align:center; }
#adminPromoPanel .col-flag  { width:170px; border-right:none; text-align:center; }
#adminPromoPanel tr:hover { background:#f1f5f9; }

#adminPromoPanel .manual-box { margin-top:15px; background:#fff; border:1px dashed #3b82f6; padding:10px; border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,0.05); }
#adminPromoPanel .manual-box table { min-width:1360px; table-layout:fixed; }
#adminPromoPanel .manual-box td { background:#fefeff; }

#adminPromoPanel .ext-panel { margin-top:12px; background:#f8fafc; border:1px solid #cbd5e1; border-radius:6px; padding:10px 14px; }
#adminPromoPanel .ext-panel-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:6px; }
#adminPromoPanel button.ext-btn { height:32px; padding:0 14px; font-size:12px; font-weight:bold;
  background:linear-gradient(to bottom,#fff,#f1f5f9); border:1px solid #cbd5e1; border-radius:4px; cursor:pointer; }
#adminPromoPanel button.ext-btn:hover { background:linear-gradient(to bottom,#f1f5f9,#e2e8f0); }

#adminPromoPanel .footer-panel { margin-top:auto; padding-top:10px; display:flex; justify-content:space-between; align-items:center;
  width:100%; box-sizing:border-box; position:sticky; bottom:0; background:#f8fafc; border-top:1px solid #e2e8f0; padding-bottom:8px; z-index:100; }
#adminPromoPanel .api-control-group { display:flex; align-items:center; gap:8px; flex-shrink:0; }
#adminPromoPanel .api-input-footer { width:460px !important; height:42px; box-sizing:border-box; padding:0 12px; border:1px solid #cbd5e1; border-radius:4px; font-size:12.5px; }
#adminPromoPanel button.api-btn-footer { background:linear-gradient(to bottom,#fff,#f1f5f9) !important; color:#334155 !important;
  border:1px solid #cbd5e1 !important; height:42px !important; width:200px !important; border-radius:4px !important;
  font-size:13px !important; font-weight:bold !important; cursor:pointer !important; white-space:nowrap !important; box-sizing:border-box !important; }
#adminPromoPanel button.api-btn-footer:hover { background:linear-gradient(to bottom,#f1f5f9,#e2e8f0) !important; border-color:#94a3b8 !important; }

#adminPromoPanel .cell-input { width:100%; box-sizing:border-box; padding:4px 6px; height:28px; border:1px solid #e2e8f0; border-radius:3px; font-size:12px; background:#fff; color:#334155; }
#adminPromoPanel .cell-input:focus { border-color:#3b82f6; background:#eff6ff; outline:none; box-shadow:0 0 0 1px #3b82f6; }

#adminPromoPanel .badge { display:inline-block; font-size:11px; padding:2px 5px; border-radius:3px; font-weight:bold; white-space:nowrap; }
#adminPromoPanel .bg-red    { background:#fee2e2; color:#dc2626; }
#adminPromoPanel .bg-blue   { background:#dbeafe; color:#2563eb; }
#adminPromoPanel .bg-orange { background:#ffedd5; color:#ea580c; border:1px solid #fed7aa; }
#adminPromoPanel .bg-purple { background:#ede9fe; color:#7c3aed; border:1px solid #c4b5fd; cursor:pointer; }
#adminPromoPanel .bg-purple:hover { background:#ddd6fe; }
#adminPromoPanel .bg-green  { background:#dcfce7; color:#16a34a; border:1px solid #bbf7d0; cursor:pointer; }
#adminPromoPanel .bg-green:hover { background:#bbf7d0; }
#adminPromoPanel .bg-gray   { background:#f1f5f9; color:#475569; border:1px solid #cbd5e1; cursor:pointer; }
#adminPromoPanel .bg-gray:hover { background:#e2e8f0; }
#adminPromoPanel .bg-teal   { background:#ccfbf1; color:#0f766e; border:1px solid #99f6e4; cursor:pointer; }
#adminPromoPanel .bg-teal:hover { background:#99f6e4; }
#adminPromoPanel .bg-rose   { background:#fff3e0; color:#c2410c; border:1px solid #fdba74; cursor:pointer; }
#adminPromoPanel .bg-rose:hover { background:#fed7aa; }
#adminPromoPanel .bg-amber  { background:#fef3c7; color:#b45309; border:1px solid #fcd34d; cursor:pointer; }
#adminPromoPanel .bg-amber:hover { background:#fde68a; }
#adminPromoPanel .bg-amber-warn { background:#fef9c3; color:#854d0e; border:1.5px dashed #ca8a04; cursor:pointer; font-style:italic; }
#adminPromoPanel .bg-crimson { background:#ffe4e6; color:#be123c; border:1px solid #fda4af; }
#adminPromoPanel .bg-api-err { background:#fef2f2; color:#b91c1c; border:1px solid #fca5a5; cursor:pointer; }
#adminPromoPanel .bg-api-err:hover { background:#fee2e2; }
#adminPromoPanel .err-link { color:#dc2626; text-decoration:underline; font-weight:bold; cursor:pointer; }
#adminPromoPanel .loading { text-align:center; color:#666; padding-top:100px; font-style:italic; font-size:14px; }
#adminPromoPanel .error-box { text-align:center; color:#dc2626; padding:60px 20px 0; font-size:14px; font-weight:bold; }
#adminPromoPanel .error-desc { font-size:12px; color:#666; font-weight:normal; margin-top:8px; display:block; background:#fff5f5; padding:8px; border:1px solid #fecaca; border-radius:4px; }

#adminPromoPanel .popup-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.45); z-index:9999; }
#adminPromoPanel .popup-overlay.active { display:flex; justify-content:center; align-items:center; }
#adminPromoPanel .popup-box { background:#fff; border-radius:10px; padding:24px 28px; min-width:360px; max-width:520px;
  box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:80vh; overflow-y:auto; }
#adminPromoPanel .popup-box h3 { margin:0 0 14px; font-size:15px; color:#1e3a8a; border-bottom:2px solid #dbeafe; padding-bottom:8px; }
#adminPromoPanel .popup-row { display:flex; align-items:flex-start; margin-bottom:9px; font-size:13px; }
#adminPromoPanel .popup-label { width:85px; font-weight:bold; color:#475569; flex-shrink:0; padding-top:2px; }
#adminPromoPanel .popup-old { color:#dc2626; font-weight:bold; background:#fee2e2; padding:2px 8px; border-radius:4px; }
#adminPromoPanel .popup-new { color:#16a34a; font-weight:bold; background:#dcfce7; padding:2px 8px; border-radius:4px; }
#adminPromoPanel .popup-close { margin-top:16px; width:100%; height:36px; font-weight:bold; font-size:13px;
  background:#f1f5f9; border:1px solid #cbd5e1; border-radius:5px; cursor:pointer; }
#adminPromoPanel .popup-close:hover { background:#e2e8f0; }
#adminPromoPanel .unit-table { width:100%; border-collapse:collapse; font-size:12px; margin-top:6px; }
#adminPromoPanel .unit-table th, #adminPromoPanel .unit-table td { border:1px solid #e2e8f0; padding:3px 6px; text-align:left; }
#adminPromoPanel .unit-table th { background:#f8f9fa; font-weight:bold; }
#adminPromoPanel .remark-list { list-style:disc; padding-left:18px; margin:4px 0; font-size:12px; line-height:1.7; }
#adminPromoPanel .dup-list { font-size:13px; margin:8px 0; padding:8px; background:#fff7ed; border:1px solid #fed7aa; border-radius:4px; line-height:1.8; }
#adminPromoPanel .jibeon-link { color:#2563eb !important; text-decoration:underline !important; font-weight:bold; }
#adminPromoPanel .jibeon-link:hover { color:#1d4ed8 !important; }

/* ==================== 통합DB 조회/수정(#adminDbGridPanel) + 변경 이력(#adminAuditPanel) 공용 스타일 ====================
   .admin-tool-panel 클래스로 스코프해서 사이트 전역 스타일과 충돌하지 않게 했습니다. */
.admin-tool-panel table { width:100%; border-collapse:collapse; font-size:12.5px; table-layout:fixed; }
.admin-tool-panel th, .admin-tool-panel td { padding:5px 7px; border-bottom:1px solid #e2e8f0; border-right:1px solid #f1f5f9; text-align:left; vertical-align:middle; overflow:hidden; }
.admin-tool-panel th { background:#f8f9fa; font-weight:bold; color:#475569; position:sticky; top:0; font-size:12px; position:relative; }
.admin-tool-panel th .col-resizer { position:absolute; right:0; top:0; width:6px; height:100%; cursor:col-resize; z-index:3; }
.admin-tool-panel th .col-resizer:hover, .admin-tool-panel th .col-resizer.resizing { background:#94a3b8; }
.admin-tool-panel td.filter-cell { padding:2px 4px; background:#fcfcfd; position:sticky; top:26px; }
.admin-tool-panel input.grid-filter { width:100%; box-sizing:border-box; padding:3px 5px; border:1px solid #cbd5e1; border-radius:3px; font-size:11.5px; }

/* 신규 매물 등록 모달(#addListingPanel) 전용 — 다른 화면과 안 겹치게 al- 접두사로 스코프 */
.al-grid-2col { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.al-label { display:block; font-size:11.5px; color:#64748b; margin-bottom:3px; }
.al-input { width:100%; box-sizing:border-box; padding:9px 10px; border:1.5px solid #e2e8f0; border-radius:7px; font-size:13.5px; font-family:inherit; }
.al-input:focus { outline:none; border-color:#0f766e; }
.al-req { color:#4F9D75; font-weight:800; }
.al-btngroup { display:flex; flex-wrap:wrap; gap:6px; }
.al-btn { padding:8px 14px; border:1.5px solid #e2e8f0; border-radius:7px; background:#fff; color:#475569; font-size:13px; font-family:inherit; cursor:pointer; }
.al-btn.active { background:#0f766e; border-color:#0f766e; color:#fff; font-weight:700; }
.al-section-line { border-bottom:1.5px solid #0f172a; margin:20px 0 12px; padding-bottom:6px; font-size:14px; font-weight:800; color:#0f172a; }
.al-section-line:first-of-type { margin-top:6px; }
.admin-tool-panel tr:hover { background:#f8fafc; }
.admin-tool-panel input.grid-cell { width:100%; box-sizing:border-box; padding:4px 6px; border:1px solid transparent; border-radius:3px; font-size:12.5px; background:transparent; }
.admin-tool-panel input.grid-cell:hover { border-color:#e2e8f0; }
.admin-tool-panel input.grid-cell:focus { border-color:#3b82f6; background:#eff6ff; outline:none; }
.admin-tool-panel input.grid-cell.dirty { background:#fef9c3; }
.admin-tool-panel .audit-row { background:#fff; border:1px solid #ede9fe; border-radius:6px; padding:8px 12px; margin-bottom:8px; font-size:12.5px; color:#334155; }
.admin-tool-panel .audit-row .audit-meta { color:#7c3aed; font-weight:bold; font-size:12px; margin-bottom:4px; }
.admin-tool-panel .audit-diff-old { color:#dc2626; text-decoration:line-through; }
.admin-tool-panel .audit-diff-new { color:#16a34a; font-weight:bold; }
