/**
 * ============================================================================
 *  MILTONCAT MANAGED FILE - DO NOT EDIT ON THE SERVER
 * ----------------------------------------------------------------------------
 *  Owner : Getfused (git repo: miltoncat)
 *  Deploy: SFTP overwrites this file wholesale. Server-side edits WILL BE
 *          LOST without warning, with no backup and no notification.
 *
 *  Site code belongs in one of these instead. Neither is ever written by a
 *  Getfused deploy, so anything you put there is safe:
 *      themes/miltoncat-gp/functions.php   (below the SITE CUSTOMIZATIONS marker)
 *      themes/miltoncat-gp/style.css       (below the SITE CUSTOMIZATIONS marker)
 *
 *  Full ownership map: _OWNERSHIP.md in the theme root.
 * ============================================================================
 *
 * Equipment listing pages (inc/equipment-listing.php). Skeleton layout; the
 * FacetWP listing template styles its own cards. Prints before style.css, so
 * same-specificity overrides there win.
 */

.mc-listing {
	box-sizing: border-box;
	padding: var(--mc-page-padding);
}

.mc-listing-inner {
	max-width: var(--mc-container);
	margin: 0 auto;
}

.mc-listing__title {
	margin: 0 0 20px;
}

/* Source order: filters, results, promos. Desktop puts promos under the
   filters in the left column while results span both rows. */
.mc-listing__layout {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	grid-template-areas:
		"filters results"
		"promos  results";
	grid-template-rows: auto 1fr;
	gap: 24px 40px;
	align-items: start;
}

.mc-listing__filters { grid-area: filters; }
.mc-listing__results { grid-area: results; min-width: 0; }
.mc-listing__promos  { grid-area: promos; display: grid; gap: 20px; }

/* ---- Filters ---------------------------------------------------------- */
.mc-filter {
	margin-bottom: 18px;
}

.mc-filter__label {
	margin: 0 0 4px;
	font-size: 0.875rem;
	font-weight: 600;
}

.mc-filter .facetwp-facet {
	margin-bottom: 0;
}

.mc-filter select,
.mc-filter input[type="text"],
.mc-filter input[type="search"],
.mc-filter .facetwp-search {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mc-listing__pager {
	margin-top: 32px;
}

/* ---- Sidebar offers --------------------------------------------------- */
.mc-listing__promos .mc-promo {
	min-height: 0;
}

.mc-listing__promos .mc-promo__body {
	padding: 20px;
}

/* Sidebar width: scale the card title down from the theme's h3 size. */
.mc-listing__promos .mc-promo__title {
	font-size: 1.125rem;
	line-height: 1.35;
}

.mc-listing-promo {
	padding: 20px;
	border: 1px solid var(--mc-border);
	background: var(--mc-panel);
}

.mc-listing-promo__content > :last-child {
	margin-bottom: 0;
}

.mc-listing-promo__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

/* Links render as .mc-btn (site-style.css). */

/* ---- Tablet / phone: one column, filters -> results -> offers ---------- */
@media (max-width: 1024px) {
	.mc-listing__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"filters"
			"results"
			"promos";
		grid-template-rows: auto;
	}
}
