/**
 * Savoidakis Contact
 *
 * The layout, colours and type live in the Elementor template; this file only
 * does what stock controls cannot express — the shop browser's chrome, the
 * card that floats over the map, and the form's field shapes.
 */

/* ======================================================= the hero ======= */

.savoct-hero {
	position: relative;
	overflow: hidden;
}

.savoct-hero__text {
	position: relative;
	z-index: 1;
}

/*
 * The photograph is laid over the right of the hero so the text underneath can
 * keep the site's own 1350 grid. Elementor's positioning controls apply to
 * widgets, not containers — asking for absolute in the panel left the panel in
 * normal flow and zero pixels tall — so the pinning lives here. How far it
 * reaches is still the container's width control in the panel.
 */
.savoct-hero__photo {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	border-bottom-left-radius: 34px;
}

/* Icon boxes carry the circle; this keeps the two address lines apart. */
.savoct-hero__items .elementor-icon-box-description {
	white-space: pre-line;
}

/*
 * The row is capped at the text column's width so it ends level with the form
 * below instead of sliding under the hero photo. Each item keeps the width its
 * own content needs; only wrapping is forbidden, so the phone numbers stay on
 * their two lines. min-width:0 on the content is deliberately NOT set — it let
 * the icon-box fall back to its stacked layout and pushed the circle above the
 * heading.
 */
.savoct-hero__items > .elementor-widget-icon-box {
	/*
	 * flex-shrink must stay 0. With shrinking allowed the row squeezed each box
	 * down to its description's width, which broke "Ωράριο εξυπηρέτησης" and the
	 * phone numbers onto extra lines even though the row itself had room.
	 */
	flex: 0 0 auto;
}

.savoct-hero__items .elementor-icon-box-content {
	flex: 0 0 auto;
}

/*
 * pre-line belongs to the description alone, where the two phone numbers need
 * their line break. Applying it to the title as well turned the whitespace
 * Elementor prints around the heading into real blank lines, so every title
 * measured three lines tall and sat below its icon.
 */
.savoct-hero__items .elementor-icon-box-description {
	white-space: pre-line;
	overflow-wrap: normal;
}

.savoct-hero__items .elementor-icon-box-title {
	white-space: nowrap;
	overflow-wrap: normal;
}

/*
 * "Ωράριο εξυπηρέτησης" is the widest label and the line that pushed the row
 * over its budget; a hair less tracking keeps all three headings on one line
 * without touching their size.
 */
.savoct-hero__items .elementor-icon-box-title {
	letter-spacing: -0.1px;
}

.savoct-hero__items .elementor-icon-box-wrapper {
	align-items: flex-start;
}

.savoct-hero__items .elementor-icon-box-icon {
	margin-top: 2px;
}

/* ======================================================== the form ====== */

.savoct-form .elementor-field-group {
	margin-bottom: 0;
}

.savoct-form .elementor-field-group > .elementor-field-label {
	display: none;
}

.savoct-form .elementor-field-textual {
	height: 43px;
	padding: 0 18px;
	border: 1px solid #EDE6E1;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--savop-ink, #252324);
	font-family: inherit;
	font-size: 15px;
	line-height: normal;
	transition: border-color .18s ease;
}

.savoct-form textarea.elementor-field-textual {
	height: 82px;
	min-height: 82px;
	padding: 13px 18px;
	line-height: 1.55;
	resize: vertical;
}

