/* ==========================================================================
   YCP Real Estate — Design system (tokens, base, layout, buttons, headings)
   Everything is scoped under .ycp so the theme and Elementor are not affected.
   ========================================================================== */

:root {
	/* Brand */
	--ycp-navy: #062B59;
	--ycp-navy-900: #041D3B;
	--ycp-navy-800: #0A3A73;
	--ycp-saffron: #F58216;
	--ycp-saffron-600: #DE6F08;
	--ycp-green: #078B35;
	--ycp-gold: #F5B51B;
	--ycp-white: #FFFFFF;

	/* Neutrals */
	--ycp-bg: #F8FAFC;
	--ycp-bg-warm: #FBF8F3;
	--ycp-text: #172B4D;
	--ycp-muted: #64748B;
	--ycp-border: #E5EAF0;
	--ycp-border-strong: #D4DCE6;

	/* Type */
	--ycp-font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ycp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ycp-fs-h1: clamp(2.125rem, 1.35rem + 3.3vw, 4.125rem);   /* 34 → 66px */
	--ycp-fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);      /* 28 → 44px */
	--ycp-fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);     /* 20 → 26px */
	--ycp-fs-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);    /* 16 → 18px */
	--ycp-fs-body: 1rem;
	--ycp-fs-small: 0.84375rem;                                 /* 13.5px */

	/* Layout */
	--ycp-container: 1280px;
	--ycp-container-wide: 1440px;
	--ycp-gutter: 18px;
	--ycp-section: 60px;

	/* Shape & depth */
	--ycp-r-btn: 10px;
	--ycp-r-card: 16px;
	--ycp-r-form: 12px;
	--ycp-shadow-sm: 0 1px 2px rgba(6, 43, 89, .06), 0 1px 3px rgba(6, 43, 89, .05);
	--ycp-shadow-md: 0 10px 30px -12px rgba(6, 43, 89, .18);
	--ycp-shadow-lg: 0 30px 60px -24px rgba(4, 29, 59, .35);

	/* Motion */
	--ycp-ease: cubic-bezier(.22, .61, .36, 1);
	--ycp-dur: .28s;

	/* Header height (updated by JS for anchor offsets) */
	--ycp-header-h: 76px;
}

@media (min-width: 768px) {
	:root { --ycp-gutter: 24px; --ycp-section: 76px; }
}
@media (min-width: 1100px) {
	:root { --ycp-gutter: 40px; --ycp-section: 104px; }
}

/* --------------------------------------------------------------- Base */
.ycp.ycp,
.ycp.ycp *,
.ycp.ycp *::before,
.ycp.ycp *::after { box-sizing: border-box; }

.ycp.ycp {
	font-family: var(--ycp-font-body);
	font-size: var(--ycp-fs-body);
	line-height: 1.6;
	color: var(--ycp-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
:where(.ycp) img { max-width: 100%; height: auto; display: block; }
:where(.ycp) a { color: inherit; text-decoration: none; }
:where(.ycp) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.ycp) p { margin: 0; }
.ycp.ycp h1, .ycp.ycp h2, .ycp.ycp h3, .ycp.ycp h4 {
	font-family: var(--ycp-font-head);
	color: var(--ycp-navy);
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.15;
	font-weight: 700;
}
:where(.ycp) button { font: inherit; cursor: pointer; }
.ycp.ycp .ycp-icon { width: 1.25em; height: 1.25em; flex: none; }

.ycp.ycp :focus-visible {
	outline: 3px solid var(--ycp-saffron);
	outline-offset: 3px;
}

.screen-reader-text.screen-reader-text,
.ycp.ycp .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ycp-skip.ycp-skip {
	position: fixed; top: 12px; left: 12px; z-index: 10000;
	background: var(--ycp-navy); color: #fff;
	padding: 12px 18px; border-radius: var(--ycp-r-btn);
	font-family: var(--ycp-font-head); font-weight: 600;
	transform: translateY(-200%);
	transition: transform .2s;
}
.ycp-skip.ycp-skip:focus { transform: none; }

/* --------------------------------------------------------------- Layout */
.ycp-container.ycp-container {
	width: 100%;
	max-width: calc(var(--ycp-container) + var(--ycp-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ycp-gutter);
}
.ycp-container--wide.ycp-container--wide { max-width: calc(var(--ycp-container-wide) + var(--ycp-gutter) * 2); }

.ycp-section.ycp-section { padding-block: var(--ycp-section); background: var(--ycp-white); }
.ycp-section--tint.ycp-section--tint { background: var(--ycp-bg); }
.ycp-center.ycp-center { text-align: center; margin-top: 40px; }

.ycp-grid.ycp-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.ycp-grid--2.ycp-grid--2, .ycp-grid--3.ycp-grid--3, .ycp-grid--4.ycp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.ycp-grid--3.ycp-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
	.ycp-grid--4.ycp-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------- Headings */
.ycp-eyebrow.ycp-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--ycp-font-head);
	font-size: 0.78rem; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--ycp-saffron-600);
	margin-bottom: 14px;
}
.ycp-eyebrow.ycp-eyebrow::before {
	content: ""; width: 28px; height: 2px; border-radius: 2px;
	background: currentColor;
}
.ycp-eyebrow--light.ycp-eyebrow--light { color: var(--ycp-gold); }

