@media screen and (max-width: 768px) {

  /* PC ?袁⑹뒠 ?怨?/雅뚯눛源??袁れ넎, ??뺥닏???? ?怨룸뼊 ?袁り숲獄??遺용꺖 ?袁⑹읈 ??? */
  #listingModeToggle,
  .subtype-buttons,
  #topFilterBar,
  #filterChipBar,
  #addressSearchArea {
    display: none !important;
  }


  /* ?怨룸뼊獄쏅뗀? ??롫뼊??곗쨮 ??猷?- ??뜃?у첎???볤탢 */
  #topbar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    z-index: 200 !important;
    background: #e9f2ff !important;
    border-top: 1px solid #c9dfff !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* ?怨룸뼊獄???? ?遺용꺖???類ｂ봺 */
  #topbar .topbar-left,
  #topbar .topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  #topbar h1 {
    font-size: 14px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* ?怨밴묶燁삳똻??紐껋뺍???怨룸뼊獄??袁⑥쨮 ??猷?- ??뜃?у첎???볤탢 */
  #statusCounts {
    position: fixed !important;
    bottom: 61px !important;
    top: auto !important;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    max-height: 100px !important;
    min-height: 100px;
    z-index: 201;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* ???룐뫂???뚢뫂???瑗?- ??롫뼊獄?獄쏄퀗瑗??癰귣똻??袁⑥쨯 */
  #appRoot {
    overflow: visible !important;
  }

  /* 筌뤴뫀而??嚥≪뮄??袁⑹뜍 甕곌쑵???????*/
  .mobile-logout-btn {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 8px;
  }

  .mobile-logout-btn:hover {
    background: #c82333;
    border-color: #bd2130;
  }

  /* ??됱뵠?袁⑹뜍 ?怨몃열 ?袁⑷퍥?遺얇늺 - 筌뤴뫀而??깅퓠??揶쏅벡???怨몄뒠 */
  #layout {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: var(--app-safe-height, 100dvh) !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* 筌롫뗄???꾩꼹?쀯㎘??怨몃열 鈺곌퀣??(筌왖???袁⑷퍥?遺얇늺) - 筌뤴뫀而??깅퓠??揶쏅벡???怨몄뒠 */
  #mainContent {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 300px !important;
    z-index: 1 !important;
    transition: bottom 0.3s ease !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 筌띲끇窺?귐딅뮞????ㅺ섯???類ㅼ삢??롢늺 筌롫뗄???꾩꼹?쀯㎘??怨몃열 鈺곌퀣??*/
  .property-list-panel.expanded~#mainContent,
  .property-list-panel.expanded+#mainContent {
    bottom: 500px;
  }

  /* 疫꿸퀣???????뺤뺍?? ?온???遺용꺖???袁⑹읈 ??볤탢 - 筌뤴뫀而??깅퓠??揶쏅벡???怨몄뒠 */
  #sidebar,
  #sidebarToggle,
  .mobile-notch {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* 筌왖???怨몃열 ?袁⑷퍥?遺얇늺 ??쇱젟 - 筌뤴뫀而??깅퓠??揶쏅벡???怨몄뒠 */
  #mapWrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #map {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* 2筌??????뺤뺍???袁⑷퍥?遺얇늺??곗쨮 癰궰野?*/
  #secondaryPanel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--app-safe-height, 100dvh);
    z-index: 1200;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  #secondaryPanel.show {
    transform: translateX(0);
  }

  /* 筌띲끇窺?귐딅뮞????뺤삋域???ㅺ섯 */
  .property-list-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    min-height: 150px;
    max-height: 70dvh;
    background: white;
    border-top: 2px solid #007AFF;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease;
    border-radius: 20px 20px 0 0;
  }

  /* ??뺤삋域??紐껊굶 */
  .drag-handle {
    width: 100%;
    height: 20px;
    background: #007AFF;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .drag-handle:active {
    cursor: grabbing;
  }

  .drag-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background: white;
    border-radius: 2px;
  }

  /* 筌띲끇窺?귐딅뮞????삳쐭 */
  .property-list-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .property-list-tabs {
    display: flex;
    gap: 8px;
  }

  .property-list-tab {
    padding: 6px 12px;
    border-radius: 4px;
    background: #e9ecef;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    border: none;
  }

  .property-list-tab.active {
    background: #007AFF;
    color: white;
  }

  /* 筌띲끇窺?귐딅뮞???꾩꼹?쀯㎘?*/
  .property-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
  }

  /* ?怨룸뼊獄쏅뗄肉????ｋ쭔 ?遺용꺖??*/
  #topbar .user-role-name,
  #topbar .admin-only,
  #topbar .admin-only.hidden,
  #topbar .admin-btn,
  #topbar #userManagementBtn,
  #topbar #adminStatsBtn {
    display: none;
  }

  /* 筌뤴뫀而????띻펾?癒?퐣 auth-links????뽯뻻??롫┷ ??? ?遺용꺖筌?鈺곌퀣??*/
  #topbar .auth-links {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* ?怨밴묶燁삳똻??紐껋뺍?癒?퐣 ??ｋ쭔 ?遺용꺖??*/
  #statusCounts .count-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 8px 16px;
    width: 100%;
    height: 100%;
    max-height: 100%;
    font-size: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  #statusCounts .count-info span {
    display: none;
  }

  #filterChipBar {
    display: none !important;
  }

  /* ?袁り숲 ???뚢뫂???瑗?*/
  #statusCounts .filter-row-container {
    display: flex;
    gap: 4px;
    width: 100%;
    align-items: stretch;
    margin-bottom: 4px;
    flex-shrink: 0;
  }

  /* ?袁り숲 甕곌쑵???????*/
  #statusCounts .btn-filter {
    flex: 0 0 25%;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    background: #6c757d;
    color: white;
  }

  /* ?袁り숲 ?遺용튋 ?????*/
  #statusCounts .filter-summary {
    flex: 1;
    padding: 8px 4px;
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 4px;
  }

  /* 筌뤴뫀諭?甕곌쑵???뚢뫂???瑗?*/
  #statusCounts .all-buttons-container {
    display: flex;
    gap: 4px;
    width: 100%;
    align-items: stretch;
    flex-shrink: 0;
  }

  /* 筌뤴뫀諭?甕곌쑵???⑤벏???????*/
  #statusCounts .btn-add-listing,
  #statusCounts .mobile-buttons .btn-property-list,
  #statusCounts .mobile-buttons .btn-customer-list,
  #statusCounts .mobile-buttons .btn-customer-add {
    flex: 1;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  #statusCounts .btn-add-listing { background: #007bff; color: white; }
  #statusCounts .mobile-buttons .btn-property-list { background: #28a745; color: white; }
  #statusCounts .mobile-buttons .btn-customer-list { background: #ffc107; color: black; }
  #statusCounts .mobile-buttons .btn-customer-add { background: #dc3545; color: white; }

  #statusCounts .sheet-controls,
  #statusCounts .sheet-buttons,
  #statusCounts .btn-sheet-open,
  #statusCounts .refresh-controls,
  #statusCounts .refresh-btn,
  #statusCounts .last-update {
    display: none;
  }

  /* ??쎈돗???類ｋ궖 筌뤴뫀而????됱뵠?袁⑹뜍 */
  .office-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .button-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }

  /* ?袁り숲 筌뤴뫀??*/
  #filterModal.modal:not(.hidden) {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .filter-modal,
  .modal-content.filter-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    border-radius: 0 !important;
    background: white !important;
    z-index: 1100 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
  }

  /* 筌띲끇窺?귐딅뮞??筌뤴뫀??*/
  .listing-list-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50dvh;
    max-height: 80dvh;
    min-height: 30dvh;
    background: white;
    border-radius: 12px 12px 0 0;
    z-index: 1100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  /* ?⑥쥒而쇘뵳????筌뤴뫀??*/
  .customer-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    background: transparent;
    z-index: 1100;
  }

  /* 筌왖???뚢뫂?껅에??袁⑺뒄 鈺곌퀣??*/
  .map-controls {
    top: 60px !important;
    right: 20px !important;
  }

  /* 筌뤴뫀而??嚥≪뮆諭띌뀎?沃섎챶?뀐쭕?鈺곌퀣??*/
  .roadview-minimap {
    width: 105px !important;
    height: 72px !important;
    bottom: 60px !important;
    left: 20px !important;
  }

  .minimap-label {
    font-size: 9px !important;
    padding: 2px 6px !important;
    top: -18px !important;
  }

  .minimap-header,
  .minimap-controls {
    transform: scale(0.6);
  }

  .minimap-content {
    min-height: 50px !important;
  }

  .roadview-address-box {
    display: none !important;
  }

  /* ??彛??紐꾩춿 筌뤴뫀諭?UI */
  .photo-edit-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .photo-edit-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  #mobilePhotoEditBtn {
    background: #6c757d;
    color: white;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 4px;
  }

  /* 筌뤴뫀諭?甕곌쑵???뚢뫂???瑗?*/
  #statusCounts .all-buttons-container {
    display: flex;
    gap: 4px;
    width: 100%;
    align-items: stretch;
    flex-shrink: 0;
  }

  /* 筌뤴뫀諭?甕곌쑵???⑤벏???????*/
  #statusCounts .btn-add-listing,
  #statusCounts .mobile-buttons .btn-property-list,
  #statusCounts .mobile-buttons .btn-customer-list,
  #statusCounts .mobile-buttons .btn-customer-add {
    flex: 1;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  #statusCounts .btn-add-listing { background: #007bff; color: white; }
  #statusCounts .mobile-buttons .btn-property-list { background: #28a745; color: white; }
  #statusCounts .mobile-buttons .btn-customer-list { background: #ffc107; color: black; }
  #statusCounts .mobile-buttons .btn-customer-add { background: #dc3545; color: white; }

  #statusCounts .sheet-controls,
  #statusCounts .sheet-buttons,
  #statusCounts .btn-sheet-open,
  #statusCounts .refresh-controls,
  #statusCounts .refresh-btn,
  #statusCounts .last-update {
    display: none;
  }

  /* ??쎈돗???類ｋ궖 筌뤴뫀而????됱뵠?袁⑹뜍 */
  .office-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .button-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }

  /* ?袁り숲 筌뤴뫀??*/
  #filterModal.modal:not(.hidden) {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .filter-modal,
  .modal-content.filter-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    border-radius: 0 !important;
    background: white !important;
    z-index: 1100 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
  }

  /* 筌띲끇窺?귐딅뮞??筌뤴뫀??*/
  .listing-list-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50dvh;
    max-height: 80dvh;
    min-height: 30dvh;
    background: white;
    border-radius: 12px 12px 0 0;
    z-index: 1100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  /* ?⑥쥒而쇘뵳????筌뤴뫀??*/
  .customer-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    background: transparent;
    z-index: 1100;
  }

  /* 筌왖???뚢뫂?껅에??袁⑺뒄 鈺곌퀣??*/
  .map-controls {
    top: 60px !important;
    right: 20px !important;
  }

  /* 筌뤴뫀而??嚥≪뮆諭띌뀎?沃섎챶?뀐쭕?鈺곌퀣??*/
  .roadview-minimap {
    width: 105px !important;
    height: 72px !important;
    bottom: 60px !important;
    left: 20px !important;
  }

  .minimap-label {
    font-size: 9px !important;
    padding: 2px 6px !important;
    top: -18px !important;
  }

  .minimap-header,
  .minimap-controls {
    transform: scale(0.6);
  }

  .minimap-content {
    min-height: 50px !important;
  }

  .roadview-address-box {
    display: none !important;
  }

  /* ??彛??紐꾩춿 筌뤴뫀諭?UI */
  .photo-edit-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .photo-edit-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  #mobilePhotoEditBtn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  /* ========================================
     理쒖쟻?붾맂 ?ъ쭊 ?쇱씠?몃컯??(v1.4 - style.css ?듯빀)
     ======================================== */
  #map { 
    contain: layout paint; 
    will-change: transform; 
    transition: none !important; /* v6.6: ?꾪솚 怨쇱젙??源쒕묀?꾩쓣 留됯린 ?꾪빐 利됱떆 ?꾪솚 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0,0,0);
  }
  
  .modal, .lightbox-modal, #photoLightbox { 
    isolation: isolate; 
    /* will-change: transform, opacity;  <-- 紐⑤컮?쇱뿉??釉붾윭 ?꾩긽???쇱쑝?????덉뼱 二쇱꽍 泥섎━ */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* ========================================
     모바일 매물 모드 선택 버튼 (드랍다운)
     - UNIFIED_AGENT_RULES.md 제6장 준수
     - 애니메이션 배제 (GPU 부하 방지)
     - 즉시 노출/숨김 (Immediate show/hide)
     ======================================== */
  .mobile-listing-mode-btn-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
  }

  .mobile-listing-mode-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-listing-mode-btn .dropdown-arrow {
    font-size: 10px;
    color: #666;
    margin-left: 2px;
  }

  .mobile-listing-mode-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 2px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 130px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1002;
  }

  .mobile-listing-mode-dropdown.hidden {
    display: none;
  }

  .mobile-listing-mode-dropdown .dropdown-item {
    padding: 12px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
    background: #ffffff;
    cursor: pointer;
  }

  .mobile-listing-mode-dropdown .dropdown-item:last-child {
    border-bottom: none;
  }

  .mobile-listing-mode-dropdown .dropdown-item:active {
    background: #f0f0f0;
  }

  .mobile-listing-mode-dropdown .dropdown-item.disabled {
    color: #bbb;
    background: #f9f9f9;
    cursor: not-allowed;
    pointer-events: none;
  }

}

