/* Donau Automobile — dark homepage hero and quote form. */

.da-home-hero {
	position: relative;
	z-index: 1;
	min-height: var(--da-hero-height, 85vh);
	background-color: #101215;
	background-image: var(--da-hero-bg-image, none);
	background-repeat: no-repeat;
	background-position: center var(--da-hero-bg-position-y, 50%);
	background-size: cover;
	color: #fff;
}

.da-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #080a0d;
	opacity: var(--da-hero-overlay-opacity, .62);
	pointer-events: none;
}

.da-home-hero-content {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100% - 40px, 1280px);
	min-height: var(--da-hero-height, 85vh);
	margin-inline: auto;
	padding: calc(var(--da-header-height, 96px) + clamp(64px, 8vh, 108px)) 0 150px;
}

.da-home-hero-copy {
	position: relative;
	z-index: 3;
	width: 100%;
	text-align: center;
}

.da-home-hero-copy h1 {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 .2em;
	margin: 0;
	font-size: min(var(--da-hero-title-size, 64px), 5.4vw);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.035em;
	color: #fff;
}

.da-home-hero-title-accent {
	color: var(--da-color-accent, #d71f2b);
}

.da-home-hero-description {
	max-width: 700px;
	margin: 20px auto 0;
	font-size: var(--da-hero-description-size, 15px);
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, .72);
}

.da-home-quote-form {
	position: relative;
	z-index: 4;
	display: grid;
	grid-template-columns: minmax(230px, 1.12fr) minmax(220px, .96fr) minmax(230px, 1.12fr) auto;
	gap: 10px;
	width: min(1100px, 100%);
	margin-top: 32px;
	padding: 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
	overflow: visible;
}

.da-home-location-field {
	position: relative;
	min-width: 0;
}

/* Keep date/time popovers positioned from the complete quote pill, not the date cell. */
.da-home-date-wrap {
	position: static;
	min-width: 0;
}

.da-home-quote-field {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	height: 46px;
	padding: 0 15px;
	border: 1px solid #e3e4e6;
	border-radius: 999px;
	background: #fff;
	color: #181a1f;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.da-home-quote-field:hover,
.da-home-quote-field:focus-within {
	border-color: #b9bcc1;
}

.da-home-quote-field:focus-within {
	box-shadow: 0 0 0 3px rgba(24, 26, 31, .04);
}

.da-home-quote-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	color: #181a1f;
}

.da-home-quote-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.da-home-quote-field input {
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--da-font-body, "Inter", Arial, sans-serif);
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	color: #181a1f;
}

.da-home-quote-field input::placeholder {
	color: #62666d;
	opacity: 1;
}

