/**
 * Palm Tran bus routes — Figma SpecLink design tokens & components.
 * Spec: SpecLink_Palm Tran node 10419-3638
 */

.pg-layout-preview-banner {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	border-left: 4px solid #2271b1;
	background: #f0f6fc;
}

.pg-bus-routes-listing,
.pt-bus-routes-v2,
.pg-single-bus-route,
.pg-single-bus-route-shortcode {
	--pg-primary: #0a375f;
	--pg-teal: #27aec4;
	--pg-accent: #e30488;
	--pg-site-black: #343a40;
	--pg-surface-muted: #fafafa;
	--pg-badge-size: 24px;
	--pg-border: #a0a1a2;
	--pg-border-light: #d9d9d9;
	--pg-text: #1e1e1e;
	--pg-muted: #666;
	--pg-surface: #f5f5f5;
	--pg-radius: 8px;
	font-family: inherit;
	color: var(--pg-text);
}

/* ── Accordion list (card stack) ── */

.pg-accordion-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border: 0;
	padding: 0;
	margin: 0;
}

.pg-accordion-item {
	border: 1px solid var(--pg-border);
	border-radius: var(--pg-radius);
	overflow: hidden;
	background: #fff;
}

.pg-accordion-item + .pg-accordion-item {
	border-top: 1px solid var(--pg-border);
}

/* Override Hello Elementor reset.css global button styles */
.pg-bus-routes-listing button.pg-accordion-header,
.pg-bus-routes-listing .pg-accordion-header,
.pt-bus-routes-v2 button.pg-accordion-header,
.pt-bus-routes-v2 .pg-accordion-header,
.pg-single-bus-route button.pg-schedule-tab,
.pg-single-bus-route-shortcode button.pg-schedule-tab,
.pg-bus-routes-listing button.pg-schedule-tab,
.pg-bus-routes-listing button.pg-schedule-retry,
.pg-single-bus-route button.pg-schedule-retry,
.pg-single-bus-route button.pg-schedule-edit-btn {
	box-shadow: none;
}

.pg-bus-routes-listing button.pg-accordion-header,
.pg-bus-routes-listing .pg-accordion-header,
.pt-bus-routes-v2 button.pg-accordion-header,
.pt-bus-routes-v2 .pg-accordion-header {
	display: flex !important;
	align-items: center;
	gap: 1rem;
	width: 100% !important;
	max-width: none !important;
	min-height: 3.875rem;
	padding: 1.1875rem 1rem 1.1875rem 0.5rem;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	background-color: #fff !important;
	color: var(--pg-primary) !important;
	text-align: left;
	cursor: pointer;
	font: inherit;
	line-height: 1.4;
	transition: background-color 0.15s ease;
}

.pg-bus-routes-listing button.pg-accordion-header:hover,
.pt-bus-routes-v2 button.pg-accordion-header:hover {
	background-color: #f8f9fa !important;
}

.pg-accordion-header[aria-expanded="true"] {
	border-bottom: 1px solid var(--pg-border-light);
}

.pg-route-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--pg-badge-size);
	width: var(--pg-badge-size);
	height: var(--pg-badge-size);
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 0.875rem;
	flex-shrink: 0;
	line-height: 1.25rem;
}

.pg-route-title {
	flex: 1;
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.875rem;
	color: var(--pg-primary);
}

/* Header alert: triangle warning icon */
.pg-route-alert-icon {
	width: 0;
	height: 0;
	border-left: 0.45rem solid transparent;
	border-right: 0.45rem solid transparent;
	border-bottom: 0.8rem solid var(--pg-primary);
	background: transparent;
	border-radius: 0;
	flex-shrink: 0;
	margin-left: auto;
	margin-right: 0.25rem;
	position: relative;
}

.pg-route-alert-icon::after {
	content: "!";
	position: absolute;
	top: 0.15rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.55rem;
	font-weight: 700;
	color: #fff;
	border: 0;
	background: transparent;
	display: block;
	width: auto;
	height: auto;
}

