.clr {
	clear: both;
}

.numberbox {
	text-align: right;
	padding-right: 2px;
}

.right {
	text-align: right;
}

/*** Properties Search layout ***/

#jea-search-form label {
	display: inline !important;
}

#jea-search-form input {
	width: auto !important;
}

#jea-search-form .jea-counter {
	float: right;
}

#jea-search-form .jea-counter-result {
	font-weight: bold;
}

#jea-search-form h2, #jea-search-form hr {
	clear: both;
}

#jea-search-form hr {
	margin: 1em 0;
}

#jea-search-form select {
	width: 12em;
}

#jea-search-form dl {
	padding: 0.5em 0;
}

#jea-search-form dl.col-left, #jea-search-form dl.col-right {
	float: left;
}

#jea-search-form dl.col-left {
	margin-right: 3em;
}

#jea-search-form dt, #jea-search-form dd {
	margin: 0;
	padding: 0;
	display: table-cell;
}

#jea-search-form dt {
	min-width: 5em;
}

#jea-search-form ul {
	overflow: hidden;
	margin: 1em 0 !important;
	padding: 0 !important;
}

#jea-search-form ul.jea-search-other li {
	list-style: none;
	margin: 0.5em 0 !important;
	padding: 0 !important;
}

#jea-search-form ul.jea-search-other label {
	display: inline-block;
	min-width: 13em;
}

/* Searchmap grouped filter sections (amenities / issues) */
.jea-map-amenities,
.jea-map-filter-group {
	margin-bottom: 0.5rem;
}

/* ── Multi-column collapsible filter grid ── */
.jea-filter-section-heading {
	font-size: 1rem;
	font-weight: 700;
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
	padding: 0;
	border-bottom: 2px solid #dee2e6;
	color: #333;
}

/* Section-level collapse toggle (wraps the h2 text) */
.jea-section-toggle {
	width: 100%;
	text-align: left;
	padding: 0.4rem 0.5rem;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 700;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.jea-section-toggle::after {
	content: '▾';
	font-size: 0.85rem;
	transition: transform 0.2s ease;
	margin-left: auto;
}

.jea-section-toggle.jea-collapsed::after {
	transform: rotate(-90deg);
}

.jea-section-toggle:hover {
	color: #0070c0;
}

/* Sticky map wrapper */
.jea-map-sticky-wrapper {
	position: sticky;
	top: 70px;
	z-index: 50;
	background: #fff;
	padding-bottom: 0.5rem;
	box-shadow: 0 4px 8px -4px rgba(0,0,0,0.15);
}

.jea-filter-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.6rem 0.75rem;
	margin-bottom: 1rem;
}

@media (max-width: 1199px) {
	.jea-filter-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.jea-filter-grid {
		grid-template-columns: 1fr;
	}
}

.jea-filter-cat {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	overflow: hidden;
}

.jea-filter-cat-toggle {
	width: 100%;
	text-align: left;
	padding: 0.45rem 0.65rem;
	background: #e9ecef;
	border: none;
	border-bottom: 1px solid #dee2e6;
	font-size: 0.82rem;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.jea-filter-cat-toggle span {
	flex: 1;
}

.jea-filter-cat-toggle::after {
	content: '▾';
	font-size: 0.75rem;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.jea-filter-cat-toggle.jea-collapsed::after {
	transform: rotate(-90deg);
}

.jea-filter-cat-toggle:hover {
	background: #dee2e6;
}

/* 2-column grid within each category panel */
.jea-filter-cat-body {
	padding: 0.5rem 0.65rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.25rem 0.5rem;
}

@media (max-width: 479px) {
	.jea-filter-cat-body {
		grid-template-columns: 1fr;
	}
}

.jea-filter-cat-body .jea-map-filter-label {
	white-space: normal;
	font-size: 0.82rem;
}

/* Action button rows */
.jea-filter-buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.jea-filter-buttons--top {
	margin-bottom: 0.5rem;
}

.jea-filter-buttons--bottom {
	margin-top: 0.75rem;
}

/* ── Below-map horizontal filter rows ───────────────────────────────────── */

.jea-filters-below {
	margin-top: 0.5rem;
}

/* Base row: flex container for all filter rows */
.jea-filter-row {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.6rem 0;
	border-bottom: 1px solid #dee2e6;
}

.jea-filter-row:last-of-type {
	border-bottom: none;
}

/* Sliders row: equal-width columns, stretch to same height */
.jea-sliders-row {
	align-items: stretch;
	padding: 0.75rem 0;
}

.jea-slider-col {
	flex: 1 1 180px;
	min-width: 0;
}

/* Override legacy fixed-width float inside a slider column */
.jea-sliders-row .jea_slider_block {
	float: none;
	width: 100%;
	margin: 0;
	text-align: center;
}

.jea-slider-label {
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 0.35rem;
	color: #444;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Make the slider rail fill its column — replace the fixed background image
   with a full-width CSS bar so the track aligns with the knob endpoints */
.jea-sliders-row .slider_background {
	width: 100%;
	min-width: 0;
	background-image: none !important;
	position: relative;
}

.jea-sliders-row .slider_background::before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 5px;
	margin-top: -2px;
	background: linear-gradient(to right, #9baab8, #6b7d8e);
	border-radius: 3px;
	pointer-events: none;
	z-index: 0;
}

/* Ensure knobs sit above the CSS bar */
.jea-sliders-row .knob {
	position: relative;
	z-index: 1;
}

/* Individual filter field: label + control stacked */
.jea-filter-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 130px;
	min-width: 0;
}

.jea-filter-field > label,
.jea-filter-field > select,
.jea-filter-field > input {
	width: 100%;
}

/* Numeric / small inputs: fixed narrow column */
.jea-filter-number {
	flex: 0 0 auto;
	min-width: 90px;
	max-width: 130px;
}

.jea-filter-number input {
	width: 100%;
	text-align: center;
}

/* Zip code field slightly wider */
.jea-filter-zip {
	flex: 0 1 150px;
}

/* Free-text search spans full remaining width */
.jea-freesearch-row .jea-filter-freesearch {
	flex: 1 1 100%;
}

/* Responsive: stack everything single-column on mobile */
@media (max-width: 575px) {
	.jea-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.jea-filter-field,
	.jea-filter-number,
	.jea-filter-zip {
		max-width: 100%;
		flex-basis: auto;
	}
}

/* ── HTML5 range sliders for numeric filters ─────────────────────────────── */

/* Numerics slider row reuses jea-sliders-row layout but the track is the
   native browser range track, so suppress the CSS pseudo-element bar */
.jea-numerics-slider-row .slider_background {
	background-image: none !important;
}

.jea-numerics-slider-row .slider_background::before {
	display: none;
}

.jea-range-block {
	text-align: center;
}

.jea-range-block .jea-slider-label {
	margin-bottom: 0.4rem;
}

.jea-slider-label .jea-range-val {
	font-variant-numeric: tabular-nums;
	background: #e9eef3;
	padding: 0 5px;
	border-radius: 3px;
	min-width: 2em;
	display: inline-block;
	font-weight: 700;
}

.jea-range-input {
	width: 100%;
	cursor: pointer;
	accent-color: #5a7c9e;
	margin-top: 0.25rem;
}

/* Availability dropdown in topbar */
.jea-topbar-avail {
	min-width: 130px;
	max-width: 180px;
	flex-shrink: 0;
}

/* Top bar: type dropdown + buttons + counter on one row */
.jea-topbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.jea-topbar select {
	min-width: 160px;
	max-width: 240px;
	flex-shrink: 0;
}

.jea-topbar-counter {
	margin-left: auto;
	font-size: 0.88rem;
	color: #555;
	white-space: nowrap;
}
.jea-map-filter-group-title {
	font-size: 0.82rem;
	font-weight: 600;
	color: #555;
	margin-bottom: 0.2rem;
}
.jea-map-filter-subgroup {
	margin-left: 0.75rem;
	margin-bottom: 0.35rem;
}
.jea-map-filter-items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.8rem;
	padding-left: 0.5rem;
}
.jea-map-filter-label {
	font-size: 0.82rem;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	cursor: pointer;
	white-space: nowrap;
}

#jea-search-form .amenities li {
	width: 17em;
	margin: 0 1.5em 0.5em 0 !important;
	padding: 0 !important;
	float: left;
	list-style: none;
}

