@charset "UTF-8";
/* CSS Document */

/* Trip Planner full-page map layout */
body.trip-planner-template {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
}

body.trip-planner-template footer {
	display: none !important;
}

body.trip-planner-template header {
	height: 80px;
}

body.trip-planner-template main.trip-planner-page {
	padding: 0;
	margin: 0;
	flex: 1 1 auto;
	min-height: 0;
	background: transparent;
	display: flex;
	height: calc(100vh - 80px);
}

body.trip-planner-template .trip-planner-sidebar {
	width: 320px;
	max-width: 100%;
	background: #fff;
	border-right: 1px solid #e5e5e5;
	padding: 20px;
	overflow-y: auto;
}

body.trip-planner-template .trip-planner-sidebar h2 {
	font-size: 20px;
	margin-bottom: 15px;
}

body.trip-planner-template .trip-planner-form label {
	display: block;
	font-weight: 600;
	margin: 10px 0 6px;
}

body.trip-planner-template .trip-planner-form input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

body.trip-planner-template .trip-planner-options {
	margin-top: 12px;
	display: grid;
	gap: 10px;
}

body.trip-planner-template .trip-planner-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

body.trip-planner-template .trip-planner-checkbox input {
	width: auto;
	margin: 0;
}

body.trip-planner-template .trip-planner-input--hidden {
	display: none;
}

/* Geocoder styling */
#trip-planner-from-geocoder .mapboxgl-ctrl-geocoder,
#trip-planner-to-geocoder .mapboxgl-ctrl-geocoder {
	width: 100%;
	max-width: 100%;
	position: static;
	margin-bottom: 0;
	box-shadow: none;
	border: 1px solid #ddd;
	border-radius: 6px;
}

#trip-planner-from-geocoder .mapboxgl-ctrl-geocoder--input,
#trip-planner-to-geocoder .mapboxgl-ctrl-geocoder--input {
	height: 40px;
	font-size: 14px;
	padding: 10px 12px 10px 36px;
	border: none;
	outline: none;
}

#trip-planner-from-geocoder .mapboxgl-ctrl-geocoder--input::placeholder,
#trip-planner-to-geocoder .mapboxgl-ctrl-geocoder--input::placeholder {
	color: #999;
}

#trip-planner-from-geocoder .mapboxgl-ctrl-geocoder--suggestions,
#trip-planner-to-geocoder .mapboxgl-ctrl-geocoder--suggestions {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	z-index: 10;
}

#trip-planner-from-geocoder .mapboxgl-ctrl-geocoder--suggestion,
#trip-planner-to-geocoder .mapboxgl-ctrl-geocoder--suggestion {
	padding: 10px 12px;
	font-size: 14px;
}

#trip-planner-from-geocoder .mapboxgl-ctrl-geocoder--suggestion.mapboxgl-ctrl-geocoder--selected,
#trip-planner-to-geocoder .mapboxgl-ctrl-geocoder--suggestion.mapboxgl-ctrl-geocoder--selected {
	background: #f0f0f0;
}

#trip-planner-from-geocoder .mapboxgl-ctrl-geocoder--icon,
#trip-planner-to-geocoder .mapboxgl-ctrl-geocoder--icon {
	left: 10px;
}

body.trip-planner-template .trip-planner-form button {
	width: 100%;
	margin-top: 14px;
	background: #1f5bff;
	border: none;
	color: #fff;
	padding: 12px 16px;
	border-radius: 6px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

body.trip-planner-template .trip-planner-form button:hover,
body.trip-planner-template .trip-planner-form button:focus {
	background: #1747cc;
}

body.trip-planner-template .trip-planner-status {
	margin-top: 10px;
	font-size: 13px;
	color: #666;
}

body.trip-planner-template .trip-planner-routes {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.trip-planner-template .trip-planner-route {
	padding: 12px;
	border: 2px solid #e5e5e5;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

body.trip-planner-template .trip-planner-route:hover {
	border-color: #1f5bff;
	background: #f7f8fb;
}

body.trip-planner-template .trip-planner-route--selected {
	border-color: #1f5bff;
	background: #f0f4ff;
}

body.trip-planner-template .trip-planner-route-info {
	font-size: 14px;
}

body.trip-planner-template .trip-planner-route-info div {
	margin: 4px 0;
}

body.trip-planner-template .trip-planner-route-info strong {
	font-weight: 600;
}

body.trip-planner-template .trip-planner-details {
	margin-top: 12px;
	padding: 12px;
	background: #f7f8fb;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	font-size: 14px;
	color: #333;
}

body.trip-planner-template .trip-planner-details strong {
	display: block;
	margin-bottom: 4px;
}

body.trip-planner-template #trip-planner-map {
	width: 100%;
	height: 100%;
	min-height: 0;
	flex: 1 1 auto;
}

@media (max-width: 991px) {
	body.trip-planner-template main.trip-planner-page {
		flex-direction: column;
		height: calc(100vh - 80px);
	}
	body.trip-planner-template .trip-planner-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #e5e5e5;
	}
}

/* Header button section */
header .header-buttons {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

header .header-buttons .btn_1 {
	background: #1f5bff;
	color: #fff;
	padding: 10px 24px;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.3s ease;
	white-space: nowrap;
}

header .header-buttons .btn_1:hover {
	background: #1747cc;
}

@media (max-width: 991px) {
	header .header-buttons {
		margin-top: 10px;
		justify-content: center;
	}
}

/* Trip Planner Modal */
#trip-planner-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

#trip-planner-modal.modal-visible {
	display: flex;
}

.modal-content {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	z-index: 100000;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.modal-close:hover {
	color: #333;
}

.modal-content h2 {
	margin: 0 0 24px 0;
	font-size: 24px;
	color: #333;
}

.modal-trip-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.modal-trip-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin-bottom: 6px;
}

.modal-trip-form input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
}