.pg-accordion-chevron {
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--pg-primary);
	border-bottom: 2px solid var(--pg-primary);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: 0.25rem;
}

.pg-accordion-header[aria-expanded="true"] .pg-accordion-chevron {
	transform: rotate(-135deg);
}

.pg-accordion-body {
	padding: 1rem 1.25rem 1.25rem;
}

.pg-accordion-body[hidden] {
	display: none !important;
}

/* ── Service alert banner (magenta) ── */

.pg-route-alerts {
	margin-bottom: 1rem;
}

.pg-route-alert-item {
	background: var(--pg-accent);
	color: #fff;
	border-radius: var(--pg-radius);
	padding: 0.85rem 1rem;
	margin-bottom: 0.5rem;
}

.pg-route-alert-item:last-child {
	margin-bottom: 0;
}

.pg-route-alert-message {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pg-route-alert-banner-icon {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 0.4rem solid transparent;
	border-right: 0.4rem solid transparent;
	border-bottom: 0.7rem solid #fff;
	flex-shrink: 0;
	margin-top: 0.15rem;
}

.pg-route-alert-date {
	display: block;
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	opacity: 0.9;
}

/* ── Route overview card (teal border) ── */

.pg-route-overview-card {
	border: 0;
	border-radius: 12px;
	padding: 2.5rem;
	margin-bottom: 1rem;
	background: #fff;
	box-shadow: 2px 2px 2px var(--pg-teal);
}

.pg-route-overview-heading {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 2.5rem;
	color: var(--pg-primary);
}

.pg-route-overview-content {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--pg-site-black);
}

.pg-route-meta-inline {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.pg-route-meta-line {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25rem;
	color: var(--pg-site-black);
}

.pg-route-downloads {
	margin-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.pg-route-download-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--pg-primary);
	font-weight: 500;
	text-decoration: underline;
	font-size: 1rem;
	line-height: 1.25rem;
}

.pg-route-download-link:hover {
	text-decoration: underline;
}

.pg-route-download-icon {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	border: 2px solid var(--pg-primary);
	border-radius: 2px;
	position: relative;
	flex-shrink: 0;
}

.pg-route-download-icon::after {
	content: "";
	position: absolute;
	top: 0.2rem;
	left: 0.2rem;
	right: 0.2rem;
	height: 0.4rem;
	border-top: 2px solid var(--pg-primary);
	border-bottom: 2px solid var(--pg-primary);
}

.pg-route-overview-content p:last-child {
	margin-bottom: 0;
}

.pg-route-overview-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 2rem;
	margin-top: 1rem;
	padding-top: 0;
	border-top: 0;
}

.pg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.125rem;
	padding: 0.625rem 2rem;
	border-radius: 3px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.375rem;
}

.pg-btn-outline {
	border: 3px solid var(--pg-teal);
	color: var(--pg-primary);
	background: #fff;
}

.pg-btn-outline:hover {
	background: var(--pg-teal);
	color: #fff;
}

/* ── Direction toggle (Figma custom radios) ── */

.pg-direction-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	border: 0;
	padding: 0;
}

.pg-direction-option {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--pg-primary);
}

.pg-direction-option input[type="radio"] {
	appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid var(--pg-border);
	border-radius: 50%;
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	background: #fff;
}

.pg-direction-option input[type="radio"]:checked {
	border-color: var(--pg-primary);
	background: var(--pg-primary);
}

.pg-direction-option input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0.35rem;
	height: 0.6rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -60%) rotate(45deg);
}

/* ── Schedule section ── */

.pg-route-schedule-section {
	margin-top: 0.25rem;
}

.pg-route-search {
	margin-bottom: 1.5rem;
}

.pg-route-search-input {
	width: 100%;
	max-width: 420px;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--pg-border-light);
	border-radius: 4px;
}

.pg-schedule-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin-bottom: 0;
	background: var(--pg-surface);
	border: 1px solid var(--pg-border-light);
	border-bottom: 0;
	border-radius: var(--pg-radius) var(--pg-radius) 0 0;
	overflow-x: auto;
}