/* Properties Default layout */

.limitbox {
	text-align: right;
}

dl.jea_item {
	border-top: 1px dashed #ccc;
	padding: 1em 0;
	margin: 0;
}

dl.jea_item:FIRST-CHILD {
	border-top: none;
	padding-top: 0;
}

dl.jea_item dt.title {
	margin-bottom: 0.7em;
}

dl.jea_item dt.title strong {
	font-size: 1.3em;
}

dl.jea_item dt.image {
	text-align: center;
	margin-bottom: 1em;
}

dl.jea_item dt.image img {
	border-color: #819d26;
}

dl.jea_item span.slogan {
	float: right;
}

dl.jea_item span.slogan strong {
	color: red;
}

@media ( min-width : 1200px) {

	dl.jea_item {
		/* formatting context, prevent overshooting of floating */
		overflow: hidden;
	}

	dl.jea_item dt.title {
		clear: both;
	}

	dl.jea_item dt.image {
		float: left;
		margin-right: 1em;
		margin-bottom: 0;
	}
}

/* Property Default layout */
.prev-next-navigation {
	text-align: center;
}

.prev-next-navigation .previous {
	display: inline-block;
	margin-right: 20px;
}

.jea-tools .print-icon {
	float: right;
}

.jea-tools img {
	border: none;
}

#jea-gallery {
	margin-bottom: 10px;
}

#jea-gallery-scroll {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: space-between;
}

#jea-gallery-scroll a {
	display: block;
	max-width: 32%;
	margin: auto auto 5px auto;
}

#jea-gallery-preview a {
	display: inline-block;
}

#jea-gallery-preview img {
	max-width: 100%;
	margin-bottom: 5px;
}

#jea-preview-title {
	font-weight: bold;
}

#jea-preview-description {
	font-style: italic;
}

span.rate_frequency {
	font-size: 0.9em;
	font-weight: normal;
}

table.jea-data {
	width: 100%;
}

table.jea-data th, table.jea-data td {
	padding: 0.4em;
}

table.jea-data th {
	text-align: left;
	font-weight: normal;
}

table.jea-data td {
	font-weight: bold;
}

.property-description {
	margin: 2em 0;
}

#advantages_list {
	margin-bottom: 10px;
}

#jea_property_map {
	width: 100%;
	height: 300px;
	margin-bottom: 1.5em;
}

.google-map-mask {
	background: #000 url(../images/spinner.gif) center center no-repeat;
}

form#jea-contact-form legend {
	font-weight: bold;
}

form#jea-contact-form fieldset dt {
	padding: 3px 0;
	margin: 0;
}

form#jea-contact-form fieldset dd {
	padding: 3px 0;
	margin: 0 0 0.3em 0;
}

form#jea-contact-form input[type="text"], form#jea-contact-form textarea
	{
	width: 100%;
	box-sizing: border-box;
	height: auto;
}

@media ( min-width : 1200px) {

	#jea-gallery.vertical {
		display: flex;
		justify-content: space-between;
	}

	#jea-gallery-preview.vertical {
		flex-basis: 80%;
		margin-right: 5px;
	}

	#jea-gallery-scroll.vertical {
		flex-basis: 20%;
		overflow-y: auto;
	}

	#jea-gallery-scroll.vertical a {
		max-width: 100%;
	}

	#jea-gallery-scroll.horizontal {
		display: block;
		white-space: nowrap;
		overflow-x: auto;
	}

	#jea-gallery-scroll.horizontal a {
		display: inline-block;
	}

	#jea-gallery-scroll.horizontal img {
		max-height: 80px;
		max-width: auto;
	}

	table.jea-data {
		width: auto;
	}

	.jea-col-right {
		float: right;
		margin-left: 2em;
		padding: 2em;
		border-left: 1px dashed #b2b4bf;
	}
}

/*** SqueezeBox layout ***/

#jea-squeezeBox-navblock {
	position: relative;
	bottom: -15px;
	text-align: center;
}

#jea-squeezeBox-infos {
	position: absolute;
	bottom: 15px;
	right: 15px;
	text-align: center;
	background: #000;
	padding: 10px;
	opacity: 0.8;
}

#jea-squeezeBox-title {
	font-weight: bold;
	color: #fff;
	font-size: 13px;
}

#jea-squeezeBox-description {
	color: #ddd;
	font-size: 10px;
}

a#jea-squeezeBox-prev, a#jea-squeezeBox-next {
	color: #fff;
}

#jea-squeezeBox-prev {
	margin-right: 10px;
}

#jea-squeezeBox-next {
	margin-left: 10px;
}

a#jea-squeezeBox-prev.inactive, a#jea-squeezeBox-next.inactive {
	color: #ccc;
	text-decoration: none;
	background: transparent;
	cursor: default;
}

/*format tabular list */

table.jea_listing, table.jea_listing thead, table.jea_listing th, table.jea_listing tbody,
	table.jea_listing td {
	border: 1px solid #ccc;
}

table.jea_listing {
	border-collapse: collapse;
}

table.jea_listing th, table.jea_listing td {
	padding: 5px;
	text-align: left;
}

table.jea_listing tbody th {
	font-weight: bold;
}

table.jea_listing thead {
	font-weight: bold;
	white-space: nowrap;
	text-align: left;
}

table.jea_listing tbody tr.row1 {
	background: #F9F9F9;
}

table.jea_listing tbody tr:hover {
	background: #FFD;
}

table.jea_listing .right {
	text-align: right;
}

table.jea_listing .center {
	text-align: center;
}

