/**
 * Branch map + list — shortcode [branch_map]
 */

 .branch-locator-wrap {
	--branch-map-h: 480px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0 0 60px;
}

.branch-locator-map-col,
.branch-locator-list-col {
	min-width: 0;
}

.branch-locator-list-col {
	display: flex;
	flex-direction: column;
	height: var(--branch-map-h);
}

.branch-locator-map {
	width: 100%;
	height: var(--branch-map-h);
	background: #f4f5f7;
	border: 1px solid #e3e3e3;
	border-radius: 0;
	position: relative;
	overflow: hidden;
}

.branch-locator-map.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a8a8a;
	font-size: 14px;
	text-align: center;
	padding: 20px;
}

.branch-locator-map.is-placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
	background-size: 40px 40px;
}

.branch-locator-map.is-placeholder span {
	position: relative;
	z-index: 1;
	background: #fff;
	padding: 12px 18px;
	border-radius: 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	border: 1px solid #e3e3e3;
}

/* Filter — Daiso-style */
.branch-locator-filter {
	padding: 0 0 14px;
	border-bottom: 1px solid #eee;
	margin-bottom: 12px;
}

.branch-locator-filter-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.branch-locator-select {
	flex: 1 1 0;
	min-width: 0;
	padding: 10px 30px 10px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 0;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23606060' d='M0 0l5 6 5-6z'/></svg>") no-repeat right 12px center;
	font-size: 14px;
	color: #222;
	cursor: pointer;
	height: 42px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.branch-locator-select:focus {
	outline: none;
	border-color: #111111;
	box-shadow: 0 0 0 2px rgba(0,0,0,0.10);
}

.branch-locator-select:disabled {
	background-color: #f6f6f6;
	color: #a8a8a8;
	cursor: not-allowed;
}

.branch-locator-search-btn {
	flex: 0 0 auto;
	padding: 0 22px;
	height: 42px;
	background: #111111;
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
	letter-spacing: 0.02em;
}

.branch-locator-search-btn:hover,
.branch-locator-search-btn:focus {
	background: #000000;
	outline: none;
}

.branch-locator-count {
	margin-top: 10px;
	font-size: 12px;
	color: #8a8a8a;
	text-align: right;
}

/* Card list */
.branch-locator-cards {
	list-style: none;
	margin: 0;
	padding: 0 4px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.branch-locator-cards::-webkit-scrollbar { width: 8px; }
.branch-locator-cards::-webkit-scrollbar-track { background: transparent; }
.branch-locator-cards::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 0; }

.branch-locator-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	border: none;
	border-bottom: 1px solid #ececec;
	margin-bottom: 0;
	cursor: pointer;
	background: #fff;
	outline: none;
}

.branch-locator-card:last-child {
	border-bottom: none;
}

.branch-locator-card:focus,
.branch-locator-card:focus-visible {
	outline: none;
}

.branch-locator-card-thumb {
	flex: 0 0 124px;
	width: 124px;
	min-height: 93px;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	background: #f4f5f7 center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	appearance: none;
	color: #bdbdbd;
	font-size: 11px;
	align-self: flex-start;
}

