@charset "utf-8";
/*
 * 駐車場ページ ─ 地図（全タブ共通）
 *
 * 対応する PHP：partials/parking-access.php / 動作：js/parking.js
 * セレクタは必ず .pa- で始めること。
 */

.pa-access {
	margin-top: 20px;
}

.pa-access__note {
	margin: 0 0 20px;
	color: #333;
	font-size: 15px;
	line-height: 1.8;
	text-align: center;
}

.pa-sp-only {
	display: none;
}

.pa-map {
	position: relative;
	z-index: 0; /* Leaflet の内部 z-index が固定ヘッダーより前に出ないようにする */
	width: 100%;
	height: 450px;
	background: #e8e4dc;
}

/* スマホで1本指で地図をなぞったときの案内 */
.pa-map__hint {
	position: absolute;
	inset: 0;
	z-index: 1000; /* Leaflet のピン・ボタンより前 */
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.pa-map__hint.is-visible {
	opacity: 1;
}

.pa-map__status {
	margin: 8px 0 0;
	color: #666;
	font-size: 13px;
	text-align: center;
}

.pa-map__status:empty {
	display: none;
}

/* ==============================
   現在地
   ============================== */

.pa-locate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 0;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
	color: #0b53a4;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
}

.pa-locate:hover {
	background: #f4f4f4;
}

.pa-locate:focus-visible {
	outline: 3px solid #0b53a4;
	outline-offset: 2px;
}

.pa-locate[aria-busy="true"] {
	opacity: 0.6;
	cursor: progress;
}

.pa-locate__icon {
	position: relative;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
}

.pa-locate__icon::after {
	content: "";
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: currentColor;
}

/* 全体表示（四隅のカギ括弧） */
.pa-fit__icon {
	width: 12px;
	height: 12px;
	background:
		linear-gradient(currentColor, currentColor) top left / 5px 2px,
		linear-gradient(currentColor, currentColor) top left / 2px 5px,
		linear-gradient(currentColor, currentColor) top right / 5px 2px,
		linear-gradient(currentColor, currentColor) top right / 2px 5px,
		linear-gradient(currentColor, currentColor) bottom left / 5px 2px,
		linear-gradient(currentColor, currentColor) bottom left / 2px 5px,
		linear-gradient(currentColor, currentColor) bottom right / 5px 2px,
		linear-gradient(currentColor, currentColor) bottom right / 2px 5px;
	background-repeat: no-repeat;
}

/* 現在地の青い点（Leaflet の divIcon） */
.pa-here {
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #1a73e8;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.4);
	box-sizing: border-box;
}

/* ==============================
   スマートフォン
   ============================== */

@media (max-width: 767px) {

	.pa-access {
		margin-top: 14px;
	}

	.pa-access__note {
		margin-bottom: 14px;
		font-size: 14px;
	}

	.pa-sp-only {
		display: inline;
	}

	/* 地図は画面の横幅いっぱいに広げる（.main_container の左右余白 20px を打ち消す） */
	.pa-map {
		width: auto;
		height: 400px;
		margin: 0 -20px;
	}
}
