.gf-otobus {
	--gf-border: #e5e7eb;
	--gf-line: #eef2f7;
	--gf-muted: #64748b;
	--gf-text: #0f172a;
	--gf-soft: #f8fafc;
	--gf-soft-2: #f1f5f9;
	--gf-brand: #2563eb;
	--gf-brand-soft: rgba(37, 99, 235, 0.1);
	--gf-ring: rgba(37, 99, 235, 0.22);
	color: var(--gf-text);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gf-otobus,
.gf-otobus * {
	box-sizing: border-box;
}

.gf-otobus__inner {
	border: 1px solid var(--gf-border);
	background: #fff;
	border-radius: 20px;
	padding: clamp(14px, 1.8vw, 22px);
	box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

.gf-otobus__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.gf-otobus__identity {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.gf-otobus__route-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border-radius: 15px;
	background: var(--gf-text);
	color: #fff;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.gf-otobus__eyebrow {
	color: var(--gf-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 3px;
}

.gf-otobus__subtitle {
	margin: 0;
	font-size: clamp(1.18rem, 2.05vw, 1.72rem);
	line-height: 1.1;
	letter-spacing: -0.055em;
	font-weight: 750;
	color: var(--gf-text);
}

.gf-otobus__prices {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.gf-otobus__price {
	border: 1px solid var(--gf-border);
	background: var(--gf-soft);
	border-radius: 999px;
	padding: 7px 12px;
	display: inline-flex;
	gap: 10px;
	align-items: baseline;
	white-space: nowrap;
}

.gf-otobus__price span {
	color: var(--gf-muted);
	font-size: 0.78rem;
	font-weight: 650;
}

.gf-otobus__price strong {
	font-size: 1rem;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.gf-otobus__controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px;
	border: 1px solid var(--gf-border);
	background: var(--gf-soft);
	border-radius: 18px;
	margin-bottom: 14px;
}

.gf-otobus__control-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.gf-otobus__pill {
	border: 1px solid transparent;
	background: transparent;
	color: var(--gf-text);
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 0.82rem;
	font-weight: 750;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.gf-otobus__pill:hover {
	background: #fff;
	border-color: var(--gf-border);
}

.gf-otobus__pill.is-active {
	background: #fff;
	border-color: rgba(37, 99, 235, 0.25);
	box-shadow: 0 0 0 4px var(--gf-ring);
	color: var(--gf-brand);
}

.gf-otobus__pill:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--gf-ring);
}

.gf-map-wrap {
	position: relative;
	border: 1px solid var(--gf-border);
	border-radius: 18px;
	overflow: hidden;
	height: clamp(220px, 27vw, 330px);
	background: var(--gf-soft-2);
	margin-bottom: 16px;
}

.gf-map {
	border: 0;
	width: 100%;
	height: calc(100% + 72px);
	position: relative;
	top: -72px;
	display: block;
}

.gf-map-wrap--empty {
	display: grid;
	place-items: center;
	color: var(--gf-muted);
	font-weight: 700;
}

.gf-otobus__summary {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.gf-otobus__summary span {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--gf-border);
	background: var(--gf-soft);
	border-radius: 999px;
	padding: 7px 11px;
	color: var(--gf-muted);
	font-size: 0.84rem;
	font-weight: 700;
}

.gf-otobus__content {
	display: grid;
	grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.gf-otobus__panel {
	border: 1px solid var(--gf-border);
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
}

.gf-otobus__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--gf-line);
	background: var(--gf-soft);
}

.gf-otobus__panel-head span {
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.gf-otobus__panel-head small {
	color: var(--gf-muted);
	font-weight: 700;
	font-size: 0.7rem;
	white-space: nowrap;
}

.gf-otobus__times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
	gap: 8px;
	padding: 14px;
}

.gf-otobus__time {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--gf-border);
	background: linear-gradient(180deg, #fff, var(--gf-soft));
	border-radius: 13px;
	padding: 7px 9px;
	font-size: clamp(1rem, 1.55vw, 1.28rem);
	font-weight: 820;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
}

.gf-otobus__timeline {
	list-style: none;
	margin: 0;
	padding: 12px 14px 14px;
	max-height: 430px;
	overflow: auto;
}

.gf-otobus__stop {
	position: relative;
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 7px 0;
}

.gf-otobus__stop::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 29px;
	bottom: -10px;
	width: 1px;
	background: var(--gf-border);
}

.gf-otobus__stop:last-child::before {
	display: none;
}

.gf-otobus__stop-index {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--gf-soft);
	border: 1px solid var(--gf-border);
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--gf-muted);
	font-variant-numeric: tabular-nums;
}

.gf-otobus__stop-text {
	min-width: 0;
	padding-top: 4px;
	font-size: 0.86rem;
	font-weight: 680;
	line-height: 1.35;
	color: #1e293b;
	overflow-wrap: anywhere;
}

.gf-otobus__alert,
.gf-otobus__empty {
	margin: 16px;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid var(--gf-border);
	background: var(--gf-soft);
	color: var(--gf-muted);
	font-weight: 750;
	line-height: 1.5;
}

.gf-otobus__alert {
	border-color: rgba(245, 158, 11, 0.32);
	background: rgba(245, 158, 11, 0.08);
	color: #92400e;
}

@media (max-width: 980px) {
	.gf-otobus__content {
		grid-template-columns: 1fr;
	}

	.gf-otobus__timeline {
		max-height: none;
	}
}

