/* 스토어맵 지도 화면 (PC·모바일 스킨 공용, 두 스킨에 같은 파일) */

.smap,
.smap-detail-layer,
.smap-toast {
	/* 사이트(위크서프) 헤더·왼쪽 메뉴의 남색에 맞춤. 초록은 지도 마커·묶음 표시에만 */
	--smap-ink: #1b2330;
	--smap-navy: #132747;
	--smap-text: #333a44;
	--smap-sub: #6b7380;
	--smap-line: #e2e5ea;
	--smap-line-strong: #c8ced8;
	--smap-soft: #f4f6f8;
	--smap-brand: #54b48f;
	--smap-accent: #132747;
	--smap-accent-soft: #eef1f6;
	--smap-radius: 6px;
	color: var(--smap-text);
	font-size: 14px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}
.smap *,
.smap-detail-layer * {
	box-sizing: border-box;
}
.smap button,
.smap-detail-layer button {
	font-family: inherit;
	cursor: pointer;
}
.smap-blind {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.smap {
	margin: 0 0 16px;
}
.smap-message {
	margin: 0 0 12px;
	line-height: 1.6;
}

/* ---------- 틀: 왼쪽 검색·목록, 오른쪽 지도 ---------- */
.smap-frame {
	position: relative;
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	height: var(--smap-h, 750px);
	border: 1px solid var(--smap-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: grid-template-columns .25s ease;
}
.smap-head {
	grid-column: 1;
	grid-row: 1;
	padding: 18px 18px 12px;
	border-right: 1px solid var(--smap-line);
	background: #fff;
	min-width: 0;
}
.smap-results {
	grid-column: 1;
	grid-row: 2;
	overflow-y: auto;
	border-right: 1px solid var(--smap-line);
	border-top: 1px solid var(--smap-line);
	min-width: 0;
	overscroll-behavior: contain;
	transition: opacity .15s;
}
.smap-results[aria-busy="true"] {
	opacity: .55;
}
.smap-map-wrap {
	grid-column: 2;
	grid-row: 1 / span 2;
	position: relative;
	min-height: 0;
	min-width: 0;
}
.smap-map {
	/* 네이버 지도가 이 칸에 position:relative 를 직접 넣으므로 높이를 위치로 잡지 말고 100% 로 준다 */
	width: 100%;
	height: 100%;
}

/* 목록 접기 */
.smap-frame.is-collapsed {
	grid-template-columns: 0 minmax(0, 1fr);
}
.smap-frame.is-collapsed .smap-head,
.smap-frame.is-collapsed .smap-results {
	visibility: hidden;
	border: 0;
}

/* ---------- 검색 머리 ---------- */
.smap-head-row {
	position: relative;
	margin-bottom: 12px;
	text-align: center;
}
.smap-title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--smap-ink);
}
.smap-admin-link {
	position: absolute;
	top: 50%;
	right: 0;
	font-size: 12px;
	color: var(--smap-sub);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
	transform: translateY(-50%);
}

/* 검색: 둥근 입력칸 안에 남색 돋보기 (예전 모양) */
.smap-search {
	position: relative;
	display: flex;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 0 0 1px #dbdbdb inset;
}
.smap-search:focus-within {
	box-shadow: 0 0 0 2px var(--smap-navy) inset;
}
.smap-search input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 44px 0 14px;
	border: 0;
	outline: 0;
	border-radius: 10px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: var(--smap-ink);
	-webkit-appearance: none;
	appearance: none;
}
.smap-search input::placeholder {
	color: #9aa1a7;
}
.smap-search input::-webkit-search-cancel-button {
	display: none;
}
.smap-search button {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--smap-navy);
	font-size: 22px;
	line-height: 40px;
}
.smap-search button i {
	font-weight: 900;
}

