/**
 * Drive-EV Header Utilities Styles
 * Purpose: Styles for language switcher and login icon in header
 */

/* Utility items */
.drive-ev-header-util {
	display: inline-flex !important;
	align-items: center;
	flex-shrink: 0;
	height: 28px;
}

/* Language switcher */
.drive-ev-lang-switcher {
	gap: 4px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.drive-ev-lang-switcher .drive-ev-lang-link {
	color: var(--theme-color-text, #1d1d1d);
	text-decoration: none;
	opacity: 0.4;
	transition: opacity 0.3s ease;
}

.drive-ev-lang-switcher .drive-ev-lang-link:hover,
.drive-ev-lang-switcher .drive-ev-lang-link.active {
	opacity: 1;
	color: var(--theme-color-text, #1d1d1d);
}

.drive-ev-lang-switcher .drive-ev-lang-sep {
	opacity: 0.3;
	color: var(--theme-color-text, #1d1d1d);
}

/* Login icon */
.drive-ev-login {
	display: inline-flex !important;
	align-items: center;
}

.drive-ev-login .drive-ev-login-link {
	color: var(--theme-color-text, #1d1d1d);
	text-decoration: none;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	transition: opacity 0.3s ease;
}

.drive-ev-login .drive-ev-login-link svg {
	display: block;
}

.drive-ev-login .drive-ev-login-link:hover {
	opacity: 0.6;
	color: var(--theme-color-text, #1d1d1d);
}

/* Force all header right-column items into aligned single row */
.top_panel .elementor-col-25:last-child .elementor-widget-wrap {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 18px;
	justify-content: flex-end;
}

.top_panel .elementor-col-25:last-child .elementor-widget-wrap > .sc_layouts_item {
	flex-shrink: 0;
	display: inline-flex !important;
	align-items: center;
}

/* Hide Elementor RevSlider widgets inside page content (not our hero) */
.home .page_content_wrap .elementor-widget-revslider {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* =============================================
   Car Search/Filter Bar — grey background
   ============================================= */
.cars_search {
	background-color: #ededeb !important;
	padding: 30px 20px !important;
}

.cars_search .cars_search_form {
	max-width: 1200px;
	margin: 0 auto;
}

/* Search form input fields, dropdowns, checkboxes — white background */
.cars_search_form input[type="text"],
.cars_search_form input[type="search"],
.cars_search_form input[type="number"],
.cars_search_form select,
.cars_search_form select option,
.cars_search_form .select_container select,
.cars_search_form .select_container,
.cars_search_form .sc_form_field .sc_form_field_wrap,
.cars_search_form input[type="checkbox"],
.cars_search_form .sc_form_field_checkbox label::before {
	background-color: #fff !important;
}
.cars_search_form [class*="sc_form_field_cars_features"] label {
	background-color: #ededeb !important;
	color: #1d1d1d !important;
}

/* Search form text — black */
.cars_search_form input[type="text"],
.cars_search_form input[type="search"],
.cars_search_form input[type="number"],
.cars_search_form select,
.cars_search_form .select_container select,
.cars_search_form input::placeholder,
.cars_search_form select option {
	color: #1d1d1d !important;
}

/* Search submit button — blue */
.cars_search_form .cars_search_button,
.cars_search_form button[type="submit"],
.cars_search_form .sc_form_field_submit button {
	background-color: #00337a !important;
	border-color: #00337a !important;
}
.cars_search_form .cars_search_button:hover,
.cars_search_form button[type="submit"]:hover {
	background-color: #002255 !important;
	border-color: #002255 !important;
}

/* Advanced search toggle icon — blue */
.cars_search_form .cars_search_advanced_link,
.cars_search_form .cars_search_advanced_link:before,
.cars_search_form .cars_search_advanced_link svg,
.cars_search_form .cars_search_advanced_link i,
.cars_search_form .cars_search_advanced_link span,
.cars_search_opened .cars_search_form .cars_search_basic .cars_search_show_advanced {
	color: #00337a !important;
	fill: #00337a !important;
	stroke: #00337a !important;
}

/* Go to top button — blue */
.trx_addons_scroll_to_top,
.scroll_to_top {
	background-color: #00337a !important;
	border-color: #00337a !important;
}
.trx_addons_scroll_to_top:hover,
.scroll_to_top:hover {
	background-color: #002255 !important;
	border-color: #002255 !important;
}

/* Full-width grey band behind the search section */
.elementor-widget:has(.cars_search),
.elementor-element:has(.cars_search) {
	background-color: #ededeb !important;
}

.page_content_wrap .cars_search {
	background-color: #ededeb !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	padding: 30px calc(50vw - 50%) !important;
}

/* =============================================
   Testimonials + Car Review Section
   ============================================= */
.drive-ev-testimonials-section {
	background-color: #ededeb !important;
	padding: 60px 0;
	margin-top: 0;
}

/* Slider arrow buttons — white background */
.drive-ev-testimonials-section .slider_controls_wrap .slider_controls_nav > a,
.drive-ev-testimonials-section .swiper-button-prev,
.drive-ev-testimonials-section .swiper-button-next,
.drive-ev-testimonials-section .sc_slider_controls .sc_slider_controls_wrap > a {
	background-color: #fff !important;
}

.drive-ev-testimonials-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	align-items: stretch;
}

.drive-ev-testimonials-grid > div {
	min-width: 0;
}

.drive-ev-testimonials-left {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.drive-ev-section-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	color: #999;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.drive-ev-section-subtitle {
	font-size: 16px;
	font-style: italic;
	color: #e65100;
	margin: 0 0 8px;
}

.drive-ev-section-title {
	font-size: 32px;
	font-weight: 800;
	text-transform: uppercase;
	color: #1d1d1d;
	margin: 0 0 30px;
	line-height: 1.2;
}

.drive-ev-section-title .drive-ev-accent {
	color: #e65100;
	font-weight: 700;
}

/* Video right column */
.drive-ev-testimonials-right {
	display: flex;
	align-items: stretch;
}

/* Video thumbnail with play button overlay */
.drive-ev-video-thumb {
	width: 100%;
	height: 100%;
	min-height: 400px;
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: #111;
}

.drive-ev-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s ease;
}

.drive-ev-video-thumb:hover img {
	opacity: 0.8;
}

.drive-ev-video-thumb .drive-ev-video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background 0.3s ease;
}

.drive-ev-video-thumb:hover .drive-ev-video-play-btn {
	background: rgba(255,255,255,0.35);
}

/* Video popup overlay */
.drive-ev-video-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.85);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.drive-ev-video-popup-inner {
	position: relative;
	width: 80%;
	max-width: 900px;
	aspect-ratio: 16/9;
}

.drive-ev-video-popup-inner iframe {
	width: 100%;
	height: 100%;
	border-radius: 4px;
}

.drive-ev-video-popup-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	line-height: 1;
	transition: opacity 0.3s ease;
}

.drive-ev-video-popup-close:hover {
	opacity: 0.7;
}

.drive-ev-video-placeholder {
	width: 100%;
	height: 100%;
	min-height: 400px;
	background: linear-gradient(135deg, #333 0%, #111 100%);
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	cursor: pointer;
}

.drive-ev-video-play-btn {
	width: 80px;
	height: 80px;
	background: rgba(255,255,255,0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	transition: background 0.3s ease;
}

.drive-ev-video-placeholder:hover .drive-ev-video-play-btn {
	background: rgba(255,255,255,0.25);
}

.drive-ev-video-placeholder p {
	color: rgba(255,255,255,0.5);
	font-size: 13px;
	margin: 0;
}

/* Testimonials widget override inside our section */
.drive-ev-testimonials-section .sc_testimonials {
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 1023px) {
	.drive-ev-testimonials-grid {
		grid-template-columns: 1fr;
	}
	.drive-ev-video-embed iframe {
		min-height: 300px;
	}
	.drive-ev-video-placeholder {
		min-height: 300px;
	}
}

/* =============================================
   Latest News Section (moved Elementor section)
   ============================================= */
.drive-ev-latest-news-section {
	background-color: #ffffff !important;
}

/* Latest News slider dots — blue */
.drive-ev-latest-news-section .swiper-pagination-bullet,
.drive-ev-latest-news-section .slider_pagination_wrap .swiper-pagination-bullet {
	background-color: #c0c0c0 !important;
	opacity: 1 !important;
}
.drive-ev-latest-news-section .swiper-pagination-bullet-active,
.drive-ev-latest-news-section .slider_pagination_wrap .swiper-pagination-bullet-active,
.drive-ev-latest-news-section .swiper-pagination-bullet:hover,
.drive-ev-latest-news-section .slider_pagination_wrap .swiper-pagination-bullet:hover {
	background-color: #00337a !important;
	border-color: #00337a !important;
}

/* Hide original Elementor "Welcome to Drop-Top" section */
.elementor-element-0db625b {
	display: none !important;
}

/* =============================================
   About Drive EV Section
   ============================================= */
.drive-ev-about-section {
	background-color: #ededeb;
	padding: 80px 20px;
	text-align: center;
}

.drive-ev-about-inner {
	max-width: 900px;
	margin: 0 auto;
}

.drive-ev-about-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #1d1d1d;
	margin-bottom: 30px;
}

.drive-ev-about-title {
	font-size: 42px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.2;
	margin: 0 0 40px;
	color: #999;
	background-color: #999;
	background-image: radial-gradient(closest-side, #1d1d1d 78%, transparent 0);
	background-repeat: no-repeat;
	background-position: 50%;
	background-size: 0 0;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent;
}

.drive-ev-about-author {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.drive-ev-about-author strong {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #1d1d1d;
}

.drive-ev-about-author span {
	font-size: 13px;
	color: #999;
}

@media (max-width: 767px) {
	.drive-ev-about-title {
		font-size: 26px;
	}
}

/* =============================================
   Floating Sidebar Action Buttons
   ============================================= */
.drive-ev-side-buttons {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.drive-ev-side-btn {
	display: flex;
	align-items: stretch;
	text-decoration: none !important;
	position: relative;
	height: 48px;
	overflow: visible;
}

/* Icon square — always visible on right edge */
.drive-ev-side-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #00337a;
	color: #fff;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	transition: background 0.3s ease;
}

.drive-ev-side-btn:hover .drive-ev-side-btn-icon {
	background: #002255;
}

/* Text label — hidden off-screen, slides in on hover */
.drive-ev-side-btn-label {
	position: absolute;
	right: 48px;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	background: #002255;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.8px;
	white-space: nowrap;
	padding: 0 18px;
	opacity: 0;
	transform: translateX(100%);
	transition: transform 0.3s ease, opacity 0.3s ease;
	pointer-events: none;
}

.drive-ev-side-btn:hover .drive-ev-side-btn-label {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

/* Testimonial avatar quote badge — blue */
.sc_testimonials_default .sc_testimonials_item_author_avatar:before {
	background-color: #00337a !important;
}

/* Cart badge — blue */
.top_panel .sc_layouts_cart_icon .sc_layouts_cart_items_short,
.top_panel .sc_layouts_cart .sc_layouts_cart_items_short {
	background-color: #00337a !important;
	border-color: #00337a !important;
}

/* Hide on mobile */
@media (max-width: 767px) {
	.drive-ev-header-util {
		display: none !important;
	}
	.drive-ev-side-buttons {
		display: none;
	}
}
