/**
 * MyRepo — Repossessed Vehicle & Property Listings — frontend styles.
 *
 * Every selector is prefixed .myrepo- and scoped to one of the plugin
 * wrappers (.myrepo-directory, .myrepo-single, .myrepo-details,
 * .myrepo-gallery, .myrepo-lightbox, .myrepo-related). Design tokens live on
 * those wrappers so the Settings colours (inline CSS), Elementor style
 * controls and themes can override them per instance. Fonts inherit from
 * the theme.
 */

/* ------------------------------------------------------------------ */
/* Design tokens                                                      */
/* ------------------------------------------------------------------ */

.myrepo-directory,
.myrepo-single,
.myrepo-details,
.myrepo-gallery,
.myrepo-lightbox,
.myrepo-related {
	--myrepo-primary: #0A2855;
	--myrepo-accent: #FFD200;
	--myrepo-white: #FFFFFF;
	--myrepo-bg: #F7F9FC;
	--myrepo-border: #E4EAF2;
	--myrepo-text: #1A2B45;
	--myrepo-muted: #5A6B85;
	--myrepo-radius: 14px;
	--myrepo-shadow: 0 2px 10px rgba(10, 40, 85, .06);
	--myrepo-shadow-hover: 0 8px 24px rgba(10, 40, 85, .14);
	--myrepo-available: #1E7E34;
	--myrepo-offer: #B26B00;
	--myrepo-sold: #B32D2E;
	--myrepo-cols: 3;
	--myrepo-gap: 20px;
}

/* ------------------------------------------------------------------ */
/* Scoped resets                                                      */
/* ------------------------------------------------------------------ */

.myrepo-directory,
.myrepo-directory *,
.myrepo-directory *::before,
.myrepo-directory *::after,
.myrepo-single,
.myrepo-single *,
.myrepo-single *::before,
.myrepo-single *::after,
.myrepo-details,
.myrepo-details *,
.myrepo-details *::before,
.myrepo-details *::after,
.myrepo-gallery,
.myrepo-gallery *,
.myrepo-gallery *::before,
.myrepo-gallery *::after,
.myrepo-lightbox,
.myrepo-lightbox *,
.myrepo-lightbox *::before,
.myrepo-lightbox *::after,
.myrepo-related,
.myrepo-related *,
.myrepo-related *::before,
.myrepo-related *::after {
	box-sizing: border-box;
}

.myrepo-directory button,
.myrepo-directory input,
.myrepo-directory select,
.myrepo-details button,
.myrepo-gallery button,
.myrepo-lightbox button,
.myrepo-related button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* [hidden] must always win over the display:flex/grid rules below. */
.myrepo-directory [hidden],
.myrepo-single [hidden],
.myrepo-details [hidden],
.myrepo-gallery [hidden],
.myrepo-lightbox [hidden],
.myrepo-related [hidden],
.myrepo-lightbox[hidden] {
	display: none !important;
}

/* Screen-reader-only utility (scoped, so it works even when the theme lacks it). */
.myrepo-directory .screen-reader-text,
.myrepo-single .screen-reader-text,
.myrepo-details .screen-reader-text,
.myrepo-gallery .screen-reader-text,
.myrepo-lightbox .screen-reader-text,
.myrepo-related .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* Icons (inline SVG wrapped by MYREPO_Frontend::icon()). */
.myrepo-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: inherit;
	line-height: 0;
}

.myrepo-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Visible focus for every focusable element (accent ring). */
.myrepo-directory a:focus-visible,
.myrepo-directory button:focus-visible,
.myrepo-directory input:focus-visible,
.myrepo-directory select:focus-visible,
.myrepo-details a:focus-visible,
.myrepo-details button:focus-visible,
.myrepo-gallery a:focus-visible,
.myrepo-gallery button:focus-visible,
.myrepo-gallery [tabindex]:focus-visible,
.myrepo-lightbox button:focus-visible,
.myrepo-related a:focus-visible,
.myrepo-related button:focus-visible {
	outline: 3px solid var(--myrepo-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Directory wrapper                                                  */
/* ------------------------------------------------------------------ */

.myrepo-directory {
	font-family: inherit;
	background: var(--myrepo-bg);
	color: var(--myrepo-text);
	border-radius: var(--myrepo-radius);
	padding: 32px 24px 28px;
	position: relative;
	line-height: 1.5;
	font-size: 16px;
}

/* Built-in archive template wrapper. */
.myrepo-archive-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px 48px;
}

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */

.myrepo-header {
	margin: 0 0 26px;
}

.myrepo-directory .myrepo-title {
	margin: 0;
	padding: 0 0 14px;
	position: relative;
	text-align: center;
	color: var(--myrepo-primary);
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.2;
}

.myrepo-directory .myrepo-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--myrepo-accent);
}

.myrepo-directory .myrepo-subtitle {
	margin: 12px auto 0;
	max-width: 600px;
	text-align: center;
	color: var(--myrepo-muted);
	font-size: .975rem;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                               */
/* ------------------------------------------------------------------ */

.myrepo-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 20px;
}