.ycp.ycp .ycp-h2 { font-size: var(--ycp-fs-h2); font-weight: 800; }
.ycp-lead.ycp-lead { font-size: var(--ycp-fs-lead); color: var(--ycp-muted); line-height: 1.7; }

.ycp-heading.ycp-heading { margin-bottom: 44px; }
.ycp-heading--center.ycp-heading--center { text-align: center; max-width: 720px; margin-inline: auto; }
.ycp-heading--center.ycp-heading--center .ycp-eyebrow { justify-content: center; }
.ycp-heading--split.ycp-heading--split { display: grid; gap: 16px; align-items: end; }
.ycp-heading--split.ycp-heading--split .ycp-lead { max-width: 460px; }
@media (min-width: 900px) {
	.ycp-heading--split.ycp-heading--split { grid-template-columns: 1fr auto; gap: 48px; }
}

/* --------------------------------------------------------------- Buttons */
.ycp-btn.ycp-btn {
	--btn-bg: var(--ycp-navy);
	--btn-fg: #fff;
	--btn-bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--ycp-r-btn);
	border: 1.5px solid var(--btn-bd);
	background: var(--btn-bg);
	color: var(--btn-fg) !important;
	font-family: var(--ycp-font-head);
	font-size: .95rem; font-weight: 700;
	line-height: 1.2;
	letter-spacing: .005em;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background var(--ycp-dur) var(--ycp-ease), color var(--ycp-dur) var(--ycp-ease), border-color var(--ycp-dur) var(--ycp-ease), transform var(--ycp-dur) var(--ycp-ease), box-shadow var(--ycp-dur) var(--ycp-ease);
}
.ycp-btn.ycp-btn .ycp-icon { width: 18px; height: 18px; transition: transform var(--ycp-dur) var(--ycp-ease); }
.ycp-btn.ycp-btn:hover .ycp-icon { transform: translateX(3px); }
.ycp-btn.ycp-btn:hover { transform: translateY(-1px); }
.ycp-btn.ycp-btn:active { transform: translateY(0); }

