/**
 * Havenlytics plugin visual harmonization (theme-only overrides).
 *
 * Maps plugin UI to Havenlytics Realty design tokens without modifying plugin assets.
 *
 * @package Havenlytics_Realty
 */

/* -------------------------------------------------------------------------
   Shared plugin shell
   ------------------------------------------------------------------------- */

.hvn-realty-havenlytics-view .hvnly-content-wrapper,
.hvn-realty-plugin-page .hvn-theme-page-content .hvnly-content-wrapper {
	max-width: var(--hvn-theme-container-width, 1280px);
	margin-inline: auto;
	padding-inline: var(--hvn-theme-space-md, 1rem);
}

.hvn-realty-plugin-shell__breadcrumbs {
	padding-top: var(--hvn-theme-space-lg, 1.5rem);
	padding-bottom: var(--hvn-theme-space-sm, 0.75rem);
}

body.hvn-realty-homepage .hvn-realty-plugin-shell__breadcrumbs,
body.hvn-realty-homepage .hvn-theme-breadcrumbs,
body.hvn-realty-homepage .hvnly-property-breadcrumb {
	display: none !important;
}

.hvn-realty-plugin-page-layout .hvn-theme-page-content,
.hvn-realty-plugin-shortcode-page .hvn-theme-page-content {
	max-width: 100%;
}

.hvn-realty-plugin-page-layout .hvn-theme-container,
.hvn-realty-plugin-shortcode-page .hvn-theme-container {
	max-width: var(--hvn-theme-container-width, 1280px);
}

/* -------------------------------------------------------------------------
   Typography alignment
   ------------------------------------------------------------------------- */

