/**
 * Youngstown Lakeside Cottages - Main Styles
 */

:root {
	--color-accent: #b25555;
	--color-accent-dark: #9a4545;
	--color-heading: #003366;
	--color-text: #222222;
	--color-white: #ffffff;
	--color-footer-bg: #2a2a2a;
	--color-footer-bottom: #111111;
	--color-footer-link: #c97878;
	--font-body: "Open Sans", Arial, Helvetica, sans-serif;
	--font-logo: "Lobster", "Brush Script MT", cursive;
	--container-width: 1200px;
	--shadow-card: 0 2px 8px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-white);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-accent-dark);
}

.container {
	width: min(100% - 32px, var(--container-width));
	margin-inline: auto;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Top Bar */
.top-bar {
	background: var(--color-accent);
	color: var(--color-white);
	font-size: 13px;
	padding: 8px 0;
}

.top-bar__inner {
	display: flex;
	justify-content: center;
}

.top-bar__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	align-items: center;
}

.top-bar__item {
	color: var(--color-white);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.top-bar__item:hover {
	color: #ffeaea;
}

.top-bar__icon {
	font-size: 14px;
}

/* Header */
.site-header {
	background: var(--color-white);
	padding: 24px 0 16px;
	border-bottom: 1px solid #eee;
}

.site-header__inner {
	text-align: center;
}

.site-branding {
	margin-bottom: 16px;
}

.site-logo,
.custom-logo-link {
	display: inline-block;
	font-family: var(--font-logo);
	font-size: clamp(2rem, 5vw, 3rem);
	color: #e63946;
	text-shadow:
		-1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000,
		1px 1px 0 #000,
		2px 3px 4px rgba(0, 0, 0, 0.35);
	line-height: 1.1;
}

.site-logo:hover {
	color: #ff4d5a;
}

.custom-logo {
	max-height: 100px;
	width: auto;
}

/* Navigation */
.main-navigation {
	position: relative;
}

.menu-toggle {
	display: none;
	background: none;
	border: 2px solid var(--color-accent);
	border-radius: 4px;
	padding: 8px 10px;
	cursor: pointer;
	margin: 0 auto 8px;
}

.menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-accent);
	margin: 5px 0;
	transition: transform 0.2s ease;
}

.main-navigation .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
}

.main-navigation .menu a {
	color: #555;
	font-size: 15px;
	font-weight: 600;
	padding: 4px 0;
}

.main-navigation .menu a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--color-accent);
}

/* Hero Section */
.hero-section {
	background-color: #1a5f8a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 40px 0 32px;
	min-height: 520px;
}

.cottage-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	align-items: stretch;
}

.cottage-card {
	background: var(--color-white);
	padding: 16px 14px 20px;
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	text-align: center;
}

.cottage-card__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--color-heading);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.cottage-card__image {
	margin-bottom: 12px;
	overflow: hidden;
	border: 1px solid #ddd;
}

.cottage-card__slider {
	margin-bottom: 12px;
}

.cottage-card__image img {
	width: 100%;
	height: 120px;
	object-fit: cover;
}

/* Cottage Slider */
.cottage-slider {
	position: relative;
	border: 1px solid #ddd;
	background: #fff;
}

.cottage-slider__viewport {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
}

.cottage-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.cottage-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.cottage-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.cottage-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cottage-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #434343;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.cottage-slider:hover .cottage-slider__arrow,
.cottage-slider:focus-within .cottage-slider__arrow {
	opacity: 1;
}

.cottage-slider__arrow:hover {
	background: #fff;
}

.cottage-slider__arrow--prev {
	left: 6px;
}

.cottage-slider__arrow--next {
	right: 6px;
}

.cottage-slider__timer {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 3;
	width: 22px;
	height: 22px;
}

.cottage-slider__timer-svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.cottage-slider__timer-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.5);
	stroke-width: 2;
}

.cottage-slider__timer-progress {
	fill: none;
	stroke: #434343;
	stroke-width: 2;
	stroke-dasharray: 62.83;
	stroke-dashoffset: 62.83;
}