.ycp-btn--primary.ycp-btn--primary { --btn-bg: var(--ycp-saffron); box-shadow: 0 8px 20px -10px rgba(245, 130, 22, .8); }
.ycp-btn--primary.ycp-btn--primary:hover { --btn-bg: var(--ycp-saffron-600); }
.ycp-btn--navy.ycp-btn--navy:hover { --btn-bg: var(--ycp-navy-800); }
.ycp-btn--light.ycp-btn--light { --btn-bg: #fff; --btn-fg: var(--ycp-navy); }
.ycp-btn--light.ycp-btn--light:hover { --btn-bg: var(--ycp-saffron); --btn-fg: #fff; }
.ycp-btn--outline.ycp-btn--outline { --btn-bg: transparent; --btn-fg: var(--ycp-navy); --btn-bd: var(--ycp-border-strong); }
.ycp-btn--outline.ycp-btn--outline:hover { --btn-bd: var(--ycp-navy); }
.ycp-btn--outline-navy.ycp-btn--outline-navy { --btn-bg: transparent; --btn-fg: var(--ycp-navy); --btn-bd: var(--ycp-navy); }
.ycp-btn--outline-navy.ycp-btn--outline-navy:hover { --btn-bg: var(--ycp-navy); --btn-fg: #fff; }
.ycp-btn--ghost.ycp-btn--ghost { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.ycp-btn--ghost.ycp-btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ycp-navy); --btn-bd: #fff; }
.ycp-btn--whatsapp.ycp-btn--whatsapp { --btn-bg: var(--ycp-green); }
.ycp-btn--whatsapp.ycp-btn--whatsapp:hover { --btn-bg: #067A2E; }
.ycp-btn--whatsapp.ycp-btn--whatsapp:hover .ycp-icon,
.ycp-btn.ycp-btn .ycp-icon:first-child:not(:last-child) { transform: none; }

.ycp-btn--sm.ycp-btn--sm { min-height: 40px; padding: 9px 16px; font-size: .875rem; }
.ycp-btn--lg.ycp-btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1rem; }

.ycp-btn-row.ycp-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.ycp-link-arrow.ycp-link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--ycp-font-head); font-weight: 700; font-size: .95rem;
	color: var(--ycp-navy) !important;
	border-bottom: 1.5px solid transparent;
	padding-bottom: 2px;
	transition: border-color var(--ycp-dur), color var(--ycp-dur);
	white-space: nowrap;
}
.ycp-link-arrow.ycp-link-arrow .ycp-icon { width: 18px; height: 18px; transition: transform var(--ycp-dur) var(--ycp-ease); }
.ycp-link-arrow.ycp-link-arrow:hover { border-color: var(--ycp-saffron); }
.ycp-link-arrow.ycp-link-arrow:hover .ycp-icon { transform: translateX(4px); }
.ycp-link-arrow--sm.ycp-link-arrow--sm { font-size: .875rem; }

/* --------------------------------------------------------------- Badges */
.ycp-badge.ycp-badge {
	display: inline-flex; align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-family: var(--ycp-font-head);
	font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	background: #fff; color: var(--ycp-navy);
	line-height: 1.2;
}
.ycp-badge--featured.ycp-badge--featured { background: var(--ycp-gold); color: var(--ycp-navy-900); }
.ycp-badge--buy.ycp-badge--buy { background: var(--ycp-navy); color: #fff; }
.ycp-badge--rent.ycp-badge--rent { background: var(--ycp-green); color: #fff; }
.ycp-badge--status.ycp-badge--status { background: rgba(4, 29, 59, .82); color: #fff; }

/* --------------------------------------------------------------- Empty state */
.ycp-empty.ycp-empty {
	display: grid; justify-items: center; gap: 14px;
	padding: 48px 24px;
	text-align: center;
	background: #fff;
	border: 1px dashed var(--ycp-border-strong);
	border-radius: var(--ycp-r-card);
	color: var(--ycp-muted);
}
.ycp-empty.ycp-empty > .ycp-icon { width: 36px; height: 36px; color: var(--ycp-navy); opacity: .6; }
.ycp-empty.ycp-empty p { max-width: 460px; }

/* --------------------------------------------------------------- Reveal on scroll */
.ycp-js.ycp-js [data-ycp-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--ycp-ease), transform .7s var(--ycp-ease);
	transition-delay: var(--ycp-delay, 0ms);
}
.ycp-js.ycp-js [data-ycp-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.ycp.ycp *, .ycp.ycp *::before, .ycp.ycp *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.ycp-js.ycp-js [data-ycp-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- Inner page hero & breadcrumbs */
.ycp-main.ycp-main { display: block; }
.ycp-pagehero.ycp-pagehero {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 76px);
	background:
		radial-gradient(45% 120% at 100% 0%, rgba(245, 130, 22, .22), transparent 60%),
		radial-gradient(35% 90% at 85% 100%, rgba(7, 139, 53, .16), transparent 60%),
		repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 96px),
		linear-gradient(135deg, var(--ycp-navy-900), var(--ycp-navy));
	color: #fff;
}
.ycp-pagehero__inner.ycp-pagehero__inner { position: relative; }
.ycp.ycp .ycp-pagehero__title {
	max-width: 22ch;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
	color: #fff;
	text-wrap: balance;
}
.ycp-pagehero__intro.ycp-pagehero__intro { max-width: 60ch; margin-top: 16px; font-size: var(--ycp-fs-lead); color: rgba(255,255,255,.82); line-height: 1.65; }
.ycp-pagehero.ycp-pagehero .ycp-eyebrow { margin-top: 26px; }
.ycp-pagehero.ycp-pagehero .ycp-crumbs + .ycp-pagehero__title { margin-top: 22px; }

.ycp-crumbs.ycp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--ycp-muted); }
.ycp-crumbs.ycp-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.ycp-crumbs.ycp-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-right: 4px; }
.ycp-crumbs.ycp-crumbs a { color: var(--ycp-navy); font-weight: 500; }
.ycp-crumbs.ycp-crumbs a:hover { color: var(--ycp-saffron-600); }
.ycp-crumbs.ycp-crumbs [aria-current] { color: var(--ycp-muted); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ycp-crumbs--light.ycp-crumbs--light ol { color: rgba(255,255,255,.7); }
.ycp-crumbs--light.ycp-crumbs--light a { color: #fff; }
.ycp-crumbs--light.ycp-crumbs--light a:hover { color: var(--ycp-gold); }
.ycp-crumbs--light.ycp-crumbs--light [aria-current] { color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------- Form controls */
.ycp-input.ycp-input {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--ycp-border-strong);
	border-radius: var(--ycp-r-form);
	background: #fff;
	font: 500 .95rem/1.4 var(--ycp-font-body);
	color: var(--ycp-text);
	transition: border-color var(--ycp-dur), box-shadow var(--ycp-dur);
	-webkit-appearance: none; appearance: none;
}
.ycp-input.ycp-input::placeholder { color: #94A3B8; }
.ycp-input.ycp-input:hover { border-color: #B8C4D3; }
.ycp-input.ycp-input:focus { outline: none; border-color: var(--ycp-navy); box-shadow: 0 0 0 3px rgba(6, 43, 89, .12); }
textarea.ycp-input.ycp-input { min-height: 120px; resize: vertical; }
select.ycp-input.ycp-input,
.ycp-select-native.ycp-select-native {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062B59' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
	cursor: pointer;
}
.ycp-input-icon.ycp-input-icon { position: relative; }
.ycp-input-icon.ycp-input-icon > .ycp-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--ycp-muted); pointer-events: none; }
.ycp-input-icon.ycp-input-icon .ycp-input { padding-left: 42px; }

/* --------------------------------------------------------------- Floating WhatsApp */
.ycp-wa-float.ycp-wa-float {
	position: fixed; z-index: 990; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
	display: grid; place-items: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: #25D366; color: #fff !important;
	box-shadow: 0 12px 28px -10px rgba(7, 100, 40, .7);
	transition: transform var(--ycp-dur) var(--ycp-ease);
}
.ycp-wa-float.ycp-wa-float:hover { transform: scale(1.06); }
.ycp-wa-float.ycp-wa-float .ycp-icon { width: 30px; height: 30px; }
.ycp-has-mobilebar.ycp-has-mobilebar .ycp-wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .ycp-has-mobilebar.ycp-has-mobilebar .ycp-wa-float { bottom: 24px; } }

/* --------------------------------------------------------------- Theme guard
   Hello Elementor / theme resets style every <button>, <label> and input.
   All selectors in these files are built with a doubled first class (.a.a) so they win;
   these lines neutralise the remaining reset properties our components don't set. */
.ycp-burger.ycp-burger, .ycp-drawer__close.ycp-drawer__close, .ycp-hero__btn.ycp-hero__btn, .ycp-filters__close.ycp-filters__close, .ycp-lightbox__btn.ycp-lightbox__btn, .ycp-video__btn.ycp-video__btn { padding: 0; }
:where(.ycp) label { line-height: inherit; vertical-align: baseline; }
.ycp-field__label.ycp-field__label { line-height: 1.4; }
/* Elements toggled with the hidden attribute must stay hidden even when a class sets display. */
.ycp.ycp [hidden], .ycp.ycp[hidden], .ycp-lightbox.ycp-lightbox [hidden] { display: none !important; }