@media (max-width: 720px) {
	.gf-otobus__inner {
		border-radius: 18px;
		padding: 14px;
	}

	.gf-otobus__topbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.gf-otobus__prices {
		justify-content: flex-start;
	}

	.gf-otobus__controls {
		align-items: stretch;
		padding: 10px;
	}

	.gf-otobus__control-group,
	.gf-otobus__days {
		width: 100%;
	}

	.gf-otobus__pill {
		flex: 1 1 auto;
		padding: 10px 12px;
	}

	.gf-map-wrap {
		height: 235px;
		border-radius: 18px;
	}

	.gf-otobus__times {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		padding: 12px;
	}

	.gf-otobus__time {
		min-height: 46px;
		font-size: 1rem;
		border-radius: 13px;
	}
}

.gf-otobus__summary,
.gf-otobus__controls,
.gf-otobus__control-group,
.gf-otobus__dir {
	display: none !important;
}

.gf-otobus__topbar {
	align-items: flex-start;
	gap: 18px;
}

.gf-otobus__eyebrow {
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.13em;
	color: #718096;
	text-transform: uppercase;
}

.gf-otobus__subtitle {
	font-size: clamp(1.12rem, 1.85vw, 1.75rem);
	font-weight: 650;
	letter-spacing: -0.045em;
	line-height: 1.08;
}

.gf-otobus__route-no {
	font-weight: 650;
}

.gf-otobus__price span {
	font-weight: 500;
}

.gf-otobus__price strong {
	font-weight: 650;
}

.gf-otobus__route-switcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 18px 0 14px;
	padding: 10px;
	border: 1px solid var(--gf-border);
	border-radius: 18px;
	background: #f8fafc;
}

.gf-otobus__route-point {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid #e5eaf2;
	border-radius: 14px;
	background: #fff;
	color: #111827;
	font-size: 0.92rem;
	font-weight: 580;
	line-height: 1.2;
	text-align: center;
}

.gf-otobus__swap {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #dbe3ef;
	border-radius: 999px;
	background: #fff;
	color: #2563eb;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.gf-otobus__swap:hover {
	border-color: #bcd0ff;
	background: #eef4ff;
}

.gf-otobus__swap svg {
	transition: transform 0.2s ease;
}

.gf-otobus__swap.is-reversed svg {
	transform: rotate(180deg);
}

.gf-map-wrap {
	height: clamp(180px, 21vw, 250px);
	border-radius: 18px;
}

.gf-otobus__content {
	gap: 16px;
	margin-top: 16px;
}

.gf-otobus__panel {
	border-radius: 18px;
}

.gf-otobus__panel-head {
	min-height: 52px;
	padding: 14px 16px;
}

.gf-otobus__panel-head span {
	font-size: 0.9rem;
	font-weight: 620;
	letter-spacing: -0.02em;
}

.gf-otobus__panel-head small {
	font-size: 0.72rem;
	font-weight: 500;
	color: #64748b;
}

.gf-otobus__days {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 12px 0;
	margin: 0;
	border: 0;
	background: transparent;
}

.gf-otobus__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 13px;
	border: 1px solid #dbe3ef;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 0.78rem;
	font-weight: 560;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gf-otobus__day:hover {
	border-color: #bfdbfe;
	background: #f8fbff;
}

.gf-otobus__day.is-active {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.gf-otobus__times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 7px;
	padding: 12px;
}

.gf-otobus__time {
	min-height: 38px;
	padding: 6px 8px;
	border-radius: 11px;
	font-size: clamp(0.86rem, 1vw, 1rem);
	font-weight: 650;
	letter-spacing: -0.035em;
}

.gf-otobus__stop-text {
	font-size: 0.82rem;
	font-weight: 450;
}

.gf-otobus__stop-index {
	font-size: 0.68rem;
	font-weight: 600;
}

.gf-otobus__empty,
.gf-otobus__alert {
	font-size: 0.86rem;
	font-weight: 500;
}

@media (max-width: 768px) {
	.gf-otobus__topbar {
		gap: 14px;
	}

	.gf-otobus__route-switcher {
		gap: 8px;
		padding: 8px;
		border-radius: 16px;
	}

	.gf-otobus__route-point {
		min-height: 38px;
		padding: 8px 10px;
		font-size: 0.82rem;
	}

	.gf-otobus__swap {
		width: 38px;
		height: 38px;
	}

	.gf-otobus__days {
		overflow-x: auto;
		padding: 10px 10px 0;
	}

	.gf-otobus__day {
		white-space: nowrap;
		min-height: 32px;
		font-size: 0.74rem;
		padding: 7px 11px;
	}

	.gf-map-wrap {
		height: 190px;
	}

	.gf-otobus__times {
		grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
		gap: 6px;
		padding: 10px;
	}

	.gf-otobus__time {
		min-height: 36px;
		font-size: 0.88rem;
	}
}

.gf-otobus__time {
	position: relative;
	gap: 5px;
}

.gf-otobus__time-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.gf-otobus__time--note {
	border-color: #facc15;
	background: #fffbeb;
	color: #111827;
}

.gf-otobus__note-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f59e0b;
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
}

.gf-otobus__note-btn:hover {
	background: #d97706;
}

.gf-otobus__note-popover {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 20;
	display: none;
	width: max-content;
	max-width: 220px;
	transform: translateX(-50%);
	padding: 8px 10px;
	border: 1px solid #fde68a;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: center;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.gf-otobus__note-popover::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: #111827 transparent transparent transparent;
}

.gf-otobus__time--note.is-open .gf-otobus__note-popover {
	display: block;
}

@media (max-width: 768px) {
	.gf-otobus__note-popover {
		max-width: 180px;
		font-size: 0.68rem;
	}
}

.gf-otobus__note-summary {
	margin: 8px 10px 12px;
	padding: 9px 11px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: #fffbeb;
	color: #713f12;
	font-size: 0.72rem;
	line-height: 1.35;
}