* {
	margin: 0;
	padding: 0;
	font-family: 'ChosunGu';
}

#wrap {
	margin: 0 auto;
	width: 100%;
	height: 73vh;
	display: flex;
	flex-direction: row;
}

#header {
	position: relative;
	z-index: 2;
}

.list {
	width: 30%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.recommend-box {
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 15px 20px;
	margin: 10px;
	background: #fafafa;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.recommend {
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 10px;
	color: #333;
	text-align: left;
}

.recommend-list {
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: 30px;
	text-align: center;
}

.recommend-list a {
	text-decoration: none;
	font-size: 18px;
	color: #111;
	font-weight: 500;
	align-items: center;
	gap: 6px;
	transition: color 0.2s;
	text-align: center; /* 텍스트 가운데 정렬 */
	margin: 0 5px;
	white-space: pre; /* 띄어쓰기도 그대로 유지 */
	word-break: keep-all; /* 단어(띄어쓰기) 기준으로 쪼개지지 않음 */
	overflow-wrap: normal; /* 중간에서 강제 줄바꿈 금지 */
}

.recommend-list a:hover {
	color: #ebb36b;
}

#L-filter {
	display: flex;
	justify-content: flex-end;
	margin: 10px;
}

#L-filter button {
	font-size: 14px;
	border: none;
	padding: 0 5px;
	border-left: 1px solid #000;
	background: none;
	cursor: pointer;
}

/* 필터 버튼 활성화 스타일(옵션) */
#L-filter button.active {
  background:#ebb36b; color:#fff;
}

#L-filter button:first-child {
	border: none;
}

.table-wrapper {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	background-color: white;
}

.list table {
	border-collapse: collapse;
	width: 100%;
	line-height: 50px;
}

.list table a {
	text-decoration: none;
	color: black;
	white-space: pre;            /* 띄어쓰기도 그대로 유지 */
    word-break: keep-all;        /* 단어(띄어쓰기) 기준으로 쪼개지지 않음 */
    overflow-wrap: normal;       /* 중간에서 강제 줄바꿈 금지 */
}

.list table a:hover {
	color: #ebb36b;
	transition: background-color 0.2s;
}

.list table tbody tr {
	border-bottom: 1px solid #ddd;
	transition: background-color 0.2s;
}

.list table tbody tr:hover {
	background-color: #f5f5f5;
	cursor: pointer;
}

.list table tbody tr td:first-child {
	width: auto;
}

.list table tbody tr td:nth-child(2) {
	min-width: 120px !important;
}

.list table tbody tr td:last-child{
	min-width: 70px !important;
	padding-right: 5px;
	text-align: center;
}

.list table td {
	padding: 0 5px;
}

.map {
	width: 70%;
	height: 100%;
	background-color: lightyellow;
	position: relative;
}

#map {
	width: 100%;
	height: 100%;
}

#GPS {
	position: absolute;
	bottom: 30px;
	left: 10px;
	z-index: 1;
	width: 30px;
	height: 30px;
}

#GPS>i {
	font-size: 25px;
}

.wave-circle {
	position: absolute;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	background: rgba(0, 153, 255, 0.3);
	animation: wave 1.5s infinite ease-out;
}

@keyframes wave { 
	0% {
		transform: scale(0.5);
		opacity: 1;
	}

	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}
.info_wrap {
	position: absolute;
	left: 60px;
	bottom: 45px;
	width: 200px;
	height: auto;
	padding: 5px;
	margin-left: -144px;
	text-align: left;
	overflow: hidden;
	line-height: 1.5;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0px 1px 2px #888;
	background-color: #fff;
}

.info_wrap .close {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #888;
	width: 15px;
	height: 15px;
	background:
		url('https://t1.daumcdn.net/localimg/localimages/07/mapapidoc/overlay_close.png');
	background-size: contain;
}

.info_wrap .close:hover {
	cursor: pointer;
}

.info_wrap .find_load {
	text-decoration: none;
	position: absolute;
	bottom: 5px;
	right: 10px;
}

.info_wrap .desc{
	width: 80%;
}

.desc .ellipsis {
	width: 100%;
}

.desc .jibun {
	font-size: 14px;
	color: #888;
	margin-top: -2px;
}

/* =========================
           모바일 반응형
        ========================= */
@media ( max-width : 600px) {
	
	 html, body {
    height: 100%;
    overflow: hidden;             /* 세로 스크롤도 제거 */
    overscroll-behavior: none;    /* 상단/하단 바운스 방지(안드로이드) */
  }
	#wrap {
		flex-direction: column;
		height: 100vh;
		overflow: hidden;
	}

	/* 지도 전체 화면 */
	.map {
		width: 100% !important;
		height: 55% !important;
		overflow: hidden; /* ✅ 가로 스크롤 근본 차단 */
		position: relative;
	}

	/* 리스트 하단 고정 패널 */
	.list {
		position: fixed !important;
		bottom: 0;
		left: 0;
		width: 100% !important;
		height: 25vh;
		background: white;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
		overflow: hidden;
		transition: height 0.3s ease;
		display: block !important;
		z-index: 10;
		touch-action: none;
	}
	.list::before {
		content: "";
		display: block;
		width: 50px;
		height: 5px;
		background: #ccc;
		border-radius: 3px;
		margin: 8px auto;
		background: #ccc;
	}
	.list .drag-handle {
		width: 50px;
		height: 5px;
		background: #ccc;
		border-radius: 3px;
		margin: 8px auto;
		touch-action: none;
	}

	/* 테이블 글자 깨짐 방지 */
	.table-wrapper {
		overflow-y: auto;
		height: calc(100% - 24px);
	}
	.table-wrapper table {
		width: 100% !important;
		table-layout: fixed; /* 셀 고정 */
		word-break: break-word; /* 줄바꿈 */
	}
	.table-wrapper td {
		white-space: normal !important; /* 세로 글자 방지 */
		text-align: center;
		font-size: 14px;
	}
}