.cottage-slider.is-playing .cottage-slider__timer-progress {
	animation: ylc-timer var(--ylc-autoplay, 4s) linear infinite;
}

@keyframes ylc-timer {
	from {
		stroke-dashoffset: 62.83;
	}
	to {
		stroke-dashoffset: 0;
	}
}

.cottage-slider__thumbs {
	overflow: hidden;
	padding: 4px;
	background: #fff;
	border-top: 1px solid #eee;
}

.cottage-slider__thumbs-track {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.cottage-slider__thumb {
	border: 2px solid #fff;
	padding: 0;
	background: #fff;
	cursor: pointer;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	box-shadow: 0 0 0 1px #ddd;
	transition: box-shadow 0.2s ease, opacity 0.2s ease;
	opacity: 0.75;
}

.cottage-slider__thumb.is-active {
	box-shadow: 0 0 0 2px var(--color-accent);
	opacity: 1;
}

.cottage-slider__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cottage-card__btn {
	display: block;
	margin-top: auto;
	padding: 0;
	background: transparent;
	border: none;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cottage-card__btn-image {
	width: 100%;
	height: auto;
	display: block;
}

.cottage-card__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cottage-card__content {
	flex: 1;
	font-size: 12px;
	line-height: 1.55;
	color: #333;
	margin-bottom: 14px;
	text-align: left;
}

.cottage-card__content p {
	margin: 0;
}

.cottage-card__btn-text {
	display: block;
	padding: 12px 10px;
	font-family: var(--font-logo);
	font-size: 1.6rem;
	color: #e63946;
	background:
		linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
		linear-gradient(180deg, #87ceeb 0%, #f4e4bc 100%);
	border: 2px solid #ccc;
	text-shadow:
		-1px -1px 0 #fff,
		1px -1px 0 #fff,
		-1px 1px 0 #fff,
		1px 1px 0 #fff;
}

.cancelation-policy {
	margin: 28px auto 0;
	max-width: 900px;
	text-align: center;
	color: var(--color-white);
	font-size: 13px;
	line-height: 1.5;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Page Content */
.page-content {
	padding: 48px 0 64px;
}

.entry-title {
	color: var(--color-heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 20px;
}

.entry-content {
	font-size: 15px;
	line-height: 1.7;
}

.entry-content p {
	margin: 0 0 1em;
}

.cottage-single__featured {
	margin-bottom: 24px;
	border: 1px solid #ddd;
}

.cottage-single__featured img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
}

.cottage-single__back {
	margin-top: 32px;
}

/* Footer */
.site-footer {
	margin-top: auto;
}

.site-footer__nav {
	background: var(--color-footer-bg);
	padding: 18px 0;
}

.site-footer__nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}

.site-footer__nav .menu a {
	color: var(--color-footer-link);
	font-size: 14px;
	font-weight: 600;
}

.site-footer__nav .menu a:hover {
	color: #e8a0a0;
}

.site-footer__bottom {
	background: var(--color-footer-bottom);
	padding: 14px 0;
	text-align: center;
}

.site-footer__bottom p {
	margin: 0;
	color: #888;
	font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
	.cottage-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation .menu {
		display: none;
		flex-direction: column;
		gap: 0;
		background: #fafafa;
		border: 1px solid #eee;
		padding: 8px 0;
		margin-top: 8px;
	}

	.main-navigation.toggled .menu {
		display: flex;
	}

	.main-navigation .menu li {
		width: 100%;
		text-align: center;
	}

	.main-navigation .menu a {
		display: block;
		padding: 10px 16px;
	}

	.top-bar__contact {
		flex-direction: column;
		gap: 6px;
	}

	.cottage-grid {
		grid-template-columns: 1fr;
		max-width: 360px;
		margin-inline: auto;
	}

	.hero-section {
		padding: 24px 0;
	}
}

@media (max-width: 480px) {
	.site-logo {
		font-size: 1.75rem;
	}
}
