/* =========================================================
   VENTARO GLOBAL OVERRIDES
   ========================================================= */


/* =========================================================
   DESKTOP SEARCH FILTER BAR
   ========================================================= */

@media (min-width: 992px) {

	#desktop-header-search.advanced-search-nav {
		background: #f7f8f9 !important;
		padding: 20px 0 !important;
		border: 0 !important;
	}

	#desktop-header-search #desktop-search-form {
		background: #ffffff;
		border: 1px solid #e2e7eb;
		border-radius: 12px;
		padding: 14px;
		box-shadow: 0 5px 18px rgba(32, 56, 75, 0.08);
	}

	#desktop-header-search .bootstrap-select > .dropdown-toggle,
	#desktop-header-search .form-control {
		background: #ffffff !important;
		border-color: #d9e0e5 !important;
	}

	#desktop-header-search .advanced-search-btn {
		background: #f4f6f7 !important;
		border: 1px solid #d9e0e5 !important;
		color: #20384b !important;
	}

	#desktop-header-search .reset-search-btn {
		background: #ffffff !important;
		border: 1px solid #d9e0e5 !important;
		color: #647580 !important;
	}

	#desktop-header-search .btn-search {
		background: #20384b !important;
		border-color: #20384b !important;
		color: #ffffff !important;
	}

	#desktop-header-search .btn-search:hover {
		background: #182f40 !important;
		border-color: #182f40 !important;
	}
}

/* =========================================================
   VENTARO – MOBILE SEARCH FILTER FORM
   ========================================================= */

@media (max-width: 991.98px) {

    /* Hide Houzez's simple mobile "Search" trigger */
    .mobile-search-nav.mobile-search-trigger {
        display: none !important;
    }

    /* Show the real desktop search form on mobile */
    #desktop-header-search.desktop-search-nav {
        display: block !important;
        background: #f7f8f9 !important;
        padding: 14px !important;
    }

    #desktop-header-search > .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    #desktop-header-search #desktop-search-form {
        background: #ffffff;
        border: 1px solid #e2e7eb;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 14px rgba(32, 56, 75, 0.08);
    }

    /* Rebuild Houzez flex row as a 2-column mobile grid */
    #desktop-header-search .advanced-search-v1 > .d-flex {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }

    #desktop-header-search .flex-search {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Fields */
    #desktop-header-search .bootstrap-select,
    #desktop-header-search .bootstrap-select > .dropdown-toggle,
    #desktop-header-search .form-control {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Business Type + Location = first row
       Min + Max Budget = second row */

    #desktop-header-search .reset-search-btn-wrap {
        grid-column: 1 / 2;
    }

    #desktop-header-search .btn-no-right-padding {
        grid-column: 2 / 3;
    }

    /* Clear and Search fill bottom row */
    #desktop-header-search .reset-search-btn,
    #desktop-header-search .btn-search {
        width: 100% !important;
        min-height: 46px;
    }
}

/* =========================================================
   VENTARO – MOBILE RESULTS TOOLBAR
   ========================================================= */

@media (max-width: 767.98px) {

	/* Compact the whole results toolbar */
	.listing-wrap .listing-tools-wrap {
		margin: 0 0 14px !important;
		padding: 0 !important;
	}

	/* Results count + Sort on one row */
	.listing-wrap .listing-tools-wrap > .d-flex {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 12px !important;
		margin-bottom: 0 !important;
	}

	/* Stop the results count occupying a whole row */
	.listing-wrap .listing-tools-wrap .flex-grow-1 {
		flex: 0 0 auto !important;
		width: auto !important;
		text-align: left !important;
	}

	.listing-wrap .listing-tools-wrap .flex-grow-1 strong {
		font-size: 14px !important;
		white-space: nowrap;
	}

	/* Compact sorting */
	.listing-wrap .listing-tools-wrap .sort-by {
		flex: 0 1 auto !important;
		width: auto !important;
		margin: 0 !important;
	}

	.listing-wrap .listing-tools-wrap .sort-by > .d-flex {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 4px !important;
	}

	.listing-wrap .listing-tools-wrap .sort-by-title {
		font-size: 14px !important;
		white-space: nowrap;
	}

	.listing-wrap .listing-tools-wrap .sort-by .bootstrap-select {
		width: auto !important;
		min-width: 120px !important;
	}

	.listing-wrap .listing-tools-wrap .sort-by .dropdown-toggle {
		padding-left: 4px !important;
		padding-right: 24px !important;
		font-size: 14px !important;
	}

	/* We don't need Save Search taking space on mobile */
	.listing-wrap .listing-tools-wrap .save-search-form-wrap {
		display: none !important;
	}
}

