/*
Theme Name:   Stamatia 23 Child
Theme URI:    https://stamatiaapartments.com/
Description:  Child theme του Kea - Ignition (φάκελος stamatia23): βελτιστοποιήσεις PageSpeed και διορθώσεις εμφάνισης (header, slider, δωμάτια, cookie banner, footer).
Author:       boulios.com
Author URI:   https://boulios.com/
Template:     stamatia23
Version:      1.1.0
Requires PHP: 7.4
Text Domain:  stamatia23-child
*/

:root {
	--bsg-brand: #6e4d32;
	--bsg-brand-dark: #563b25;
	--bsg-text-soft: #555;
	--bsg-cn-h: 0px; /* ύψος cookie banner — ορίζεται από JS όσο είναι ανοιχτό */
}

/* WPML / Ignition σημαίες: σταθερές διαστάσεις (αποφυγή layout shift). */
img[src*="/flags/"] {
	width: 18px;
	height: 12px;
}

/* =========================================================
   1. HEADER
   ========================================================= */

/* Book Online στο μενού: γεμάτο κουμπί στο χρώμα του brand. */
.navigation-main > .nav-button > a {
	background-color: var(--bsg-brand);
	border-color: var(--bsg-brand) !important;
	color: #fff !important;
	transition: background-color .2s ease, border-color .2s ease;
}

.navigation-main > .nav-button > a:hover,
.navigation-main > .nav-button > a:focus {
	background-color: var(--bsg-brand-dark);
	border-color: var(--bsg-brand-dark) !important;
	color: #fff !important;
}

@media (max-width: 767px) {
	/* Πάνω μπάρα: από 3 γραμμές (~110px) σε μία συμπαγή. */
	.head-intro {
		font-size: 13px;
		line-height: 1.4;
	}

	.head-intro-inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 4px 14px;
		padding: 7px 0;
	}

	.head-intro .head-content-slot {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 4px 12px;
		width: auto;
		margin: 0;
		padding: 0;
		flex: 0 1 auto;
	}

	/* Ο τίτλος υπάρχει ήδη στο logo. */
	.head-intro .head-content-slot:first-child:not(.head-content-slot-center):not(.head-content-slot-end) {
		display: none;
	}

	.head-intro .head-content-slot-item:empty {
		display: none;
	}

	/* Γλώσσες: μόνο σημαίες στο κινητό. */
	.head-intro .ignition-language-switcher-language span {
		display: none;
	}

	.head-intro .ignition-language-switcher-language {
		margin: 0 3px;
	}

	/* Logo λίγο μικρότερο → πιο χαμηλό header. */
	.head-mast .custom-logo {
		max-height: 64px;
		width: auto;
	}

	.head-mast .head-mast-inner {
		padding-top: 10px;
		padding-bottom: 10px;
	}
}

/* =========================================================
   2. SLIDER
   ========================================================= */