.branch-locator-card-thumb.is-clickable {
	cursor: zoom-in;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.branch-locator-card-thumb.is-clickable:hover,
.branch-locator-card-thumb.is-clickable:focus {
	transform: translateY(-1px);
	box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
	outline: none;
}

.branch-locator-card-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.branch-locator-card-region {
	display: inline-block;
	font-size: 11px;
	color: #111111;
	background: rgba(0,0,0,0.05);
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.branch-locator-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #222;
	margin: 0 0 4px;
	line-height: 1.3;
}

.branch-locator-card-address {
	font-size: 13px;
	color: #606060;
	margin: 0 0 4px;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.branch-locator-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
	flex-wrap: wrap;
}

.branch-locator-card-phone {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #8a8a8a;
	margin: 0;
	min-width: 0;
}

.branch-locator-card-phone::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 15.5c-1.25 0-2.45-.2-3.57-.57a1 1 0 0 0-1.02.24l-2.2 2.2a15.15 15.15 0 0 1-6.59-6.59l2.2-2.2a1 1 0 0 0 .24-1.02A11.36 11.36 0 0 1 8.5 4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1 17 17 0 0 0 17 17 1 1 0 0 0 1-1v-3.5a1 1 0 0 0-1-1z'/></svg>") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 15.5c-1.25 0-2.45-.2-3.57-.57a1 1 0 0 0-1.02.24l-2.2 2.2a15.15 15.15 0 0 1-6.59-6.59l2.2-2.2a1 1 0 0 0 .24-1.02A11.36 11.36 0 0 1 8.5 4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1 17 17 0 0 0 17 17 1 1 0 0 0 1-1v-3.5a1 1 0 0 0-1-1z'/></svg>") center/contain no-repeat;
}

.branch-locator-card-actions {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: auto;
}

.branch-locator-card-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.branch-locator-card-badge,
.branch-locator-card-upcoming {
	display: inline-block;
	font-size: 11px;
	color: #666666;
	background: rgba(230,126,34,0.14);
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.branch-locator-card-homepage {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	color: #111111;
	flex-shrink: 0;
	text-decoration: none;
	font-weight: 600;
}

.branch-locator-card-homepage:hover {
	text-decoration: underline;
}

.branch-locator-empty {
	text-align: center;
	padding: 40px 20px;
	color: #8a8a8a;
	font-size: 14px;
}

/* Naver InfoWindow override */
.mg-info-window {
	padding: 10px 14px;
	min-width: 280px;
	font-family: inherit;
}

.mg-info-window-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.mg-info-window-thumb {
	flex: 0 0 96px;
	width: 96px;
	height: 64px;
	border-radius: 0;
	background: #fff;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	align-self: flex-start;
	flex-shrink: 0;
}

.mg-info-window-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	object-fit: cover;
	object-position: center;
}

.mg-info-window-body {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 14px;
	align-content: start;
}

.mg-info-window-heading {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 4px;
}

.mg-info-window-title {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	margin: 0;
}

