/* Hospital archive + skin map finder styles */
.wsag-hosp-archive {
	max-width: 1240px;
	margin: 2rem auto;
	padding: 0 1rem;
	color: #1f2933;
}

.wsag-hosp-archive-header {
	margin-bottom: 1.25rem;
}

.wsag-hosp-archive-header h1 {
	margin: 0 0 0.6rem;
	font-size: 2rem;
	line-height: 1.2;
	letter-spacing: 0;
}

.wsag-archive-sub {
	margin: 0 0 0.8rem;
	color: #5b6673;
	font-size: 1rem;
}

.wsag-test-label {
	margin: 0 0 0.5rem;
	color: #0f766e;
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.wsag-disclaimer {
	font-size: 0.85rem;
	color: #5b6673;
	background: #f7f8f8;
	padding: 0.7rem 0.9rem;
	border-left: 3px solid #8aa6a3;
	border-radius: 6px;
}

.wsag-test-notice {
	margin: 0.75rem 0 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid #d7e5e2;
	border-radius: 6px;
	background: #f3faf8;
	color: #28534d;
	font-size: 0.88rem;
}

.wsag-region-index {
	margin: 1.25rem 0;
}

.wsag-region-index h2 {
	margin: 0 0 0.7rem;
	font-size: 1.05rem;
}

.wsag-region-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsag-region-list a {
	display: inline-flex;
	gap: 0.3rem;
	align-items: center;
	padding: 0.5rem 0.7rem;
	border: 1px solid #d9e0e4;
	border-radius: 6px;
	color: #25313d;
	text-decoration: none;
	background: #fff;
	font-size: 0.88rem;
}

.wsag-count {
	color: #697783;
	font-size: 0.78rem;
}

.wsag-finder-panel {
	margin: 1.25rem 0;
	padding: 1rem;
	border: 1px solid #dde4e8;
	border-radius: 8px;
	background: #fff;
}

.wsag-product-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.9rem;
}

.wsag-product-tabs button,
.wsag-filter-bar select,
.wsag-filter-bar input,
.wsag-map-header button,
.wsag-map-focus {
	font: inherit;
}

.wsag-product-tabs button {
	min-height: 38px;
	padding: 0.5rem 0.85rem;
	border: 1px solid #cfd8de;
	border-radius: 6px;
	background: #fff;
	color: #24313c;
	cursor: pointer;
	font-weight: 700;
}

.wsag-product-tabs button.is-active {
	border-color: #0f766e;
	background: #0f766e;
	color: #fff;
}

.wsag-filter-bar {
	display: grid;
	grid-template-columns: minmax(140px, 0.8fr) minmax(140px, 0.8fr) minmax(220px, 1.4fr);
	gap: 0.75rem;
}

.wsag-filter-bar label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.wsag-filter-bar span {
	color: #52606d;
	font-size: 0.82rem;
	font-weight: 700;
}

.wsag-filter-bar select,
.wsag-filter-bar input {
	width: 100%;
	min-height: 42px;
	padding: 0.55rem 0.7rem;
	border: 1px solid #cfd8de;
	border-radius: 6px;
	background: #fff;
	color: #1f2933;
}

.wsag-map-section,
.wsag-table-section {
	margin-top: 1rem;
}

.wsag-results-summary {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin: 0 0 0.75rem;
	color: #52606d;
}

.wsag-results-summary strong {
	color: #0f766e;
	font-size: 1.2rem;
}

.wsag-no-results {
	padding: 1rem;
	border: 1px solid #dde4e8;
	border-radius: 8px;
	background: #fff;
	color: #52606d;
}

.wsag-no-results p {
	margin: 0;
}

.wsag-no-results p + p {
	margin-top: 0.35rem;
}

.wsag-clinic-table-wrap {
	border: 1px solid #dde4e8;
	border-radius: 8px;
	background: #fff;
	overflow-x: auto;
}

.wsag-clinic-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 760px;
}

.wsag-clinic-table th,
.wsag-clinic-table td {
	padding: 0.75rem 0.85rem;
	border-bottom: 1px solid #edf1f3;
	text-align: left;
	vertical-align: middle;
	font-size: 0.9rem;
}

.wsag-clinic-table th {
	background: #f7faf9;
	color: #42505c;
	font-weight: 800;
	white-space: nowrap;
}

.wsag-clinic-table tbody tr:hover {
	background: #f8fbfa;
}

.wsag-clinic-table tr.is-hidden {
	display: none;
}