.maxslider-slide-title,
.maxslider-slide-subtitle {
	text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

@media (max-width: 767px) {
	/* Χαμηλότερο ύψος στο κινητό: φαίνεται περισσότερο από το κάδρο και φορτώνει πιο γρήγορα. */
	.maxslider {
		height: max(460px, 68svh) !important;
	}

	/*
	 * Σημείο εστίασης ανά slide (αν κάποιο κόβεται άσχημα, αλλάξτε το ποσοστό οριζόντια).
	 * Π.χ. .maxslider-122-slide-0 { background-position: 30% center; }
	 */

	.maxslider-slide-content-pad {
		padding: 0 22px;
	}

	.maxslider-slide-title {
		font-size: 30px;
		line-height: 1.15;
	}

	.maxslider-slide-subtitle {
		font-size: 15px;
		line-height: 1.5;
	}
}

/* =========================================================
   3. ΔΩΜΑΤΙΑ (κάρτες Gutenbee post types)
   ========================================================= */

/* Στο κινητό/tablet η στήλη που περιέχει τα δωμάτια είχε 100px padding αριστερά-δεξιά
   και οι κάρτες στρίμωχναν στα ~100px πλάτος. */
@media (max-width: 991px) {
	.wp-block-gutenbee-column:has(.wp-block-gutenbee-post-types) > .wp-block-gutenbee-column-content,
	.wp-block-gutenbee-column.block-d9217d-a11c-41 > .wp-block-gutenbee-column-content {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

@media (max-width: 767px) {
	.wp-block-gutenbee-column:has(.wp-block-gutenbee-post-types) > .wp-block-gutenbee-column-content,
	.wp-block-gutenbee-column.block-d9217d-a11c-41 > .wp-block-gutenbee-column-content {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

.wp-block-gutenbee-post-types .entry-item {
	display: flex;
	flex-direction: column;
	height: calc(100% - 30px);
	margin-bottom: 30px;
	padding: 0;
	background-color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
	text-align: center;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.wp-block-gutenbee-post-types .entry-item:hover {
	box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
	transform: translateY(-3px);
}

.wp-block-gutenbee-post-types .entry-item-thumb {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.wp-block-gutenbee-post-types .entry-item-thumb a,
.wp-block-gutenbee-post-types .entry-item-thumb img {
	display: block;
	width: 100%;
	height: 100%;
}

.wp-block-gutenbee-post-types .entry-item-thumb img {
	object-fit: cover;
	transition: transform .5s ease;
}

.wp-block-gutenbee-post-types .entry-item:hover .entry-item-thumb img {
	transform: scale(1.05);
}

.wp-block-gutenbee-post-types .entry-item-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	align-items: center;
	padding: 22px 22px 26px;
}

.wp-block-gutenbee-post-types .entry-item-title {
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.wp-block-gutenbee-post-types .entry-item-excerpt {
	flex: 1 1 auto;
	margin-top: 0 !important; /* το theme έχει -25px και ο τίτλος "πατούσε" πάνω στο κείμενο */
	margin-bottom: 18px;
	color: var(--bsg-text-soft);
	font-size: 15px;
	line-height: 1.6;
}

.wp-block-gutenbee-post-types .entry-item-excerpt p:last-child {
	margin-bottom: 0;
}

.wp-block-gutenbee-post-types .btn-entry-more {
	white-space: nowrap;
	letter-spacing: .04em;
	padding: 12px 26px;
}

/* =========================================================
   4. COOKIE BANNER + STICKY "BOOK ONLINE"
   ========================================================= */

@media (max-width: 767px) {
	#cookie-notice .cookie-notice-container {
		padding: 10px 14px 12px;
		font-size: 12px;
		line-height: 1.45;
	}

	#cookie-notice .cn-text-container {
		margin-bottom: 8px;
	}

	#cookie-notice .cn-button {
		margin: 0 4px !important;
		padding: 7px 18px !important;
		font-size: 13px !important;
	}
}

/* Το sticky κουμπί κράτησης (LiteStay) ανεβαίνει πάνω από το cookie banner όσο αυτό είναι ανοιχτό. */
.lswh-sticky {
	bottom: var(--bsg-cn-h) !important;
	transition: bottom .3s ease;
}

.lswh-sticky__btn {
	background-color: var(--bsg-brand) !important;
	letter-spacing: .04em;
}

.lswh-sticky__btn:hover,
.lswh-sticky__btn:focus {
	background-color: var(--bsg-brand-dark) !important;
}

/* =========================================================
   5. FOOTER
   ========================================================= */

/* Social εικονίδια: στρογγυλά, πιο ελαφριά. */
.footer .ignition-menu-social a {
	border-radius: 50%;
	width: 38px;
	height: 38px;
	transition: background-color .2s ease, transform .2s ease;
}

.footer .ignition-menu-social a:hover,
.footer .ignition-menu-social a:focus {
	background-color: var(--bsg-brand-dark);
	transform: translateY(-2px);
}

/* Παλιό link COVID-19 (αφαιρέστε το και από το widget όταν βρείτε ευκαιρία). */
.footer p:has(> a[href*="covid-19"]) {
	display: none;
}