/* 지역 바로가기: 좌우 화살표 + 한 줄 (예전 모양). 휠·밀기로도 넘어간다 */
.smap-region-bar {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-top: 10px;
}
.smap-region-arrow {
	flex: none;
	width: 24px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: #9aa1a7;
	font-size: 18px;
	line-height: 28px;
}
.smap-region-arrow:hover {
	color: var(--smap-navy);
}
.smap-regions {
	display: flex;
	flex: 1;
	flex-wrap: nowrap;
	gap: 2px;
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.smap-regions::-webkit-scrollbar {
	display: none;
}
.smap-region {
	flex: none;
	padding: 5px 8px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: none;
	color: var(--smap-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}
.smap-region:hover {
	color: var(--smap-navy);
}
.smap-region.is-active {
	border-color: var(--smap-line-strong);
	background: var(--smap-accent-soft);
	color: var(--smap-navy);
}

/* 서비스 조건 */
.smap-filter {
	margin-top: 12px;
	border-top: 1px solid var(--smap-line);
}
.smap-filter-toggle {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 10px 0 8px;
	border: 0;
	background: none;
	color: var(--smap-ink);
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}
.smap-filter-count {
	margin-left: 6px;
	color: var(--smap-accent);
}
.smap-filter-toggle::after {
	content: '';
	width: 7px;
	height: 7px;
	margin: -3px 2px 0 auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}
.smap-filter-toggle[aria-expanded="true"]::after {
	margin-top: 3px;
	transform: rotate(-135deg);
}
.smap-filter-panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px 12px;
	padding: 2px 0 6px;
}
.smap-filter-panel[hidden] {
	display: none;
}
.smap-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 13px;
	color: var(--smap-text);
	cursor: pointer;
	user-select: none;
}
.smap-check input {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	display: grid;
	place-content: center;
	width: 15px;
	height: 15px;
	margin: 0;
	border: 1.5px solid #9aa2a8;
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
}
.smap-check input:checked {
	border-color: var(--smap-accent);
	background: var(--smap-accent);
}
.smap-check input:checked::after {
	content: '';
	width: 7px;
	height: 4px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(0, -1px) rotate(-45deg);
}
.smap-check input:focus-visible {
	outline: 2px solid var(--smap-accent);
	outline-offset: 2px;
}

.smap-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 20px;
	margin-top: 8px;
	font-size: 13px;
	color: var(--smap-sub);
}
.smap-status strong {
	color: var(--smap-ink);
}
.smap-reset {
	padding: 0;
	border: 0;
	background: none;
	color: var(--smap-accent);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.smap-reset[hidden] {
	display: none;
}

/* ---------- 목록 ---------- */
.smap-loading {
	margin: 0;
	padding: 24px 18px;
	color: var(--smap-sub);
	font-size: 13px;
}
.smap-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.smap-item {
	border-bottom: 1px solid var(--smap-line);
	background: #fff;
	transition: background .15s;
}
.smap-item:hover {
	background: var(--smap-soft);
}
.smap-item.is-active {
	background: var(--smap-accent-soft);
}
.smap-item-main {
	display: flex;
	gap: 12px;
	width: 100%;
	padding: 14px 18px 6px;
	border: 0;
	background: none;
	color: inherit;
	text-align: left;
}
.smap-item-main:focus-visible {
	outline: 2px solid var(--smap-accent);
	outline-offset: -2px;
}
.smap-thumb {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border: 1px solid var(--smap-line);
	border-radius: 4px;
	background: var(--smap-soft);
	overflow: hidden;
}
.smap-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.smap-thumb-empty {
	font-size: 11px;
	color: #9aa1a7;
}
.smap-item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding-top: 1px;
}
.smap-item-title {
	overflow: hidden;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--smap-ink);
	white-space: nowrap;
	text-overflow: ellipsis;
}
.smap-item-line {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.45;
	color: var(--smap-sub);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.smap-item-dist {
	margin-right: 6px;
	color: var(--smap-navy);
	font-weight: 800;
}
.smap-item-phone {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--smap-ink);
}
.smap-item-services {
	overflow: hidden;
	margin-top: 1px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--smap-sub);
	white-space: nowrap;
	text-overflow: ellipsis;
}
/* 목록의 서비스: 아이콘 줄 (마우스를 올리면 이름) */
.smap-item-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-top: 4px;
	color: var(--smap-navy);
	font-size: 13px;
}
.smap-item-icons em {
	color: var(--smap-sub);
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
}
.smap-thumb-empty i {
	color: #c3c9d2;
	font-size: 22px;
}
.smap-item-actions {
	display: flex;
	gap: 6px;
	padding: 0 18px 12px 106px;
}
.smap-item-actions button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 9px;
	border: 1px solid var(--smap-line);
	border-radius: 4px;
	background: #fff;
	color: var(--smap-sub);
	font-size: 12px;
}
.smap-item-actions button i {
	color: var(--smap-navy);
	font-size: 11px;
}
.smap-item-actions button:hover {
	border-color: var(--smap-navy);
	color: var(--smap-navy);
}
.smap-empty {
	padding: 40px 18px;
	color: var(--smap-sub);
	text-align: center;
}
.smap-empty p {
	margin: 0 0 12px;
}
.smap-pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 14px 8px 18px;
}
.smap-page {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: none;
	color: var(--smap-sub);
	font-size: 13px;
}
.smap-page:hover {
	border-color: var(--smap-line);
}
.smap-page[aria-current="page"] {
	border-color: var(--smap-ink);
	color: var(--smap-ink);
	font-weight: 800;
}

