@charset "UTF-8";
/**
 * @Class Name  : map-main.css
 * @Description : 
 * @author      : JungHoon, Lee
 * @since       : 2025. 09. 23
 * @version 1.0
 *
 *
 * @Modification Information
 * 개정일자			     개정자                  개정내용
 * ------------------ ----------- --------------------------
 * 2025. 09. 23        JungHoon, Lee         최초생성
 *
 *
 * Copyright 2025. 올포랜드 INC.All rights reserved.
 */

/* 레이아웃: top, left, bottom */
html, body {height:100%;margin:0;font-family:Inter, 'Noto Sans KR', Arial, sans-serif; color:#111;}
.topbar {
    position:fixed; left:0; right:0; top:0; height:56px; z-index:20;
    display:flex; align-items:center; background:#1d2a44; color:#e9f2ff; padding:0 16px;
    box-shadow:0 2px 6px rgba(0,0,0,.12);
}
.topbar .brand {font-weight:700; letter-spacing:.5px;}
.topbar .search-wrap {margin-left:auto; display:flex; gap:8px;}
.topbar input {height:34px; border-radius:18px; border:1px solid #3c537a; background:#0f1a30; color:#e9f2ff; padding:0 12px; width:280px;}
.topbar button {height:34px; padding:0 14px; border:none; background:#2a7df7; color:#fff; border-radius:16px; cursor:pointer;}

.container {position:fixed; left:0; right:0; top:56px; bottom:40px; display:flex;}
.left-panel {
    width:360px; background:#081222; color:#cfe0ff; border-right:1px solid #1b2c4e;
    overflow:auto; transition:width .2s ease; position:relative; z-index: 18; /* 패널을 플로팅보다 앞으로 */
}
.left-panel.collapsed {width:46px;}
.left-panel .left-header {display:flex; align-items:center; gap:8px; padding:12px;}
.left-panel .left-header .title {font-size:16px; font-weight:700; flex:1;}
.left-panel .toggle {
    width:28px; height:28px; border-radius:50%; border:1px solid #2c3f66; color:#9db9ff; background:#0d1a33; cursor:pointer;
}
.left-panel .filters {padding:0 12px 8px 12px;}
.left-panel .filters .row {display:flex; gap:8px; align-items:center; margin-bottom:8px;}
.left-panel .filters select {height:30px; border-radius:6px; background:#0f1d36; border:1px solid #28406f; color:#d7e4ff; padding:0 8px;}

.cards {padding:8px 10px 14px 12px; display:flex; flex-direction:column; gap:10px;}
.card {
    display:flex; gap:10px; background:#0b1933; border:1px solid #243c6b; border-radius:10px; cursor:pointer;
    transition:transform .1s ease, box-shadow .1s ease; padding:8px;
}
.card:hover {transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.25);}
.card .thumb {width:94px; height:70px; background:#334a74; background-size:cover; background-position:center; border-radius:8px;}
.card .meta {flex:1; min-width:0;}
.card .meta .name {font-weight:700; color:#ffffff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.card .meta .addr {font-size:12px; color:#9fbae5; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.card .tags {margin-top:6px; display:flex; gap:6px; flex-wrap:wrap;}
.card .tag {font-size:11px; color:#b7d6ff; background:#15264a; border:1px solid #27467f; padding:2px 6px; border-radius:10px;}

.map-area {position:relative; flex:1; background:#0a162b;}
#cesiumContainer {position:absolute; inset:0;}
/* 지도 위 플로팅 카드 */
.floating {position:absolute; transform:translate(-50%, -100%); pointer-events:auto; z-index: 15; width: 420px; /* min-width 대신 고정 width 사용 */ max-width: 420px; /* 최대 너비도 고정 */}
.floating.hidden {display:none;}
.floating .floating-body {
    display:flex; gap:10px; background:#ffffff; color:#111; border-radius:10px; padding:10px;
    box-shadow:0 10px 28px rgba(0,0,0,.25); border:1px solid #e6eefc;
    width: 100%; /* 부모의 전체 너비 사용 */
    box-sizing: border-box; /* 패딩 포함한 크기 계산 */
}
.floating .f-thumb {width:160px; height:110px; background:#e8eefb; background-size:cover; background-position:center; border-radius:8px; flex-shrink: 0; /* 축소 방지 */}
.floating .f-text {
    flex: 1;
    min-width: 0; /* 텍스트 영역 축소 허용하되 최소값 설정 */
    overflow: hidden; /* 넘치는 내용 숨김 */
}
.floating .f-title {font-weight:800; font-size:16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.floating .f-addr {font-size:12px; color:#58709b; margin-top:2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.floating .f-desc {font-size:13px; color:#2b3c5c; margin-top:6px; line-height:1.35; max-height:54px; overflow:hidden; word-wrap: break-word;}
.floating .f-actions {margin-top:8px; display:flex; gap:6px; flex-wrap:wrap;}
.floating .f-actions button {border:none; padding:6px 10px; border-radius:16px; cursor:pointer; background:#f0f6ff; color:#18407a; border:1px solid #cfe1ff; white-space: nowrap; /* 버튼 텍스트 줄바꿈 방지 */ flex-shrink: 0; /* 버튼 축소 방지 */}
.floating .f-actions button:hover {background:#e2efff;}
.floating .arrow {width:0; height:0; border-left:10px solid transparent; border-right:10px solid transparent; border-top:12px solid #ffffff; position:absolute; left:50%; transform:translateX(-50%); bottom:-12px; filter:drop-shadow(0 3px 4px rgba(0,0,0,.2));}

.bottombar {
    position:fixed; left:0; right:0; bottom:0; height:40px; z-index:20;
    display:flex; align-items:center; justify-content:space-between; background:#0e1a31; color:#a8c6ff; padding:0 14px; border-top:1px solid #1b2c4e;
}

/* 접힘 상태에서 카드 숨김 */
.left-panel.collapsed .filters, .left-panel.collapsed .cards, .left-panel.collapsed .title {display:none;}
 
