/* ==========================================================================
   County Properties Plugin — styles
   Everything is scoped under #cpp-properties-root with a cpp- class prefix
   so it can't leak into or be overridden by theme/Elementor styles.
   ========================================================================== */
:root {
	--clr-brand-main: #139a68;
	--clr-brand-dark: #0d6b48;
	--clr-brand-accent: #ffcf06;
	--clr-brand-accent-hover: #e6ba05;

	--ff-display: "Montserrat", sans-serif;
	--ff-prose: "Open Sans", sans-serif;
	--ff-ui: "Open Sans", sans-serif;
}
#cpp-properties-root {
	box-sizing: border-box;
}
#cpp-properties-root *,
#cpp-properties-root *::before,
#cpp-properties-root *::after {
	box-sizing: inherit;
}
#cpp-properties-root .cpp-empty {
	color: #6b7280;
	font-style: italic;
}

#cpp-properties-root .cpp-results-count {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0 0 1.25rem;
}

#cpp-filters-root .cpp-filter-clear--hidden {
	display: none;
}

#cpp-properties-root.cpp-loading {
	opacity: 0.5;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

/* ==========================================================================
   Filter bar — scoped under #cpp-filters-root
   ========================================================================== */

#cpp-filters-root {
	box-sizing: border-box;
	font-family: var(--ff-prose);
}

#cpp-filters-root *,
#cpp-filters-root *::before,
#cpp-filters-root *::after {
	box-sizing: inherit;
}

.cpp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#cpp-filters-root .cpp-filters-form {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 1.75rem;
}

#cpp-filters-root .cpp-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1 1 180px;
}

#cpp-filters-root .cpp-filter-field label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

#cpp-filters-root .cpp-filter-field select {
	appearance: auto;
	font-family: var(--ff-ui);
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	background: transparent;
	border: none;
	border-bottom: 1px solid #d1d5db;
	border-radius: 0;
	padding: 0 0 0.6rem;
	cursor: pointer;
}

#cpp-filters-root .cpp-filter-field select:focus {
	outline: none;
	border-bottom-color: var(--clr-brand-main);
	border-bottom-width: 2px;
}

#cpp-filters-root .cpp-filter-clear {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.8rem;
	color: #6b7280;
	text-decoration: underline;
}

#cpp-filters-root .cpp-filter-clear:hover {
	color: var(--clr-brand-dark);
}
#cpp-properties-root .cpp-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	#cpp-properties-root .cpp-grid.cpp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1200px) {
	#cpp-properties-root .cpp-grid.cpp-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

#cpp-properties-root,
#cpp-property-single-root {
	font-family: var(--ff-prose);
}
#cpp-properties-root h1, #cpp-properties-root h2, #cpp-properties-root h3,
#cpp-properties-root h4, #cpp-properties-root h5, #cpp-properties-root h6,
#cpp-property-single-root h1, #cpp-property-single-root h2, #cpp-property-single-root h3,
#cpp-property-single-root h4, #cpp-property-single-root h5, #cpp-property-single-root h6 {
	font-family: var(--ff-display);
}

#cpp-properties-root .cpp-card {
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	border: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
}
#cpp-properties-root .cpp-card-image-wrap {
	position: relative;
	overflow: hidden;
}
#cpp-properties-root .cpp-card-image {
	width: 100%;
	height: 14rem;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
#cpp-properties-root .cpp-card:hover .cpp-card-image {
	transform: scale(1.05);
}
.cpp-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: #333;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 0.25rem 0.75rem;
	border-radius: 0.25rem;
	line-height: 1.4;
}
#cpp-properties-root .cpp-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
#cpp-properties-root .cpp-card-title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.25rem;
}
#cpp-properties-root .cpp-card-location {
	font-size: 0.875rem;
	color: #4b5563;
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.cpp-location-icon {
	color: var(--clr-brand-main);
	font-size: 0.8rem;
}
.cpp-stats-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0.75rem 0 0;
	border-top: 1px solid #e5e7eb;
	font-size: 0.875rem;
	flex-grow: 1;
}
.cpp-stats-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
}
.cpp-stat-label {
	color: #4b5563;
}
.cpp-stat-value {
	font-weight: 600;
	text-align: right;
}
#cpp-properties-root .cpp-card-link {
	display: block;
	text-align: center;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	margin-top: auto;
	padding: 0.55rem;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	background: #f9fafb;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#cpp-properties-root .cpp-card-link:hover {
	background: var(--clr-brand-dark);
	border-color: var(--clr-brand-dark);
	color: #fff;
}

/* ==========================================================================
   Single property view — scoped under #cpp-property-single-root
   ========================================================================== */

#cpp-property-single-root {
	box-sizing: border-box;
	max-width: 1200px;
}

#cpp-property-single-root *,
#cpp-property-single-root *::before,
#cpp-property-single-root *::after {
	box-sizing: inherit;
}

#cpp-property-single-root .cpp-single-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 900px) {
	#cpp-property-single-root .cpp-single-layout {
		grid-template-columns: 2fr 1fr;
		align-items: start;
	}
}

