/*
 * Homelab — design polish layer
 *
 * Refinement pass over the WpResidence/Elementor build. Keeps the existing
 * brand (warm ink, champagne, off-white paper) and sharpens execution:
 * contrast, one button vocabulary, card geometry, and a single connective
 * motif — the champagne hairline that extends on interaction.
 */

:root {
	--hl-ink: #1c150a;
	--hl-ink-soft: #3a3126;
	--hl-gold: #b89f81;   /* champagne — lines, accents, never text on white */
	--hl-gold-deep: #8a6d47;  /* passes 4.5:1 against paper, used for small text */
	--hl-paper: #f8f8f7;
	--hl-sand: #ddd8cd;
	--hl-muted: #6b6357;

	--hl-rule: 1px solid rgba(184, 159, 129, 0.38);
	--hl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--hl-speed: 320ms;
}

/* ---------------------------------------------------------------
   1. Header legibility
   The transparent header sits over a bright sky; white nav text on
   near-white cloud is unreadable. A scrim restores contrast without
   introducing a visible bar.
   --------------------------------------------------------------- */

.master_header.header_transparent::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 190px;
	background: linear-gradient(to bottom, rgba(16, 12, 6, 0.55), rgba(16, 12, 6, 0));
	pointer-events: none;
	z-index: 0;
}

.master_header.header_transparent .header_wrapper,
.master_header.header_transparent .header_wrapper_inside {
	position: relative;
	z-index: 1;
}

/* ---------------------------------------------------------------
   2. One button vocabulary
   Was: champagne fill + white text (~2.3:1, unreadable) in two
   different casings. Now: ink fill with a champagne hairline, one
   casing, inverting to champagne on hover.
   --------------------------------------------------------------- */

.elementor-button,
.wpresidence_button,
a.wpresidence_button,
span.wpresidence_button,
.wpestate_item_list_sh,
.listinglink-wrapper_sh_listings .wpresidence_button {
	background-color: var(--hl-ink) !important;
	/* The theme paints a half-and-half slide gradient over the fill. */
	background-image: none !important;
	border: 1px solid var(--hl-gold) !important;
	color: #fff !important;
	border-radius: 2px !important;
	padding: 15px 34px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	transition: background-color var(--hl-speed) var(--hl-ease),
		color var(--hl-speed) var(--hl-ease),
		transform var(--hl-speed) var(--hl-ease);
}

.elementor-button:hover,
.elementor-button:focus-visible,
.wpresidence_button:hover,
.wpresidence_button:focus-visible,
.wpestate_item_list_sh:hover,
.listinglink-wrapper_sh_listings .wpresidence_button:hover {
	background-color: var(--hl-gold) !important;
	background-image: none !important;
	border-color: var(--hl-gold) !important;
	color: var(--hl-ink) !important;
	transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   3. The thread — champagne hairline that extends on interaction.
   Already the page's native motif (eyebrow rules, service rows);
   made consistent and responsive to the cursor.
   --------------------------------------------------------------- */

.elementor-toggle .elementor-tab-title {
	position: relative;
	border-bottom: var(--hl-rule) !important;
	transition: padding-left var(--hl-speed) var(--hl-ease);
}

.elementor-toggle .elementor-tab-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 0;
	height: 1px;
	background: var(--hl-gold);
	transition: width var(--hl-speed) var(--hl-ease);
}

.elementor-toggle .elementor-tab-title:hover::after,
.elementor-toggle .elementor-tab-title.elementor-active::after {
	width: 100%;
}

.elementor-toggle .elementor-tab-title:hover,
.elementor-toggle .elementor-tab-title.elementor-active {
	padding-left: 10px !important;
}

/* ---------------------------------------------------------------
   4. Blog cards
   Was: image floating inside a white inset, ragged card heights,
   "Повече" links landing at different baselines.
   --------------------------------------------------------------- */

.blogs_wrapper .property_listing_blog,
.property_listing_blog {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	background-color: #fff !important;
	border: 1px solid rgba(28, 21, 10, 0.09) !important;
	border-radius: 3px !important;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(28, 21, 10, 0.04);
	transition: box-shadow var(--hl-speed) var(--hl-ease),
		transform var(--hl-speed) var(--hl-ease);
}

/* The image sat on a white plate that showed as a sliver beside it. */
.property_listing_blog .blog_unit_image {
	background-color: transparent !important;
}

.property_listing_blog:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(28, 21, 10, 0.13);
}

.property_listing_blog .blog_unit_image {
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

.property_listing_blog .blog_unit_image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 700ms var(--hl-ease);
}