.myrepo-directory .myrepo-tab {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 28px;
	border: 1px solid var(--myrepo-border);
	border-radius: 999px;
	background: var(--myrepo-white);
	color: var(--myrepo-primary);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: var(--myrepo-shadow);
	text-transform: none;
	letter-spacing: 0;
	transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.myrepo-directory .myrepo-tab:hover {
	border-color: var(--myrepo-primary);
	color: var(--myrepo-primary);
	background: var(--myrepo-white);
}

.myrepo-directory .myrepo-tab.is-active,
.myrepo-directory .myrepo-tab.is-active:hover {
	background: var(--myrepo-primary);
	border-color: var(--myrepo-primary);
	color: var(--myrepo-white);
	box-shadow: inset 0 -3px 0 var(--myrepo-accent), var(--myrepo-shadow);
}

.myrepo-tab .myrepo-icon svg {
	width: 17px;
	height: 17px;
}

/* ------------------------------------------------------------------ */
/* Search                                                             */
/* ------------------------------------------------------------------ */

.myrepo-searchbar {
	margin: 0 0 16px;
}

.myrepo-search-wrap {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
}

.myrepo-search-wrap > .myrepo-icon--search {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--myrepo-muted);
	pointer-events: none;
	z-index: 1;
}

.myrepo-directory .myrepo-search {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 18px 0 48px;
	border: 1px solid var(--myrepo-border);
	border-radius: 12px;
	background: var(--myrepo-white);
	color: var(--myrepo-text);
	font-size: 1rem;
	box-shadow: var(--myrepo-shadow);
	transition: border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.myrepo-directory .myrepo-search::placeholder {
	color: var(--myrepo-muted);
	opacity: 1;
}

.myrepo-directory .myrepo-search:focus {
	outline: none;
	border-color: var(--myrepo-primary);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .4);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--myrepo-accent) 45%, transparent);
}

.myrepo-directory .myrepo-search::-webkit-search-decoration {
	-webkit-appearance: none;
}

/* ------------------------------------------------------------------ */
/* Toolbar: filter toggle + sort                                      */
/* ------------------------------------------------------------------ */

.myrepo-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 14px;
}

.myrepo-directory .myrepo-filter-toggle {
	display: none; /* mobile only — see the drawer media query */
	align-items: center;
	gap: 8px;
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--myrepo-primary);
	border-radius: 10px;
	background: var(--myrepo-white);
	color: var(--myrepo-primary);
	font-weight: 600;
	font-size: .9rem;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.myrepo-directory .myrepo-filter-toggle:hover,
.myrepo-directory .myrepo-filter-toggle[aria-expanded="true"] {
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
}

.myrepo-sort-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-left: auto;
}

.myrepo-sort-wrap > label {
	color: var(--myrepo-muted);
	font-size: .875rem;
	font-weight: 600;
	margin: 0;
}

.myrepo-directory .myrepo-sort,
.myrepo-directory .myrepo-filter {
	height: 44px;
	margin: 0;
	padding: 0 38px 0 14px;
	border: 1px solid var(--myrepo-border);
	border-radius: 10px;
	background-color: var(--myrepo-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2855' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	color: var(--myrepo-text);
	font-size: .9rem;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: var(--myrepo-shadow);
	transition: border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.myrepo-directory .myrepo-sort:hover,
.myrepo-directory .myrepo-filter:hover {
	border-color: var(--myrepo-primary);
}

.myrepo-directory .myrepo-sort:focus,
.myrepo-directory .myrepo-filter:focus,
.myrepo-directory .myrepo-price-min:focus,
.myrepo-directory .myrepo-price-max:focus {
	outline: none;
	border-color: var(--myrepo-primary);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .4);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--myrepo-accent) 45%, transparent);
}

.myrepo-sort-note {
	display: block;
	width: 100%;
	text-align: right;
	color: var(--myrepo-muted);
	font-size: .78rem;
}

/* ------------------------------------------------------------------ */
/* Filters panel                                                      */
/* ------------------------------------------------------------------ */

.myrepo-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	background: var(--myrepo-white);
	border: 1px solid var(--myrepo-border);
	border-radius: var(--myrepo-radius);
	box-shadow: var(--myrepo-shadow);
	padding: 16px 18px;
	margin: 0 0 18px;
}

.myrepo-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 180px;
	min-width: 180px;
	max-width: 280px;
	margin: 0;
}

.myrepo-filter-field > span {
	color: var(--myrepo-muted);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.myrepo-directory .myrepo-filter {
	width: 100%;
}

.myrepo-price-field {
	flex: 1 1 240px;
	min-width: 220px;
	max-width: 320px;
}

.myrepo-price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.myrepo-directory .myrepo-price-min,
.myrepo-directory .myrepo-price-max {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--myrepo-border);
	border-radius: 10px;
	background: var(--myrepo-white);
	color: var(--myrepo-text);
	font-size: .9rem;
	line-height: 1.2;
	box-shadow: var(--myrepo-shadow);
	transition: border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
	-moz-appearance: textfield;
}