.modal-trip-form input:focus {
	outline: none;
	border-color: #1f5bff;
	box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.1);
}

.modal-trip-form small {
	font-size: 12px;
	color: #999;
	margin-top: -12px;
}

#modal-trip-from-geocoder .mapboxgl-ctrl-geocoder,
#modal-trip-to-geocoder .mapboxgl-ctrl-geocoder {
	width: 100%;
	max-width: 100%;
	position: static;
	margin-bottom: 0;
	box-shadow: none;
	border: 1px solid #ddd;
	border-radius: 6px;
}

#hr-trip-start-geocoder .mapboxgl-ctrl-geocoder,
#hr-trip-end-geocoder .mapboxgl-ctrl-geocoder {
	width: 100%;
	max-width: 100%;
	position: static;
	margin-bottom: 0;
	box-shadow: none;
	border: 1px solid #ddd;
	border-radius: 6px;
}

#modal-trip-from-geocoder .mapboxgl-ctrl-geocoder--input,
#modal-trip-to-geocoder .mapboxgl-ctrl-geocoder--input {
	height: 40px;
	font-size: 14px;
	padding: 10px 12px 10px 36px;
	border: none;
	outline: none;
}

#hr-trip-start-geocoder .mapboxgl-ctrl-geocoder--input,
#hr-trip-end-geocoder .mapboxgl-ctrl-geocoder--input {
	height: 40px;
	font-size: 14px;
	padding: 10px 12px 10px 36px;
	border: none;
	outline: none;
}

#modal-trip-from-geocoder .mapboxgl-ctrl-geocoder--input:focus,
#modal-trip-to-geocoder .mapboxgl-ctrl-geocoder--input:focus {
	box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.1);
}

#modal-trip-from-geocoder .mapboxgl-ctrl-geocoder--suggestions,
#modal-trip-to-geocoder .mapboxgl-ctrl-geocoder--suggestions {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	z-index: 10000;
}

#hr-trip-start-geocoder .mapboxgl-ctrl-geocoder--suggestions,
#hr-trip-end-geocoder .mapboxgl-ctrl-geocoder--suggestions {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	z-index: 10000;
}

.modal-trip-form button {
	width: 100%;
	padding: 12px 16px;
	background: #1f5bff;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.3s ease;
	margin-top: 8px;
}

.modal-trip-form button:hover {
	background: #1747cc;
}

.modal-trip-form button:disabled {
	background: #ccc;
	cursor: not-allowed;
}
/* Additional Trip Planner Form Styling */
body.trip-planner-template .trip-planner-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	min-height: 80px;
	max-height: 150px;
}

body.trip-planner-template .trip-planner-form textarea:focus {
	outline: none;
	border-color: #1f5bff;
	box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.1);
}

body.trip-planner-template {
	overflow: hidden;
}

body.trip-planner-template {
	height: 100vh;
}

.trip-planner-full {
	height: 100vh;
	width: 100vw;
	margin: 0;
	padding: 0;
}

.trip-planner-full #hr-planner-map {
	width: 100%;
	height: 100vh;
}

.hr-planner-blocker {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(2px);
	display: none;
	z-index: 9998;
}

.hr-onboard-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.hr-onboard-modal__content {
	background: #fff;
	border-radius: 12px;
	padding: 28px;
	max-width: 420px;
	width: calc(100% - 40px);
	text-align: center;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hr-onboard-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 18px;
}

.hr-onboard-modal__actions .btn_1.outline {
	background: transparent;
	color: var(--hitchrover-primary, #1f5bff);
	border: 1px solid var(--hitchrover-primary, #1f5bff);
}

body.trip-planner-template .trip-planner-form label[for="trip-planner-tolls"] {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	margin-top: 8px;
}

body.trip-planner-template .trip-planner-form input[type="checkbox"] {
	width: auto;
	margin: 0;
	cursor: pointer;
}

body.trip-planner-template .trip-planner-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

body.trip-planner-template .trip-planner-actions button {
	margin-top: 0;
	padding: 10px 12px;
	font-size: 13px;
}

body.trip-planner-template .btn-danger {
	background: #dc3545 !important;
}

body.trip-planner-template .btn-danger:hover {
	background: #c82333 !important;
}

body.trip-planner-template small {
	display: block;
	font-size: 12px;
	color: #999;
	margin-top: -8px;
	margin-bottom: 8px;
}