.property_listing_blog:hover .blog_unit_image img {
	transform: scale(1.04);
}

.property_listing_blog .blog_unit_title {
	display: inline-block;
	position: relative;
	padding-bottom: 3px;
}

.property_listing_blog .blog_unit_title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--hl-gold);
	transition: width var(--hl-speed) var(--hl-ease);
}

.property_listing_blog:hover .blog_unit_title::after {
	width: 100%;
}

.property_listing_blog .blog_unit_meta {
	color: var(--hl-muted);
	letter-spacing: 0.06em;
	font-size: 12px;
	text-transform: uppercase;
}

/* Push the read-more to the card floor so every card ends on one line. */
.property_listing_blog .listing_details {
	flex: 1 1 auto;
}

.property_listing_blog .read_more,
.property_listing_blog .unit_more_x {
	margin-top: auto;
	color: var(--hl-gold-deep) !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 12px;
}

.blogs_wrapper .listing_wrapper.blog2v {
	display: flex;
}

/* ---------------------------------------------------------------
   5. Testimonials
   Was: a short quote stranded in a full-bleed row with the arrows
   pinned to the viewport edges. Contain it and let the quote lead.
   --------------------------------------------------------------- */

/* The slide sat on a white plate wider than its own content, leaving a
   bare strip down the right edge. The quote carries itself. */
.wpestate_testimonial_slider .item,
.wpestate_testimonial_slider .item_testimonial_content {
	background: transparent !important;
}

.wpestate_testimonial_slider .item_testimonial_content {
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
	text-align: center;
	padding: 0 24px;
}

.wpestate_testimonial_slider .item_testimonial_text {
	font-size: 19px;
	line-height: 1.75;
	color: var(--hl-ink-soft);
}

.wpestate_testimonial_slider .item_testimonial_title {
	order: 2;
	margin-top: 22px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 13px;
	color: var(--hl-muted);
}

.wpestate_testimonial_slider .item_testimonial_stars {
	margin-top: 18px;
}

/* The bright yellow star was the one colour outside the palette. */
.wpestate_testimonial_slider .item_testimonial_stars .fa-star,
.wpestate_testimonial_slider .item_testimonial_stars i {
	color: var(--hl-gold) !important;
	font-size: 13px;
	letter-spacing: 2px;
}

.wpestate_testimonial_slider .owl-nav button {
	background: transparent !important;
	border: var(--hl-rule) !important;
	border-radius: 50% !important;
	width: 44px;
	height: 44px;
	color: var(--hl-ink) !important;
	transition: background-color var(--hl-speed) var(--hl-ease),
		color var(--hl-speed) var(--hl-ease);
}

.wpestate_testimonial_slider .owl-nav button:hover {
	background: var(--hl-gold) !important;
	color: #fff !important;
}

/* ---------------------------------------------------------------
   6. Empty states
   No listings yet means no "load more" — the button should not
   advertise content that isn't there. Reappears on its own as soon
   as a listing card renders.
   --------------------------------------------------------------- */

.wpestate_latest_listings_sh.bottom-estate_property:not(:has(.property_listing, .listing_wrapper))
	.listinglink-wrapper_sh_listings {
	display: none;
}

/* ---------------------------------------------------------------
   7. Reading comfort
   Leading only. Widths belong to the page builder — several of these
   widgets sit in centred flex columns where a max-width collapses
   them to their longest word.
   --------------------------------------------------------------- */

.elementor-widget-text-editor p {
	line-height: 1.8;
}

/* ---------------------------------------------------------------
   8. Keyboard focus — none of the interactive elements showed one.
   --------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
.elementor-button:focus-visible,
.elementor-tab-title:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--hl-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------------------------------------------------------------
   9. Motion preference
   --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.property_listing_blog,
	.property_listing_blog .blog_unit_image img,
	.elementor-button,
	.wpresidence_button,
	.elementor-toggle .elementor-tab-title,
	.elementor-toggle .elementor-tab-title::after {
		transition: none !important;
	}

	.property_listing_blog:hover {
		transform: none;
	}

	.property_listing_blog:hover .blog_unit_image img {
		transform: none;
	}

	.elementor-button:hover,
	.wpresidence_button:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------
   10. Small screens
   --------------------------------------------------------------- */

@media (max-width: 767px) {
	.master_header.header_transparent::before {
		height: 130px;
	}

	.wpestate_testimonial_slider .item_testimonial_text {
		font-size: 17px;
	}

	.elementor-button,
	.wpresidence_button {
		padding: 14px 26px !important;
	}
}