table.jea_listing .nowrap {
	white-space: nowrap;
}

/*** Property form layout ***/

ul#amenities {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden;
}

ul#amenities li {
	width: 200px;
	margin: 0 15px 10px 0 !important;
	padding: 0 !important;
	float: left;
}

ul#amenities li label {
	font-size: 12px;
	line-height: 13px;
}

ul#amenities li input {
	float: none;
	margin: 0 8px 0 0;
}

ul.gallery {
	margin: 10px 0 0 0 !important;
	list-style: none !important;
	padding: 0 !important;
}

ul.gallery li {
	padding: 10px 0 10px 10px !important;
	margin: 0 !important;
	border-top: 1px solid #ccc !important;
}

ul.gallery li:FIRST-CHILD {
	background: #FFFFCC
}

ul.gallery a.imgLink {
	float: left;
	margin: 0 10px 5px 0;
}

ul.gallery a.imgLink img {
	float: none;
	margin: 0;
}

ul.gallery .imgTools a {
	cursor: pointer;
	display: inline-block;
	padding: 0 5px;
}

ul.gallery .imgTools a.delete-img {
	margin-left: 20px;
}

ul.gallery label {
	display: inline-block;
	vertical-align: top;
	width: 10em;
}

#found_properties {
	white-space: nowrap;
}

.slider_background {
	background: url("../images/slider_bg.png") center center no-repeat;
	height: 20px;
	width: 250px;
}

.knob {
	background: url("../images/knob.png") center center no-repeat;
	height: 20px;
	width: 16px;
	cursor: move;
}

.jea_slider_block {
	float: left;
	width: 250px;
	margin: 10px 10px 10px 0;
}

.jea_slider_block h2 {
	font-size: 12px;
	font-weight: bold;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center;
}

.slider_infos {
	text-align: center !important;
}

.slider_min_value {
	margin-right: 10px;
}

.slider_max_value {
	margin-left: 10px;
}

/* property form */
#adminForm label {
	display: inline-block !important;
	vertical-align: top;
	width: 13em;
}

#adminForm input {
	width: auto !important;
}

/* ==========================================================================
   JEA — Extended Styles (added during Joomla 4/5/PHP 8.4 refactor)
   These are the default values for all new selectors introduced during the
   refactor. Override any of these in your template's custom.css.
   ========================================================================== */

/* ── Property single page: ref & availability ─────────────────────────── */

.property-ref {
	margin-bottom: 0.5rem;
}

.property-ref small {
	font-size: 0.8rem;
	color: #6c757d;
}

p.availability {
	margin-bottom: 1rem;
}

p.availability strong {
	font-weight: 600;
}

/* ── Listing metadata (author / date / edit count) ───────────────────── */

.jea-listing-meta {
	font-size: 0.85em;
}

.jea-listing-meta li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 3px;
}

.jea-meta-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
	vertical-align: middle;
}

.jea-meta-user-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.jea-meta-user-link:hover {
	text-decoration: underline;
}

/* ── Toolbar (print + share + watch button row) ──────────────────────── */

.jea-tools {
	margin-bottom: 1rem;
}

.jea-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.jea-toolbar-left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* ── Previous / Next navigation ──────────────────────────────────────── */

.jea-prev-next {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.25rem;
}

/* ── Property list: new helpers ──────────────────────────────────────── */

.jea-items { }

.jea-no-records {
	padding: 20px;
	text-align: center;
	color: #6c757d;
}

/* ── Gallery: thumbnails & CSS lightbox ──────────────────────────────── */

.jea-gallery-img {
	max-width: 100%;
	height: auto;
	cursor: pointer;
	border-radius: 4px;
}

.jea-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.jea-thumbnails img {
	width: 64px;
	height: 48px;
	object-fit: cover;
	border-radius: 3px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.15s;
}

.jea-thumbnails img:hover,
.jea-thumbnails img.active {
	border-color: #2563eb;
}

.jea-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.jea-lightbox.active {
	display: flex;
}

.jea-lightbox img {
	max-width: 90vw;
	max-height: 88vh;
	border-radius: 6px;
}

.jea-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	font-size: 2rem;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	background: none;
	border: none;
}

.jea-lightbox-prev,
.jea-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.5rem;
	color: #fff;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.35);
	border: none;
	padding: 4px 14px;
	border-radius: 4px;
	line-height: 1;
}

.jea-lightbox-prev { left: 16px; }
.jea-lightbox-next { right: 16px; }

/* ── Map: mini map & Leaflet wrappers ────────────────────────────────── */

.jea-mini-map-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.jea-mini-map {
	height: 180px;
	width: 100%;
	pointer-events: none;
}

.jea-leaflet-wrap {
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
}

/* ── Amenities row (multi-column grid on property page) ──────────────── */

.jea-amenities-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 4px 12px;
}

/* ── Tenancy issues display ──────────────────────────────────────────── */

.jea-tenancy-issues {
	margin-top: 1rem;
}

.jea-tenancy-entry {
	padding: 0.4em 0;
	border-bottom: 1px solid #f1f5f9;
}

.jea-tenancy-notes {
	font-style: italic;
	color: #64748b;
	font-size: 0.87em;
}

.jea-tenancy-period {
	font-size: 0.82em;
	color: #94a3b8;
}

.jea-tenancy-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
}

.jea-tenancy-history {
	margin-top: 1rem;
}

.jea-tenancy-form {
	margin-top: 1.5rem;
}

.jea-move-reason {
	font-size: 0.87em;
	color: #6c757d;
	margin-top: 0.25rem;
}

/* ── Media section (videos / audio / documents) ──────────────────────── */

.jea-media-section {
	border-top: 1px solid #dee2e6;
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.jea-media-videos,
.jea-media-audio,
.jea-media-documents {
	margin-bottom: 1.5rem;
}

.jea-media-videos h4,
.jea-media-audio h4,
.jea-media-documents h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #1e293b;
}

.jea-media-videos video {
	max-width: 100%;
	border-radius: 4px;
	background: #000;
}

.jea-media-audio audio {
	width: 100%;
	max-width: 520px;
}

.jea-media-documents ul {
	list-style: none;
	padding: 0;
}

.jea-media-documents li {
	margin-bottom: 0.5rem;
}

/* ── Tenancy records & edit history ──────────────────────────────────── */

.jea-tenant-history {
	margin-top: 1.5rem;
}

.jea-tenant-history h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.jea-edit-history {
	border-top: 1px solid #dee2e6;
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.jea-edit-history h5 {
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6c757d;
	margin-bottom: 0.5rem;
}

.jea-history-table {
	font-size: 0.82em;
	width: auto;
}

.jea-history-table th {
	font-weight: 500;
	color: #6c757d;
}

/* ── EasySocial watch button ──────────────────────────────────────────── */

.jea-es-watch-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 13px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #374151;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
	transition: all 0.2s;
	text-decoration: none;
	line-height: 1.5;
}

