/* Tour guide — catalog + Driver.js chrome (Google-style). */

.driver-overlay {
	z-index: 10180 !important;
}

.driver-popover.gm-tour-popover {
	font-family: Inter, "Segoe UI", system-ui, sans-serif;
	color: #202124;
	background: #fff;
	border-radius: 12px;
	padding: 16px 16px 14px;
	min-width: 280px;
	max-width: 340px;
	box-shadow: 0 8px 28px rgba(32, 33, 36, 0.28);
}

.driver-popover.gm-tour-popover .driver-popover-title {
	font-size: 15px;
	font-weight: 650;
	color: #174ea6;
	padding-right: 22px;
	line-height: 1.35;
}

.driver-popover.gm-tour-popover .driver-popover-description {
	font-size: 13px;
	line-height: 1.5;
	color: #3c4043;
}

.driver-popover.gm-tour-popover .driver-popover-progress-text {
	font-size: 12px;
	color: #5f6368;
}

.driver-popover.gm-tour-popover .driver-popover-footer button {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	padding: 6px 12px;
	border: 1px solid #dadce0;
	background: #fff;
	color: #1a73e8;
}

.driver-popover.gm-tour-popover .driver-popover-next-btn {
	background: #1a73e8;
	border-color: #1a73e8;
	color: #fff;
	text-shadow: none;
}

.driver-popover.gm-tour-popover .driver-popover-next-btn:hover,
.driver-popover.gm-tour-popover .driver-popover-next-btn:focus {
	background: #174ea6;
	border-color: #174ea6;
	color: #fff;
}

.driver-popover.gm-tour-popover .driver-popover-close-btn {
	color: #80868b;
}

.gm-rail-item--help.gm-tour-help-pulse .gm-rail-icon-wrap {
	animation: gm-tour-pulse 1.4s ease-in-out infinite;
}

@keyframes gm-tour-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.45); }
	50% { box-shadow: 0 0 0 7px rgba(26, 115, 232, 0); }
}

.gm-tour-catalog {
	position: fixed;
	top: 12px;
	left: 84px;
	width: min(400px, calc(100vw - 96px));
	max-height: calc(100vh - 24px);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #202124;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(32, 33, 36, 0.22);
	z-index: 10140;
	overflow: hidden;
}

.gm-maps-shell.gm-rail-collapsed .gm-tour-catalog {
	left: 12px;
}

.gm-tour-catalog[hidden] {
	display: none !important;
}

.gm-tour-catalog-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 14px 10px;
	border-bottom: 1px solid #e8eaed;
}

.gm-tour-catalog-head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.3;
}

.gm-tour-catalog-head p {
	margin: 4px 0 0;
	font-size: 12px;
	color: #5f6368;
	line-height: 1.4;
}

.gm-tour-catalog-close {
	margin-left: auto;
	border: 0;
	background: transparent;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	color: #5f6368;
	cursor: pointer;
	flex-shrink: 0;
}

.gm-tour-catalog-close:hover {
	background: #f1f3f4;
	color: #202124;
}

.gm-tour-catalog-search {
	padding: 10px 14px;
}

.gm-tour-catalog-search input {
	width: 100%;
	height: 36px;
	border: 1px solid #dadce0;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 13px;
	outline: none;
}

.gm-tour-catalog-search input:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.gm-tour-catalog-body {
	overflow: auto;
	padding: 0 8px 12px;
	flex: 1;
}

.gm-tour-group {
	border-radius: 10px;
	margin-bottom: 6px;
}

.gm-tour-group-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	padding: 8px 8px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 650;
	color: #174ea6;
	text-align: left;
}

.gm-tour-group-toggle:hover {
	background: #e8f0fe;
}

.gm-tour-group-toggle iconify-icon {
	font-size: 18px;
	flex-shrink: 0;
}

.gm-tour-group-caret {
	margin-left: auto;
	transition: transform .18s ease;
}

.gm-tour-group.is-collapsed .gm-tour-group-caret {
	transform: rotate(-90deg);
}

.gm-tour-group.is-collapsed .gm-tour-group-items {
	display: none;
}

.gm-tour-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 8px 8px 34px;
	border-radius: 8px;
}

.gm-tour-item:hover {
	background: #f8f9fa;
}

.gm-tour-item-main {
	flex: 1;
	min-width: 0;
}

.gm-tour-item-title {
	font-size: 13px;
	font-weight: 600;
	color: #202124;
	line-height: 1.35;
}

.gm-tour-item-meta {
	font-size: 11px;
	color: #80868b;
	margin-top: 2px;
}

.gm-tour-item.is-seen .gm-tour-item-title::after {
	content: " · đã xem";
	font-weight: 500;
	color: #188038;
	font-size: 11px;
}

.gm-tour-play {
	flex-shrink: 0;
	border: 0;
	background: #e8f0fe;
	color: #1a73e8;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gm-tour-play:hover {
	background: #1a73e8;
	color: #fff;
}

.gm-tour-chapters {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.gm-tour-chapter {
	border: 1px solid #dadce0;
	background: #fff;
	color: #3c4043;
	font-size: 11px;
	border-radius: 999px;
	padding: 2px 8px;
	cursor: pointer;
}

.gm-tour-chapter:hover {
	border-color: #1a73e8;
	color: #1a73e8;
}

.gm-tour-empty {
	padding: 24px 16px;
	text-align: center;
	color: #80868b;
	font-size: 13px;
}

.gm-maps-shell #map-container .gm-list-overlay-search {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gm-maps-shell #map-container .gm-list-overlay-search .input-group {
	flex: 1;
	min-width: 0;
}

.gm-tour-context-btn {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border: 1px solid #dadce0;
	background: #fff;
	color: #1a73e8;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gm-tour-context-btn:hover {
	background: #e8f0fe;
	border-color: #1a73e8;
}

.gm-tour-context-btn iconify-icon {
	font-size: 18px;
}

@media (max-width: 991px) {
	.gm-tour-catalog {
		left: 8px;
		right: 8px;
		width: auto;
		top: auto;
		bottom: 8px;
		max-height: 70vh;
	}
}