.pg-bus-routes-listing button.pg-schedule-tab,
.pg-single-bus-route button.pg-schedule-tab,
.pg-single-bus-route-shortcode button.pg-schedule-tab {
	display: inline-flex !important;
	width: auto !important;
	flex: 1 1 0;
	justify-content: center;
	min-width: 0;
	min-height: 3.875rem;
	padding: 1rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--pg-muted) !important;
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.875rem;
	white-space: nowrap;
}

.pg-bus-routes-listing button.pg-schedule-tab.is-active,
.pg-single-bus-route button.pg-schedule-tab.is-active,
.pg-single-bus-route-shortcode button.pg-schedule-tab.is-active {
	background: #fff !important;
	color: var(--pg-primary) !important;
	box-shadow: inset 0 -2px 0 var(--pg-teal);
}

.pg-schedule-table-wrap {
	border: 1px solid var(--pg-border-light);
	border-radius: 0 0 var(--pg-radius) var(--pg-radius);
	overflow: hidden;
}

.pg-schedule-table-shell {
	display: flex;
	align-items: stretch;
	min-height: 12rem;
	background: #fff;
}

.pg-schedule-scroll {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--pg-border) transparent;
}

.pg-schedule-scroll::-webkit-scrollbar {
	height: 8px;
}

.pg-schedule-scroll::-webkit-scrollbar-thumb {
	background: var(--pg-border);
	border-radius: 999px;
}

.pg-schedule-scroll-ui {
	display: flex;
	flex: 0 0 2.75rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.5rem 0.25rem;
	border-left: 1px solid var(--pg-border-light);
	background: var(--pg-surface);
}

.pg-bus-routes-listing button.pg-schedule-scroll-btn,
.pg-single-bus-route button.pg-schedule-scroll-btn,
.pg-single-bus-route-shortcode button.pg-schedule-scroll-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 1.75rem !important;
	height: 1.75rem !important;
	padding: 0 !important;
	border: 1px solid var(--pg-border-light) !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: var(--pg-primary) !important;
	cursor: pointer;
}

.pg-bus-routes-listing button.pg-schedule-scroll-btn:disabled,
.pg-single-bus-route button.pg-schedule-scroll-btn:disabled,
.pg-single-bus-route-shortcode button.pg-schedule-scroll-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pg-schedule-scroll-label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pg-muted);
	user-select: none;
}

.pg-schedule-table-shell:not(.is-scrollable) .pg-schedule-scroll-ui {
	opacity: 0.55;
}

.pg-schedule-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	background: #fff;
}

.pg-schedule-table thead th {
	background: #fff;
	border-bottom: 1px solid var(--pg-border-light);
	padding: 0.65rem 0.75rem;
	text-align: center;
	font-weight: 700;
	color: var(--pg-primary);
	white-space: nowrap;
}

.pg-schedule-table thead th.pg-schedule-stop-col {
	text-align: left;
	min-width: 12rem;
	position: sticky;
	left: 0;
	z-index: 2;
	background: #fff;
	box-shadow: 1px 0 0 var(--pg-border-light);
}

.pg-schedule-table tbody tr:nth-child(even) {
	background: var(--pg-surface);
}

.pg-schedule-table tbody tr:nth-child(even) th[scope="row"] {
	background: var(--pg-surface);
}

.pg-schedule-table th,
.pg-schedule-table td {
	border: 1px solid var(--pg-border-light);
	padding: 0.5rem 0.65rem;
	text-align: center;
	white-space: nowrap;
}

.pg-schedule-table th[scope="row"] {
	text-align: left;
	min-width: 12rem;
	max-width: 18rem;
	white-space: normal;
	position: sticky;
	left: 0;
	z-index: 1;
	background: #fff;
	box-shadow: 1px 0 0 var(--pg-border-light);
}

.pg-stop-label {
	font-weight: 700;
	color: var(--pg-primary);
}

.pg-schedule-time-cell {
	position: relative;
	min-width: 5.5rem;
	vertical-align: middle;
}

