/*
Theme Name: Emperor Tours
Version: 1.0.0
Template: astra
*/

/* Push content below the fixed header on non-Elementor pages only */
body:not(:has(.elementor)) .ast-separate-container,
body:not(:has(.elementor)) #content {
	padding-top: 200px;
}

@media (max-width: 1317px) {
	body:not(:has(.elementor)) .ast-separate-container,
	body:not(:has(.elementor)) #content {
		padding-top: 130px;
	}
}

/* Astra Header Builder */

#ast-desktop-header, #ast-mobile-header {
	position: fixed;
	top: 0;
	left: 0;
	padding: 0;
	width: 100%;
	transition: all ease-out 0.5s;
	z-index: 999;
}

#ast-desktop-header.active {
	background-color: rgba(255, 255, 255, 0);
	box-shadow: 5px 3px 20px 0 rgba(0, 0, 0, 0.1);
	margin-top: -35px;
	padding: 0;
}

#ast-mobile-header.active {
	background-color: rgba(255, 255, 255, 0);
	box-shadow: 5px 3px 20px 0 rgba(0, 0, 0, 0.1);
	padding: 0;
}

#ast-desktop-header.active img.custom-logo, #ast-mobile-header.active img.custom-logo {
	width: 200px!important;
	transition: all ease-out 0.5s;
}

/* End Astra Header Builder */

/* Google Maps */

#googleMapContainer {
	width: 100%;
}

#googleMap {
	width: 100%;
	height: 450px; /* adjust as needed */
}

/* End Google Maps */

/* Content */

.ast-page-builder-template.single .post-navigation {
	display: none;
}

.ast-article-single figure,
.ast-article-single img:not(figure img) {
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
}

.elementor-divider svg path {
	fill: #a21a28 !important;
}

.elementor-icon-box svg * {
	fill: none !important;
	stroke: #a21a28 !important;
}

.ast-search-results .entry-meta .author, 
.ast-archive-post .entry-meta .author,
.ast-author-meta { 
	display: none !important; 
}

/* End Content */

/* Sticky Left / Right */

.sticky-parent {
	align-items: flex-start;
}

.sticky-left,
.sticky-right {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 190px !important;
	align-self: flex-start !important;
}

.sticky-left img,
.sticky-right img {
	z-index: 10;
	width: 100%;
}

@media screen and (max-width: 767px) {
	.sticky-left,
	.sticky-right {
		position: static !important;
		top: auto !important;
		align-self: auto !important;
	}
}

/* End Sticky Left / Right */

/* WP Forms */

.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus {
	border-color: #a21a28 !important;
	outline-color: #a21a28 !important;
}

/* End WP Forms */

/* WooCommerce */

@media (max-width: 600px) {
	form #order_review_heading:not(.elementor-widget-woocommerce-checkout-page #order_review_heading) {
		padding: 10px;
	}
	
	form #order_review:not(.elementor-widget-woocommerce-checkout-page #order_review) {
		padding: 0 10px;
	}
}

/* End WooCommerce */

/* Travel Insurance Table */

.emperor-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.emperor-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 500px;
}

.emperor-table tr:first-child td {
	background-color: #a21a28;
	color: #ffffff;
	font-weight: 700;
	padding: 14px 16px;
	text-align: left;
	border: none;
}

.emperor-table tr:first-child td:first-child {
	border-radius: 8px 0 0 0;
}

.emperor-table tr:first-child td:last-child {
	border-radius: 0 8px 0 0;
}

.emperor-table tbody tr:not(:first-child) {
	border-bottom: 1px solid #f0e0e2;
}

.emperor-table tbody tr:not(:first-child):nth-child(even) {
	background-color: #fdf5f5;
}

.emperor-table tbody tr:not(:first-child):nth-child(odd) {
	background-color: #ffffff;
}

.emperor-table tbody tr:not(:first-child):hover {
	background-color: #f9e8e9;
	transition: background-color 0.2s ease;
}

.emperor-table tbody tr:not(:first-child) td {
	padding: 12px 16px;
	color: #333333;
	vertical-align: top;
}

.emperor-table tbody tr:not(:first-child) td:first-child {
	font-weight: 700;
	color: #a21a28;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.emperor-table {
		font-size: 13px;
	}
	.emperor-table tbody tr:not(:first-child) td {
		padding: 10px 12px;
	}
	.emperor-table tr:first-child td {
		padding: 12px;
		font-size: 13px;
	}
}

/* End Travel Insurance Table */

/* Search */

.site-header-below-section-center.ast-grid-section-center {
	width: 100%;
	flex: 1 1 100%;
	display: flex;
	justify-content: center;
}

.header-widget-area-inner {
	width: 100%;
	display: flex;
	justify-content: center;
}

.emperor-search-bar {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex-wrap: wrap;
	max-width: 1040px;
	margin: 0 auto;
}

.emperor-search-field {
	flex: 1;
	min-width: 200px;
}

.emperor-search-field select {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: none;
	border-radius: 4px;
	background: #ffffff;
	color: #3a3a3a;
	font-size: 15px;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1 1l6 6 6-6' stroke='%23999' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}

.emperor-search-btn {
	flex: 0 0 auto;
	height: 52px;
	padding: 0 36px;
	background: #a21a28;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.emperor-search-btn:hover {
	background: #000000;
}

@media (max-width: 1024px) {
	.emperor-search-bar {
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.emperor-search-bar {
		flex-direction: column;
	}
	.emperor-search-field,
	.emperor-search-btn {
		width: 100%;
	}
}

/* End Search */

/* Footer */

.travel-aware {
	margin: 0 auto;
	margin-top: 30px;
	width: 900px;
}

.accreditation-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 24px 32px;
	padding: 0 0 20px;
	margin-bottom: 20px;
}

.accreditation-logos img {
	height: 48px;
	width: auto;
	opacity: 0.6;
	filter: grayscale(100%);
	transition: filter 0.4s ease, opacity 0.4s ease;
	object-fit: contain;
}

.accreditation-logos img:hover {
	filter: grayscale(0%);
	opacity: 1;
}

@media screen and (max-width: 1259px) {
	.travel-aware {
		width: 100%;
	}
	
	.accreditation-logos {
		gap: 16px 24px;
	}

	.accreditation-logos img {
		height: 36px;
	}
}

/* End Footer */