.jea-es-btn-watching {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

.jea-es-watch-btn:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ── Range inputs (budget low/high on same row) ───────────────────────── */

.jea-range {
	display: flex;
	align-items: center;
	gap: 6px;
}

.jea-range input {
	flex: 1;
	min-width: 60px;
}

.jea-range-sep {
	color: #94a3b8;
	font-size: 0.8rem;
}

/* ── Pagination ──────────────────────────────────────────────────────── */

.jea-pagination {
	margin-top: 26px;
	text-align: center;
}

.jea-pagination .counter {
	font-size: 0.82rem;
	color: #64748b;
	margin-bottom: 8px;
}

/* ── END extended styles ──────────────────────────────────────────────── */

/* ── JEA action buttons — fully self-contained, no Bootstrap dependency ────── */
/* These classes bypass the theme's btn overrides entirely.                      */

.jea-btn,
a.jea-btn,
button.jea-btn {
	display: inline-block !important;
	padding: 5px 12px !important;
	font-size: 0.825rem !important;
	line-height: 1.4 !important;
	font-weight: 500 !important;
	border-radius: 4px !important;
	border-width: 1px !important;
	border-style: solid !important;
	border: 1px solid #6c757d !important;
	cursor: pointer !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	/* Safe defaults so bare .jea-btn is never invisible */
	color: #343a40 !important;
	background-color: #f8f9fa !important;
}

/* Primary (blue) — Claim This Listing, Submit claim */
.jea-btn.jea-btn-primary,
a.jea-btn.jea-btn-primary,
button.jea-btn.jea-btn-primary {
	color: #ffffff !important;
	background-color: #0d6efd !important;
	border-color: #0d6efd !important;
}

.jea-btn.jea-btn-primary:hover,
.jea-btn.jea-btn-primary:focus,
.jea-btn.jea-btn-primary:active,
a.jea-btn.jea-btn-primary:hover,
a.jea-btn.jea-btn-primary:focus,
button.jea-btn.jea-btn-primary:hover,
button.jea-btn.jea-btn-primary:focus {
	color: #ffffff !important;
	background-color: #0a58ca !important;
	border-color: #0a53be !important;
}

/* Warning (amber) — Dispute / Incorrect Info */
.jea-btn.jea-btn-warning,
a.jea-btn.jea-btn-warning,
button.jea-btn.jea-btn-warning {
	color: #4a3500 !important;
	background-color: #ffc107 !important;
	border-color: #ffc107 !important;
}

.jea-btn.jea-btn-warning:hover,
.jea-btn.jea-btn-warning:focus,
.jea-btn.jea-btn-warning:active,
a.jea-btn.jea-btn-warning:hover,
a.jea-btn.jea-btn-warning:focus,
button.jea-btn.jea-btn-warning:hover,
button.jea-btn.jea-btn-warning:focus {
	color: #000000 !important;
	background-color: #d39e00 !important;
	border-color: #c69500 !important;
}

/* Secondary (grey) — Cancel, Edit this listing */
.jea-btn.jea-btn-secondary,
a.jea-btn.jea-btn-secondary,
button.jea-btn.jea-btn-secondary {
	color: #343a40 !important;
	background-color: #e9ecef !important;
	border-color: #6c757d !important;
}

.jea-btn.jea-btn-secondary:hover,
.jea-btn.jea-btn-secondary:focus,
.jea-btn.jea-btn-secondary:active,
a.jea-btn.jea-btn-secondary:hover,
a.jea-btn.jea-btn-secondary:focus,
button.jea-btn.jea-btn-secondary:hover,
button.jea-btn.jea-btn-secondary:focus {
	color: #ffffff !important;
	background-color: #6c757d !important;
	border-color: #6c757d !important;
}

/* Success (green) — Save & Done */
.jea-btn.jea-btn-success,
a.jea-btn.jea-btn-success,
button.jea-btn.jea-btn-success {
	color: #ffffff !important;
	background-color: #198754 !important;
	border-color: #198754 !important;
}

.jea-btn.jea-btn-success:hover,
.jea-btn.jea-btn-success:focus,
.jea-btn.jea-btn-success:active,
a.jea-btn.jea-btn-success:hover,
a.jea-btn.jea-btn-success:focus,
button.jea-btn.jea-btn-success:hover,
button.jea-btn.jea-btn-success:focus {
	color: #ffffff !important;
	background-color: #146c43 !important;
	border-color: #13653f !important;
}

/* ── History tab summary stat bar ────────────────────────────────────────── */
.jea-tl-stat-row {
	display: flex;
	align-items: center;
	overflow-x: auto;
	white-space: nowrap;
}
.jea-tl-stat {
	flex: 1 1 0;
	text-align: center;
	padding: 4px 8px;
	min-width: 0;
}
.jea-tl-stat .fw-bold {
	white-space: nowrap;
}
.jea-tl-divider {
	width: 1px;
	align-self: stretch;
	background-color: #dee2e6;
	flex-shrink: 0;
}
@media (max-width: 575px) {
	.jea-tl-stat { padding: 4px 4px; font-size: .75rem; }
	.jea-tl-stat .fs-5 { font-size: .95rem !important; }
}

/* Timeline filter chips inherit the secondary style */
.jea-tl-filter-btn {
	display: inline-block !important;
	padding: 4px 14px !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	border-radius: 50px !important;
	border: 1.5px solid #9ca3af !important;
	cursor: pointer !important;
	background-color: #ffffff !important;
	color: #374151 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	letter-spacing: 0.01em !important;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.jea-tl-filter-btn:hover,
.jea-tl-filter-btn:focus {
	background-color: #e9ecef !important;
	border-color: #495057 !important;
	color: #212529 !important;
}

.jea-tl-filter-btn.jea-tl-active {
	background-color: #212529 !important;
	border-color: #212529 !important;
	color: #ffffff !important;
}

.jea-tl-filter-btn.jea-tl-active:hover,
.jea-tl-filter-btn.jea-tl-active:focus {
	background-color: #343a40 !important;
	border-color: #343a40 !important;
	color: #ffffff !important;
}

/* ── END JEA button styles ────────────────────────────────────────────────── */

/* ── Checkbox grid (Amenities + Issues in edit form) ────────────────────── */

.jea-check-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 2px 8px !important;
	padding: 4px 0 !important;
}

@media (max-width: 991px) {
	.jea-check-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 575px) {
	.jea-check-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Override the col-* classes the field emits — grid handles layout */
.jea-check-grid > div[class*="col-"] {
	width: auto !important;
	max-width: none !important;
	flex: none !important;
	padding: 0 !important;
}

.jea-check-tile {
	display: flex !important;
	align-items: flex-start !important;
	gap: 6px !important;
	padding: 3px 4px !important;
	border-radius: 3px !important;
	font-size: 0.82rem !important;
	line-height: 1.35 !important;
	transition: background-color 0.1s !important;
}

.jea-check-tile:hover {
	background-color: #f0f4ff !important;
}

.jea-check-tile.jea-checked {
	background-color: #eff6ff !important;
}

.jea-check-input {
	flex-shrink: 0 !important;
	margin-top: 2px !important;
	width: 13px !important;
	height: 13px !important;
	accent-color: #2563eb !important;
	cursor: pointer !important;
}

.jea-check-tile label {
	margin: 0 !important;
	cursor: pointer !important;
	color: #374151 !important;
	font-size: 0.82rem !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
}

/* ── Pill action buttons (Edit this listing, Claim this listing) ─────────── */
/* Must use double-class specificity to beat .jea-btn base !important rules   */

.jea-btn.jea-btn-pill,
a.jea-btn.jea-btn-pill,
button.jea-btn.jea-btn-pill {
	border-radius: 50px !important;
	padding: 4px 16px !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.4 !important;
}

/* ── END extended styles ──────────────────────────────────────────────────── */

/* ── Amenities & Issues category groups ──────────────────────────────────── */
.jea-amenities-section,
.jea-issues-section {
	margin-top: 1rem;
}

.jea-amenity-cat,
.jea-issue-cat-group {
	margin-bottom: 0.6rem;
}

/* Category heading row: icon + bold label on one line */
.jea-cat-heading {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.3rem;
	font-size: 0.95rem;
}

.jea-cat-heading i {
	font-size: 1rem;
	width: 1.1em;
	text-align: center;
	flex-shrink: 0;
}

/* Pills row — wraps naturally */
.jea-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.45rem;
	padding-left: 1.6rem; /* indent to align under category label text */
	margin-bottom: 0.2rem;
}

/* Base pill style */
.jea-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.6;
	white-space: nowrap;
}