/* ---------- 지도 위 버튼·표시 ---------- */
.smap-map-btn {
	position: absolute;
	z-index: 10;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--smap-line-strong);
	border-radius: 4px;
	background: #fff;
	color: var(--smap-ink);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.smap-map-btn:hover {
	border-color: var(--smap-ink);
}
.smap-map-btn[aria-busy="true"] {
	color: var(--smap-sub);
}
/* 목록 접기: 목록 오른쪽 가장자리에 붙은 작은 탭 */
.smap-side-toggle {
	top: 50%;
	left: 0;
	width: 22px;
	height: 56px;
	padding: 0;
	border-left: 0;
	border-radius: 0 4px 4px 0;
	font-size: 0;
	color: transparent;
	transform: translateY(-50%);
	box-shadow: 1px 1px 3px rgba(0, 0, 0, .1);
}
.smap-side-toggle::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-left: 2px solid var(--smap-navy);
	border-bottom: 2px solid var(--smap-navy);
	transform: translate(-30%, -50%) rotate(45deg);
}
.smap-frame.is-collapsed .smap-side-toggle::before {
	transform: translate(-70%, -50%) rotate(-135deg);
}
/* 오른쪽 아래는 사이트의 맨위로 버튼과 겹쳐서 왼쪽 위에 둔다 */
.smap-locate {
	top: 12px;
	left: 12px;
}
.smap-cluster {
	width: 40px;
	height: 40px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--smap-brand);
	box-shadow: 0 0 0 2px var(--smap-brand);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 34px;
	text-align: center;
	cursor: pointer;
}
.smap-cluster.s2 { width: 44px; height: 44px; line-height: 38px; }
.smap-cluster.s3 { width: 48px; height: 48px; line-height: 42px; font-size: 13px; }
.smap-cluster.s4 { width: 52px; height: 52px; line-height: 46px; font-size: 13px; }
.smap-cluster.s5 { width: 56px; height: 56px; line-height: 50px; font-size: 14px; }
.smap-me {
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--smap-ink);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
}

