/*
 * Uptown Residence – styles specific to the static build. Loaded after uptown.css (the original
 * compiled CMS bundle, which must not be hand-edited).
 *  1. Inline <style> blocks that lived in the CMS templates (base.tpl, home.tpl)
 *  2. payment-schemes-hotfix.css (was linked separately on the home page)
 *  3. Cookie consent banner/modal (same behaviour as unityestates.bg, Uptown colours)
 *  4. Additions: form honeypot, footer cookie-settings button, 404 links, focus styles
 */

/* 1. From base.tpl ------------------------------------------------------------------------- */
@media only screen and (min-width: 1025px) {
	.header__nav-item--mobile-cta { display: none !important; }
}

@media only screen and (max-width: 1024px) {
	.footer .footer__frame-box,
	.footer .footer__frame { display: none !important; }

	.header__nav-item--mobile-cta { margin-top: 1rem; }

	.header__nav-link--mobile-cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 16rem;
		width: max-content;
		padding: 1.2rem 2rem;
		background-color: #c31c16;
		color: #d1e6d7;
		font-weight: 600;
	}

	.header__nav-link--mobile-cta::after { display: none !important; }
}

@media only screen and (max-width: 640px) {
	#horizontal-scoll .h-slider__slider.slick-initialized .h-slider__slide > img.g-img,
	#horizontal-scoll .h-slider__slider.slick-initialized .h-slider__slide > .h-slider__label,
	#horizontal-scoll .h-slider__slider.slick-initialized .h-slider__img-crop {
		width: 70%;
		max-width: 70%;
		margin-left: auto;
		margin-right: auto;
	}

	.header__util { gap: 1.6rem !important; }

	.header__nav-trigger {
		width: 7.8rem !important;
		min-width: 7.8rem !important;
		aspect-ratio: auto !important;
		padding-left: 1.4rem !important;
		padding-right: 1.4rem !important;
	}
}

@media only screen and (max-width: 374px) {
	.header__logo-box { width: 13.2rem !important; min-width: 13.2rem !important; }
	.header__nav-trigger { width: 7.2rem !important; min-width: 7.2rem !important; }
	.header__link { font-size: 1.4rem !important; }
}

@media only screen and (max-width: 340px) {
	.header__logo-box { width: 12.4rem !important; min-width: 12.4rem !important; }
	.header__util { gap: 1.4rem !important; }
	.header__nav-trigger { width: 7rem !important; min-width: 7rem !important; }
	.header__link { font-size: 1.35rem !important; }
}

@media (hover: none), (pointer: coarse) {
	.tooltip__tip { display: none !important; }

	.building__svg [data-id],
	.floor__building-svg .floor { touch-action: manipulation; }
}

/* From home.tpl */
@media only screen and (min-width: 1025px) {
	#property-types .properties__item--1 { max-width: 39rem; }
	#property-types .properties__item--2 { max-width: 43rem; }

	.nearby-places .img-col__center {
		display: block;
		width: auto;
		max-width: 100%;
		max-height: 600px;
		margin-left: auto;
		margin-right: auto;
	}

	.nearby-places .img-col { gap: clamp(5rem, 7vw, 8rem); }
}

.nearby-places .img-col__image-crop {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	width: 100%;
}

.nearby-places .img-col__image-crop > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media only screen and (max-width: 640px) {
	.nearby-places .img-col--left .img-col__item,
	.nearby-places .img-col--right .img-col__item {
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100%;
		max-width: none;
	}

	.nearby-places .img-col__image-crop {
		width: 70%;
		max-width: 70%;
		margin-left: auto;
		margin-right: auto;
	}
}