#cpp-property-single-root .cpp-single-aside {
	display: flex;
	flex-direction: column;
}

@media (min-width: 900px) {
	#cpp-property-single-root .cpp-single-aside {
		position: sticky;
		top: 1.5rem;
	}
}

#cpp-property-single-root .cpp-single-aside .cpp-single-section {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

#cpp-property-single-root .cpp-single-aside .cpp-single-price {
	background: #fff;
	/* border-color: var(--clr-brand-main); */
}

#cpp-property-single-root .cpp-single-aside .cpp-single-featured-image {
	padding: 0;
	border: none;
	background: transparent;
	overflow: hidden;
}

#cpp-property-single-root .cpp-featured-image-el {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.cpp-breadcrumb {
	margin-bottom: 1.25rem;
	font-size: 0.85rem;
	font-family: var(--ff-prose);
}

.cpp-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpp-breadcrumb li {
	display: flex;
	align-items: center;
}

.cpp-breadcrumb a {
	color: #4b5563;
	text-decoration: none;
}

.cpp-breadcrumb a:hover {
	color: var(--clr-brand-dark);
	text-decoration: underline;
}

.cpp-breadcrumb span[aria-current="page"] {
	color: #111827;
	font-weight: 600;
}

.cpp-breadcrumb-sep {
	margin: 0 0.5rem;
	color: #9ca3af;
}

#cpp-property-single-root .cpp-single-header {
	position: relative;
	margin-bottom: 2rem;
}

#cpp-property-single-root .cpp-single-badge {
	position: static;
	display: inline-block;
	margin-bottom: 0.75rem;
}

#cpp-property-single-root .cpp-single-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

#cpp-property-single-root .cpp-single-location {
	margin: 0;
	font-size: 1rem;
}

#cpp-property-single-root .cpp-single-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e5e7eb;
}

#cpp-property-single-root .cpp-single-section:last-child {
	border-bottom: none;
}

#cpp-property-single-root .cpp-single-section-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

#cpp-property-single-root .cpp-single-price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding-bottom: 0;
	border-bottom: none;
	margin-bottom: 1.5rem;
}

#cpp-property-single-root .cpp-single-section-label {
	font-family: var(--ff-display);
	font-size: 0.95rem;
	color: #333;
	font-weight: 700;
}

#cpp-property-single-root .cpp-single-price-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--clr-brand-dark);
}

#cpp-property-single-root .cpp-single-wysiwyg {
	line-height: 1.7;
}

#cpp-property-single-root .cpp-single-wysiwyg p:last-child {
	margin-bottom: 0;
}

#cpp-property-single-root .cpp-single-wysiwyg a {
	color: var(--clr-brand-main);
	transition-duration: .3s;
}
#cpp-property-single-root .cpp-single-wysiwyg a:hover {
	color: var(--clr-brand-main);
	text-decoration: underline;
}

#cpp-property-single-root .cpp-single-stats-list {
	max-width: 480px;
}

#cpp-property-single-root .cpp-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0.5rem;
	overflow: hidden;
	background: #000;
}

#cpp-property-single-root .cpp-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

#cpp-property-single-root .cpp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 600px) {
	#cpp-property-single-root .cpp-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

#cpp-property-single-root .cpp-gallery-item {
	display: block;
	border-radius: 0.375rem;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

#cpp-property-single-root .cpp-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

#cpp-property-single-root .cpp-gallery-item:hover img {
	transform: scale(1.05);
}

#cpp-property-single-root .cpp-file-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#cpp-property-single-root .cpp-file-list li + li {
	margin-top: 0.6rem;
}

#cpp-property-single-root .cpp-file-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--clr-brand-dark);
	font-weight: 600;
	text-decoration: none;
}

#cpp-property-single-root .cpp-file-list a:hover {
	text-decoration: underline;
}

#cpp-property-single-root .cpp-file-icon {
	color: var(--clr-brand-main);
}

/* ==========================================================================
   Accessibility: visible focus states and reduced-motion support
   ========================================================================== */

#cpp-properties-root .cpp-card-link:focus-visible,
#cpp-property-single-root .cpp-file-list a:focus-visible,
.cpp-breadcrumb a:focus-visible,
#cpp-property-single-root .cpp-gallery-item:focus-visible,
#cpp-property-single-root .cpp-single-wysiwyg a:focus-visible,
#cpp-filters-root .cpp-filter-clear:focus-visible {
	outline: 2px solid var(--clr-brand-dark);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	#cpp-properties-root .cpp-card-image,
	#cpp-properties-root .cpp-card-link,
	#cpp-properties-root.cpp-loading,
	#cpp-property-single-root .cpp-gallery-item img,
	#cpp-property-single-root .cpp-single-wysiwyg a {
		transition: none !important;
	}
	#cpp-properties-root .cpp-card:hover .cpp-card-image,
	#cpp-property-single-root .cpp-gallery-item:hover img {
		transform: none !important;
	}
}