/* ---------------------------------------------------------
 * Ventaro search results - asking price beneath business name
 * --------------------------------------------------------- */

.listing-view .item-price-wrap.ventaro-card-price {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;

    display: block !important;
    width: auto !important;
    margin: 2px 0 10px !important;
    padding: 0 !important;

    color: #20384b !important;
    list-style: none !important;
}

.listing-view .item-price-wrap.ventaro-card-price .item-price {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #20384b !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

/* =========================================================
   VENTARO – ADVANCED BUSINESS FILTERS
   ========================================================= */

#desktop-header-search .advanced-search-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;

	background: #ffffff !important;
	border: 1px solid #d9e0e5 !important;
	color: #20384b !important;

	white-space: nowrap;
}

#desktop-header-search .advanced-search-btn:hover {
	background: #f4f6f7 !important;
	color: #20384b !important;
}

#desktop-header-search #advanced-search-filters {
	margin-top: 12px;
}

#desktop-header-search .ventaro-advanced-filter-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px !important;

	margin: 0 !important;
}

#desktop-header-search .ventaro-filter-field {
	width: 100%;
	min-width: 0;
}

#desktop-header-search .ventaro-filter-field label {
	display: block;

	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: #647580;
}

/* Make Ventaro advanced filters match Houzez's main search fields */
#desktop-header-search .ventaro-filter-field .bootstrap-select {
    width: 100% !important;
}

#desktop-header-search .ventaro-filter-field .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 14px !important;

    background: #ffffff !important;
    border: 1px solid #d9e0e5 !important;
    border-radius: 6px !important;

    color: #20384b !important;
    box-shadow: none !important;
}

#desktop-header-search .ventaro-filter-field .bootstrap-select .filter-option {
    display: flex !important;
    align-items: center !important;
}

#desktop-header-search .ventaro-filter-field .bootstrap-select .filter-option-inner-inner {
    color: #20384b !important;
    font-size: 14px !important;
}

#desktop-header-search .ventaro-filter-field .bootstrap-select > .dropdown-toggle.bs-placeholder,
#desktop-header-search .ventaro-filter-field .bootstrap-select > .dropdown-toggle.bs-placeholder .filter-option-inner-inner {
    color: #9aa5ab !important;
}

#desktop-header-search .ventaro-filter-field .dropdown-menu {
    width: 100%;
}


/* Mobile */
@media (max-width: 991.98px) {

	#desktop-header-search .advanced-search-btn {
		display: flex !important;
		width: 100% !important;
		min-height: 46px;
	}

	/*
	 * Existing mobile grid has:
	 * Type | Location
	 * Min  | Max
	 *
	 * Put More Filters across both columns.
	 */
	#desktop-header-search .advanced-search-v1 > .d-flex
		> .flex-search:has(.advanced-search-btn) {
		grid-column: 1 / -1;
	}

	#desktop-header-search #advanced-search-filters {
		grid-column: 1 / -1;
		margin-top: 10px;
	}

	#desktop-header-search .ventaro-advanced-filter-grid {
		grid-template-columns: 1fr !important;
		gap: 10px !important;
	}
}

/* ==========================================================
   VENTARO — FINAL MOBILE LISTING PAGE POLISH
   ========================================================== */

