/* Parking Locator – front end (Option A layout). Colors are variables so they are easy to change. */
.pl-app {
	--pl-primary: #214f4b;
	--pl-primary-dark: #163734;
	--pl-red: #c21b1b;
	--pl-text: #454545;
	--pl-muted: #6b7270;
	--pl-gold: #e8ad2f;
	--pl-gold-dark: #d29a20;
	--pl-blue: #6598cb;
	--pl-border: #d9dedd;
	--pl-soft: #f5f7f6;

	display: flex;
	height: var(--pl-height, 700px);
	border: 1px solid var(--pl-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	color: var(--pl-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	box-sizing: border-box;
}
.pl-app *, .pl-app *::before, .pl-app *::after { box-sizing: border-box; }
.pl-app p, .pl-app h3, .pl-app dl, .pl-app dd, .pl-app ul { margin: 0; padding: 0; }
.pl-app h3 { font-family: inherit; letter-spacing: normal; text-transform: none; }
.pl-app button {
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
	margin: 0;
	min-height: 0;
	width: auto;
	line-height: 1.2;
	cursor: pointer;
}
.pl-app button:focus-visible,
.pl-app a:focus-visible,
.pl-app .pl-input-wrap:focus-within {
	outline: 2px solid var(--pl-primary);
	outline-offset: 2px;
}

/* ---------- layout ---------- */
.pl-panel {
	flex: 0 0 400px;
	max-width: 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--pl-border);
	background: #fff;
}
.pl-controls {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-bottom: 1px solid var(--pl-border);
	background: #fff;
}
.pl-results {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px 20px;
	background: var(--pl-soft);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pl-map-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.pl-map { position: absolute; inset: 0; }

/* ---------- search ---------- */
.pl-app .pl-eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pl-primary);
	margin: 0;
}
.pl-search { display: flex; gap: 8px; margin: 0; }
.pl-input-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid #b8c2c0;
	border-radius: 6px;
	background: #fff;
	color: var(--pl-text);
}
.pl-input-wrap > svg { flex: 0 0 auto; }
.pl-app .pl-input-wrap .pl-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	color: var(--pl-text);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming in */
}
.pl-suggest {
	position: absolute;
	top: calc(100% + 4px);
	left: -1px;
	right: -1px;
	z-index: 20;
	list-style: none;
	margin: 0;
	padding: 4px 0;
	background: #fff;
	border: 1px solid #b8c2c0;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.pl-suggest[hidden] { display: none; }
.pl-suggest li {
	margin: 0;
	padding: 9px 12px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	list-style: none;
}
.pl-suggest li:hover, .pl-suggest li[aria-selected="true"] { background: #eef3f2; }
.pl-suggest__main { font-weight: 600; font-size: 15px; }
.pl-suggest__sub { font-size: 13px; color: var(--pl-muted); }

.pl-app .pl-locate {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--pl-primary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.pl-app .pl-locate:hover { color: var(--pl-primary-dark); background: none; }

/* ---------- toggle + sort ---------- */
.pl-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.pl-app .pl-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pl-text);
}
.pl-app .pl-toggle:hover { background: none; }
.pl-toggle__label { font-size: 14px; font-weight: 500; color: var(--pl-muted); }
.pl-toggle__daily { font-weight: 700; color: var(--pl-text); }
.pl-is-monthly .pl-toggle__daily { font-weight: 500; color: var(--pl-muted); }
.pl-is-monthly .pl-toggle__monthly { font-weight: 700; color: var(--pl-text); }
.pl-toggle__track {
	position: relative;
	display: block;
	width: 52px;
	height: 28px;
	border-radius: 14px;
	background: var(--pl-primary);
	transition: background-color 0.2s;
}
.pl-toggle__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}
.pl-is-monthly .pl-toggle__track { background: var(--pl-gold); }
.pl-is-monthly .pl-toggle__knob { transform: translateX(24px); }