.myrepo-directory .myrepo-price-min::-webkit-outer-spin-button,
.myrepo-directory .myrepo-price-min::-webkit-inner-spin-button,
.myrepo-directory .myrepo-price-max::-webkit-outer-spin-button,
.myrepo-directory .myrepo-price-max::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.myrepo-directory .myrepo-price-min::placeholder,
.myrepo-directory .myrepo-price-max::placeholder {
	color: var(--myrepo-muted);
	opacity: 1;
}

.myrepo-directory .myrepo-price-min:hover,
.myrepo-directory .myrepo-price-max:hover {
	border-color: var(--myrepo-primary);
}

.myrepo-price-sep {
	flex: none;
	color: var(--myrepo-muted);
	font-weight: 600;
}

.myrepo-directory .myrepo-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	color: var(--myrepo-text);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.myrepo-directory .myrepo-featured-only {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--myrepo-primary);
	cursor: pointer;
	flex: none;
}

.myrepo-directory .myrepo-clear-filters {
	height: 44px;
	margin: 0 0 0 auto;
	padding: 0 20px;
	border: 1px solid var(--myrepo-primary);
	border-radius: 10px;
	background: transparent;
	color: var(--myrepo-primary);
	font-weight: 600;
	font-size: .875rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.myrepo-directory .myrepo-clear-filters:hover {
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
}

/* ------------------------------------------------------------------ */
/* Status line + loading state                                        */
/* ------------------------------------------------------------------ */

.myrepo-status {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 22px;
	margin: 0 0 14px;
	color: var(--myrepo-muted);
	font-size: .875rem;
}

.myrepo-directory.is-loading .myrepo-status::before {
	content: "";
	width: 14px;
	height: 14px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--myrepo-border);
	border-top-color: var(--myrepo-primary);
	animation: myrepo-spin .7s linear infinite;
}

@keyframes myrepo-spin {
	to {
		transform: rotate(360deg);
	}
}

.myrepo-results.is-loading .myrepo-card {
	opacity: .5;
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Results grid (driven by --myrepo-cols: 4/3/2/1)                    */
/* ------------------------------------------------------------------ */

.myrepo-results {
	display: grid;
	gap: var(--myrepo-gap);
	grid-template-columns: repeat(var(--myrepo-cols), minmax(0, 1fr));
}

@media (max-width: 1023px) {
	.myrepo-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-columns: repeat(min(var(--myrepo-cols), 2), minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.myrepo-results {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* Card                                                               */
/* ------------------------------------------------------------------ */

.myrepo-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	background: var(--myrepo-white);
	border: 1px solid var(--myrepo-border);
	border-radius: var(--myrepo-radius);
	box-shadow: var(--myrepo-shadow);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.myrepo-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--myrepo-shadow-hover);
}

.myrepo-card.is-featured {
	border-top: 4px solid var(--myrepo-accent);
}

/* Media */
.myrepo-card .myrepo-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--myrepo-bg);
	border-radius: var(--myrepo-radius) var(--myrepo-radius) 0 0;
	text-decoration: none;
	color: inherit;
}

.myrepo-card.is-featured .myrepo-card-media {
	border-radius: 0;
}

.myrepo-card .myrepo-card-media img,
.myrepo-card .myrepo-card-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	transition: transform .3s ease;
}

.myrepo-card:hover .myrepo-card-media img {
	transform: scale(1.03);
}

.myrepo-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 40, 85, .06);
	background: color-mix(in srgb, var(--myrepo-primary) 6%, transparent);
	color: var(--myrepo-muted);
}

.myrepo-card-placeholder svg {
	width: 56px;
	height: 56px;
	max-width: 40%;
	display: block;
	opacity: .6;
}

.myrepo-card.is-sold .myrepo-card-media img {
	filter: grayscale(.6);
	opacity: .85;
}

.myrepo-card.is-sold .myrepo-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 40, 85, .22);
	pointer-events: none;
	z-index: 1;
}

/* Badges (shared by cards + details) */
.myrepo-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
}

.myrepo-badge .myrepo-icon svg {
	width: 12px;
	height: 12px;
}

.myrepo-badge--status.is-available {
	background: var(--myrepo-available);
	color: var(--myrepo-white);
}

.myrepo-badge--status.is-under_offer,
.myrepo-badge--status.is-under-offer {
	background: var(--myrepo-offer);
	color: var(--myrepo-white);
}

.myrepo-badge--status.is-sold {
	background: var(--myrepo-sold);
	color: var(--myrepo-white);
}

.myrepo-badge--featured {
	background: var(--myrepo-accent);
	color: var(--myrepo-primary);
}

