/*
 Theme Name:   Twenty Seventeen Child
 Theme URI:    
 Description:  Twenty Seventeen Child Theme
 Author:       ZS
 Author URI:   
 Template:     twentyseventeen
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twentyseventeenchild
*/

/*
 * The parent theme crops the front-page logo into a fixed-height photo
 * panel and overlays the site title on top of it — which both hid part
 * of the image and made the title unreadable wherever it landed on a
 * light part of the graphic. Show the image at its natural size instead
 * (no cropping) and let the title render as normal text below it, not
 * overlaid.
 */
.has-header-image.twentyseventeen-front-page .custom-header,
.has-header-video.twentyseventeen-front-page .custom-header,
.has-header-image.home.blog .custom-header,
.has-header-video.home.blog .custom-header {
	display: block !important;
	height: auto !important;
}

.has-header-image.twentyseventeen-front-page .custom-header-media,
.has-header-video.twentyseventeen-front-page .custom-header-media,
.has-header-image.home.blog .custom-header-media,
.has-header-video.home.blog .custom-header-media {
	position: static !important;
	overflow: visible !important;
	height: auto !important;
}

.has-header-image.twentyseventeen-front-page .custom-header-media:before,
.has-header-video.twentyseventeen-front-page .custom-header-media:before,
.has-header-image.home.blog .custom-header-media:before,
.has-header-video.home.blog .custom-header-media:before {
	display: none !important;
}

.has-header-image.twentyseventeen-front-page .custom-header-media img,
.has-header-video.twentyseventeen-front-page .custom-header-media video,
.has-header-image.home.blog .custom-header-media img,
.has-header-video.home.blog .custom-header-media video {
	position: static !important;
	transform: none !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: min(100%, 420px) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 1.5em auto 0 !important;
	object-fit: contain !important;
}

.has-header-image.twentyseventeen-front-page .site-branding,
.has-header-video.twentyseventeen-front-page .site-branding,
.has-header-image.home.blog .site-branding,
.has-header-video.home.blog .site-branding {
	display: block !important;
	height: auto !important;
	position: static !important;
	margin-top: 1.5em !important;
}

.twentyseventeen-front-page.has-header-image .site-title,
.twentyseventeen-front-page.has-header-video .site-title,
.twentyseventeen-front-page.has-header-image .site-title a,
.twentyseventeen-front-page.has-header-video .site-title a,
.home.blog.has-header-image .site-title,
.home.blog.has-header-video .site-title,
.home.blog.has-header-image .site-title a,
.home.blog.has-header-video .site-title a {
	color: #222 !important;
}

.twentyseventeen-front-page.has-header-image .site-description,
.twentyseventeen-front-page.has-header-video .site-description,
.home.blog.has-header-image .site-description,
.home.blog.has-header-video .site-description {
	color: #666 !important;
	opacity: 1 !important;
}

/*
 * Matches the nav bar's Login button (.menu-item-login-cta below) rather
 * than WPAdverts' own small gray button, and rather than inheriting the
 * huge font-size of whatever it's swapped into (e.g. the price badge's
 * 4xl text).
 */
.my-theme-login-cta {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	padding: 0.6em 1em;
	border-radius: 4px;
	background-color: #ab0000;
	color: #fff;
}

.my-theme-login-cta:hover {
	background-color: #8a0000;
}

.my-theme-price-ticker-item {
	padding: 0.5em 1em;
	display: flex;
	align-items: center;
}

.my-theme-price-ticker {
	display: flex;
	gap: 0.5em;
	align-items: center;
}

.my-theme-price-box {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.3em 0.75em;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.85em;
}

.my-theme-price-label {
	font-weight: 600;
	color: #333;
}

.my-theme-price-value {
	color: #333;
}

.my-theme-price-change--up {
	color: #2e7d32;
}

.my-theme-price-change--down {
	color: #c62828;
}

.menu-item-login-cta > a {
	background-color: #ab0000;
	color: #fff !important;
	padding: 0.5em 1.2em;
	border-radius: 4px;
}

.menu-item-login-cta > a:hover {
	background-color: #8a0000;
}

.menu-item-register-cta > a {
	background-color: transparent;
	color: #ab0000 !important;
	padding: 0.5em 1.2em;
	border-radius: 4px;
	border: 1px solid #ab0000;
	margin-right: 0.5em;
}

/*
 * Only .menu-item-account-area had margin-left:auto, so it alone got
 * pushed to the far right — Register (an ordinary, unpushed item) stayed
 * packed next to the price ticker instead, leaving a big gap between the
 * two buttons. Move the auto margin onto Register when it's present (so
 * the pair gets pushed right together, flush against each other) and
 * suppress the account-area's own auto margin right after it so the space
 * isn't split between both.
 */
.menu-item-register-cta {
	margin-left: auto;
}