.wsag-clinic-table tr.is-focused {
	background: #edf8f6;
	box-shadow: inset 3px 0 0 #0f766e;
}

.wsag-table-region {
	width: 84px;
	color: #0f766e;
	font-weight: 800;
	white-space: nowrap;
}

.wsag-table-name {
	width: 210px;
	font-weight: 800;
}

.wsag-table-name a {
	color: #1f2933;
	text-decoration: none;
}

.wsag-table-name a:hover {
	color: #0f766e;
}

.wsag-table-tel {
	width: 140px;
	white-space: nowrap;
}

.wsag-table-tel a {
	color: #42505c;
	text-decoration: none;
}

.wsag-table-addr {
	min-width: 260px;
	color: #52606d;
	line-height: 1.45;
}

.wsag-table-map {
	width: 58px;
	text-align: center;
}

.wsag-table-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-top: 1rem;
}

.wsag-table-pagination button {
	min-width: 36px;
	min-height: 36px;
	padding: 0.35rem 0.65rem;
	border: 1px solid #cfd8de;
	border-radius: 6px;
	background: #fff;
	color: #42505c;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}

.wsag-table-pagination button.is-active {
	border-color: #0f766e;
	background: #0f766e;
	color: #fff;
}

.wsag-table-pagination button:disabled {
	opacity: 0.45;
	cursor: default;
}

.wsag-hosp-grid {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0.85rem;
}

.wsag-hosp-card {
	background: #fff;
	border: 1px solid #dde4e8;
	border-radius: 8px;
	padding: 1rem;
	transition: transform 0.15s, box-shadow 0.15s;
}

.wsag-hosp-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.wsag-hosp-card.is-hidden {
	display: none;
}

.wsag-hosp-card.is-focused {
	border-color: #0f766e;
	box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
}

.wsag-hosp-card h2 {
	font-size: 1.1rem;
	margin: 0 0 0.4rem;
	line-height: 1.3;
}

.wsag-hosp-card h2 a { color: #1d2327; text-decoration: none; }
.wsag-hosp-card h2 a:hover { color: #0f766e; }

.wsag-card-topline {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.55rem;
}

.wsag-card-region,
.wsag-card-status {
	font-size: 0.75rem;
	line-height: 1.4;
}

.wsag-card-region {
	color: #0f766e;
	font-weight: 800;
}

.wsag-card-status {
	color: #697783;
}

.wsag-treatment-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.5rem 0;
}

.wsag-treatment-tag {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0.2rem 0.48rem;
	border-radius: 999px;
	background: #eef5f3;
	color: #28534d;
	font-size: 0.76rem;
	font-weight: 800;
}

.wsag-treatment-tag.is-rituo {
	background: #eef6ff;
	color: #1d4f7a;
}

.wsag-treatment-tag.is-rebonne {
	background: #f3f7ed;
	color: #466323;
}

.wsag-treatment-tag.is-celldiem {
	background: #fff4e8;
	color: #7a4a16;
}

.wsag-badge {
	display: inline-block;
	font-size: 0.7rem;
	background: #0a66c2;
	color: #fff;
	padding: 0.15rem 0.45rem;
	border-radius: 10px;
	vertical-align: middle;
	margin-left: 0.3rem;
}
.wsag-hosp-region { color: #0f766e; font-size: 0.85rem; margin: 0.2rem 0; }
.wsag-hosp-addr   { color: #555; font-size: 0.9rem; margin: 0.3rem 0; line-height: 1.4; }
.wsag-hosp-tel    { margin: 0.3rem 0; font-size: 0.9rem; }
.wsag-hosp-tel a  { color: #444; text-decoration: none; }

.wsag-card-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.8rem;
}

.wsag-map-focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	padding: 0;
	border: 1px solid #0f766e;
	border-radius: 6px;
	background: #fff;
	color: #0f766e;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	font-weight: 800;
}

.wsag-map-focus:hover {
	background: #0f766e;
	color: #fff;
}

.wsag-detail-link {
	display: inline-block;
	color: #0f766e;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.wsag-map-panel {
	border: 1px solid #dde4e8;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.wsag-map-header {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: center;
	padding: 0.85rem 0.9rem;
	border-bottom: 1px solid #dde4e8;
}

.wsag-map-header strong,
.wsag-map-header span {
	display: block;
}

.wsag-map-header strong {
	font-size: 0.98rem;
}

.wsag-map-header span {
	color: #697783;
	font-size: 0.78rem;
}

.wsag-map-header button {
	min-height: 32px;
	padding: 0.3rem 0.55rem;
	border: 1px solid #cfd8de;
	border-radius: 6px;
	background: #fff;
	color: #42505c;
	cursor: pointer;
	font-size: 0.82rem;
}

.wsag-map-canvas {
	position: relative;
	height: 560px;
	background: #eef4f3;
	overflow: hidden;
}

.wsag-kakao-map {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.wsag-map-canvas.is-kakao-map {
	background: #f4f7f8;
}

.wsag-map-canvas.is-fallback-map {
	background:
		linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 35%),
		linear-gradient(45deg, rgba(29, 79, 122, 0.08), transparent 35%),
		#eef4f3;
}

.wsag-map-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(82, 96, 109, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(82, 96, 109, 0.12) 1px, transparent 1px);
	background-size: 44px 44px;
}

.wsag-map-canvas.is-kakao-map .wsag-map-grid {
	display: none;
}

.wsag-map-pin {
	position: absolute;
	z-index: 2;
	width: 22px;
	height: 22px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #0f766e;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.wsag-map-pin::after {
	content: attr(data-label);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 7px);
	display: none;
	width: max-content;
	max-width: 180px;
	padding: 0.35rem 0.5rem;
	border-radius: 6px;
	background: #1f2933;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.3;
	transform: translateX(-50%);
}

.wsag-map-pin:hover::after,
.wsag-map-pin.is-focused::after {
	display: block;
}

.wsag-map-pin.is-hidden {
	display: none;
}

.wsag-map-pin.is-focused {
	background: #c05621;
	z-index: 3;
}

.wsag-map-empty {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 5;
	display: none;
	padding: 0.7rem 0.9rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	color: #42505c;
	transform: translate(-50%, -50%);
}

.wsag-map-empty.is-visible {
	display: block;
}

.wsag-map-status {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 12px;
	z-index: 6;
	padding: 0.6rem 0.75rem;
	border: 1px solid #d7e5e2;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.94);
	color: #28534d;
	font-size: 0.84rem;
	font-weight: 700;
}

.wsag-map-status.is-hidden {
	display: none;
}

.wsag-kakao-info {
	min-width: 150px;
	padding: 0.55rem 0.65rem;
	color: #1f2933;
	font-size: 0.82rem;
	line-height: 1.35;
}

.wsag-kakao-info strong,
.wsag-kakao-info span {
	display: block;
}

.wsag-kakao-info strong {
	margin-bottom: 0.2rem;
	font-size: 0.9rem;
}

.wsag-kakao-info span {
	color: #52606d;
}

.wsag-map-note {
	margin: 0;
	padding: 0.75rem 0.9rem;
	border-top: 1px solid #dde4e8;
	color: #5b6673;
	font-size: 0.82rem;
}

.navigation.pagination {
	margin-top: 1.2rem;
}

/* Single hospital extras */
.wsag-hosp-extra { margin-top: 1.5rem; padding: 1rem; background: #f9f9f9; border-radius: 6px; }
.wsag-map-links a { color: #0a66c2; margin-right: 0.6rem; }
.wsag-region-links { color: #666; font-size: 0.95rem; }
.wsag-region-links a { color: #0a66c2; text-decoration: none; }

/* Nearby clinic widget */
.wsag-nearby {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 1.2rem;
	margin: 1.5rem 0;
}
.wsag-nearby-status { margin: 0.5rem 0; font-size: 0.9rem; color: #666; }
.wsag-nearby-list { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.wsag-nearby-list li {
	padding: 0.6rem 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.wsag-nearby-list li:last-child { border-bottom: 0; }
.wsag-nearby-name { font-weight: 600; }
.wsag-nearby-dist { color: #888; font-size: 0.85rem; }
.wsag-nearby-btn {
	padding: 0.6rem 1rem;
	background: #0a66c2;
	color: #fff;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.95rem;
}
.wsag-nearby-btn:disabled { opacity: 0.5; cursor: wait; }

@media (max-width: 980px) {
	.wsag-filter-bar {
		grid-template-columns: 1fr;
	}

	.wsag-map-canvas {
		height: 360px;
	}
}

@media (max-width: 560px) {
	.wsag-hosp-archive {
		margin-top: 1rem;
	}

	.wsag-hosp-archive-header h1 {
		font-size: 1.55rem;
	}

	.wsag-product-tabs button {
		flex: 1 1 calc(50% - 0.5rem);
	}

	.wsag-clinic-table th,
	.wsag-clinic-table td {
		padding: 0.65rem;
		font-size: 0.84rem;
	}

	.wsag-map-focus {
		min-width: 54px;
	}
}