/* ---------- 마커 말풍선 (예전처럼 남색 머리줄 + 굵은 전화번호, 아래 꼬리) ---------- */
.smap-tip {
	position: relative;
	width: 260px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(19, 39, 71, .22);
	color: var(--smap-text);
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
	cursor: pointer;
}
.smap-tip::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -8px;
	margin-left: -8px;
	border-width: 8px 8px 0;
	border-style: solid;
	border-color: #fff transparent transparent;
}
.smap-tip-head {
	overflow: hidden;
	padding: 10px 14px;
	border-radius: 8px 8px 0 0;
	background: var(--smap-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.smap-tip-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 14px 8px;
}
.smap-tip-phone {
	font-size: 16px;
	font-weight: 800;
	color: var(--smap-ink);
}
.smap-tip-addr {
	color: var(--smap-sub);
	font-size: 12px;
}
.smap-tip-hours {
	margin-top: 2px;
	color: var(--smap-ink);
	font-size: 12px;
	font-weight: 700;
}
.smap-tip-hours i {
	margin-right: 4px;
	color: var(--smap-sub);
}
.smap-tip-services {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3px 10px;
	margin-top: 6px;
	padding-top: 7px;
	border-top: 1px dashed var(--smap-line-strong);
	font-size: 11px;
	color: var(--smap-text);
}
.smap-tip-services i {
	margin-right: 3px;
	color: var(--smap-navy);
}
.smap-tip-foot {
	padding: 8px 0 10px;
	border-top: 1px solid var(--smap-line);
	color: var(--smap-navy);
	font-size: 12px;
	font-weight: 800;
}
.smap-tip-foot i {
	margin-left: 4px;
}
.smap-tip:hover .smap-tip-foot {
	background: var(--smap-accent-soft);
	border-radius: 0 0 8px 8px;
}

/* ---------- 업체 상세 (예전처럼 남색 머리줄의 카드. PC 는 가운데, 휴대폰은 전체 화면) ---------- */
.smap-detail-layer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
}
.smap-detail-layer[hidden] {
	display: none;
}
.smap-detail-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(10, 20, 36, .45);
}
.smap-detail-box {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 460px;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 40px);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(10, 20, 36, .35);
	overflow-y: auto;
	overscroll-behavior: contain;
	outline: 0;
	transform: translate(-50%, -50%);
}
.smap-detail {
	display: flex;
	flex-direction: column;
}
.smap-detail-head {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--smap-navy);
	color: #fff;
}
.smap-detail-title {
	flex: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #fff;
	white-space: nowrap;
	text-overflow: ellipsis;
}
/* 닫기는 제목 앞(왼쪽)에 */
.smap-detail-close {
	position: relative;
	flex: none;
	height: 30px;
	padding: 0 10px 0 22px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 13px;
}
.smap-detail-close::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 10px;
	width: 6px;
	height: 6px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}
.smap-detail-close:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .1);
}

/* 사진: 큰 사진 + 아래 작은 사진 줄 */
.smap-gallery {
	position: relative;
	background: #eef0f3;
}
.smap-gallery-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	outline: 0;
}
.smap-gallery-track::-webkit-scrollbar {
	display: none;
}
.smap-gallery-track img {
	display: block;
	flex: 0 0 100%;
	width: 100%;
	height: 290px;
	object-fit: cover;
	scroll-snap-align: start;
}
.smap-gallery-nav {
	position: absolute;
	top: 50%;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--smap-navy);
	font-size: 16px;
	transform: translateY(-50%);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.smap-gallery-prev { left: 10px; }
.smap-gallery-next { right: 10px; }
.smap-gallery-count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 12px;
}
.smap-thumbs {
	display: flex;
	gap: 6px;
	padding: 8px 12px;
	overflow-x: auto;
	scrollbar-width: none;
	background: #fff;
}
.smap-thumbs::-webkit-scrollbar {
	display: none;
}
.smap-thumbs-btn {
	flex: none;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: #eef0f3;
	overflow: hidden;
	opacity: .6;
	transition: opacity .2s, border-color .2s;
}
.smap-thumbs-btn img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.smap-thumbs-btn:hover,
.smap-thumbs-btn.is-active {
	opacity: 1;
}
.smap-thumbs-btn.is-active {
	border-color: var(--smap-navy);
}