.menu-item-register-cta + .menu-item-account-area {
	margin-left: 0;
}

.my-theme-search-heading {
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #777;
	margin: 0 0 0.5em;
}

.my-theme-location-dropdowns {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.9em;
	width: 100%;
	margin-bottom: 0.9em;
}

.my-theme-location-field {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	font-size: 0.85em;
}

.my-theme-location-field-label {
	font-weight: 600;
	color: #444;
	white-space: nowrap;
}

.my-theme-location-field select {
	min-width: 170px;
	padding: 0.45em 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
}

.my-theme-location-field select:disabled {
	background-color: #f2f2f2;
	color: #999;
}

.menu-item-register-cta > a:hover {
	background-color: #ab0000;
	color: #fff !important;
}

/* Push Login / My Account into its own area on the right of the bar. */
@media screen and (min-width: 48em) {
	.main-navigation > div > ul {
		display: flex !important;
		align-items: center;
	}

	.menu-item-account-area {
		margin-left: auto;
	}
}

/*
 * Listing titles in the results list are already bold + colored to read
 * as clickable, so the "underline" is redundant — and it isn't even a
 * real text-decoration underline (that's already off via the plugin's
 * own "no underline" class). It's an inset box-shadow the plugin uses to
 * fake a bottom border under the link: `inset 0 -1px 0 0`. An inset
 * shadow with a negative Y offset renders at the *bottom* of the box,
 * and since the link is inline-block, its box is only as tall as its
 * wrapped content — so on a two-line title the "underline" lands under
 * just the last line, spanning that line's box width, which reads as a
 * stray bar rather than an intentional accent.
 */
.wpa-result-link {
	box-shadow: none !important;
}

.my-theme-account-section {
	border-bottom: 1px solid #ddd;
	padding: 0.2em 0;
}

.my-theme-account-section summary {
	font-weight: 700;
	font-size: 1.1em;
	padding: 0.7em 0.2em;
	cursor: pointer;
	list-style-position: outside;
}

.my-theme-account-section summary:hover {
	color: #ab0000;
}

.my-theme-account-section[open] summary {
	color: #ab0000;
	border-bottom: 1px solid #eee;
	margin-bottom: 0.8em;
}

.my-theme-account-section-body {
	padding: 0 0.2em 1em;
}

/*
 * Homepage (Wide) template. Twenty Seventeen's default page layout
 * floats .entry-header at 36% width and .entry-content at 58% width
 * side-by-side (its "page-two-column" treatment) inside a 700-1000px
 * .wrap — fine for a normal page, but it's what made the homepage read
 * as cramped/simple. Un-float them and widen the wrap just for this
 * template.
 */
.my-theme-homepage-wrap {
	max-width: 1400px;
}

.twentyseventeen-front-page #primary .entry-header,
.twentyseventeen-front-page #primary .entry-content {
	float: none !important;
	width: 100% !important;
}

.my-theme-homepage-header {
	text-align: center;
	margin-bottom: 1em;
}

.my-theme-homepage-header .entry-title {
	font-size: 2.2em;
}

.my-theme-featured-section {
	margin: 1.5em 0 2.5em;
}

.my-theme-featured-heading {
	font-size: 1.4em;
	margin-bottom: 0.7em;
}

.my-theme-featured-slider-wrap {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.my-theme-featured-slider {
	display: flex;
	flex-wrap: nowrap;
	gap: 1em;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 0.3em 0.1em 0.8em;
	flex: 1 1 auto;
	min-width: 0;
}

.my-theme-featured-card {
	flex: 0 0 240px;
	scroll-snap-align: start;
	display: block;
	text-decoration: none;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.my-theme-featured-card:hover {
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.12 );
}

.my-theme-featured-card-image {
	height: 150px;
	background-color: #f2f2f2;
}

.my-theme-featured-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.my-theme-featured-card-noimage {
	width: 100%;
	height: 100%;
}

.my-theme-featured-card-body {
	padding: 0.7em 0.8em;
}

.my-theme-featured-card-title {
	font-weight: 600;
	color: #333;
	font-size: 0.95em;
	line-height: 1.3;
	margin-bottom: 0.3em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.my-theme-featured-card-price {
	color: #ab0000;
	font-weight: 700;
	font-size: 0.9em;
}

.my-theme-slider-arrow {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 2.4em;
	height: 2.4em;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 1.3em;
	line-height: 1;
	cursor: pointer;
	color: #555;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	appearance: none;
	-webkit-appearance: none;
}

.my-theme-slider-arrow:hover {
	background: #ab0000;
	border-color: #ab0000;
	color: #fff;
}

.my-theme-required-note {
	font-size: 0.85em;
	color: #666;
	margin: 0 0 1em;
}

.my-theme-required-note-asterisk {
	font-weight: bold;
	color: #e9322d;
}