.da-home-booking-date-control {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 84px;
	min-width: 0;
	height: 46px;
	border: 1px solid #e3e4e6;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.da-home-booking-date-control:hover,
.da-home-booking-date-control:focus-within {
	border-color: #b9bcc1;
}

.da-home-booking-date-control:focus-within {
	box-shadow: 0 0 0 3px rgba(24, 26, 31, .04);
}

.da-home-booking-date-trigger,
.da-home-booking-time-trigger {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: #181a1f;
	font-family: var(--da-font-body, "Inter", Arial, sans-serif);
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.da-home-booking-date-trigger {
	gap: 9px;
	padding: 0 14px;
	border-right: 1px solid #e3e4e6;
	text-align: left;
}

.da-home-booking-date-trigger > span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 400;
	color: #62666d;
}

.da-home-booking-time-trigger {
	justify-content: center;
	padding: 0 10px;
	white-space: nowrap;
}

.da-home-booking-date-trigger:hover,
.da-home-booking-date-trigger:focus-visible,
.da-home-booking-date-trigger[aria-expanded="true"],
.da-home-booking-time-trigger:hover,
.da-home-booking-time-trigger:focus-visible,
.da-home-booking-time-trigger[aria-expanded="true"] {
	outline: 0;
	background: #fff;
}

.da-home-quote-submit {
	min-width: 154px;
	height: 46px;
	padding: 0 24px;
	border: 1px solid var(--da-color-accent, #d71f2b);
	border-radius: var(--da-radius-button, 999px);
	background: var(--da-color-accent, #d71f2b);
	font-family: var(--da-font-body, "Inter", Arial, sans-serif);
	font-size: var(--da-font-size-button, 14px);
	font-weight: 600;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}

.da-home-quote-submit:hover,
.da-home-quote-submit:focus-visible {
	border-color: #181a1f;
	background: #181a1f;
	outline: 0;
}

/* Mapbox Search Box suggestions. */
.da-place-suggestions {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 40;
	width: min(460px, calc(100vw - 40px));
	padding: 7px 7px 5px;
	border: 1px solid #dedfe2;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
	color: #181a1f;
}

.da-home-location-field[data-da-place-field="dropoff"] .da-place-suggestions {
	left: auto;
	right: 0;
}

.da-place-suggestions[hidden] {
	display: none;
}

.da-place-suggestions-list {
	display: grid;
	gap: 2px;
}

.da-place-suggestion {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 9px 10px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: #fff;
	color: #181a1f;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.da-place-suggestion:hover,
.da-place-suggestion:focus-visible {
	border-color: #d9dade;
	background: #f7f7f8;
	outline: 0;
}

.da-place-suggestion-icon {
	display: grid;
	place-items: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-top: 1px;
}

.da-place-suggestion-icon svg {
	width: 17px;
	height: 17px;
}

.da-place-suggestion-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.da-place-suggestion-copy strong,
.da-place-suggestion-copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.da-place-suggestion-copy strong {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.da-place-suggestion-copy small {
	color: #777b81;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.35;
}

.da-place-suggestions-status {
	padding: 12px 10px;
	color: #696d73;
	font-size: 11px;
	line-height: 1.45;
}

.da-mapbox-attribution {
	padding: 7px 10px 5px;
	border-top: 1px solid #eeeeef;
	color: #5e5e5e;
	font-family: Roboto, Arial, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	text-align: right;
	white-space: nowrap;
}

/* Shared date/time popovers. */
.da-home-popover {
	position: absolute;
	top: calc(100% + 16px);
	z-index: 45;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: #181a1f;
	box-shadow: none;
}

.da-home-popover[hidden] {
	display: none;
}

.da-home-popover-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 54px;
	padding: 0 14px;
	border-bottom: 1px solid #ededee;
}

.da-home-popover-head strong {
	font-size: 13px;
	font-weight: 600;
}

.da-home-popover-close {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f1f2;
	color: #222;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.da-home-popover-close:hover,
.da-home-popover-close:focus-visible {
	background: #e5e5e6;
	outline: 0;
}

/* Calendar */
.da-home-calendar-popover {
	left: 50%;
	width: min(890px, calc(100vw - 40px));
	padding: 0 20px 22px;
	transform: translateX(-50%);
}

.da-home-calendar-navigation {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 36px;
	gap: 14px;
	align-items: start;
	padding-top: 18px;
}

.da-home-calendar-navigation > button {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: #fff;
	color: #222;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.da-home-calendar-navigation > button:hover,
.da-home-calendar-navigation > button:focus-visible {
	border-color: #cfcfd2;
	outline: 0;
}

.da-home-calendar-navigation > button:disabled {
	opacity: .28;
	cursor: not-allowed;
}

.da-home-calendar-months {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.da-home-calendar-month h3 {
	margin: 0 0 13px;
	text-align: center;
	font-family: var(--da-font-body, "Inter", Arial, sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: capitalize;
}

.da-home-calendar-weekdays,
.da-home-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	text-align: center;
}

.da-home-calendar-weekdays {
	margin-bottom: 7px;
	color: #777b81;
	font-size: 9px;
	font-weight: 600;
	text-transform: uppercase;
}

.da-home-calendar-days {
	row-gap: 4px;
}

.da-home-calendar-day,
.da-home-calendar-blank {
	width: 32px;
	height: 32px;
	margin: auto;
}

.da-home-calendar-day {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 9px;
	background: #fff;
	color: #181a1f;
	font-family: var(--da-font-body, "Inter", Arial, sans-serif);
	font-size: 11px;
	font-weight: 500;
	cursor: pointer;
}

.da-home-calendar-day:hover,
.da-home-calendar-day:focus-visible {
	border-color: #181a1f;
	outline: 0;
}

.da-home-calendar-day.is-selected {
	border-color: #181a1f;
	background: #181a1f;
	color: #fff;
}

.da-home-calendar-day.is-disabled {
	color: #c4c6c9;
	cursor: not-allowed;
}

.da-home-calendar-day.is-disabled:hover {
	border-color: transparent;
}

/* Time picker — intentionally no office-hours state or surcharge messaging. */
.da-home-time-popover {
	left: 50%;
	width: 280px;
	padding: 0 12px 13px;
	transform: translateX(-50%);
}

.da-home-time-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	max-height: 330px;
	padding: 12px 2px 2px;
	overflow: auto;
}

.da-home-time-option {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-items: center;
	min-height: 46px;
	padding: 6px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: #f3f3f4;
	color: #222;
	font-family: var(--da-font-body, "Inter", Arial, sans-serif);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
}

.da-home-time-option:hover,
.da-home-time-option:focus-visible {
	border-color: #8f9297;
	outline: 0;
}

.da-home-time-option.is-selected {
	border-color: #181a1f;
	background: #181a1f;
	color: #fff;
}


.da-home-background-art-layer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	max-height: 240px;
	overflow: hidden;
	pointer-events: none;
}

.da-home-background-art {
	display: block;
	width: min(1920px, 100%);
	height: auto;
	max-width: 100%;
	margin: 0 auto var(--da-hero-art-bottom, 0px);
	opacity: var(--da-hero-art-opacity, .06);
	object-fit: contain;
	object-position: center bottom;
	user-select: none;
}

.da-home-vehicle-layer {
	position: absolute;
	left: 50%;
	bottom: var(--da-hero-vehicle-bottom, -10px);
	z-index: 2;
	display: flex;
	justify-content: center;
	width: min(100%, 1440px);
	transform: translateX(-50%);
	pointer-events: none;
}

.da-home-vehicle-image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(860px, 72vw);
	max-height: 38svh;
	object-fit: contain;
	object-position: center bottom;
	user-select: none;
}

@media (max-width: 1300px) {
	.da-home-calendar-popover {
		left: 50%;
		width: min(640px, calc(100vw - 40px));
		transform: translateX(-50%);
	}

	.da-home-calendar-months {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1120px) {
	.da-home-hero-content {
		padding-top: calc(var(--da-header-height, 96px) + 54px);
		padding-bottom: 120px;
	}

	.da-home-quote-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-radius: 28px;
	}

	.da-home-quote-submit {
		width: 100%;
	}

	.da-home-hero-copy h1 {
		font-size: min(var(--da-hero-title-size, 64px), 7vw);
	}
}

@media (max-width: 767px) {
	.da-home-hero,
	.da-home-hero-content {
		min-height: var(--da-hero-height, 85vh);
	}

	.da-home-hero-content {
		width: min(100% - 28px, 1280px);
		padding-top: calc(var(--da-header-height, 96px) + 36px);
		padding-bottom: 90px;
	}

	.da-home-hero-copy h1 {
		gap: 0 .18em;
		font-size: min(var(--da-hero-title-size, 64px), 10.5vw);
		line-height: 1.04;
	}

	.da-home-hero-description {
		margin-top: 16px;
		font-size: min(var(--da-hero-description-size, 15px), 4.2vw);
	}

	.da-home-quote-form {
		grid-template-columns: 1fr;
		gap: 9px;
		margin-top: 24px;
		padding: 12px;
		border-radius: 24px;
	}

	.da-home-quote-submit {
		grid-column: auto;
	}

	.da-home-calendar-popover {
		position: fixed;
		inset: auto 12px 12px;
		width: auto;
		max-height: calc(100svh - 24px);
		padding: 0 12px 15px;
		transform: none;
		overflow: auto;
	}

	.da-home-calendar-navigation {
		grid-template-columns: 32px minmax(0, 1fr) 32px;
		gap: 6px;
	}

	.da-home-calendar-months {
		grid-template-columns: 1fr;
	}

	.da-home-calendar-day,
	.da-home-calendar-blank {
		width: 36px;
		height: 36px;
	}

	.da-home-time-popover {
		position: fixed;
		right: 12px;
		bottom: 12px;
		left: 12px;
		top: auto;
		width: auto;
		max-height: 72svh;
		transform: none;
	}

	.da-place-suggestions,
	.da-home-location-field[data-da-place-field="dropoff"] .da-place-suggestions {
		position: fixed;
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		max-height: 72svh;
		overflow: auto;
	}

	.da-home-background-art-layer {
		max-height: 130px;
	}

	.da-home-vehicle-image {
		max-width: min(680px, 92vw);
		max-height: 28svh;
	}
}