/* @media screen and (max-width: 768px) ?꾩껜 寃⑸━ 醫낅즺 */

/* v1.6 紐⑤컮??UI 媛쒖꽑 諛?由ъ궗?댁쭠 踰꾧렇 理쒖쥌 ?섏젙 */
#listingListModal.modal, #clusterListModal.modal { pointer-events: none; }
#listingListModal.modal .modal-content, #clusterListModal.modal .modal-content { pointer-events: auto; }
.listing-list-modal .modal-body { position: relative !important; flex: 1 !important; min-height: 0 !important; }

/* v6.4 (Final): 紐⑤떖 ?쒖꽦????吏???몄텧 諛⑹? 洹쒖튃 ??젣 (?ъ옣??吏?? ?щ챸??諛곌꼍 ?쇱껜 湲덉?) */
/* body:has(.modal.active) #map,
body:has(#photoLightbox.active) #map,
.modal.active ~ #mapWrap #map,
#photoLightbox.active ~ #mapWrap #map {
  opacity: 0.01 !important;
  pointer-events: none !important;
} */
/* v8.9: ?ъ쭊 ?쇱씠?몃컯???쒖꽦???쒖뿉留?吏?꾨? 臾쇰━?곸쑝濡??④꺼 源쒕묀??諛⑹? (?щ챸??ghosting ?놁쓬) */
body:has(#photoLightbox.active) #map {
  visibility: hidden !important;
}