@media only screen and (max-width: 1024px) {
	.team-section .team-section__heading { text-align: center; }

	.team-section .team-section__heading .g-title {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
}

/* 2. payment-schemes-hotfix.css ---------------------------------------------------------------- */
/* payment-schemes-hotfix — drop-in until public_css minify picks up _payment.scss */
.schemes__title{color:#8A998F;margin-bottom:4.4rem}
.payment{display:flex;flex-direction:column;gap:3.6rem}
.payment__plan{margin:0}
.payment__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:1.4rem;margin-bottom:1.4rem}
.payment__name{font-size:clamp(2.2rem,2.2vw,2.6rem);font-weight:300;color:#8A998F;letter-spacing:.01em}
.payment__name span{color:#c31c16}
.payment__tag{font-size:1.3rem;font-weight:400;padding:.4rem 1.2rem;border-radius:.2rem;background:#D1E6D7;color:#33503C}
.payment__tag--flat{background:transparent;color:#9AA199;padding:.4rem 0}
.payment__bar{display:flex;border-radius:.3rem;overflow:hidden}
.payment__seg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-width:0;height:7.2rem;padding:0 1rem;overflow:hidden;text-align:center;background:#E9EDEA;color:#4A4F47}
.payment__seg--1{background:#c31c16;color:#fff}
.payment__seg--1 .payment__stage{color:#F3C9C7}
.payment__seg--2{background:#8A998F;color:#fff}
.payment__seg--2 .payment__stage{color:#D6DCD6}
.payment__seg--3{background:#D1E6D7;color:#33503C}
.payment__seg--3 .payment__stage{color:#5D7464}
.payment__seg--4{background:#E9EDEA;color:#4A4F47}
.payment__seg--4 .payment__stage{color:#7C817A}
.payment__pct{font-size:2rem;font-weight:400;line-height:1}
.payment__stage{font-size:1.25rem;font-weight:400;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}
.payment__stages{display:none;list-style:none;margin:1.4rem 0 0;padding:0;flex-direction:column;gap:.9rem}
.payment__stage-row{display:flex;align-items:center;gap:.9rem;font-size:1.4rem;font-weight:400}
.payment__stage-name{color:#9AA199;flex:1}
.payment__stage-pct{color:#8A998F}
.payment__dot{width:1.1rem;height:1.1rem;border-radius:.2rem;flex:none;background:#E9EDEA}
.payment__dot--1{background:#c31c16}
.payment__dot--2{background:#8A998F}
.payment__dot--3{background:#D1E6D7}
.payment__dot--4{background:#E9EDEA}
@media only screen and (max-width:1024px){
.payment__bar{height:3.4rem}
.payment__seg{height:3.4rem;padding:0;gap:0}
.payment__pct{font-size:1.3rem}
.payment__stage{display:none}
.payment__stages{display:flex}
}

/* 3. Cookie consent ------------------------------------------------------------------------- */
.cookie-consent,
.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
	font-family: 'Gilroy', Arial, sans-serif;
	color: #2b2f2c;
}
.cookie-consent[hidden],
.cookie-modal[hidden] { display: none !important; }
.cookie-consent { background: rgba(20, 26, 22, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cookie-modal { background: rgba(20, 26, 22, 0.55); }
.cookie-consent__inner,
.cookie-modal__panel {
	width: min(680px, 100%);
	background: #fff;
	border-top: 4px solid #c31c16;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
	padding: clamp(22px, 4vw, 36px);
}
.cookie-consent__inner {
	display: grid;
	gap: 22px;
	text-align: center;
}
.cookie-modal__panel {
	max-height: min(760px, calc(100dvh - 36px));
	overflow: auto;
}
.cookie-consent:focus,
.cookie-modal:focus { outline: none; }
.cookie-consent__title,
.cookie-modal__title {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #c31c16;
}
.cookie-consent__text,
.cookie-modal__text {
	font-size: 15px;
	line-height: 1.55;
	color: #4a4f47;
}
.cookie-consent__text a,
.cookie-modal__text a { color: #c31c16; text-decoration: underline; }
.cookie-consent__actions,
.cookie-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.cookie-modal__actions { margin-top: 22px; }
.cookie-btn {
	padding: 12px 18px;
	border: 1px solid #8a998f;
	background: transparent;
	color: #2b2f2c;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cookie-btn:hover { border-color: #c31c16; color: #c31c16; }
.cookie-btn--accent { background: #c31c16; border-color: #c31c16; color: #fff; }
.cookie-btn--accent:hover { background: #a31712; border-color: #a31712; color: #fff; }
.cookie-btn:focus-visible { outline: 2px solid #c31c16; outline-offset: 2px; }
.cookie-choice {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 15px 0;
	border-top: 1px solid #e9edea;
	text-align: left;
}
.cookie-choice:first-of-type { margin-top: 18px; }
.cookie-choice strong {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #2b2f2c;
}
.cookie-choice span { display: block; font-size: 14px; line-height: 1.45; color: #6b726c; }
.cookie-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d6dcd6;
	pointer-events: none;
	transition: background-color .2s ease;
}
.cookie-slider:before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform .2s ease;
}
.cookie-switch input:checked + .cookie-slider { background: #c31c16; }
.cookie-switch input:checked + .cookie-slider:before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-slider { outline: 2px solid #c31c16; outline-offset: 3px; }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + .cookie-slider { opacity: 0.55; }
@media (max-width: 720px) {
	.cookie-btn { flex: 1 1 100%; }
}

/* 4. Additions ------------------------------------------------------------------------------- */
/* Spam trap: invisible to people, filled in by naive bots. */
.form__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.footer__end-btn {
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.not-found__text { margin: 2rem 0 3rem; font-size: 1.7rem; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }

/* Facebook / Instagram (same icons and profiles as unityestates.bg) */
.contacts-social { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.4rem; }
.contacts__social { display: flex; align-items: center; gap: 1.6rem; }
.contacts__social-link {
	display: inline-flex;
	width: 2.6rem;
	height: 2.6rem;
	color: inherit;
	transition: opacity .2s ease, transform .2s ease;
}
.contacts__social-link svg { width: 100%; height: 100%; }
.contacts__social-link:hover { opacity: .75; transform: translateY(-1px); }

/* <picture> wrappers around the floor plans must behave like the plain <img> they replace. */
.g-relative > picture { display: block; }

/* Keyboard focus only (focus-visible: mouse clicks show nothing). Beats uptown.css's .btn:focus /
   .form__input:focus / .select__select:focus { outline: none }; the white ring keeps the red outline
   visible on the red footer. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.form__input:focus-visible,
.select__select:focus-visible,
.slick-dots button:focus-visible { outline: 2px solid #c31c16 !important; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.footer a:focus-visible,
.footer button:focus-visible,
.footer input:focus-visible,
.footer select:focus-visible,
.footer textarea:focus-visible { outline-color: #fff !important; box-shadow: 0 0 0 2px #c31c16; }

/* Floor buttons 0-7 on phones: the row is wider than 335 px and was clipped (floor 7 unreachable at
   375 px, floors 6-7 at 320 px, as on the old site); let it wrap. */
@media (max-width: 420px) {
	.search__checkbox-wrap { flex-wrap: wrap; row-gap: 1rem; }
}

/* Layout stability (final audit PERF-8): the range slider's text input is replaced by the 40 px slider
   only when vendor.js runs, and the list thumbnails' size comes from width/height + the inline height. */
.range-slider__wrap { min-height: 40px; }
.range-slider__wrap > .js-range-slider:not(.irs-hidden-input) { display: block; width: 0; min-width: 0; height: 40px; padding: 0; border: 0; margin: 0; opacity: 0; }
.properties-list__img { width: auto; }