@media (max-width: 767.98px) {

    /* -------------------------------------------------------
       1. REMOVE HOUZEZ MOBILE SELLER/CONTACT BAR
       ------------------------------------------------------- */

    .mobile-property-contact {
        display: none !important;
    }


    /* -------------------------------------------------------
       2. FINANCIAL / LOCATION / GROWTH SECTIONS
       Reduce Houzez's oversized mobile spacing
       ------------------------------------------------------- */

    #ventaro-financial-information,
    #ventaro-location-information,
    #ventaro-growth-opportunities {
        padding: 22px 28px !important;
        margin-top: 0 !important;
        border-top: 1px solid #e2e7eb !important;
        background: #ffffff !important;
    }

    #ventaro-financial-information .block-title-wrap,
    #ventaro-location-information .block-title-wrap,
    #ventaro-growth-opportunities .block-title-wrap {
        margin-bottom: 12px !important;
    }

    #ventaro-financial-information .block-title-wrap h2,
    #ventaro-location-information .block-title-wrap h2,
    #ventaro-growth-opportunities .block-title-wrap h2 {
        margin: 0 !important;
        font-size: 22px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        color: #202020 !important;
    }

    #ventaro-financial-information .block-content-wrap,
    #ventaro-location-information .block-content-wrap,
    #ventaro-growth-opportunities .block-content-wrap {
        margin: 0 !important;
        padding: 0 !important;
    }

    #ventaro-financial-information .block-content-wrap p,
    #ventaro-location-information .block-content-wrap p,
    #ventaro-growth-opportunities .block-content-wrap p {
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.6 !important;
    }


    /* -------------------------------------------------------
       3. BUSINESS HIGHLIGHTS
       Cleaner, more compact marketplace presentation
       ------------------------------------------------------- */

    #property-features-wrap {
        padding: 24px 28px 26px !important;
        margin-top: 0 !important;
        border-top: 1px solid #e2e7eb !important;
        background: #ffffff !important;
    }

    #property-features-wrap .block-title-wrap {
        margin-bottom: 17px !important;
    }

    #property-features-wrap .block-title-wrap h2 {
        margin: 0 !important;
        font-size: 22px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        color: #202020 !important;
    }

    #property-features-wrap .block-content-wrap {
        margin: 0 !important;
        padding: 0 !important;
    }

    #property-features-wrap ul {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #property-features-wrap ul li {
        width: 100% !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        font-size: 17px !important;
        line-height: 1.45 !important;
    }

    #property-features-wrap ul li:last-child {
        margin-bottom: 0 !important;
    }

    /* Highlight/check icons */
    #property-features-wrap ul li i {
        color: #20384b !important;
        margin-right: 9px !important;
    }


    /* -------------------------------------------------------
       4. REMOVE SPACE RESERVED FOR FIXED CONTACT BAR
       ------------------------------------------------------- */

    body {
        padding-bottom: 0 !important;
    }

}

/* ==========================================================
   VENTARO — DESKTOP BUSINESS SUMMARY: 6 EVEN COLUMNS
   ========================================================== */

@media (min-width: 992px) {

    .ventaro-business-summary .ventaro-summary-items {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        width: 100% !important;
    }

    .ventaro-business-summary .ventaro-summary-items > .col {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding: 0 16px !important;
    }
}

/* ==========================================================
   VENTARO — CONTACT SELLER FINAL COLOUR POLISH
   ========================================================== */

.ventaro-contact-card .btn,
.ventaro-contact-card button[type="submit"] {
    background: #20384b !important;
    border-color: #20384b !important;
}

.ventaro-contact-card .btn:hover,
.ventaro-contact-card button[type="submit"]:hover {
    background: #172c3b !important;
    border-color: #172c3b !important;
}

.ventaro-contact-card i,
.ventaro-contact-card a {
    color: #4aa3cf;
}

/* ==========================================================
   VENTARO — PREMIUM BUSINESS SUMMARY
   ========================================================== */