.myrepo-card .myrepo-card-media .myrepo-badge {
	position: absolute;
	top: 12px;
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.myrepo-card .myrepo-card-media .myrepo-badge--status {
	left: 12px;
}

.myrepo-card .myrepo-card-media .myrepo-badge--featured {
	right: 12px;
}

.myrepo-card-photos {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(10, 40, 85, .78);
	color: var(--myrepo-white);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 999px;
}

.myrepo-card-photos .myrepo-icon svg {
	width: 13px;
	height: 13px;
}

/* Body */
.myrepo-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 16px 18px 14px;
}

.myrepo-card-category {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--myrepo-muted);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.myrepo-card-category .myrepo-icon svg {
	width: 14px;
	height: 14px;
}

.myrepo-card .myrepo-card-title {
	margin: 0;
	padding: 0;
	color: var(--myrepo-primary);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.myrepo-card .myrepo-card-title a {
	color: inherit;
	text-decoration: none;
}

.myrepo-card .myrepo-card-title a:hover,
.myrepo-card .myrepo-card-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.myrepo-card-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 8px;
}

.myrepo-price-amount {
	color: var(--myrepo-primary);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.myrepo-price-type {
	color: var(--myrepo-muted);
	font-size: .8rem;
	font-weight: 600;
}

.myrepo-card .myrepo-card-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.myrepo-card .myrepo-card-spec {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 4px 10px;
	background: rgba(10, 40, 85, .07);
	background: color-mix(in srgb, var(--myrepo-primary) 7%, transparent);
	color: var(--myrepo-primary);
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.myrepo-card-spec .myrepo-icon svg {
	width: 13px;
	height: 13px;
}

.myrepo-card-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--myrepo-muted);
	font-size: .875rem;
	line-height: 1.4;
	min-width: 0;
	overflow-wrap: anywhere;
}

.myrepo-card-row > .myrepo-icon {
	width: 16px;
	margin-top: 2px;
	color: var(--myrepo-primary);
}

.myrepo-card-row > .myrepo-icon svg {
	width: 16px;
	height: 16px;
}

.myrepo-card-deadline {
	color: var(--myrepo-text);
	font-weight: 600;
}

.myrepo-card .myrepo-card-excerpt {
	margin: 0;
	color: var(--myrepo-text);
	font-size: .9rem;
	line-height: 1.55;
}

/* Actions */
.myrepo-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	border-top: 1px solid var(--myrepo-border);
	padding: 14px 18px 16px;
	margin-top: auto;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */

.myrepo-directory .myrepo-btn,
.myrepo-details .myrepo-btn,
.myrepo-related .myrepo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 11px 16px;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.myrepo-directory .myrepo-btn:hover,
.myrepo-details .myrepo-btn:hover,
.myrepo-related .myrepo-btn:hover {
	text-decoration: none;
}

.myrepo-btn .myrepo-icon svg {
	width: 15px;
	height: 15px;
}

.myrepo-directory .myrepo-btn--view,
.myrepo-details .myrepo-btn--view,
.myrepo-related .myrepo-btn--view {
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
	border-color: var(--myrepo-primary);
}

.myrepo-directory .myrepo-btn--view:hover,
.myrepo-details .myrepo-btn--view:hover,
.myrepo-related .myrepo-btn--view:hover {
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
	box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .14);
}

.myrepo-directory .myrepo-btn--enquire,
.myrepo-details .myrepo-btn--enquire,
.myrepo-related .myrepo-btn--enquire {
	background: var(--myrepo-accent);
	color: var(--myrepo-primary);
	border-color: var(--myrepo-accent);
}

.myrepo-directory .myrepo-btn--enquire:hover,
.myrepo-details .myrepo-btn--enquire:hover,
.myrepo-related .myrepo-btn--enquire:hover {
	background: var(--myrepo-accent);
	color: var(--myrepo-primary);
	box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .08);
}

.myrepo-directory .myrepo-btn--directions,
.myrepo-details .myrepo-btn--directions,
.myrepo-related .myrepo-btn--directions {
	background: var(--myrepo-white);
	color: var(--myrepo-primary);
	border-color: var(--myrepo-primary);
}

.myrepo-directory .myrepo-btn--directions:hover,
.myrepo-details .myrepo-btn--directions:hover,
.myrepo-related .myrepo-btn--directions:hover {
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
}

/* ------------------------------------------------------------------ */
/* Load More                                                          */
/* ------------------------------------------------------------------ */

.myrepo-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin: 22px 0 0;
}