.pl-sort {
	display: flex;
	border: 1px solid #b8c2c0;
	border-radius: 6px;
	overflow: hidden;
}
.pl-app .pl-sort button {
	height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--pl-text);
	font-size: 14px;
	font-weight: 600;
}
.pl-app .pl-sort button + button { border-left: 1px solid #b8c2c0; }
.pl-app .pl-sort button[aria-pressed="true"] { background: var(--pl-primary); color: #fff; }

/* ---------- start / end (Daily only) ---------- */
.pl-times {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 118px;
	gap: 8px;
	align-items: center;
}
.pl-is-monthly .pl-times { display: none; }
.pl-app .pl-times__label { font-size: 14px; font-weight: 600; margin: 0; color: var(--pl-text); }
.pl-app .pl-times .pl-date,
.pl-app .pl-times .pl-time {
	width: 100%;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #b8c2c0;
	border-radius: 6px;
	background: #fff;
	color: var(--pl-text);
	font: inherit;
	font-size: 15px;
	line-height: normal;
	box-shadow: none;
}
.pl-app .pl-times .pl-date:focus-visible,
.pl-app .pl-times .pl-time:focus-visible { outline: 2px solid var(--pl-primary); outline-offset: 1px; }

.pl-status { font-size: 14px; min-height: 1.4em; }
.pl-status--error { color: var(--pl-red); font-weight: 600; }

/* ---------- buttons ---------- */
.pl-app .pl-btn,
.pl-app a.pl-btn,
.pl-app a.pl-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.15s;
}
.pl-app .pl-btn--block { display: flex; width: 100%; }
.pl-app .pl-btn--primary,
.pl-app a.pl-btn--primary:visited { background: var(--pl-primary); color: #fff; }
.pl-app .pl-btn--primary:hover,
.pl-app .pl-btn--primary:focus { background: var(--pl-primary-dark); color: #fff; text-decoration: none; }
.pl-app .pl-btn--gold,
.pl-app a.pl-btn--gold:visited { background: var(--pl-gold); color: #1f1f1f; }
.pl-app .pl-btn--gold:hover,
.pl-app .pl-btn--gold:focus { background: var(--pl-gold-dark); color: #1f1f1f; text-decoration: none; }
.pl-app .pl-search-btn { height: 46px; font-size: 16px; }

/* ---------- result cards ---------- */
.pl-empty { padding: 8px 0; font-size: 15px; color: var(--pl-muted); }
.pl-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--pl-border);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.pl-card:hover { border-color: #b8c2c0; }
.pl-card.is-selected { border-color: var(--pl-primary); box-shadow: inset 0 0 0 1px var(--pl-primary); }
.pl-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pl-app .pl-card__title { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--pl-primary); min-width: 0; }
.pl-app .pl-card__select {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-align: left;
}
.pl-app .pl-card__select:hover { background: none; color: inherit; text-decoration: underline; }
.pl-card__dist { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.pl-card__sub { font-size: 14px; color: #5c6362; }
.pl-card__price { font-size: 14px; }
.pl-card__price strong { font-size: 16px; color: var(--pl-text); }
.pl-card .pl-btn { margin-top: 2px; }
.pl-muted { color: var(--pl-muted); font-size: 14px; }

/* ---------- map pins ---------- */
.pl-pin { cursor: pointer; transform-origin: 50% 100%; transition: transform 0.15s; line-height: 0; }
.pl-pin svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.pl-pin:hover { transform: scale(1.08); }
.pl-pin.is-selected:hover { transform: none; }
.pl-pin--price text { font-family: inherit; letter-spacing: -0.02em; }
/* Gray dot for locations outside the results; nudged down so its centre sits on the location. */
.pl-pin--dot { line-height: 0; transform: translateY(50%); }
.pl-pin--dot:hover { transform: translateY(50%) scale(1.2); }
.pl-dot {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #9aa5a3;
	border: 2px solid #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.pl-dot--sel { width: 16px; height: 16px; background: var(--pl-primary); }

/* The customer's searched address: red pin with a red label. */
.pl-origin {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	line-height: 0;
	pointer-events: none;
}
.pl-origin svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.pl-origin__label {
	display: block;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 4px 9px;
	border-radius: 10px;
	background: var(--pl-red);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ---------- callout (Google info window) ---------- */
.pl-app .gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 10px !important; }
.pl-app .gm-style .gm-style-iw-d { padding: 0 !important; overflow: auto !important; }
.pl-app .gm-style .gm-style-iw-chr { display: none; }
.pl-callout { width: 300px; max-width: 100%; color: var(--pl-text); font-family: inherit; font-size: 14px; line-height: 1.4; }
.pl-photo {
	position: relative;
	height: 160px;
	background: #cdd6d4;
	overflow: hidden;
}
.pl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl-photo--logo { background: #fff; border-bottom: 1px solid var(--pl-border); }
.pl-photo--logo img { object-fit: contain; padding: 20px; }
.pl-app .pl-photo-nav {
	position: absolute;
	top: 58px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--pl-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.pl-app .pl-photo-nav:hover { background: #fff; color: var(--pl-primary); }
.pl-photo-prev { left: 8px; }
.pl-photo-next { right: 8px; }
.pl-photo-count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 8px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
.pl-app .pl-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--pl-text);
	display: flex;
	align-items: center;
	justify-content: center;
}
.pl-app .pl-close:hover { background: #fff; color: var(--pl-text); }
.pl-callout__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.pl-app .pl-callout__title { font-size: 18px; font-weight: 700; color: var(--pl-primary); line-height: 1.25; }
.pl-callout__sub { margin-top: 4px !important; font-size: 14px; color: #5c6362; }
.pl-callout__meta { margin-top: 2px !important; font-size: 13px; }
.pl-rates {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 16px;
	font-size: 14px;
}
.pl-rates dt { font-weight: 400; }
.pl-rates dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- closed locations (Daily) ---------- */
.pl-closed-note {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 12px !important;
	border-radius: 6px;
	background: #eef0ef;
	color: var(--pl-text);
	font-size: 14px;
	font-weight: 600;
}
.pl-closed-note svg { flex: 0 0 auto; }

/* Closed locations in the results list */
.pl-app .pl-list-heading {
	margin: 6px 0 -2px;
	padding-top: 10px;
	border-top: 1px solid var(--pl-border);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pl-muted);
}
.pl-card--closed { background: #f7f8f8; border-style: dashed; }
.pl-app .pl-card--closed .pl-card__title { color: #4f5755; }
.pl-card--closed .pl-card__price strong { color: #4f5755; }
.pl-card--closed.is-selected { border-style: solid; border-color: #7b8482; box-shadow: inset 0 0 0 1px #7b8482; }
.pl-closed-note--card { margin-top: 2px !important; background: #e9eceb; }

/* ---------- map legend (Daily searches) ---------- */
.pl-legend {
	display: none;
	position: absolute;
	left: 12px;
	bottom: 28px; /* clear of the Google logo */
	z-index: 2;
	flex-direction: column;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	color: var(--pl-text);
	font-size: 13px;
	line-height: 1.3;
	pointer-events: none;
}
.pl-show-legend .pl-legend { display: flex; }
.pl-legend__row { display: flex; align-items: center; gap: 8px; }
.pl-legend__row svg { flex: 0 0 auto; display: block; }
.pl-legend__dot {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin: 0 4px;
	border-radius: 50%;
	background: #9aa5a3;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* ---------- phones & small tablets: search, then map, then list ---------- */
@media (max-width: 899px) {
	.pl-app { flex-direction: column; height: auto; overflow: visible; }
	.pl-panel { display: contents; }
	.pl-controls { order: 1; padding: 16px; }
	.pl-map-wrap { order: 2; height: 60vh; min-height: 340px; border-bottom: 1px solid var(--pl-border); }
	.pl-results { order: 3; overflow: visible; padding: 14px 16px; }
	.pl-callout { width: 270px; }
	.pl-legend { font-size: 12px; padding: 8px 10px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.pl-app *, .pl-app *::before, .pl-app *::after { transition: none !important; }
}
