body { font-family: 'Malgun Gothic', sans-serif; background: #f8fafc; margin: 0; padding: 12px; user-select: none; -webkit-user-select: none; color: #1e293b; }
  .container { max-width: 1400px; margin: 0 auto; }

  .search-wrapper { background: white; padding: 14px; border-radius: 10px; 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 14px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; }
  .btn-search { padding: 11px 24px; background: #059669; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 14px; }
  .btn-filter-trigger { padding: 11px 16px; background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 13px; display: flex; align-items: center; gap: 4px; }
  .btn-filter-trigger:hover { background: #e2e8f0; }
  .filter-badge { background: #ea580c; 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: #ecfdf5; border-color: #059669; color: #059669; }
  .btn-main-reset { padding: 6px 12px; font-size: 12.5px; background: #fff; border: 1px solid #e11d48; color: #e11d48; border-radius: 20px; cursor: pointer; font-weight: bold; margin-left: auto; flex-shrink: 0; white-space: nowrap; }
  .btn-main-reset:hover { background: #fff1f2; }

  .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: 12px; 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; }
  .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; }

  .card.newbuild-card { border: 2px solid #06b6d4; background: #f0fdff; }
  .card.newbuild-card .newbuild-badge { display: block; }
  .newbuild-badge { display: none; background: linear-gradient(90deg,#0ea5e9,#06b6d4); 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: #059669; font-weight: bold; padding-left: 6px; }

  .btn-group { display: flex; gap: 6px; }
  .btn-ledger { flex: 1.2; padding: 9px; font-size: 12px; background: #059669; color: white; border: none; border-radius: 6px; 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: 6px; cursor: pointer; font-weight: bold; }
  .btn-ledger-disabled { flex: 1.2; padding: 9px; font-size: 12px; background: #e2e8f0; color: #94a3b8; border: none; border-radius: 6px; 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: 12px; 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; }
  .modal-header.nb-header { color: #0891b2; }
  .btn-reset-text { font-size: 13px; font-weight: 800; color: #059669; 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; }
  .section-title { font-size: 14px; font-weight: 800; color: #0f172a; margin: 16px 0 8px 0; border-left: 3px solid #059669; 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: #059669; 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: #059669; 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: #059669; 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: #059669; 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: #059669; cursor: pointer; margin: 0; }
  .btn-filter-apply { width: 100%; padding: 12px; background: #059669; color: white; border: none; border-radius: 6px; 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: #059669; 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: 6px; 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: #059669; border-color: #059669; 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: 7px; 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; }
  .view-tab-btn.newbuild-tab { border-color: #06b6d4; color: #0891b2; }
  .view-tab-btn.newbuild-tab.active { background: #0891b2; border-color: #06b6d4; color: #fff; }
  .pin-count-badge { background: #dc2626; color: white; border-radius: 10px; padding: 2px 7px; font-size: 11px; font-weight: bold; margin-left: 4px; }
  .newbuild-count-badge { background: #06b6d4; 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: #059669; 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: #7c3aed; color: #7c3aed; }
  .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: #7c3aed; border-color: #7c3aed; 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: #7c3aed; }
  .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: #faf5ff; color: #7c3aed; }

  /* 담긴 매물 버튼 — 카드 좌상단 */
  .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: #f0fdf4; border-color: #059669; }
  .btn-cart.in-cart { background: #dcfce7; border-color: #059669; color: #059669; }

  /* 즐겨찾기 버튼 — 카드 좌상단 (담기 위) */
  .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: 6px; background: #fff; color: #475569; cursor: pointer; }
  .cart-view-btn.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
  .cart-clear-btn { padding: 6px 14px; font-size: 12px; font-weight: bold; border: none; border-radius: 6px; 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; }
  .btn-remove-cart { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 14px; padding: 2px 4px; border-radius: 4px; }
  .btn-remove-cart:hover { color: #dc2626; background: #fee2e2; }

  /* 매물 정리 텍스트 출력 */
  .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: #3b82f6; }
  .legend-dot.lhsh::before { background: linear-gradient(to right, #f59e0b 50%, #3b82f6 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 #3b82f6; }
  .carousel-mini-card.lhsh-card { border-left: 3px solid transparent; background: linear-gradient(white,white) padding-box, linear-gradient(to bottom,#f59e0b,#3b82f6) 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:6px; border:1.5px solid #059669; background:#ecfdf5; color:#059669; cursor:pointer; }
  .btn-main-apply:hover { background:#059669; 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; }

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

    /* 간이 필터 줄 */
    .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 { font-size: 11px !important; }
    .btn-main-apply, .btn-main-reset { font-size: 11px; padding: 4px 8px; white-space: nowrap; }

    /* 탭바 모바일 */
    .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; }
    #tabNewbuild { 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; }

    /* 캐러셀 */
    .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; }
  }

  @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: #059669; color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
  #mapLoadingMsg { padding: 40px; text-align: center; color: #059669; 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: #059669; color: #fff; border-color: #059669; }
  #noPinMsg { padding: 60px 20px; text-align: center; color: #94a3b8; font-size: 14px; font-weight: bold; display: none; }

  #newbuildView { display: none; }
  #newbuildContainer { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; margin-bottom: 30px; }
  .nb-info-bar { padding: 10px; font-size: 12.5px; color: #0891b2; font-weight: bold; background: #f0fdff; border-radius: 8px; border: 1px solid #bae6fd; margin-bottom: 14px; text-align: center; }
  .nb-section-label { margin-top: 12px; font-weight: 800; color: #0891b2; font-size: 13px; border-left: 3px solid #06b6d4; padding-left: 6px; margin-bottom: 4px; }
  .nb-section-hint { font-size: 11px; font-weight: normal; color: #94a3b8; }
  .nb-summary { font-size: 12.5px; color: #0891b2; font-weight: bold; margin-bottom: 8px; }
  .nb-room-row { display: flex; align-items: center; padding: 9px 10px; border-bottom: 1px dashed #e0f7fa; font-size: 12.5px; gap: 4px; cursor: pointer; }
  .nb-room-row:hover { background: #f0fdff; }
  .nb-room-row.completed { opacity: 0.5; }
  .nb-arrow { font-size: 11px; color: #06b6d4; margin-right: 2px; min-width: 12px; }
  .nb-room-num { font-weight: bold; color: #475569; min-width: 44px; }
  .nb-room-str { color: #64748b; font-size: 11px; min-width: 50px; }
  .nb-room-price { font-weight: 800; color: #0891b2; flex: 1; text-align: right; }
  .nb-comp-badge { background: #94a3b8; color: white; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
  .nb-movein { color: #059669; font-size: 11px; margin-left: 4px; }
  .nb-inner-btn { font-size: 14px; text-decoration: none; margin-left: 2px; }
  .nb-card-wrap { display: none; }
  .nb-card-inner { background: #f8fffe; border: 1.5px solid #a5f3fc; border-radius: 10px; padding: 12px 14px; margin: 4px 8px 10px; box-shadow: 0 2px 8px rgba(6,182,212,0.08); }
  .nb-card-price { font-size: 17px; font-weight: 800; color: #0891b2; margin-bottom: 2px; }
  .nb-card-addr { font-size: 12.5px; color: #334155; font-weight: 700; margin-bottom: 4px; }
  .nb-card-meta { font-size: 12px; color: #64748b; margin-bottom: 6px; }
  .nb-contact-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
  .nb-ct-label { color: #64748b; font-weight: bold; width: 54px; font-size: 12px; padding: 3px 0; white-space: nowrap; vertical-align: middle; }
  .nb-ct-landlord { font-weight: 900; font-size: 12px; color: #e11d48; vertical-align: middle; }
  .nb-ct-tenant { font-weight: 900; font-size: 12px; color: #0284c7; vertical-align: middle; }
  .nb-ct-movein { font-weight: bold; font-size: 12px; color: #059669; vertical-align: middle; }
  .nb-ct-rel { color: #64748b; font-size: 11px; }
  .nb-note-box { background: #f0fdff; padding: 8px 10px; border-radius: 6px; border: 1px solid #bae6fd; font-size: 11.5px; color: #475569; line-height: 1.5; margin-top: 4px; }
  .nb-note-label { color: #0891b2; font-weight: bold; }
  .nb-card-btns { display: flex; gap: 6px; margin-top: 10px; }
  .nb-btn-ledger { flex: 1.2; padding: 8px; font-size: 12px; background: #0891b2; color: white; border-radius: 6px; font-weight: bold; text-align: center; text-decoration: none; display: block; }
  .nb-btn-inner { padding: 8px 10px; font-size: 13px; background: #f0fdff; color: #0891b2; border: 1px solid #06b6d4; border-radius: 6px; font-weight: bold; text-align: center; text-decoration: none; display: inline-block; flex: none; }
  .nb-ledger-btn { display: inline-block; padding: 7px 14px; background: #0891b2; color: white; font-weight: bold; border-radius: 6px; text-decoration: none; font-size: 12.5px; }

  .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: #059669; }
  .gmap-info-box .ov-sub { font-size: 11px; color: #94a3b8; }
  .gmap-info-box .ov-multi { margin-top: 5px; font-size: 10.5px; color: #059669; 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; }

  .nb-contact-box { background: #f0fdff; border: 1px solid #bae6fd; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }


  /* 추가 유틸 클래스 */
  .view-title-bar { font-size:14px; color:#334155; margin:4px 0 12px 4px; font-weight:bold; }
  .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:#059669; }
  .no-result-msg { grid-column:1/-1; text-align:center; color:#dc2626; padding:40px; font-weight:bold; }
  .photo-link-text { color:#059669; 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; }
  .nb-card-price-main { font-size:16px; color:#0891b2; }
  .nb-meta { color:#0891b2; }
  .nb-detail-btn { background:#0891b2; }
  .nb-btn-cyan { background:#0891b2; }
  .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:#059669; 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:#059669; color:white; font-weight:bold; border-radius:6px; text-decoration:none; }
  .detail-ledger-btn { display:inline-block; padding:7px 14px; background:#059669; 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:#059669; 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 .nb-ct-landlord,
  body.guest-mode .nb-ct-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: #059669; 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; }