.pg-schedule-time-cell.is-overridden {
	background: #fff8dc;
}

.pg-schedule-time-cell.is-editing,
.pg-schedule-time-cell.is-saving {
	background: #f0f9f8;
	padding: 0.2rem 0.35rem;
}

.pg-schedule-time-display {
	display: inline-block;
	vertical-align: middle;
}

.pg-schedule-time-display[hidden],
.pg-schedule-edit-btn[hidden],
.pg-schedule-edit-field[hidden] {
	display: none !important;
}

.pg-schedule-time-cell.is-editing .pg-schedule-time-display,
.pg-schedule-time-cell.is-editing .pg-schedule-edit-btn {
	display: none !important;
}

.pg-schedule-edit-field {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	width: 100%;
}

.pg-schedule-time-cell.is-editing .pg-schedule-edit-field {
	display: flex !important;
}

.pg-schedule-edit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	min-width: 1.25rem;
	margin-left: 0.25rem;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: #8a8a8a;
	vertical-align: middle;
	cursor: pointer;
	opacity: 0;
	flex-shrink: 0;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.pg-schedule-edit-icon {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	pointer-events: none;
}

/* Override Hello Elementor / child-theme button resets on inline edit control */
.pg-single-bus-route button.pg-schedule-edit-btn,
.pg-single-bus-route-shortcode button.pg-schedule-edit-btn,
.pg-bus-routes-listing button.pg-schedule-edit-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
	min-width: 1.25rem !important;
	max-width: 1.25rem !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 2px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #8a8a8a !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 1 !important;
}

.pg-schedule-time-cell:hover .pg-schedule-edit-btn,
.pg-schedule-time-cell:focus-within:not(.is-editing) .pg-schedule-edit-btn {
	opacity: 1;
}

.pg-schedule-edit-btn:hover,
.pg-schedule-edit-btn:focus {
	color: var(--pg-teal);
	outline: none;
}

.pg-single-bus-route button.pg-schedule-edit-btn:hover,
.pg-single-bus-route button.pg-schedule-edit-btn:focus,
.pg-single-bus-route-shortcode button.pg-schedule-edit-btn:hover,
.pg-single-bus-route-shortcode button.pg-schedule-edit-btn:focus,
.pg-bus-routes-listing button.pg-schedule-edit-btn:hover,
.pg-bus-routes-listing button.pg-schedule-edit-btn:focus {
	color: var(--pg-teal) !important;
	outline: 2px solid var(--pg-teal);
	outline-offset: 1px;
}

.pg-schedule-time-input {
	display: block;
	flex: 1;
	min-width: 0;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.2rem 0.35rem;
	border: 1px solid var(--pg-teal);
	border-radius: 3px;
	font: inherit;
	text-align: center;
	margin: 0;
	background: #fff;
	color: var(--pg-text);
}

.pg-schedule-close-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	min-width: 1.25rem;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: #8a8a8a;
	cursor: pointer;
}

.pg-schedule-close-icon {
	display: block;
	width: 14px;
	height: 14px;
	pointer-events: none;
}

.pg-schedule-close-btn:hover,
.pg-schedule-close-btn:focus {
	color: #c0392b;
	outline: none;
}

.pg-single-bus-route button.pg-schedule-close-btn,
.pg-single-bus-route-shortcode button.pg-schedule-close-btn,
.pg-bus-routes-listing button.pg-schedule-close-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
	min-width: 1.25rem !important;
	max-width: 1.25rem !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 2px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #8a8a8a !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 1 !important;
}

.pg-single-bus-route button.pg-schedule-close-btn:hover,
.pg-single-bus-route button.pg-schedule-close-btn:focus,
.pg-single-bus-route-shortcode button.pg-schedule-close-btn:hover,
.pg-single-bus-route-shortcode button.pg-schedule-close-btn:focus,
.pg-bus-routes-listing button.pg-schedule-close-btn:hover,
.pg-bus-routes-listing button.pg-schedule-close-btn:focus {
	color: #c0392b !important;
	outline: 2px solid #c0392b;
	outline-offset: 1px;
}