.myrepo-directory .myrepo-loadmore {
	margin: 0;
	padding: 13px 36px;
	border: 1px solid var(--myrepo-primary);
	border-radius: 999px;
	background: transparent;
	color: var(--myrepo-primary);
	font-weight: 700;
	font-size: .9rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.myrepo-directory .myrepo-loadmore:hover {
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
}

.myrepo-directory .myrepo-loadmore:disabled {
	opacity: .6;
	cursor: default;
}

/* ------------------------------------------------------------------ */
/* Empty state                                                        */
/* ------------------------------------------------------------------ */

.myrepo-empty {
	text-align: center;
	background: var(--myrepo-white);
	border: 1px dashed var(--myrepo-border);
	border-radius: var(--myrepo-radius);
	padding: 48px 20px;
	margin: 0 0 8px;
}

.myrepo-empty > .myrepo-icon {
	color: var(--myrepo-muted);
}

.myrepo-empty > .myrepo-icon svg {
	width: 40px;
	height: 40px;
	stroke-width: 1.5;
}

.myrepo-directory .myrepo-empty p {
	margin: 12px 0 20px;
	color: var(--myrepo-primary);
	font-size: 1.05rem;
	font-weight: 600;
}

.myrepo-empty-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.myrepo-directory .myrepo-clear-filters-link,
.myrepo-directory .myrepo-view-all {
	margin: 0;
	padding: 11px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: .875rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.myrepo-directory .myrepo-clear-filters-link {
	background: transparent;
	border: 1px solid var(--myrepo-primary);
	color: var(--myrepo-primary);
}

.myrepo-directory .myrepo-clear-filters-link:hover {
	background: var(--myrepo-primary);
	color: var(--myrepo-white);
}

.myrepo-directory .myrepo-view-all {
	background: var(--myrepo-primary);
	border: 1px solid var(--myrepo-primary);
	color: var(--myrepo-white);
}

.myrepo-directory .myrepo-view-all:hover {
	box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .14);
	color: var(--myrepo-white);
}

/* ------------------------------------------------------------------ */
/* Disclaimer (directory + details)                                   */
/* ------------------------------------------------------------------ */

.myrepo-disclaimer {
	border-top: 1px solid var(--myrepo-border);
	margin-top: 26px;
	padding-top: 16px;
	color: var(--myrepo-muted);
	font-size: .78rem;
	line-height: 1.6;
}

.myrepo-disclaimer p {
	margin: 0 0 8px;
}

.myrepo-disclaimer p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Single listing wrapper (auto-injected layout)                      */
/* ------------------------------------------------------------------ */

.myrepo-single {
	display: block;
}

.myrepo-single-content {
	margin: 24px 0;
}

/* ------------------------------------------------------------------ */
/* Details block                                                      */
/* ------------------------------------------------------------------ */

.myrepo-details {
	font-family: inherit;
	color: var(--myrepo-text);
	line-height: 1.5;
	margin: 28px 0;
}

.myrepo-details-top {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--myrepo-white);
	border: 1px solid var(--myrepo-border);
	border-radius: var(--myrepo-radius);
	box-shadow: var(--myrepo-shadow);
	padding: 22px 24px;
	margin: 0 0 20px;
}

.myrepo-details-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.myrepo-details-price .myrepo-price-amount {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
}

.myrepo-details-price .myrepo-price-type {
	font-size: .95rem;
}

.myrepo-price-note {
	color: var(--myrepo-muted);
	font-size: .9rem;
	font-style: italic;
}

.myrepo-details-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.myrepo-ref {
	color: var(--myrepo-muted);
	font-size: .875rem;
	font-weight: 600;
}

.myrepo-category-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: rgba(10, 40, 85, .07);
	background: color-mix(in srgb, var(--myrepo-primary) 7%, transparent);
	color: var(--myrepo-primary);
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.3;
}

.myrepo-category-chip .myrepo-icon svg {
	width: 14px;
	height: 14px;
}

.myrepo-details-deadline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--myrepo-text);
	font-size: .95rem;
	font-weight: 600;
}

.myrepo-details-deadline > .myrepo-icon {
	color: var(--myrepo-primary);
}

.myrepo-days-left {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	background: rgba(255, 210, 0, .28);
	background: color-mix(in srgb, var(--myrepo-accent) 28%, transparent);
	color: var(--myrepo-primary);
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	font-style: normal;
	line-height: 1.3;
}

.myrepo-days-left.is-closed {
	background: rgba(179, 45, 46, .12);
	background: color-mix(in srgb, var(--myrepo-sold) 12%, transparent);
	color: var(--myrepo-sold);
}

.myrepo-details-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.myrepo-details-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.myrepo-details-grid {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		align-items: start;
	}
}

.myrepo-details-specs {
	min-width: 0;
	background: var(--myrepo-white);
	border: 1px solid var(--myrepo-border);
	border-radius: var(--myrepo-radius);
	box-shadow: var(--myrepo-shadow);
	padding: 22px 24px;
}

.myrepo-details .myrepo-details-heading {
	position: relative;
	margin: 0 0 18px;
	padding: 0 0 12px;
	color: var(--myrepo-primary);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.2;
}

.myrepo-details .myrepo-details-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: var(--myrepo-accent);
}

.myrepo-details .myrepo-specs {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 24px;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.myrepo-details .myrepo-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.myrepo-details .myrepo-spec {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--myrepo-border);
	min-width: 0;
}