/* 빠른 단추: 전화 · 주소 복사 · 공유 */
.smap-quick {
	display: flex;
	border-top: 1px solid var(--smap-line);
	border-bottom: 1px solid var(--smap-line);
}
.smap-quick-btn {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 64px;
	padding: 10px 4px;
	border: 0;
	border-left: 1px solid var(--smap-line);
	background: #fff;
	color: var(--smap-ink);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.smap-quick-btn:first-child {
	border-left: 0;
}
.smap-quick-btn i {
	color: var(--smap-navy);
	font-size: 18px;
}
.smap-quick-btn:hover {
	background: var(--smap-accent-soft);
	color: var(--smap-ink);
	text-decoration: none;
}

/* 주소·전화·영업시간: 아이콘 + 글 */
.smap-facts {
	margin: 0;
	padding: 6px 18px;
	list-style: none;
}
.smap-facts li {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dotted var(--smap-line-strong);
	line-height: 1.55;
}
.smap-facts li:last-child {
	border-bottom: 0;
}
.smap-facts li > i {
	flex: none;
	width: 18px;
	margin-top: 3px;
	color: var(--smap-navy);
	font-size: 15px;
	text-align: center;
}
.smap-facts li > div {
	flex: 1;
	min-width: 0;
	color: var(--smap-text);
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.smap-facts a {
	color: var(--smap-ink);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
}
.smap-hours {
	display: block;
}
.smap-hours em {
	display: inline-block;
	min-width: 34px;
	color: var(--smap-sub);
	font-style: normal;
	font-weight: 700;
}

/* 매장 서비스: 아이콘 위, 이름 아래 격자 */
.smap-section-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 800;
	color: var(--smap-ink);
}
.smap-amenities {
	padding: 14px 18px 6px;
	border-top: 8px solid var(--smap-soft);
}
.smap-amenities ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px 6px;
	margin: 0;
	padding: 0 0 8px;
	list-style: none;
}
.smap-amenities li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	font-size: 12px;
	line-height: 1.3;
	color: var(--smap-text);
	word-break: keep-all;
}
.smap-amenities li i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--smap-line);
	border-radius: 50%;
	background: #fff;
	color: var(--smap-navy);
	font-size: 17px;
}
.smap-about {
	padding: 14px 18px 20px;
	border-top: 8px solid var(--smap-soft);
}
.smap-about p {
	margin: 0;
	color: var(--smap-text);
	line-height: 1.7;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.smap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--smap-line-strong);
	border-radius: 4px;
	background: #fff;
	color: var(--smap-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.smap-btn:hover {
	border-color: var(--smap-ink);
	color: var(--smap-ink);
	text-decoration: none;
}

.smap-nokey {
	padding: 40px 16px;
	border: 1px solid var(--smap-line);
	border-radius: 8px;
	color: var(--smap-sub);
	text-align: center;
	line-height: 1.7;
}
.smap-nokey p {
	margin: 0;
}

.smap-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 10001;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border-radius: 4px;
	background: var(--smap-navy, #132747);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity .2s, transform .2s;
}
.smap-toast.is-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

html.smap-lock,
html.smap-lock body {
	overflow: hidden;
}

@media (min-width: 768px) {
	/* PC 에서는 전화 단추 대신 번호만 (휴대폰에서만 전화 단추) */
	.smap-quick-btn[href^="tel:"] {
		display: none;
	}
}

/* ---------- 좁은 화면(휴대폰): 검색 → 지도 → 목록 순서로 쌓기 ---------- */
@media (max-width: 767px) {
	.smap-frame {
		display: flex;
		flex-direction: column;
		height: auto;
		border: 0;
		border-radius: 0;
		overflow: visible;
	}
	.smap-head {
		order: 1;
		padding: 14px 16px 10px;
		border-right: 0;
	}
	.smap-map-wrap {
		order: 2;
		height: var(--smap-mh, 420px);
	}
	.smap-results {
		order: 3;
		overflow: visible;
		border-right: 0;
	}
	.smap-side-toggle {
		display: none;
	}
	.smap-title {
		font-size: 17px;
	}
	.smap-search input {
		font-size: 16px; /* iOS 에서 확대되지 않게 */
	}
	.smap-regions {
		-webkit-overflow-scrolling: touch;
	}
	.smap-region-arrow {
		display: none;
	}
	.smap-region {
		padding: 8px 10px;
		font-size: 15px;
	}
	.smap-check {
		padding: 7px 0;
		font-size: 14px;
	}
	.smap-check input {
		width: 17px;
		height: 17px;
	}
	.smap-item-main {
		padding: 14px 16px 6px;
	}
	.smap-item-actions {
		gap: 8px;
		padding: 2px 16px 12px 104px;
	}
	.smap-item-actions button {
		height: 30px;
		font-size: 13px;
	}
	/* 휴대폰: 상세는 전체 화면 */
	.smap-detail-box {
		top: 0;
		left: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}
	.smap-detail-head {
		padding: 10px 14px;
	}
	.smap-detail-title {
		font-size: 17px;
	}
	.smap-gallery-track img {
		height: 250px;
	}
	.smap-gallery-nav {
		display: none;
	}
	.smap-facts {
		padding: 4px 16px;
	}
	.smap-amenities,
	.smap-about {
		padding-left: 16px;
		padding-right: 16px;
	}
	.smap-about {
		padding-bottom: calc(20px + env(safe-area-inset-bottom));
	}
}

/* ---------- 다른 페이지에 iframe 으로 넣었을 때 (예: 해변 파도차트의 '주변 서핑샵' 탭) ----------
   iframe 높이가 고정이고 스크롤이 꺼져 있으므로 그 높이(100vh) 안에 다 들어가게 그린다.
   부모 페이지가 오른쪽 위에 자기 닫기(X) 단추를 얹으므로 그 자리는 비워 둔다. */
html.smap-embed,
html.smap-embed body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: #fff;
}
html.smap-embed .smap {
	margin: 0;
}
html.smap-embed .smap-message {
	display: none;
}
html.smap-embed .smap-frame {
	height: 100vh;
}