.pg-schedule-time-cell.is-editing .pg-schedule-time-input {
	display: block !important;
}

/* Override theme/Elementor input styles inside timetable cells */
.pg-single-bus-route .pg-schedule-time-input,
.pg-single-bus-route-shortcode .pg-schedule-time-input,
.pg-bus-routes-listing .pg-schedule-time-input {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	padding: 0.2rem 0.35rem !important;
	border: 1px solid var(--pg-teal) !important;
	border-radius: 3px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.pg-schedule-panel.is-hidden {
	display: none;
}

.pg-schedule-loading,
.pg-schedule-error {
	padding: 1rem 0;
	color: var(--pg-muted);
	font-style: italic;
}

.pg-bus-routes-listing button.pg-schedule-retry,
.pg-single-bus-route button.pg-schedule-retry {
	display: inline-flex !important;
	width: auto !important;
	padding: 0.25rem 0.65rem !important;
	border: 1px solid var(--pg-border-light) !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: var(--pg-text) !important;
}

/* ── Single route page ── */

.pg-single-bus-route,
.pg-single-bus-route-shortcode {
	max-width: 100%;
	margin-bottom: 2rem;
}

.pg-single-bus-route__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 0 2rem;
}

.pg-single-route-hero {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--pg-border);
	border-radius: var(--pg-radius);
	background: #fff;
}

.pg-single-route-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--pg-primary);
	margin: 0;
	line-height: 1.3;
}

.pg-single-route-map {
	margin-bottom: 1rem;
}

.pg-single-bus-route .pg-route-schedule-section {
	margin-top: 0;
}

.pg-bus-route-breadcrumbs.breadcrumb-wrapper {
	background: var(--pg-surface-muted);
}

.pg-bus-route-breadcrumbs .breadcrumb-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.5rem 7.5rem;
}

.pg-bus-route-breadcrumbs .breadcrumb-container a {
	color: var(--pg-primary);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	text-decoration: underline;
}

.pg-bus-route-breadcrumbs .breadcrumb-container span,
.pg-bus-route-breadcrumbs .breadcrumb-container .breadcrumb_last {
	color: var(--pg-site-black);
	font-size: 0.875rem;
	font-weight: 300;
	text-decoration: none;
}

@media (max-width: 767px) {
	.pg-bus-route-breadcrumbs .breadcrumb-container {
		padding: 0.5rem 1rem;
	}
}

.pg-edit-schedule-wrap {
	margin-top: 0.75rem;
	text-align: right;
}

.pg-edit-schedule-btn {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--pg-teal);
	border: 1px solid var(--pg-teal);
	padding: 0.45rem 0.85rem;
	border-radius: 4px;
}

.pg-edit-schedule-btn:hover {
	background: var(--pg-teal);
	color: #fff;
}

.pg-map-placeholder,
.pg-mapbox-map {
	border: 1px solid var(--pg-border-light);
	border-radius: var(--pg-radius);
	overflow: hidden;
}

.pg-map-placeholder {
	padding: 1rem;
	background: var(--pg-surface);
	text-align: center;
	color: var(--pg-muted);
}

/* Listing layout: Siskiyou — map + sidebar + accordion */
.pg-layout-siskiyou.pg-bus-routes-listing,
.pg-bus-routes-shortcode.pg-layout-siskiyou .pg-bus-routes-listing {
	display: grid;
	grid-template-columns: minmax(200px, 280px) 1fr;
	grid-template-areas:
		"map map"
		"sidebar main";
	gap: 1rem;
	align-items: start;
}

.pg-layout-siskiyou .pg-bus-routes-map-section,
.pg-layout-siskiyou .pg-map-filters {
	grid-area: map;
}

.pg-layout-siskiyou .pg-sidebar-filters,
.pg-layout-siskiyou .pg-sidebar-signup {
	grid-area: sidebar;
}

.pg-layout-siskiyou .pg-route-search,
.pg-layout-siskiyou .pg-accordion-list {
	grid-area: main;
}

