/**
 * Hospitality CMS — Impreza / WPBakery harmony layer.
 *
 * Goal (see §11.4): integrate visually with Impreza and neutralise conflicts,
 * NOT fight the theme. Every rule is scoped under .hcms so these resets only
 * apply to Impreza/WPBakery wrappers that appear *inside* plugin output —
 * never globally. Every declaration is !important.
 *
 * @package HospitalityCMS
 * @since   1.0.0
 */

/* ---------------------------------------------------------------------
 * 1. Inherit, don't clobber, the theme's typography & colour.
 * ------------------------------------------------------------------- */
.hcms .hcms-room-card__title,
.hcms .hcms-facility-card__title,
.hcms .hcms-offer-card__title,
.hcms .hcms-room__title,
.hcms .hcms-section-title {
	font-family: inherit !important;
}

/* ---------------------------------------------------------------------
 * 2. Neutralise stray spacing/floats from WPBakery + Impreza (Us-core)
 *    wrappers when nested inside a .hcms block.
 * ------------------------------------------------------------------- */
.hcms .wpb_wrapper,
.hcms .wpb_content_element,
.hcms .wpb_text_column,
.hcms .vc_column-inner,
.hcms .vc_row,
.hcms .l-section-h,
.hcms .w-vwrapper,
.hcms .w-hwrapper {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
	background: none !important;
	box-shadow: none !important;
}

/* Impreza grid wrappers shouldn't impose their own columns inside ours. */
.hcms .w-grid,
.hcms .w-grid-list,
.hcms .g-cols,
.hcms .us_grid,
.hcms .usg_grid_wrapper {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	grid-template-columns: none !important;
}

/* Impreza image/button atoms inside our cards. */
.hcms .w-image,
.hcms .w-image-h {
	margin: 0 !important;
	display: block !important;
}
.hcms .w-btn,
.hcms .us-btn {
	margin: 0 !important;
}

/* Reset list resets Impreza sometimes applies. */
.hcms .w-vwrapper > *,
.hcms .w-hwrapper > * {
	margin: 0 !important;
}

/* ---------------------------------------------------------------------
 * 3. Prevent Impreza link styles from removing our underline-grow CTA.
 * ------------------------------------------------------------------- */
.hcms a.hcms-link,
.hcms a.hcms-btn {
	box-shadow: none !important;
	background-image: none !important;
}

/* ---------------------------------------------------------------------
 * 4. Keep our grids intact even if the theme sets display on descendants.
 * ------------------------------------------------------------------- */
.hcms .hcms-rooms,
.hcms .hcms-facilities,
.hcms .hcms-offers,
.hcms .hcms-gallery-grid,
.hcms .hcms-testimonials__grid {
	display: grid !important;
}

/* WPBakery wraps shortcode output; ensure our wrapper fills the column. */
.hcms.hcms,
.wpb_text_column .hcms,
.vc_column-inner .hcms {
	width: 100% !important;
	max-width: 100% !important;
}