/* Amenity pill — light green fill, green border */
.jea-pill-amenity {
	background-color: #f0faf2;
	color: #1a6b30;
	border: 1px solid #5cb87a;
}

/* Issue pill — light amber fill, amber border */
.jea-pill-issue {
	background-color: #fff9f0;
	color: #7a4a00;
	border: 1px solid #e6a817;
}

/* Pills as links — remove underline, add hover effect */
a.jea-pill {
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}
a.jea-pill:hover {
	filter: brightness(0.92);
	box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
	text-decoration: none;
}
a.jea-pill-amenity:hover { color: #1a6b30; }
a.jea-pill-issue:hover   { color: #7a4a00; }


/* Rent history grouped by tenancy */
.jea-rent-tenancy-group {
	border-left: 3px solid #dee2e6;
	padding-left: 0.75rem;
}
.jea-rent-tenancy-header {
	font-size: 0.85rem;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 0.25rem;
}

/* Media tab section headings */
.jea-media-section-block {
	border-top: 1px solid #dee2e6;
	padding-top: 1rem;
}
.jea-media-section-block:first-child {
	border-top: none;
	padding-top: 0;
}
.jea-media-section-heading {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #495057;
	margin-bottom: .75rem;
}

/* ── Timeline severity highlighting ─────────────────────────────────────────── */
.jea-tl-row[data-tl-severity="3"] {
	border-left: 3px solid #ffc107 !important;
}
.jea-tl-row[data-tl-severity="4"] {
	border-left: 3px solid #dc3545 !important;
}

/* ── Timeline family accent colors ──────────────────────────────────────────── */
.jea-tl-row.jea-tl-maintenance { border-left-color: #fd7e14; }
.jea-tl-row.jea-tl-payment     { border-left-color: #198754; }

/* ── User action buttons bar (My Properties / Add Property) ─────────────────── */
.jea-user-actions {
	padding: 10px 0 6px;
}

/* ── Carousel image override ─────────────────────────────────────────────────── */
#jea-carousel-5 .carousel-item img {
	width: 100%;
	height: auto !important;
	object-fit: cover;
	border-radius: 6px;
	cursor: zoom-in;
}

/* ── Issues tab: 2-column grid on desktop, 1-column on mobile ───────────────── */
.jea-issues-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 32px;
}

@media (max-width: 768px) {
	.jea-issues-grid {
		grid-template-columns: 1fr;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   Utility / previously-inline styles — moved from PHP templates
   ═══════════════════════════════════════════════════════════════════════════ */

/* Shared hide-until-shown utility */
.jea-hidden { display: none !important; }

/* Properties list — logged-in user action bar */
.jea-user-actions { padding: 10px 0 6px; }

/* Property detail — listing meta row */
.jea-listing-meta { font-size: .85em; }
.jea-meta-user-link { font-weight: 600; }

/* Section sub-headings in tabbed forms */
.jea-section-heading { font-size: .75em; letter-spacing: .06em; }

/* Frontend form — Street View card body */
.jea-sv-card-body {
    min-height: 340px;
    position: relative;
    border-radius: 0 0 .375rem .375rem;
    overflow: hidden;
}
.jea-sv-pano { width: 100%; height: 340px; }

/* Frontend form — action bar divider */
.jea-form-actions { border-top: 1px solid #dee2e6; }

/* Leaflet map — property detail page */
.jea-leaflet-wrap { margin: 1rem 0; }
.jea-leaflet-map {
    height: 380px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Claim page — search results and form section (JS-toggled) handled by .jea-hidden */

/* Discussion plugin */
.jea-disc-timestamp { font-size: .75em; }
.jea-disc-body { white-space: pre-wrap; word-break: break-word; }
.jea-disc-attachment-img {
    max-height: 80px;
    max-width: 120px;
    object-fit: cover;
    border-radius: 4px;
}
.jea-disc-attachment-video {
    max-height: 120px;
    max-width: 200px;
    border-radius: 4px;
}
.jea-disc-new-reply { border-top: 1px solid #dee2e6; }

/* EasySocial plugin — edit-count label */
.jea-edit-count-label { color: #94a3b8; }

/* ── Follow Property button + Manage Alerts modal ─────────────────────────── */

/* Follow group container */
.jea-follow-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Main Follow / Following button */
.jea-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #6b7280;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    position: relative;
}
.jea-follow-btn:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
    background: #eff6ff;
}
.jea-follow-btn--active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(59,130,246,.2);
}
.jea-follow-icon { flex-shrink: 0; }

/* Unread badge on follow button */
.jea-follow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    line-height: 1;
}

/* Gear / settings icon button */
.jea-follow-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
}
.jea-follow-settings-btn:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
    background: #eff6ff;
}

/* ── Manage Alerts modal ───────────────────────────────────────────────────── */
.jea-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.jea-modal--open { display: flex; }

.jea-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    animation: jeaFadeIn .18s ease;
}
.jea-modal__box {
    position: relative;
    width: min(520px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    animation: jeaSlideUp .2s ease;
}

@keyframes jeaFadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes jeaSlideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.jea-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.25rem .7rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.jea-modal__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}
.jea-modal__close {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color .15s;
}
.jea-modal__close:hover { color: #1e293b; }

.jea-modal__body { padding: 1.1rem 1.25rem; flex: 1; }

.jea-modal__footer {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.jea-modal__save    { margin-left: auto; }
.jea-modal__unfollow{ color: #ef4444; border-color: #fca5a5; }
.jea-modal__unfollow:hover { background: #fef2f2; border-color: #ef4444; }

/* ── Alert sections inside modal ──────────────────────────────────────────── */
.jea-alert-section { margin-bottom: 1.2rem; }
.jea-alert-section-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: .6rem;
}

/* Preset tabs */
.jea-alert-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .6rem;
}
.jea-alert-preset {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: .8rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
}
.jea-alert-preset:hover       { border-color: #3b82f6; color: #1d4ed8; }
.jea-alert-preset--active     { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }

.jea-alert-preset-desc {
    font-size: .8rem;
    color: #64748b;
    margin: 0;
    min-height: 1.2em;
}

/* Event group checkboxes */
.jea-alert-group { margin-bottom: .9rem; }
.jea-alert-group-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
}
.jea-alert-group-name {
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
}
.jea-alert-owner-badge {
    font-size: .68rem;
    padding: 1px 7px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-weight: 600;
}
.jea-alert-group-events { display: flex; flex-direction: column; gap: 5px; }
.jea-alert-event-label  { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: #374151; cursor: pointer; }
.jea-alert-event-label input[type="checkbox"] { accent-color: #3b82f6; width: 15px; height: 15px; flex-shrink: 0; }

/* Legacy keys kept for old JS that may still reference them */
.jea-watch-group { display: none; }  /* hidden — replaced by jea-follow-group */

/* Social share plugin — container */
.jeasocial { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Per-button color is set via --btn-color CSS custom property (one inline rule) */
.jeasocial_button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 4px;
    border: 1px solid var(--btn-color, #666);
    color: var(--btn-color, #666);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.jeasocial_button:hover {
    background: var(--btn-color, #666);
    color: #fff;
}

/* Imagefetch plugin */
.jea-imagefetch-help-btn    { font-size: .75em; line-height: 1.4; }
.jea-imagefetch-preview-label { font-size: .74em; }
.jea-imagefetch-preview-img {
    width: 100%;
    border-radius: 4px;
    max-height: 130px;
    object-fit: cover;
    background: #eee;
}
.jea-imagefetch-input-group { width: 130px; }
.jea-imagefetch-form-text   { font-size: .78em; }
.jea-dir-btn                { min-width: 36px; font-size: .75em; }
.jea-imagefetch-dir-btns    { max-width: 220px; }
.jea-imagefetch-modal-body  { font-size: .93em; }
.jea-imagefetch-guide-text  { font-size: .88em; }

/* Property detail page — additional previously-inline styles */
.jea-detail-section-label {
    font-size: .7em;
    letter-spacing: .05em;
}
.jea-detail-table          { font-size: .85em; }
.jea-agent-avatar          { width: 60px; height: 60px; object-fit: cover; }
.jea-claim-wrapper         { border-left: 3px solid #0d6efd !important; }
.jea-dispute-wrapper       { border-left: 3px solid #ffc107 !important; }
.jea-detail-narrow-table   { max-width: 500px; }
.jea-input-hint            { font-size: .8em; }
.jea-tl-icon               { min-width: 2rem; }
.jea-tl-rail               { min-width: 210px; max-width: 230px; }

/* ── Timeline date-group accordion (.jea-tl-date-group) ──────────────────────
   Wraps multiple events that share the same calendar date. The header button
   acts as the collapse toggle; the body is a Bootstrap collapse panel.      */
.jea-tl-date-group {
    margin-bottom: .6rem;
}
.jea-tl-date-header {
    background: #f8f9fa;
    border-color: #dee2e6 !important;
    font-size: .82rem;
    line-height: 1.4;
    transition: background .15s;
}
.jea-tl-date-header:hover,
.jea-tl-date-header:focus {
    background: #e9ecef;
    outline: none;
    box-shadow: none;
}
.jea-tl-date-header[aria-expanded="true"] {
    background: #fff;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-color: transparent !important;
}
.jea-tl-date-pill {
    min-width: 3.2rem;
    color: #495057;
}
.jea-tl-date-body {
    border-color: #dee2e6 !important;
    border-radius: 0 0 .375rem .375rem;
    background: #fff;
    padding-top: .5rem !important;
}
.jea-tl-chevron { font-size: .75rem; color: #6c757d; transition: transform .15s; }
.jea-tl-date-header[aria-expanded="true"]  .jea-tl-chevron { transform: rotate(180deg); }
.jea-tl-date-header[aria-expanded="false"] .jea-tl-chevron { transform: rotate(0deg); }
/* Keep filter-visibility logic working for grouped rows */
.jea-tl-date-group[style*="display: none"] { display: none !important; }
.jea-media-thumb           { border-radius: 4px; border: 1px solid #dee2e6; }
.jea-video-ratio           { border-radius: 6px; overflow: hidden; background: #000; }
audio.jea-audio-player     { width: 100%; }

/* Property detail page — tab badge, deed table header, amenity icon,
   snapshot card, timeline badge, sidebar rail labels */
.jea-tab-badge              { font-size: .7em; }
.jea-deed-th                { width: 42%; white-space: nowrap; }
.jea-cat-icon               { color: var(--jea-cat-color, currentColor); }
.jea-snap-card--clickable   { cursor: pointer; }
.jea-badge-tl               { font-size: .6em; vertical-align: middle; }
.jea-rail-label             { font-size: .75em; }

/* ── Transparency Score widget (.jea-ts-*) ──────────────────────────────────
   Displayed on the Overview tab of the property detail page.
   All layout and color decisions live here; only the dynamic bar width
   (percentage) is set inline in the template.
   ─────────────────────────────────────────────────────────────────────────── */
.jea-ts-widget {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    max-width: 360px;
}
.jea-ts-header {
    display: flex;
    align-items: center;
    gap: 6px;
}
.jea-ts-label {
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}
.jea-ts-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: transparent;
    color: #64748b;
    font-size: .65em;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.jea-ts-info-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.jea-ts-body {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.jea-ts-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}
.jea-ts-denom {
    font-size: .85rem;
    color: #94a3b8;
}
.jea-ts-grade {
    margin-left: auto;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 6px;
}
.jea-grade-a-plus { background: #dcfce7; color: #15803d; }
.jea-grade-a      { background: #d1fae5; color: #059669; }
.jea-grade-b      { background: #dbeafe; color: #1d4ed8; }
.jea-grade-c      { background: #fef9c3; color: #a16207; }
.jea-grade-d      { background: #ffedd5; color: #c2410c; }
.jea-grade-f      { background: #fee2e2; color: #b91c1c; }

.jea-ts-bar {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}
.jea-ts-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: var(--jea-ts-width, 0%);
    transition: width .4s ease;
}
.jea-ts-bar-fill--good { background: #22c55e; }
.jea-ts-bar-fill--fair { background: #f59e0b; }
.jea-ts-bar-fill--poor { background: #ef4444; }

/* Scoring Guide modal */
.jea-ts-guide-modal-content { border: none; border-radius: 10px; overflow: hidden; height: 88vh; display: flex; flex-direction: column; }
.jea-ts-guide-modal-header  { background: #1a1a2e; color: #fff; border-bottom: none; padding: .85rem 1.25rem; flex-shrink: 0; }
.jea-ts-guide-modal-header .btn-close { filter: invert(1) grayscale(1); }
.jea-ts-guide-modal-body    { flex: 1 1 auto; overflow: hidden; min-height: 0; }
.jea-ts-guide-frame         { width: 100%; height: 100%; border: none; display: block; }


/* ── Phase 25: Compliance Violations Widget (property Overview tab) ───────── */

.jea-compliance-widget {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.jea-compliance-widget__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.jea-compliance-widget__icon {
    font-size: 1.1rem;
    color: #ef4444;
}

.jea-compliance-widget__title {
    font-size: 0.95rem;
    color: #b91c1c;
}

.jea-compliance-widget__list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.jea-compliance-widget__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.87rem;
    padding: 0.35rem 0.5rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.6);
}

.jea-compliance-item--critical  { border-left: 3px solid #ef4444; }
.jea-compliance-item--violation { border-left: 3px solid #f97316; }
.jea-compliance-item--warning   { border-left: 3px solid #eab308; }

.jea-compliance-widget__rule {
    font-weight: 600;
    color: #1e293b;
    flex: 1 1 200px;
}

.jea-compliance-widget__statute {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
}

.jea-compliance-widget__more {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.jea-compliance-widget__link {
    font-size: 0.87rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.jea-compliance-widget__link:hover {
    text-decoration: underline;
}

/* ── Utility classes (replacing static inline styles) ────────────────────── */

/* JS-controlled / PHP-conditional visibility toggle */
.jea-hidden {
    display: none !important;
}

/* Auto-width form controls (e.g. select and date in inspection proof entry) */
.jea-input--proof-date,
.jea-select--proof-type {
    width: auto;
}

/* Drag-sort hidden order input (Joomla admin list ordering pattern) */
.jea-order-input {
    display: none;
}

/* Clickable badge / button-style badge */
.jea-badge--clickable {
    cursor: pointer;
}

/* Leaderboard: no-rank mode removes default list marker */
.jea-transparency-leaderboard__list--no-rank {
    list-style: none;
    padding-left: 0;
}

/* Rent trend chart canvas: position context for absolutely placed elements */
.jea-rent-trend-chart__canvas {
    position: relative;
    height: var(--jea-chart-height, 220px);
}

/* Legacy JEA upgrade warning (mod_jea_search error fallback) */
.jea-search-upgrade-warning {
    color: #dc3545;
    font-weight: 600;
}

/* Inspection proof file panel: hidden by default until tab activates it */
.jea-insp-proof-panel--file {
    display: none;
}

/* ── Transparency score widget (mod_jea_transparency_score) ──────────────── */
.jea-score-widget__factor-bar {
    display: block;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.2rem 0;
    flex: 1;
    min-width: 60px;
}

.jea-score-widget__factor-fill {
    display: block;
    height: 100%;
    width: var(--jea-bar-pct, 0%);
    background: #0d6efd;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── CSS custom property: leaderboard / heatmap bar width ───────────────── */
.jea-transparency-leaderboard__bar {
    width: var(--jea-bar-pct, 0%);
}

/* ── Owner-is-manager toggle (frontend property edit form) ───────────────── */
.jea-oim-box {
    background: #f8f9fa;
    border-color: #dee2e6 !important;
}
.jea-manager-tab-notice {
    margin-bottom: 1rem;
}
.jea-goto-owner-tab {
    cursor: pointer;
    text-decoration: underline;
}

/* Manager fields locked state */
.jea-manager-fields--locked {
    opacity: 0.55;
    pointer-events: none;
}
.jea-manager-field--locked label {
    color: #6c757d;
}
.jea-manager-field--locked input {
    background: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* ── Tenancy form: Issues Experienced checkboxes ──────────────────────── */
.jea-issue-groups {
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: .75rem 1rem;
    background: #f8f9fa;
    max-height: 360px;
    overflow-y: auto;
}
.jea-issue-group + .jea-issue-group {
    border-top: 1px solid #e9ecef;
    margin-top: .5rem;
    padding-top: .5rem;
}
.jea-issue-group-title {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .7rem;
    color: #6c757d;
}

/* ── jea_dashboard ES App ────────────────────────────────────────────────── */
/* Uses ES-native es-container / es-sidebar / es-content classes.             */
/* .jea-dashboard-canvas is applied alongside es-container for scoped tweaks. */
.jea-dashboard-canvas {
    min-height: 480px;
}
.jea-dashboard-canvas .es-content {
    padding: 0;
    min-width: 0;
    flex: 1;
}
/* Content area below the snackbar2 title bar */
.jea-dashboard-content {
    padding: 1.25rem 1.5rem;
}

/* Sidebar nav — active uses ES-native 'active' class (mirrors Marketplace) */
#jea-dashboard-nav .o-tabs__item.active .o-tabs__link {
    font-weight: 600;
}

/* Overview grid cards */
.jea-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}
.jea-overview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem .75rem;
    border-radius: .5rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid #dee2e6;
    gap: .5rem;
    transition: box-shadow .15s ease;
}
.jea-overview-card:hover {
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.jea-overview-card-icon {
    font-size: 1.75rem;
}
.jea-overview-card-label {
    font-size: .85rem;
    font-weight: 600;
}

/* Section headers */
.jea-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #dee2e6;
}
.jea-section-title {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Empty state */
.jea-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}
.jea-empty-icon {
    display: block;
    margin: 0 auto .75rem;
    opacity: .35;
}
.jea-empty-msg {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Tenancy cards */
.jea-tenancy-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    margin-bottom: .5rem;
}
.jea-tenancy-card.jea-card-pending {
    border-left: 4px solid #ffc107;
}
.jea-tenancy-address {
    font-weight: 600;
    margin-bottom: .25rem;
}
.jea-tenancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    font-size: .85rem;
}
.jea-tenancy-dates {
    color: #495057;
}
.jea-tenancy-card-actions {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Property rows */
.jea-property-row,
.jea-tenant-row,
.jea-inspection-row,
.jea-issue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .75rem;
    border-bottom: 1px solid #f0f0f0;
}
.jea-property-row:last-child,
.jea-tenant-row:last-child,
.jea-inspection-row:last-child,
.jea-issue-row:last-child {
    border-bottom: none;
}
.jea-property-link {
    text-decoration: none;
    font-weight: 500;
}
.jea-property-link:hover {
    text-decoration: underline;
}

/* Badges */
.jea-badge {
    display: inline-block;
    padding: .2em .5em;
    border-radius: .25rem;
    font-size: .75em;
    font-weight: 600;
    line-height: 1;
}
.jea-badge-default  { background: #e9ecef; color: #495057; }
.jea-badge-success  { background: #d1e7dd; color: #0f5132; }
.jea-badge-warning  { background: #fff3cd; color: #664d03; }
.jea-badge-info     { background: #cff4fc; color: #0c5460; }
.jea-badge-danger   { background: #f8d7da; color: #842029; }

/* Coming soon panel */
.jea-coming-soon-wrap {
    padding: 3rem 1rem;
}
.jea-coming-soon-icon {
    display: block;
    margin: 0 auto 1rem;
    opacity: .3;
}
.jea-coming-soon-title {
    margin-bottom: .5rem;
}
.jea-coming-soon-msg {
    color: #6c757d;
}

/* ── Tenancy 6-tab wizard ────────────────────────────────────────────────── */
.jea-wizard-tabs .nav-link {
    font-size: .85rem;
    padding: .45rem .75rem;
}
.jea-wizard-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 .375rem .375rem;
    padding: 1.25rem 1.5rem;
}
.jea-yn-group {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
}

/* ── My Homes property card grid ─────────────────────────────────────────── */
.jea-homes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: .25rem 0 1rem;
}

/* Card shell */
.jea-home-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.jea-home-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.jea-home-card.jea-card-current {
    border-color: #198754;
}
.jea-home-card.jea-card-pending {
    border-color: #ffc107;
    opacity: .85;
}

/* Image wrapper — fixed 16:9 aspect ratio */
.jea-home-card-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #f0f0f0;
    text-decoration: none;
}
.jea-home-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.jea-home-card:hover .jea-home-card-img {
    transform: scale(1.04);
}

/* No-image icon fallback */
.jea-home-card-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    background: #f5f5f5;
}

/* Status badge overlaid on image */
.jea-home-card-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2;
    pointer-events: none;
}

/* Card body */
.jea-home-card-body {
    flex: 1 1 auto;
    padding: .75rem 1rem .5rem;
}
.jea-home-card-address {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: #212529;
    text-decoration: none;
    margin-bottom: .35rem;
    line-height: 1.3;
}
.jea-home-card-address:hover {
    color: var(--es-primary, #0073aa);
    text-decoration: underline;
}
.jea-home-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: #6c757d;
}

/* Card footer */
.jea-home-card-footer {
    display: flex;
    gap: .5rem;
    padding: .6rem 1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    flex-wrap: wrap;
}
.jea-home-card-footer .es-btn {
    flex: 1 1 auto;
    text-align: center;
    font-size: .78rem;
}

/* ── Overview: hero card ─────────────────────────────────────────────────── */
.jea-overview-wrap {
    padding: .25rem 0 1.5rem;
}

/* Hero card — current residence banner */
.jea-hero-card {
    display: flex;
    border-radius: .6rem;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.jea-hero-img-wrap {
    flex: 0 0 220px;
    min-height: 160px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}
.jea-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jea-hero-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    min-height: 160px;
}
.jea-hero-body {
    flex: 1 1 auto;
    padding: 1.1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .4rem;
}
.jea-hero-label {
    margin-bottom: .1rem;
}
.jea-hero-address {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}
.jea-hero-address a {
    color: #212529;
    text-decoration: none;
}
.jea-hero-address a:hover {
    color: var(--es-primary, #0073aa);
    text-decoration: underline;
}
.jea-hero-since,
.jea-hero-specs {
    font-size: .82rem;
    color: #6c757d;
    margin: 0;
}
.jea-hero-btn {
    align-self: flex-start;
    margin-top: .5rem;
}

/* No current tenancy prompt */
.jea-hero-empty {
    text-align: center;
    padding: 2rem 1rem;
    background: #f9f9f9;
    border: 2px dashed #dee2e6;
    border-radius: .6rem;
    margin-bottom: 1.75rem;
    color: #6c757d;
}
.jea-hero-empty-icon {
    display: block;
    margin: 0 auto .75rem;
    color: #bbb;
}

/* Section heading above stat grid */
.jea-overview-sections-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6c757d;
    margin: 0 0 .75rem;
}

/* ── Overview: stat cards grid ───────────────────────────────────────────── */
.jea-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .75rem;
}
.jea-stat-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: .5rem;
    text-decoration: none;
    border: 1px solid transparent;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    transition: transform .15s ease, box-shadow .15s ease;
    color: inherit;
}
.jea-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.13);
    text-decoration: none;
    color: inherit;
}
.jea-stat-card-icon {
    width: 38px;
    height: 38px;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.jea-stat-card-body {
    flex: 1 1 auto;
    min-width: 0;
}
.jea-stat-card-label {
    font-size: .82rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jea-stat-card-count {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-top: .15rem;
}
.jea-stat-card-arrow {
    color: #bbb;
    font-size: .8rem;
    flex-shrink: 0;
}

/* Colour themes for stat cards */
.jea-stat-teal   { border-color: #d1f0ec; }
.jea-stat-teal   .jea-stat-card-icon { background: #d1f0ec; color: #0c6b5e; }
.jea-stat-teal   .jea-stat-card-count { color: #0c6b5e; }

.jea-stat-blue   { border-color: #dbeafe; }
.jea-stat-blue   .jea-stat-card-icon { background: #dbeafe; color: #1d4ed8; }
.jea-stat-blue   .jea-stat-card-count { color: #1d4ed8; }

.jea-stat-green  { border-color: #d1fae5; }
.jea-stat-green  .jea-stat-card-icon { background: #d1fae5; color: #065f46; }
.jea-stat-green  .jea-stat-card-count { color: #065f46; }

.jea-stat-orange { border-color: #ffedd5; }
.jea-stat-orange .jea-stat-card-icon { background: #ffedd5; color: #9a3412; }
.jea-stat-orange .jea-stat-card-count { color: #9a3412; }

.jea-stat-purple { border-color: #ede9fe; }
.jea-stat-purple .jea-stat-card-icon { background: #ede9fe; color: #5b21b6; }
.jea-stat-purple .jea-stat-card-count { color: #5b21b6; }

.jea-stat-red    { border-color: #fee2e2; }
.jea-stat-red    .jea-stat-card-icon { background: #fee2e2; color: #991b1b; }
.jea-stat-red    .jea-stat-card-count { color: #991b1b; }

.jea-stat-gold   { border-color: #fef9c3; }
.jea-stat-gold   .jea-stat-card-icon { background: #fef9c3; color: #854d0e; }
.jea-stat-gold   .jea-stat-card-count { color: #854d0e; }

.jea-stat-slate  { border-color: #e2e8f0; }
.jea-stat-slate  .jea-stat-card-icon { background: #e2e8f0; color: #334155; }
.jea-stat-slate  .jea-stat-card-count { color: #334155; }

/* Responsive — single column on small screens */
@media (max-width: 600px) {
    .jea-hero-card { flex-direction: column; }
    .jea-hero-img-wrap { flex: 0 0 auto; min-height: 140px; width: 100%; }
    .jea-stat-grid { grid-template-columns: 1fr 1fr; }
}