@media (max-width: 767px) {
	/* 휴대폰 iframe: 검색칸 + 지도 + 지도 아래쪽에 옆으로 넘기는 업체 카드 */
	html.smap-embed .smap-frame {
		position: relative;
		display: flex;
		flex-direction: column;
		height: 100vh;
		overflow: hidden;
	}
	html.smap-embed .smap-head {
		padding: 10px 52px 10px 12px;
		border-bottom: 1px solid var(--smap-line);
	}
	html.smap-embed .smap-head-row,
	html.smap-embed .smap-region-bar,
	html.smap-embed .smap-filter,
	html.smap-embed .smap-status {
		display: none;
	}
	html.smap-embed .smap-map-wrap {
		flex: 1 1 auto;
		height: auto;
		min-height: 0;
	}
	html.smap-embed .smap-results {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 12px;
		z-index: 20;
		overflow: visible;
		border: 0;
		background: none;
	}
	html.smap-embed .smap-loading {
		margin: 0 12px;
		padding: 12px 14px;
		border-radius: 8px;
		background: #fff;
	}
	html.smap-embed .smap-list {
		display: flex;
		gap: 8px;
		padding: 0 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	html.smap-embed .smap-list::-webkit-scrollbar {
		display: none;
	}
	html.smap-embed .smap-item {
		flex: 0 0 calc(100% - 36px);
		border: 1px solid var(--smap-line-strong);
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
		scroll-snap-align: center;
		overflow: hidden;
	}
	html.smap-embed .smap-item:only-child {
		flex-basis: 100%;
	}
	html.smap-embed .smap-item.is-active {
		border-color: var(--smap-navy);
	}
	html.smap-embed .smap-item-main {
		padding: 10px 12px;
	}
	html.smap-embed .smap-thumb {
		width: 68px;
		height: 68px;
	}
	html.smap-embed .smap-item-line {
		-webkit-line-clamp: 1;
	}
	html.smap-embed .smap-item-actions,
	html.smap-embed .smap-pages {
		display: none;
	}
	html.smap-embed .smap-empty {
		flex: 0 0 100%;
		padding: 14px;
		border: 1px solid var(--smap-line-strong);
		border-radius: 8px;
		background: #fff;
	}
	html.smap-embed .smap-empty p {
		margin-bottom: 8px;
	}
	html.smap-embed .smap-gallery-track img {
		height: 170px;
	}
	html.smap-embed .smap-detail-head {
		padding: 10px 14px;
	}
	html.smap-embed .smap-detail-title {
		font-size: 17px;
	}
}

/* ---------- 부드러운 전환 ---------- */
.smap-detail-backdrop {
	opacity: 0;
	transition: opacity .25s ease;
}
.smap-detail-box {
	opacity: 0;
	transform: translate(-50%, -46%) scale(.98);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.smap-detail-layer.is-open .smap-detail-backdrop {
	opacity: 1;
}
.smap-detail-layer.is-open .smap-detail-box {
	opacity: 1;
	transform: translate(-50%, -50%);
}
.smap-tip {
	animation: smap-tip-in .2s ease-out;
}
@keyframes smap-tip-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}
.smap-item {
	transition: background .2s ease, border-color .2s ease;
}
@media (max-width: 767px) {
	.smap-detail-box {
		transform: translateY(40px);
	}
	.smap-detail-layer.is-open .smap-detail-box {
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.smap-frame,
	.smap-detail-backdrop,
	.smap-detail-box,
	.smap-item {
		transition: none;
	}
	.smap-tip {
		animation: none;
	}
	.smap-regions {
		scroll-behavior: auto;
	}
}