.myrepo-details .myrepo-spec dt {
	margin: 0;
	color: var(--myrepo-muted);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.myrepo-details .myrepo-spec dd {
	margin: 0;
	color: var(--myrepo-text);
	font-size: .95rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.myrepo-condition {
	margin-top: 18px;
}

.myrepo-details .myrepo-condition h3,
.myrepo-details .myrepo-condition h4,
.myrepo-details .myrepo-details-box h3,
.myrepo-details .myrepo-details-box h4,
.myrepo-details .myrepo-details-conditions h3,
.myrepo-details .myrepo-details-conditions h4 {
	margin: 0 0 10px;
	padding: 0;
	color: var(--myrepo-primary);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.myrepo-details .myrepo-condition p,
.myrepo-details .myrepo-details-box p,
.myrepo-details .myrepo-details-conditions p {
	margin: 0 0 8px;
	font-size: .95rem;
	line-height: 1.6;
}

.myrepo-details .myrepo-condition p:last-child,
.myrepo-details .myrepo-details-box p:last-child,
.myrepo-details .myrepo-details-conditions p:last-child {
	margin-bottom: 0;
}

.myrepo-details-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.myrepo-details-box {
	background: var(--myrepo-white);
	border: 1px solid var(--myrepo-border);
	border-radius: var(--myrepo-radius);
	box-shadow: var(--myrepo-shadow);
	padding: 18px 20px;
	font-size: .95rem;
	overflow-wrap: anywhere;
}

.myrepo-details .myrepo-details-box a {
	color: var(--myrepo-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.myrepo-details .myrepo-details-box a:hover {
	color: var(--myrepo-primary);
	text-decoration: none;
}

.myrepo-details .myrepo-details-box .myrepo-btn {
	text-decoration: none;
	margin-top: 8px;
}

.myrepo-details .myrepo-documents {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.myrepo-details .myrepo-documents > li {
	margin: 0;
	padding: 0;
}

.myrepo-details .myrepo-documents a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--myrepo-border);
	border-radius: 10px;
	background: var(--myrepo-bg);
	color: var(--myrepo-primary);
	font-weight: 600;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.myrepo-details .myrepo-documents a:hover {
	border-color: var(--myrepo-primary);
	box-shadow: var(--myrepo-shadow);
	text-decoration: none;
}

.myrepo-details .myrepo-documents a > .myrepo-icon {
	color: var(--myrepo-primary);
}

.myrepo-details .myrepo-documents small {
	margin-left: auto;
	color: var(--myrepo-muted);
	font-size: .78rem;
	font-weight: 500;
	white-space: nowrap;
}

.myrepo-details .myrepo-contact-box a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.myrepo-details .myrepo-contact-box .myrepo-icon {
	color: var(--myrepo-primary);
}

.myrepo-details .myrepo-contact-box .myrepo-icon svg {
	width: 16px;
	height: 16px;
}

.myrepo-details-conditions {
	margin-top: 20px;
	padding: 18px 20px;
	background: var(--myrepo-bg);
	border: 1px solid var(--myrepo-border);
	border-radius: var(--myrepo-radius);
	color: var(--myrepo-muted);
	font-size: .9rem;
	line-height: 1.6;
}

.myrepo-details .myrepo-details-conditions p {
	font-size: .9rem;
}

/* Friendly notice inside the Elementor editor only. */
.myrepo-editor-notice {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--myrepo-offer, #B26B00);
	border-radius: 10px;
	background: #FFF8E6;
	color: #5A4300;
	font-size: .9rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Gallery                                                            */
/* ------------------------------------------------------------------ */

.myrepo-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-family: inherit;
	color: var(--myrepo-text);
	margin: 0 0 24px;
}

.myrepo-gallery .myrepo-gallery-main {
	position: relative;
	margin: 0;
	padding: 0;
	min-width: 0;
	border-radius: var(--myrepo-radius);
	overflow: hidden;
	background: var(--myrepo-bg);
	box-shadow: var(--myrepo-shadow);
}

.myrepo-gallery .myrepo-gallery-link {
	position: relative;
	display: block;
	margin: 0;
	text-decoration: none;
	color: inherit;
	background: var(--myrepo-bg);
}

.myrepo-gallery[data-lightbox="1"] .myrepo-gallery-link {
	cursor: zoom-in;
}

.myrepo-gallery .myrepo-gallery-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	transition: opacity .2s ease;
}

.myrepo-gallery.is-switching .myrepo-gallery-img {
	opacity: .6;
}

.myrepo-gallery .myrepo-gallery-counter {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	background: rgba(10, 40, 85, .78);
	color: var(--myrepo-white);
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.myrepo-gallery .myrepo-gallery-prev,
.myrepo-gallery .myrepo-gallery-next {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--myrepo-primary);
	box-shadow: 0 2px 10px rgba(10, 40, 85, .25);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .18s ease, box-shadow .18s ease;
}

.myrepo-gallery .myrepo-gallery-prev {
	left: 12px;
}

.myrepo-gallery .myrepo-gallery-next {
	right: 12px;
}

.myrepo-gallery .myrepo-gallery-prev:hover,
.myrepo-gallery .myrepo-gallery-next:hover {
	background: var(--myrepo-white);
	box-shadow: var(--myrepo-shadow-hover);
}

.myrepo-gallery .myrepo-gallery-prev .myrepo-icon svg,
.myrepo-gallery .myrepo-gallery-next .myrepo-icon svg {
	width: 22px;
	height: 22px;
}

.myrepo-gallery .myrepo-gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 28px 16px 12px;
	background: linear-gradient(to top, rgba(10, 40, 85, .8), rgba(10, 40, 85, 0));
	color: var(--myrepo-white);
	font-size: .875rem;
	line-height: 1.4;
	text-align: left;
	pointer-events: none;
}

.myrepo-gallery .myrepo-gallery-caption:empty {
	display: none;
}

/* Thumbnails */
.myrepo-gallery .myrepo-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(var(--myrepo-thumb-cols, 6), minmax(0, 1fr));
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 3px;
}

.myrepo-gallery .myrepo-gallery-thumbs > li {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.myrepo-gallery .myrepo-gallery-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--myrepo-bg);
	overflow: hidden;
	cursor: pointer;
	opacity: .75;
	transition: opacity .18s ease, box-shadow .18s ease;
}

.myrepo-gallery .myrepo-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}