.mg-info-window-badges {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.mg-info-window-addr {
	grid-column: 1 / -1;
	font-size: 12px;
	color: #606060;
	margin: 0;
	line-height: 1.4;
}

.mg-info-window-badge,
.mg-info-upcoming {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	color: #fff;
	background: #777777;
	padding: 1px 6px;
	border-radius: 0;
	font-weight: 600;
	line-height: 1.4;
}

.mg-info-window-phone {
	grid-column: 1;
	font-size: 12px;
	color: #8a8a8a;
	margin: 4px 0 0;
	line-height: 1.4;
	white-space: nowrap;
}

.mg-info-window-link {
	grid-column: 2;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	align-self: end;
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.4;
	color: #00572F;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mg-info-window-link:hover,
.mg-info-window-link:focus {
	color: #00572F;
	opacity: 0.78;
	text-decoration: none;
	outline: none;
}

.branch-locator-gallery-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.branch-locator-gallery-modal.is-open {
	display: flex;
}

.branch-locator-gallery-figure {
	margin: 0;
	max-width: 90vw;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.branch-locator-gallery-image {
	display: block;
	max-width: 100%;
	max-height: 72vh;
	object-fit: contain;
}

.branch-locator-gallery-caption {
	color: #fff;
	font-size: 14px;
	padding: 14px 0 10px;
	text-align: center;
}

.branch-locator-gallery-strip {
	display: flex;
	gap: 8px;
	max-width: min(90vw, 920px);
	margin-top: 14px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.branch-locator-gallery-strip-item {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	opacity: 0.7;
}

.branch-locator-gallery-strip-item.is-active {
	border-color: #fff;
	opacity: 1;
}

.branch-locator-gallery-strip-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.branch-locator-gallery-close,
.branch-locator-gallery-prev,
.branch-locator-gallery-next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease;
}

.branch-locator-gallery-close:hover,
.branch-locator-gallery-prev:hover,
.branch-locator-gallery-next:hover,
.branch-locator-gallery-close:focus,
.branch-locator-gallery-prev:focus,
.branch-locator-gallery-next:focus {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

.branch-locator-gallery-close {
	top: 20px;
	right: 20px;
	font-size: 28px;
}

.branch-locator-gallery-prev {
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 32px;
}

.branch-locator-gallery-next {
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 32px;
}

.branch-locator-gallery-prev:disabled,
.branch-locator-gallery-next:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Mobile */
@media (max-width: 768px) {
	.branch-locator-wrap {
		--branch-map-h: 380px;
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 0 0 40px;
	}

	.branch-locator-list-col {
		height: auto;
	}

	.branch-locator-cards {
		max-height: none;
		flex: 0 0 auto;
	}

	.branch-locator-gallery-modal {
		padding: 20px;
	}

	.branch-locator-card {
		gap: 12px;
		padding: 14px 12px;
	}

	.branch-locator-card-thumb {
		flex-basis: 96px;
		width: 96px;
		min-height: 72px;
	}

	.mg-info-window {
		min-width: 220px;
	}

	.mg-info-window-thumb {
		flex: 0 0 76px;
		width: 76px;
		height: 64px;
		align-self: flex-start;
		overflow: hidden;
	}

	.branch-locator-gallery-image {
		max-height: 62vh;
	}

	.branch-locator-gallery-close,
	.branch-locator-gallery-prev,
	.branch-locator-gallery-next {
		width: 40px;
		height: 40px;
		font-size: 22px;
	}

	.branch-locator-gallery-prev {
		left: 10px;
	}

	.branch-locator-gallery-next {
		right: 10px;
	}

	.branch-locator-gallery-strip-item {
		width: 60px;
		height: 60px;
	}
}


/* 네이버 플레이스 링크 + 클릭 유도 아이콘 */
.branch-locator-card-homepage {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #111111;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.branch-locator-card-homepage:hover,
.branch-locator-card-homepage:focus {
	color: #000000;
	opacity: 0.72;
	text-decoration: none;
	outline: none;
}

.branch-locator-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.branch-locator-card-homepage:hover .branch-locator-link-icon,
.branch-locator-card-homepage:focus .branch-locator-link-icon {
	transform: translate(2px, -2px);
}


/* PC 화면에서 지도와 지점 목록을 화면 높이에 맞게 확장 */
@media (min-width: 1025px) {
	.branch-locator-wrap {
		--branch-map-h: clamp(620px, calc(100vh - 180px), 900px);
	}

	.branch-locator-map,
	.branch-locator-list-col {
		height: var(--branch-map-h);
	}
}

/*전체 보기*/
.branch-locator-filter-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 10px;
}

.branch-locator-filter-info .branch-locator-count {
	margin-top: 0;
}

.branch-locator-show-all {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #8a8a8a;
	cursor: pointer;
	transition: color 0.2s ease;
}

.branch-locator-show-all:hover,
.branch-locator-show-all:focus {
	color: #000000;
	background: transparent;
	outline: none;
}


@media (max-width: 768px) {
	.mg-info-window-body {
		column-gap: 8px;
	}

	.mg-info-window-link {
		font-size: 10px;
	}
}



/*목록 이미지 사이즈*/
.mg-info-window-row {
	display: flex !important;
	align-items: flex-start !important;
}

.mg-info-window-thumb {
	flex: 0 0 96px !important;
	width: 96px !important;
	height: 62px !important;
	margin: 0 !important;
	align-self: flex-start !important;
	overflow: hidden !important;
}

.mg-info-window-thumb-img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
}
}