.savoct-form .elementor-field-textual:focus {
	border-color: var(--savop-accent, #CC3262);
	outline: 0;
}

.savoct-form .elementor-field-textual::placeholder {
	color: #9A938D;
	opacity: 1;
}

.savoct-form .elementor-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 10px;
	background: var(--savop-accent, #CC3262);
	color: #fff;
	font-family: "Comfortaa", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.4px;
	transition: background .18s ease;
}

.savoct-form .elementor-button:hover {
	background: #252324;
	color: #fff;
}

/* ================================================== the shop browser ==== */

.savoct-stores {
	--savoct-arrow: 36px;

	display: flex;
	flex-direction: column;
	height: 100%;
	font-family: "Comfortaa", sans-serif;
}

.savoct-stores__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.savoct-stores__titles {
	min-width: 0;
}

.savoct-stores__eyebrow {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	letter-spacing: 1.7px;
	line-height: 1.2;
	text-transform: uppercase;
}

.savoct-stores .savoct-stores__name {
	margin: 0;
	font-weight: 400;
	line-height: 1.2;
}

.savoct-stores__nav {
	display: flex;
	align-items: center;
	flex: none;
	gap: 16px;
}

.savoct-stores .savoct-stores__arrow {
	display: grid;
	place-items: center;
	flex: none;
	width: var(--savoct-arrow);
	height: var(--savoct-arrow);
	padding: 0;
	border: 1px solid var(--savop-accent, #CC3262);
	border-radius: 50%;
	background: none;
	color: var(--savop-accent, #CC3262);
	cursor: pointer;
	transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.savoct-stores .savoct-stores__arrow:hover {
	background: var(--savop-accent, #CC3262);
	color: #fff;
}

.savoct-stores__arrow--back .savoct-stores__arrow-icon {
	transform: scaleX(-1);
}

.savoct-stores__arrow-icon {
	width: 16px;
	height: 16px;
}

.savoct-stores__count {
	color: var(--savop-muted, #6E6A67);
	font-size: 16px;
	letter-spacing: .6px;
	white-space: nowrap;
}

.savoct-stores__count em {
	font-style: normal;
	color: var(--savop-ink, #252324);
}

.savoct-stores__bar {
	position: relative;
	height: 2px;
	margin: 12px 0 0;
	border-radius: 2px;
	background: #EFE7E2;
	overflow: hidden;
}

.savoct-stores__bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--savop-accent, #CC3262);
	transition: width .28s ease;
}

/*
 * While the countdown runs the width is rewritten every frame, so the easing
 * would fight it and the bar would lag behind and never quite reach the end.
 */
.savoct-stores[data-autoplay="1"] .savoct-stores__bar span {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.savoct-stores__bar span {
		transition: none;
	}
}

/* ------------------------------------------------------------- the map */

.savoct-stores__map {
	position: relative;
	flex: 1 1 auto;
	margin-top: 12px;
	overflow: hidden;
	background: #EFEDE9;
}

.savoct-stores__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: saturate(.82);
}

.savoct-info {
	position: absolute;
	z-index: 2;
	padding: 14px 16px 14px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(37, 35, 36, .16);
}

.savoct-info__name {
	display: block;
	margin-bottom: 6px;
	color: var(--savop-ink, #252324);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.savoct-info__lines {
	display: block;
	margin-bottom: 11px;
	color: var(--savop-muted, #6E6A67);
	font-size: 13px;
	line-height: 1.45;
}

.savoct-info__lines span {
	display: block;
}

.savoct-info .savoct-info__route {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px;
	border: 1px solid var(--savop-accent, #CC3262);
	border-radius: 7px;
	color: var(--savop-accent, #CC3262);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .8px;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}

.savoct-info .savoct-info__route:hover {
	background: var(--savop-accent, #CC3262);
	color: #fff;
}

.savoct-info__route-icon {
	width: 13px;
	height: 13px;
}

.savoct-pin {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	transform: translate(-50%, -100%);
	pointer-events: none;
}

.savoct-pin__icon {
	width: 32px;
	height: 32px;
	color: var(--savop-accent, #CC3262);
}

.savoct-pin__label {
	color: var(--savop-ink, #252324);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(255, 255, 255, .85);
}

.savoct-pin__label span {
	display: block;
}

/* ================================================ the network button ==== */

/*
 * The site kit uppercases every button (.elementor-kit-1740 a.elementor-button).
 * Greek capitals keep their tonos — "ΔΕΊΤΕ", "ΑΠΟΣΤΟΛΉ" — which is wrong in
 * print, so both buttons on this page opt out. The selectors carry a class of
 * our own plus the element, which outranks the kit's element-only rule.
 */
.savoct-network__button .elementor-button,
.savoct-form .elementor-button,
.savoct-form .elementor-button .elementor-button-text {
	text-transform: none;
}

.savoct-network__rule {
	min-height: 1px;
}

.savoct-network__button .elementor-button {
	white-space: nowrap;
}

/* ==================================================== small screens ===== */

@media (max-width: 1024px) {
	.savoct-stores__head {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.savoct-hero__items .elementor-icon-box-wrapper {
		align-items: center;
	}

	/*
	 * The seeder's 45px side padding leaves the label ~208px on a 390 phone,
	 * a few pixels short of "ΑΠΟΣΤΟΛΗ ΜΗΝΥΜΑΤΟΣ", so it broke onto two lines.
	 * Narrower gutters keep it on one without touching the desktop button.
	 */
	.savoct-form .elementor-button {
		padding-left: 18px;
		padding-right: 18px;
	}

	.savoct-form .elementor-button .elementor-button-text {
		white-space: nowrap;
	}

	/*
	 * On a phone "Νέα Αλικαρνασσός" cannot sit beside the arrows without
	 * breaking, so the head stacks: the name takes the full width on its own
	 * line and the controls sit under it. The mockup has no phone layout to
	 * match here; this keeps the name readable in one line.
	 */
	.savoct-stores__head {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 10px;
	}

	.savoct-stores__titles {
		flex: 1 1 100%;
	}

	.savoct-stores__nav {
		gap: 12px;
	}

	.savoct-info {
		position: static;
		width: auto !important;
		margin: 12px 0 0;
		box-shadow: none;
		border: 1px solid #EDE6E1;
	}

	.savoct-stores__map {
		display: flex;
		flex-direction: column;
	}

	.savoct-stores__map iframe {
		height: 240px;
	}

	.savoct-pin {
		display: none;
	}
}

/*
 * The asterisk travels in the placeholder because the labels are switched off,
 * so it is coloured there rather than on Elementor's own .elementor-mark.
 */
.savoct-form .elementor-field-textual::placeholder {
	color: #9A938D;
}

.savoct-form .elementor-field-required .elementor-field-textual::placeholder {
	color: #9A938D;
}

.savoct-form .elementor-mark {
	color: var(--savop-accent, #CC3262);
}