.myrepo-gallery .myrepo-gallery-thumb:hover {
	opacity: 1;
}

.myrepo-gallery .myrepo-gallery-thumb[aria-current]:not([aria-current="false"]) {
	opacity: 1;
	box-shadow: 0 0 0 3px var(--myrepo-accent);
}

/* Video embed (16:9) */
.myrepo-gallery .myrepo-gallery-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--myrepo-radius);
	overflow: hidden;
	background: var(--myrepo-primary);
}

.myrepo-gallery .myrepo-gallery-video iframe,
.myrepo-gallery .myrepo-gallery-video video,
.myrepo-gallery .myrepo-gallery-video embed,
.myrepo-gallery .myrepo-gallery-video object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* No images at all */
.myrepo-gallery .myrepo-gallery-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 3 / 2;
	border-radius: var(--myrepo-radius);
	background: rgba(10, 40, 85, .06);
	background: color-mix(in srgb, var(--myrepo-primary) 6%, transparent);
	color: var(--myrepo-muted);
}

.myrepo-gallery .myrepo-gallery-placeholder svg {
	width: 72px;
	height: 72px;
	max-width: 30%;
	display: block;
	opacity: .6;
}

/* Thumbs on the left (≥ 900px) */
@media (min-width: 900px) {
	.myrepo-gallery--thumbs-left {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
		align-items: stretch;
	}

	.myrepo-gallery--thumbs-left .myrepo-gallery-main {
		grid-column: 2;
		grid-row: 1;
	}

	.myrepo-gallery--thumbs-left .myrepo-gallery-thumbs {
		grid-column: 1;
		grid-row: 1;
		grid-template-columns: minmax(0, 1fr);
		align-content: start;
		min-height: 0;
		overflow-y: auto;
		scrollbar-width: thin;
	}

	.myrepo-gallery--thumbs-left .myrepo-gallery-video,
	.myrepo-gallery--thumbs-left .myrepo-gallery-placeholder {
		grid-column: 1 / -1;
	}
}

/* ------------------------------------------------------------------ */
/* Lightbox (built once by JS, appended to body)                      */
/* ------------------------------------------------------------------ */

.myrepo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: inherit;
	color: var(--myrepo-white);
	touch-action: pan-y;
}

.myrepo-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 40, 85, .92);
	cursor: pointer;
}

.myrepo-lightbox .myrepo-lightbox-figure {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	max-width: 90vw;
	max-height: 90vh;
	pointer-events: none;
}

.myrepo-lightbox .myrepo-lightbox-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 90vw;
	max-height: 85vh;
	margin: 0;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
	background: rgba(255, 255, 255, .04);
	pointer-events: auto;
	user-select: none;
	-webkit-user-drag: none;
	transition: opacity .2s ease;
}

.myrepo-lightbox.is-loading .myrepo-lightbox-img {
	opacity: .5;
}

.myrepo-lightbox .myrepo-lightbox-caption {
	margin: 0;
	max-width: 90vw;
	color: var(--myrepo-white);
	font-size: .95rem;
	line-height: 1.4;
	text-align: center;
	pointer-events: auto;
}

.myrepo-lightbox .myrepo-lightbox-caption:empty {
	display: none;
}

.myrepo-lightbox .myrepo-lightbox-counter {
	position: absolute;
	top: 22px;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%);
	padding: 6px 12px;
	background: rgba(0, 0, 0, .35);
	color: var(--myrepo-white);
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}

.myrepo-lightbox .myrepo-lightbox-close,
.myrepo-lightbox .myrepo-lightbox-prev,
.myrepo-lightbox .myrepo-lightbox-next {
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--myrepo-white);
	color: var(--myrepo-primary);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.myrepo-lightbox .myrepo-lightbox-close:hover,