.pg-layout-palmtran.pg-bus-routes-listing,
.pg-bus-routes-shortcode.pg-layout-palmtran .pg-bus-routes-listing {
	display: block;
}

@media (max-width: 900px) {
	.pg-layout-siskiyou.pg-bus-routes-listing,
	.pg-bus-routes-shortcode.pg-layout-siskiyou .pg-bus-routes-listing {
		grid-template-columns: 1fr;
		grid-template-areas:
			"map"
			"sidebar"
			"main";
	}
}

@media (max-width: 640px) {
	.pg-route-overview-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.pg-btn-outline {
		text-align: center;
	}

	.pg-direction-switch {
		justify-content: flex-start;
	}

	.pg-accordion-body {
		padding: 0.85rem 1rem 1rem;
	}
}

/* Grid column presets */
.pg-grid-12 .pg-bus-routes-listing__grid {
	display: block;
}

.pg-grid-3_9 .pg-bus-routes-listing__grid,
.pg-grid-4_8 .pg-bus-routes-listing__grid,
.pg-grid-8_4 .pg-bus-routes-listing__grid {
	display: grid;
	gap: 1rem;
	align-items: start;
}

.pg-grid-3_9 .pg-bus-routes-listing__grid {
	grid-template-columns: minmax(200px, 280px) 1fr;
}

.pg-grid-4_8 .pg-bus-routes-listing__grid {
	grid-template-columns: 1fr 2fr;
}

.pg-grid-8_4 .pg-bus-routes-listing__grid {
	grid-template-columns: 2fr minmax(220px, 320px);
}

.pg-layout-grtc_hero .pg-trip-planner,
.pg-layout-grtc_hero .pg-service-alerts-tabs {
	margin-bottom: 1rem;
}

.pg-trip-planner {
	border: 1px solid var(--pg-border);
	border-radius: var(--pg-radius);
	padding: 1rem;
	background: #fff;
}

.pg-trip-planner__tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.pg-trip-planner__tab {
	border: 1px solid var(--pg-border);
	background: var(--pg-surface);
	padding: 0.4rem 0.75rem;
	border-radius: 4px;
	cursor: pointer;
}

.pg-trip-planner__tab.is-active {
	background: var(--pg-teal);
	color: #fff;
	border-color: var(--pg-teal);
}

.pg-trip-planner__form {
	display: grid;
	gap: 0.5rem;
}

.pg-expanding-route-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem;
}

.pg-expanding-route-card {
	border: 1px solid var(--pg-border);
	border-radius: var(--pg-radius);
	background: #fff;
}

.pg-expanding-route-card__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.pg-static-map-hero__image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--pg-radius);
}

.pg-realtime-map-block__map {
	margin-top: 0.75rem;
}

@media (max-width: 900px) {
	.pg-grid-3_9 .pg-bus-routes-listing__grid,
	.pg-grid-4_8 .pg-bus-routes-listing__grid,
	.pg-grid-8_4 .pg-bus-routes-listing__grid {
		grid-template-columns: 1fr;
	}
}

/* GTFS-Realtime */
.pg-route-alert-item.is-live {
	border-left: 4px solid #c62828;
}

.pg-route-alert-live-badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	background: #c62828;
	color: #fff;
	border-radius: 3px;
	vertical-align: middle;
}

.pg-schedule-time-cell.is-realtime .pg-schedule-time-display {
	font-weight: 700;
}

.pg-schedule-delay {
	display: block;
	font-size: 0.75rem;
	color: #c62828;
	font-weight: 600;
}

.pg-realtime-status-banner {
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.75rem;
	background: #fff3e0;
	border-left: 4px solid #ef6c00;
}

.pg-realtime-vehicle-list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	max-height: 160px;
	overflow: auto;
}

.pg-realtime-vehicle-list li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--pg-border, #ddd);
	font-size: 0.875rem;
}

.pg-trip-planner__iframe {
	width: 100%;
	min-height: 420px;
	border: 0;
	border-radius: var(--pg-radius, 4px);
}