/* Dark contact-card style background */
body .ventaro-business-summary {
	background:
		linear-gradient(145deg, #1d242a 0%, #10161b 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
	border-radius: 16px !important;
	color: #ffffff !important;
	box-shadow: 0 14px 34px rgba(16, 22, 27, 0.16) !important;
}

/* Heading stays crisp white */
body .ventaro-business-summary .block-title-wrap h2,
body .ventaro-business-summary .block-title-wrap h3,
body .ventaro-business-summary .block-title-wrap .block-title {
	color: #ffffff !important;
}

/* Blue accent line beneath heading */
body .ventaro-business-summary .block-title-wrap {
	border-color: rgba(34, 163, 232, 0.42) !important;
}

body .ventaro-business-summary hr {
	border-color: rgba(34, 163, 232, 0.42) !important;
}

/* Muted blue-grey labels */
body .ventaro-business-summary .hz-meta-label {
	color: #aebbc5 !important;
}

/* Main values remain white */
body .ventaro-business-summary .property-overview-item,
body .ventaro-business-summary .property-overview-item strong {
	color: #ffffff !important;
}

/* Desktop divider lines */
body .ventaro-business-summary
.ventaro-summary-items > *:not(:last-child)::after {
	background: rgba(34, 163, 232, 0.30) !important;
}

/* Mobile/tablet horizontal divider lines */
body .ventaro-business-summary
.ventaro-summary-items > * {
	border-color: rgba(34, 163, 232, 0.24) !important;
}

/* Mobile inset vertical dividers */
@media (max-width: 767px) {

	body .ventaro-business-summary
	.ventaro-summary-items > *:nth-child(1)::before,
	body .ventaro-business-summary
	.ventaro-summary-items > *:nth-child(3)::before,
	body .ventaro-business-summary
	.ventaro-summary-items > *:nth-child(5)::before {
		background: rgba(34, 163, 232, 0.26) !important;
	}
}

/* ==========================================================
   VENTARO — FINAL BUSINESS SUMMARY OVERRIDES
   ========================================================== */

/* Premium dark styling at ALL screen sizes */
body .ventaro-business-summary {
	background:
		linear-gradient(
			145deg,
			#1d242a 0%,
			#10161b 100%
		) !important;

	border:
		1px solid rgba(255,255,255,.07) !important;

	border-radius: 16px !important;

	box-shadow:
		0 14px 34px rgba(16,22,27,.16) !important;
}

/* Blue accent underneath heading */
body .ventaro-business-summary
.block-title-wrap {
	border-color:
		rgba(34,163,232,.42) !important;
}

/* Muted blue-grey labels */
body .ventaro-business-summary
.hz-meta-label {
	color: #aebbc5 !important;
}

/* White values */
body .ventaro-business-summary
.property-overview-item,
body .ventaro-business-summary
.property-overview-item strong {
	color: #ffffff !important;
}


/* ==========================================================
   DESKTOP — SIX ITEMS, ONE ROW
   ========================================================== */

@media (min-width: 1200px) {

	body .ventaro-business-summary
	.ventaro-summary-items {
		display: grid !important;

		grid-template-columns:
			repeat(6, minmax(0, 1fr)) !important;
	}

}


/* ==========================================================
   MOBILE — TWO COLUMNS / THREE ROWS
   ========================================================== */

@media (max-width: 767px) {

	body .ventaro-business-summary
	.ventaro-summary-items {
		display: grid !important;

		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;
	}

	/* Subtle blue horizontal separators */
	body .ventaro-business-summary
	.ventaro-summary-items > * {
		border-color:
			rgba(34,163,232,.24) !important;
	}

	/* Blue vertical centre dividers */
	body .ventaro-business-summary
	.ventaro-summary-items > *:nth-child(1)::before,
	body .ventaro-business-summary
	.ventaro-summary-items > *:nth-child(3)::before,
	body .ventaro-business-summary
	.ventaro-summary-items > *:nth-child(5)::before {
		background:
			rgba(34,163,232,.26) !important;
	}
}

/* ==========================================================
   VENTARO — FEATURED CAROUSEL VIEW BUSINESS BUTTON
   ========================================================== */

.elementor-widget-houzez_elementor_properties_carousel_v2
.item-listing-wrap
.btn-item.item-no-footer {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	float: right !important;

	margin: 12px 16px 16px auto !important;

	width: auto !important;
	height: auto !important;

	padding: 10px 18px !important;

	background: #20384b !important;
	border-color: #20384b !important;
	border-radius: 5px !important;

	color: #fff !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;

	transform: none !important;
	inset: auto !important;
}

/* ==========================================================
   VENTARO — HERO CTA BUTTONS
   ========================================================== */

.ventaro-hero-ctas {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 24px;
}

.ventaro-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 180px;
	padding: 13px 24px;

	border: 2px solid #ffffff;
	border-radius: 4px;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none !important;

	transition: all .2s ease;
}