.myrepo-lightbox .myrepo-lightbox-prev:hover,
.myrepo-lightbox .myrepo-lightbox-next:hover {
	background: var(--myrepo-accent);
	color: var(--myrepo-primary);
}

.myrepo-lightbox .myrepo-lightbox-close {
	top: 20px;
	right: 20px;
}

.myrepo-lightbox .myrepo-lightbox-prev {
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
}

.myrepo-lightbox .myrepo-lightbox-next {
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
}

.myrepo-lightbox .myrepo-icon svg {
	width: 22px;
	height: 22px;
}

body.myrepo-noscroll {
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Related listings                                                   */
/* ------------------------------------------------------------------ */

.myrepo-related {
	font-family: inherit;
	color: var(--myrepo-text);
	line-height: 1.5;
	margin: 32px 0 0;
}

.myrepo-related .myrepo-related-heading {
	position: relative;
	margin: 0 0 18px;
	padding: 0 0 12px;
	color: var(--myrepo-primary);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
}

.myrepo-related .myrepo-related-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	background: var(--myrepo-accent);
}

/* ------------------------------------------------------------------ */
/* Mobile: filter drawer (<768px)                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.myrepo-directory .myrepo-filter-toggle {
		display: inline-flex;
	}

	.myrepo-filters {
		display: none;
	}

	.myrepo-filters.is-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		animation: myrepo-slide .2s ease;
	}

	.myrepo-filter-field,
	.myrepo-price-field {
		max-width: none;
		min-width: 0;
		width: 100%;
	}

	.myrepo-directory .myrepo-clear-filters {
		margin-left: 0;
		width: 100%;
	}

	.myrepo-sort-wrap {
		flex: 1 1 auto;
		justify-content: flex-end;
	}
}

@keyframes myrepo-slide {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile: stacked actions, full-width Enquire (<640px)               */
/* ------------------------------------------------------------------ */

@media (max-width: 639px) {
	.myrepo-directory {
		padding: 24px 16px 22px;
	}

	.myrepo-directory .myrepo-title {
		font-size: 1.4rem;
	}

	.myrepo-directory .myrepo-tab {
		padding: 12px 20px;
		font-size: .875rem;
	}

	.myrepo-card-actions {
		gap: 8px;
	}

	.myrepo-directory .myrepo-btn--enquire,
	.myrepo-related .myrepo-btn--enquire {
		width: 100%;
		order: -1;
		min-height: 50px;
		font-size: 1rem;
	}

	.myrepo-directory .myrepo-btn--view,
	.myrepo-directory .myrepo-btn--directions,
	.myrepo-related .myrepo-btn--view,
	.myrepo-related .myrepo-btn--directions {
		flex: 1 1 auto;
		min-height: 44px;
	}

	.myrepo-details-top,
	.myrepo-details-specs {
		padding: 18px 16px;
	}

	.myrepo-details-price .myrepo-price-amount {
		font-size: 1.6rem;
	}

	.myrepo-details .myrepo-details-actions .myrepo-btn {
		flex: 1 1 auto;
		min-height: 46px;
	}

	.myrepo-gallery .myrepo-gallery-prev,
	.myrepo-gallery .myrepo-gallery-next {
		width: 38px;
		height: 38px;
	}

	.myrepo-lightbox {
		padding: 12px;
	}

	.myrepo-lightbox .myrepo-lightbox-figure,
	.myrepo-lightbox .myrepo-lightbox-img,
	.myrepo-lightbox .myrepo-lightbox-caption {
		max-width: 94vw;
	}

	.myrepo-lightbox .myrepo-lightbox-close,
	.myrepo-lightbox .myrepo-lightbox-prev,
	.myrepo-lightbox .myrepo-lightbox-next {
		width: 40px;
		height: 40px;
	}

	.myrepo-lightbox .myrepo-lightbox-close {
		top: 12px;
		right: 12px;
	}

	.myrepo-lightbox .myrepo-lightbox-prev {
		left: 8px;
	}

	.myrepo-lightbox .myrepo-lightbox-next {
		right: 8px;
	}

	.myrepo-lightbox .myrepo-lightbox-counter {
		top: 16px;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.myrepo-directory *,
	.myrepo-directory *::before,
	.myrepo-directory *::after,
	.myrepo-details *,
	.myrepo-details *::before,
	.myrepo-details *::after,
	.myrepo-gallery *,
	.myrepo-gallery *::before,
	.myrepo-gallery *::after,
	.myrepo-lightbox *,
	.myrepo-lightbox *::before,
	.myrepo-lightbox *::after,
	.myrepo-related *,
	.myrepo-related *::before,
	.myrepo-related *::after {
		transition: none !important;
		animation: none !important;
	}

	.myrepo-card:hover {
		transform: none;
	}

	.myrepo-card:hover .myrepo-card-media img {
		transform: none;
	}
}