.hvn-realty-havenlytics-view .hvnly-archive-header__title,
.hvn-realty-havenlytics-view .hvnly-property-single__title,
.hvn-realty-havenlytics-view .hvnly-agent-single__title,
.hvn-realty-havenlytics-view .hvnly-agency-single__title {
	font-family: var(--hvn-theme-font-heading, inherit);
	color: var(--hvn-realty-plugin-text, var(--hvn-theme-color-text, #1e1e2f));
}

/* -------------------------------------------------------------------------
   Buttons & links
   ------------------------------------------------------------------------- */

.hvn-realty-havenlytics-view .hvnly-btn-primary,
.hvn-realty-havenlytics-view .hvnly-button-primary,
.hvn-realty-havenlytics-view button.hvnly-property-single__action-btn--primary {
	background-color: var(--hvn-realty-plugin-primary, var(--hvn-theme-brand-primary, #6c60fe));
	border-color: var(--hvn-realty-plugin-primary, var(--hvn-theme-brand-primary, #6c60fe));
}

.hvn-realty-havenlytics-view .hvnly-btn-primary:hover,
.hvn-realty-havenlytics-view .hvnly-button-primary:hover,
.hvn-realty-havenlytics-view button.hvnly-property-single__action-btn--primary:hover {
	background-color: var(--hvn-theme-brand-primary-dark, #5548e6);
	border-color: var(--hvn-theme-brand-primary-dark, #5548e6);
}

.hvn-realty-havenlytics-view a {
	transition: color 0.2s ease;
}

.hvn-theme-site .hvnly-property-single__similar-content .hvnly-property-single__btn {
    color: var(--hvnly-brand-primary)
}
.hvn-theme-site .hvnly-property-single__similar-content 
.hvnly-property-single__btn:hover {

    color: var(--hvnly-color-white);
   
}

.hvnly-property-single__carousel-slide
.hvnly-property-single__similar-content
.hvnly-property-single__btn {

    color: var(--hvnly-brand-primary) !important;
   
}
.hvnly-property-single__carousel-slide
.hvnly-property-single__similar-content
.hvnly-property-single__btn:hover {

    color: var(--hvnly-color-white)!important;;
   
}
body.wp-theme-havenlytics-realty
.hvnly-property-single__similar-properties
.hvnly-property-single__carousel-slide
.hvnly-property-single__similar-content
.hvnly-property-single__btn {

	color: var(--hvnly-color-white)!important;
   
}


/* -------------------------------------------------------------------------
   Property archive & grid
   ------------------------------------------------------------------------- */

.hvn-realty-plugin-property .hvnly-property-archive,
.hvn-realty-plugin-property .hvnly-property-grid-view {
	--hvnly-brand-color: var(--hvn-realty-plugin-primary, var(--hvn-theme-brand-primary, #6c60fe));
}

.hvn-realty-plugin-property .hvnly-property-card,
.hvn-realty-havenlytics-view .hvnly-property-card {
	border-radius: var(--hvn-theme-border-radius-md, 8px);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hvn-realty-havenlytics-view .hvnly-property-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hvn-realty-plugin-property .hvnly-property-filter-sidebar,
.hvn-realty-havenlytics-view .hvnly-property-filter-sidebar {
	border-radius: var(--hvn-theme-border-radius-md, 8px);
}

/* -------------------------------------------------------------------------
   Property single
   ------------------------------------------------------------------------- */

.hvn-realty-plugin-property.hvnly-property-single .hvn-theme-site-main,
.hvn-realty-plugin-property .hvnly-property-single__content-wrapper {
	padding-top: 0;
}

.hvn-realty-plugin-property .hvnly-property-single__container {
	max-width: var(--hvn-theme-container-width, 1280px);
}

.hvn-realty-plugin-property .hvnly-property-single__header {
	border-bottom: 1px solid var(--hvn-theme-border-color, #e5e7eb);
}

/* -------------------------------------------------------------------------
   Agent pages
   ------------------------------------------------------------------------- */

.hvn-realty-plugin-agent .hvnly-agent-single__container,
.hvn-realty-plugin-agent .hvnly-agents-archive {
	max-width: var(--hvn-theme-container-width, 1280px);
	margin-inline: auto;
}

.hvn-realty-plugin-agent .hvnly-agent-card,
.hvn-realty-havenlytics-view .hvnly-agent-card {
	border-radius: var(--hvn-theme-border-radius-md, 8px);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hvn-realty-plugin-agent .hvnly-agent-single__profile-row {
	gap: var(--hvn-theme-space-lg, 1.5rem);
}

/* -------------------------------------------------------------------------
   Agency pages
   ------------------------------------------------------------------------- */

.hvn-realty-plugin-agency .hvnly-agency-single__hero,
.hvn-realty-plugin-agency .hvnly-agencies-archive {
	max-width: var(--hvn-theme-container-width, 1280px);
	margin-inline: auto;
}

.hvn-realty-plugin-agency .hvnly-agency-card,
.hvn-realty-havenlytics-view .hvnly-agency-card {
	border-radius: var(--hvn-theme-border-radius-md, 8px);
}

/* -------------------------------------------------------------------------
   Plugin shortcode pages (Search, Grid, Lists, Agents, Agencies)
   ------------------------------------------------------------------------- */

.hvn-realty-plugin-page .hvnly-archive-header,
.hvn-realty-plugin-shortcode-page .hvnly-archive-header {
	margin-bottom: var(--hvn-theme-space-lg, 1.5rem);
}

.hvn-realty-plugin-page .hvnly-content-wrapper,
.hvn-realty-plugin-shortcode-page .entry-content > .hvnly-content-wrapper {
	margin-top: 0;
}

.hvn-realty-plugin-page .hvn-theme-page-content > .hvn-page-article,
.hvn-realty-plugin-shortcode-page .hvn-theme-page-content > .hvn-page-article {
	padding-top: var(--hvn-theme-space-md, 1rem);
}

/* -------------------------------------------------------------------------
   Homepage embedded sections (from Phase 1)
   ------------------------------------------------------------------------- */

.hvn-realty-home .hvnly-content-wrapper {
	max-width: 100%;
	padding-inline: 0;
}

.hvn-realty-home .hvn-realty-home-section__content .hvnly-property-archive,
.hvn-realty-home .hvn-realty-home-section__content .hvnly-agents-archive,
.hvn-realty-home .hvn-realty-home-section__content .hvnly-agencies-archive {
	margin-top: 0;
}

.hvn-realty-home .hvn-realty-home-plugin-slim .hvnly-with-sidebar__contents__grids {
	display: block !important;
	grid-template-columns: 1fr !important;
}

.hvn-realty-home-map .leaflet-popup-content-wrapper,
.hvn-realty-home-map .hvnly-map-popup {
	border-radius: var(--hvn-radius, 8px);
}

/* Homepage hero map — Customizer vh height (overrides plugin 550px fixed heights). */
.hvn-realty-section--hero .hvn-realty-hero__map,
.hvn-realty-section--hero .hvn-realty-home-map,
.hvn-realty-section--hero .hvn-realty-home-map__canvas,
.hvn-realty-section--hero #hvnly-map-placeholder,
.hvn-realty-section--hero .hvnly-map-placeholder,
.hvn-realty-section--hero .hvnly-map-view,
.hvn-realty-section--hero .hvnly-map-container,
.hvn-realty-section--hero .hvnly-properties-map,
.hvn-realty-section--hero #hvnly-properties-map,
.hvn-realty-section--hero .leaflet-container {
	height: var(--hvn-realty-hero-height, 70vh) !important;
	min-height: var(--hvn-realty-hero-height, 70vh) !important;
	max-height: none;
	border-radius: 0;
}

@media (max-width: 640px) {
	.hvn-realty-section--hero .hvn-realty-hero__map,
	.hvn-realty-section--hero .hvn-realty-home-map,
	.hvn-realty-section--hero .hvn-realty-home-map__canvas,
	.hvn-realty-section--hero #hvnly-map-placeholder,
	.hvn-realty-section--hero .hvnly-map-placeholder,
	.hvn-realty-section--hero .hvnly-map-view,
	.hvn-realty-section--hero .hvnly-map-container,
	.hvn-realty-section--hero .hvnly-properties-map,
	.hvn-realty-section--hero #hvnly-properties-map,
	.hvn-realty-section--hero .leaflet-container {
		height: var(--hvn-realty-hero-height-mobile, 50vh) !important;
		min-height: var(--hvn-realty-hero-height-mobile, 50vh) !important;
	}
}

.hvn-realty-home .hvnly-property-card,
.hvn-realty-home .hvnly-agent-card,
.hvn-realty-home .hvnly-agency-card {
	border-radius: var(--hvn-radius, 8px);
}

/* Agent/agency card overlay badges (plugin CSS scopes __media to archive wrapper only). */
.hvn-realty-home .hvnly-agent-card__media,
.hvn-realty-home .hvnly-agency-card__media {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
}

.hvn-realty-home .hvnly-agent-card__overlay-badge,
.hvn-realty-home .hvnly-agency-card__overlay-badge {
	z-index: 2;
}

.hvn-realty-home .hvnly-btn-primary,
.hvn-realty-home .hvnly-button-primary {
	background-color: var(--hvn-primary, var(--hvn-theme-brand-primary, #6c60fe));
	border-color: var(--hvn-primary, var(--hvn-theme-brand-primary, #6c60fe));
}

.hvn-havenlytics-active.hvn-property-view .hvn-theme-site-main {
	padding-top: var(--hvn-theme-space-xl, 2rem);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 768px) {
	body.wp-theme-havenlytics-realty 
	.hvn-realty-havenlytics-view .hvnly-container,
	body.wp-theme-havenlytics-realty 
	.hvn-realty-havenlytics-view .hvnly-property-single__container,
	body.wp-theme-havenlytics-realty 
	.hvn-realty-havenlytics-view .hvnly-agent-single__container {
		padding-inline: var(--hvn-theme-space-sm, 0.75rem);
	}

	.hvn-realty-plugin-shell__breadcrumbs {
		padding-top: var(--hvn-theme-space-md, 1rem);
	}
}


@media (max-width: 767px) {
	body.wp-theme-havenlytics-realty 
	.hvnly-container{
		padding:0 ;
    }
}