/* Primary seller action */
.ventaro-hero-cta-primary,
.ventaro-hero-cta-primary:visited {
    background: #ffffff !important;
    color: #20384b !important;
}

.ventaro-hero-cta-primary:hover,
.ventaro-hero-cta-primary:focus {
    background: #20384b !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Secondary buyer action */
.ventaro-hero-cta-secondary {
	background: transparent;
	color: #ffffff !important;
}

.ventaro-hero-cta-secondary:hover {
	background: rgba(255,255,255,.12);
	color: #ffffff !important;
}

/* Mobile */
@media (max-width: 767px) {

    .ventaro-hero-ctas {
        flex-direction: row;
        gap: 10px;
        margin-top: 22px;
margin-bottom: 28px;
        padding: 0 14px;
    }

    .ventaro-hero-cta {
        width: 50%;
        min-width: 0;
        max-width: none;
        padding: 13px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* ==========================================================
   VENTARO — DESKTOP ACCOUNT ICON
   ========================================================== */

@media (min-width: 768px) {

	.navbar-logged-in-wrap
	> a.dropdown-toggle.d-md-block {
		position: relative !important;

		display: flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: 44px !important;
		height: 44px !important;

		padding: 0 !important;
		margin: 0 !important;

		background: transparent !important;

		border: 0 !important;
		border-radius: 0 !important;

		overflow: visible !important;
	}

	/* Hide Houzez grey avatar */
	.navbar-logged-in-wrap
	> a.dropdown-toggle.d-md-block img {
		display: none !important;
	}

	/* Proper account/profile icon */
	.navbar-logged-in-wrap
	> a.dropdown-toggle.d-md-block::before {
		content: "" !important;

		display: block !important;

		width: 36px !important;
		height: 36px !important;

		background-image:
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='12' cy='9' r='3'/%3E%3Cpath d='M6.5 18.2c1.2-2.7 3-4.2 5.5-4.2s4.3 1.5 5.5 4.2'/%3E%3C/svg%3E");

		background-repeat: no-repeat !important;
		background-position: center !important;
		background-size: contain !important;
	}

	.navbar-logged-in-wrap
	> a.dropdown-toggle.d-md-block::after {
		display: none !important;
	}

	.navbar-logged-in-wrap
	> a.dropdown-toggle.d-md-block:hover {
		opacity: .8;
	}
}

/* =========================================================
   VENTARO — PROPERTY GRID V2
   WHITE METRICS + DARK LOWER GRADIENT
   ========================================================= */

.property-grids-module-v1 .property-grid-item {
	position: relative !important;
	overflow: hidden !important;
}


/* Our own dark overlay — independent of Houzez */
.property-grids-module-v1 .property-grid-item::after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	z-index: 1 !important;
	pointer-events: none !important;

	background: linear-gradient(
		to bottom,
		rgba(8, 18, 26, 0.02) 20%,
		rgba(8, 18, 26, 0.12) 42%,
		rgba(8, 18, 26, 0.62) 68%,
		rgba(8, 18, 26, 0.96) 100%
	) !important;
}


/* Listing content must sit above our overlay */
.property-grids-module-v1 .item-wrap-v3 {
	position: relative !important;
	z-index: 2 !important;
}


/* Keep the invisible full-card link clickable */
.property-grids-module-v1 .property-grid-item-link {
	z-index: 3 !important;
}


/* Restore Revenue / Net Profit / Employees labels */
.property-grids-module-v1
.item-wrap-v3
.item-amenities
.item-amenities-text {
	display: inline !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}


/* Figures */
.property-grids-module-v1
.item-wrap-v3
.item-amenities
.hz-figure {
	display: inline !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}


/* Entire metric row white, including icons */
.property-grids-module-v1
.item-wrap-v3
.item-amenities li,
.property-grids-module-v1
.item-wrap-v3
.item-amenities li i {
	color: #ffffff !important;
}


/* Price and title */
.property-grids-module-v1 .item-wrap-v3 .item-price-text,
.property-grids-module-v1 .item-wrap-v3 .item-title,
.property-grids-module-v1 .item-wrap-v3 .item-title a {
	color: #ffffff !important;
}


/* Hide legacy property area */
.property-grids-module-v1
.item-wrap-v3
.item-amenities
.h-area {
	display: none !important;
}