/* Public Listings CSS */
.tas-public-listings-wrapper {
	margin: 0 auto;
	color: #333;
}

.tas-listings-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.tas-active-listings-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #000;
}

.tas-topbar-actions {
	display: flex;
	gap: 10px;
}

.tas-topbar-actions .tas-btn-filter,
.tas-topbar-actions .tas-btn-sort {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #fff;
	border-radius: 20px !important;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: #333;
	border: 2px solid #bbef00;
	transition: all 0.2s;
}

button#tas-btn-sort-desktop {
	background-color: #fff !important;
	border: 2px solid #bbf706 !important;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	height: 46px;
}

.tas-btn-filter:hover,
.tas-btn-sort:hover {
	background: #f8ffe5;
}

.tas-search-bar-wrap {
	position: relative;
	margin-bottom: 15px;
}

.tas-search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
}

/* Remove default search icons / decorations in Safari/WebKit */
.tas-public-listings-wrapper input[type="search"]::-webkit-search-decoration,
.tas-public-listings-wrapper input[type="search"]::-webkit-search-cancel-button,
.tas-public-listings-wrapper input[type="search"]::-webkit-search-results-button,
.tas-public-listings-wrapper input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none !important;
}

/* Custom clear button styled absolutely for perfect centering */
.tas-search-clear {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") no-repeat center center;
	background-size: contain;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	padding: 0;
	margin: 0;
	display: none;
	height: 18px;
	width: 18px;
	z-index: 99 !important;
	outline: none;
}

#tas-main-search {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	padding: 15px 40px 15px 45px;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	font-size: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
	outline: none;
}

#tas-main-search:focus {
	border-color: #bbf706;
}

.tas-btn-search-main {
	width: 100%;
	padding: 15px;
	background: #bbf706;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 30px;
	transition: opacity 0.2s;
}

.tas-btn-search-main:hover {
	opacity: 0.9;
}

/* Quick Categories */
.tas-quick-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 30px;
	padding-bottom: 10px;
}

.tas-qc-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	background: #fff;
	flex: 1;
	padding: 10px 5px;
	max-width: 75px;
	min-width: 75px;
}

.tas-qc-item:hover {
	border-color: #bbf706;
	box-shadow: 0 4px 12px rgba(187, 247, 6, 0.15);
}

.tas-qc-icon {
	color: #333;
}

.tas-qc-label {
	font-size: 11px;
	font-weight: 600;
	text-align: center;
}

/* Listings Grid */
.tas-listings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.tas-listing-card {
	border: 1px solid #eaeaea;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}



.tas-listing-image-wrap {
	position: relative;
	width: 100%;
	padding-top: 75%;
	/* 4:3 aspect ratio */
	overflow: hidden;
}



.tas-listing-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	z-index: 2;
}

.tas-badge-just-listed {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(255, 255, 255, 0.9);
	padding: 7px;
	border-radius: 4px;
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 9px;
	z-index: 3;
	display: flex;
}

.tas-listing-details {
	padding: 15px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.tas-listing-details,
.tas-listing-details h2.tas-listing-title,
.tas-listing-details .tas-listing-price,
.tas-listing-details .tas-listing-location {
	font-family: 'Montserrat' !important;
}


.tas-listing-price {
	font-size: clamp(17px, 1.75vw, 18px);
	font-weight: 500;
	color: #000000;
}

.tas-listing-title {
	margin: 0 0 10px 0;
	color: #000000;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	letter-spacing: 0;
	font-size: 16px;
	line-height: 20px;
	font-weight: 500;
	margin: 3px 0;
}

.tas-listing-divider {
	height: 1px;
	background-color: #eaeaea;
	margin: 10px 0;
}

.tas-listing-location {
	font-size: 12px;
	color: #000000;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	list-style: none !important;
	padding: 0 !important;
	margin: 3px 0 !important;
}

.tas-listing-location li {
	display: flex;
	align-items: start;
	gap: 4px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	color: #596169;
	line-height: 20px;
}

.tas-listing-location li>svg {
	margin-top: 3px;
	flex-shrink: 0;
}


/* Modal */
.tas-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
	display: none;
	justify-content: flex-end;
	align-items: stretch;
	/* opacity: 0; */
	pointer-events: none;
	transition: 0.3s;
}

.tas-modal-overlay.active {
	/* opacity: 1; */
	display: flex;
	pointer-events: auto;
}

.tas-modal-content {
	background: #fff;
	width: 100%;
	max-width: 450px;
	height: 100%;
	max-height: 100vh;
	border-radius: 0;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease-out;
}

.tas-modal-overlay.active .tas-modal-content {
	transform: translateX(0);
}

.tas-modal-view {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	transition: transform 0.3s ease;
}

.tas-modal-view-main {
	position: relative;
	transform: translateX(0);
}

.tas-modal-view-main.slide-left {
	transform: translateX(-100%);
}

.tas-modal-view-category {
	transform: translateX(100%);
}

.tas-modal-view-category.active {
	transform: translateX(0);
}

.tas-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #eaeaea;
}

.tas-modal-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.tas-modal-header-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

.tas-modal-header-left .tas-btn-close,
.tas-modal-header-left .tas-btn-back {
	border-radius: 50% !important;
	width: 36px;
	height: 36px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
}

.tas-modal-header.tas-mobile-only .tas-btn-clear {
	background: #fff;
	border: 1px solid #bbf706;
	padding: 6px 16px;
	border-radius: 20px !important;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: #333;
}

.tas-modal-body {
	flex-grow: 1;
	overflow-y: auto;
	padding: 20px;
}

.tas-modal-footer {
	padding: 20px;
	border-top: 1px solid #eaeaea;
	display: flex;
	gap: 15px;
}

.tas-btn-cancel,
.tas-btn-apply {
	padding: 12px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px !important;
	cursor: pointer;
	flex: 1;
}

.tas-modal-footer.tas-mobile-only .tas-btn-cancel {
	background: #fff !important;
	border: 1px solid #eaeaea !important;
}

.tas-btn-apply {
	background: #bbf706;
	border: none;
}

.tas-btn-apply-full {
	width: 100%;
}

.tas-filter-section {
	margin-bottom: 15px;
	border-bottom: 1px solid #eaeaea;
	padding-bottom: 15px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tas-filter-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.tas-filter-row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.tas-filter-row-left {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.tas-filter-row-right {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #666;
}
.tas-filter-row-right span#tas-selected-category-text {
    font-size: 14px;
}
.tas-filter-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

/* Price Inputs */
.tas-price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tas-price-input-group {
	flex: 1;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 5px 10px;
}

.tas-price-input-group label {
	display: block;
	font-size: 11px;
	color: #999;
}

.tas-price-input-group input {
	width: 100%;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 600;
	color: #1e1e1e !important;
}

#tas-desktop-location-text {
	font-weight: 600;
	color: #000000;
	font-size: 13px;
	line-height: 18px;
}

/* Remove spin buttons from number inputs */
.tas-price-input-group input::-webkit-outer-spin-button,
.tas-price-input-group input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tas-price-input-group input[type=number] {
	-moz-appearance: textfield;
}

.tas-price-separator {
	color: #999;
}

/* Custom Range Slider */
.tas-range-slider-wrap {
	position: relative;
	height: 40px;
}

.tas-slider-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	background: #eaeaea;
	transform: translateY(-50%);
	border-radius: 2px;
}

.tas-slider-range {
	position: absolute;
	top: 50%;
	left: 0%;
	right: 0%;
	height: 4px;
	background: #bbf706;
	transform: translateY(-50%);
}

.tas-range-slider-wrap input[type=range] {
	position: absolute;
	pointer-events: none;
	-webkit-appearance: none;
	z-index: 2;
	height: 10px;
	width: 100%;
	opacity: 0;
	top: 50%;
	transform: translateY(-50%);
}

.tas-range-slider-wrap input[type=range]::-webkit-slider-thumb {
	pointer-events: all;
	width: 24px;
	height: 24px;
	-webkit-appearance: none;
}

/* Pseudo thumbs for visual */
.tas-range-slider-wrap::before,
.tas-range-slider-wrap::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 20px;
	height: 20px;
	background: #bbf706;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 1;
}

.tas-range-slider-wrap::before {
	left: var(--min-percent, 0%);
}

.tas-range-slider-wrap::after {
	left: var(--max-percent, 100%);
}

/* Location */
.tas-form-control {
	width: 100%;
	padding: 12px;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

/* Custom Select Styling */
.tas-custom-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px !important;
	font-weight: 600;
	color: #333;
	background-color: #fff !important;
	background-image: none !important;
}

.tas-custom-select::-ms-expand {
	display: none;
}

.tas-custom-select-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #333;
}

.tas-form-control:focus {
	border-color: #bbf706;
}

.tas-autocomplete-wrap input {
	width: 100%;
	padding: 12px;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.tas-suggestions {
	max-height: 150px;
	overflow-y: auto;
	border: 1px solid #eaeaea;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.tas-suggestion-item {
	padding: 10px 12px;
	cursor: pointer;
	font-size: 14px;
}

.tas-suggestion-item:hover {
	background: #f9f9f9;
}

/* Condition */
.tas-condition-toggles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tas-condition-toggles .tas-condition-btn {
	padding: 8px 16px;
	border: 1px solid #eaeaea;
	background: #fff;
	border-radius: 20px !important;
	font-family: 'Montserrat';
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	color: #000000;
}

.tas-condition-btn.active {
	background: #eff7d3;
	border-color: #bbf706;
}

/* Category List */
.tas-category-list {
	display: flex;
	flex-direction: column;
}

/* Top Dropdown Categories */
.tas-top-cat-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.2s;
	font-size: 14px;
	color: #000000;
	font-weight: 600;
}

.tas-top-cat-item:hover {
	background-color: #fafafa;
}

.tas-top-cat-item.active .tas-top-cat-all-text {
	font-size: 14px;
	color: #000000;
	font-weight: 600;
}

.tas-top-cat-item-inner {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tas-desktop-categories-menu .tas-top-cat-item:has(.tas-top-cat-item-inner):not(:has(.tas-top-cat-chevron)) .tas-top-cat-item-inner>span {
	font-weight: 400;
}

.tas-desktop-categories-menu .tas-top-cat-item .tas-top-cat-item-inner>span {
	line-height: 20px;
}

.tas-top-cat-item[data-id="838"] .tas-top-cat-icon > svg,
.tas-browse-category-item[data-id="838"] svg {
    margin-left: -2px;
}

.tas-top-cat-icon {
	display: flex;
	width: 18px;
	height: 18px;
	color: #4CAF50;
}

.tas-top-cat-chevron {
	transition: transform 0.2s;
}

.tas-top-cat-children {
	padding-left: 20px;
	background: #fafafa;
}

.tas-cat-radio {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #f5f5f5;
	cursor: pointer;
}

.tas-cat-radio input[type="radio"] {
	display: none;
}

.tas-cat-radio span {
	color: #000;
	font-size: 14px;
}

.tas-radio-custom {
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-radius: 50%;
	margin-right: 15px;
	position: relative;
}

.tas-cat-radio input[type="radio"]:checked+.tas-radio-custom {
	border-color: #000;
}

.tas-cat-radio input[type="radio"]:checked+.tas-radio-custom::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background: #000;
	border-radius: 50%;
}

.tas-cat-parent {
	font-weight: 600;
}

.tas-cat-child {
	font-size: 14px;
	padding-left: 20px;
}

/* Loading Spinner */
.tas-spinner {
	animation: tas-rotate 2s linear infinite;
}

.tas-spinner .path {
	stroke: #bbf706;
	stroke-linecap: round;
	animation: tas-dash 1.5s ease-in-out infinite;
}

@keyframes tas-rotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes tas-dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}

	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}

	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* ========================================================
   DESKTOP OVERRIDES & NEW STRUCTURE (Responsive adjustments)
   ======================================================== */

.tas-desktop-only {
	display: none;
}

.tas-mobile-only-block {
	display: block;
}

.tas-desktop-flex-between {
	display: none;
}

span.tas-mobile-only,
svg.tas-mobile-only,
button.tas-mobile-only {
	display: inline-block;
}

div.tas-mobile-only {
	display: flex;
}

.tas-mobile-header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.tas-mobile-header-top .tas-active-listings-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #000;
}

.tas-mobile-header-top .tas-topbar-actions {
	display: flex;
	gap: 10px;
}


/* Pagination */
.tas-pagination-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 40px;
	padding: 30px 0;
	border-top: 1px solid #eaeaea;
}

.tas-pagination {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.tas-page-link {
	text-decoration: none;
	color: #000000;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	border-bottom: 3px solid transparent;
}

.tas-page-num {
	text-decoration: none;
	color: #555;
	font-weight: 600;
	font-size: 14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 3px solid transparent;
}

.tas-page-num.active {
	border-bottom: 3px solid #bbef00;
	color: #000;
}

.tas-results-per-page select {
	border: none;
	font-weight: 600;
	color: #555;
	font-size: 14px;
	cursor: pointer;
	outline: none;
	background: transparent;
}

@media (min-width: 992px) {

	/* Utility visibility */
	.tas-desktop-only {
		display: block;
	}

	.tas-mobile-only {
		display: none !important;
	}

	.tas-desktop-hidden {
		display: none;
	}

	.tas-desktop-flex-between {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}

	span.tas-desktop-only,
	svg.tas-desktop-only,
	button.tas-desktop-only {
		display: inline-flex;
	}

	/* Top Header */
	.tas-top-header {
		display: flex;
		align-items: center;
		gap: 15px;
		margin-bottom: 40px;
	}

	.tas-all-categories-dropdown-wrap {
		position: relative;
	}

	.tas-btn-all-categories {
		display: flex;
		align-items: center;
		gap: 10px;
		background: #fff;
		border: 1px solid #eaeaea;
		padding: 0 20px;
		border-radius: 8px;
		cursor: pointer;
		color: #000000;
		height: 46px;
		/* align with inputs */
		font-family: Montserrat;
		letter-spacing: 0;
		font-size: 14px;
		line-height: 16.8px;
		font-weight: 600;
	}

	.tas-all-categories-dropdown-wrap:hover .tas-desktop-categories-menu {
		display: block;
	}

	.tas-desktop-categories-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 260px;
		background: #fff;
		border: 1px solid #eaeaea;
		border-radius: 8px;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
		z-index: 1000;
		margin-top: 1px;
		padding: 10px 0;
	}

	.tas-dcat-item {
		padding: 10px 20px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		cursor: pointer;
		font-size: 14px;
		color: #333;
	}

	.tas-dcat-item:hover {
		background: #f9f9f9;
	}

	.tas-dcat-item.active {
		background: #eaeaea;
		font-weight: 600;
	}

	.tas-top-header .tas-search-bar-wrap {
		flex-grow: 1;
		margin-bottom: 0;
	}

	.tas-top-header #tas-main-search {
		padding: 12px 15px 12px 45px;
		height: 46px;
		box-sizing: border-box;
	}

	.tas-top-header .tas-btn-search-main {
		width: auto;
		margin-bottom: 0;
		height: 46px;
		display: flex;
		align-items: center;
		font-weight: 600 !important;
		font-size: 14px !important;
	}


	/* Layout Container */
	.tas-layout-container {
		display: grid;
		grid-template-columns: 280px 1fr;
		gap: 30px;
		align-items: start;
	}

	/* Override Modal to act as Sidebar */
	.tas-modal-overlay {
		position: static;
		background: none;
		opacity: 1;
		pointer-events: auto;
		display: block;
		z-index: 1;
	}

	.tas-modal-content {
		max-width: none;
		border-radius: 12px;
		border: 1px solid #eaeaea;
		height: auto;
		max-height: none;
		transform: none;
		box-shadow: none;
		background: #fff;
	}

	.tas-modal-view {
		position: static;
		background: transparent;
	}

	.tas-modal-body {
		padding: 20px;
		overflow: visible;
	}

	/* Desktop Sidebar specifics */
	.tas-desktop-sidebar-header {
		padding: 0 0 15px 0;
	}

	.tas-desktop-sidebar-header h3 {
		margin: 0;
		font-size: 16px;
		font-weight: 600;
	}

	.tas-btn-clear-desktop {
		background: none;
		border: none;
		color: #63a91e;
		font-size: 16px;
		cursor: pointer;
		padding: 0;
	}

	.tas-btn-clear-desktop:hover {
		text-decoration: underline;
	}

	.tas-desktop-category-list {
		display: flex;
		flex-direction: column;
		margin-top: 15px;
	}

	.tas-desktop-category-section.tas-collapsed .tas-desktop-category-list {
		display: none;
	}

	#tas-desktop-category-toggle {
		cursor: pointer;
		color: #000000;
	}

	.tas-desktop-category-section .tas-chevron {
		transition: transform 0.2s ease;
	}

	.tas-desktop-category-section.tas-collapsed .tas-chevron {
		transform: rotate(-90deg);
	}

	.tas-desktop-category-list .tas-dcat-item,
	.tas-desktop-location-list .tas-dloc-item {
		padding: 8px 10px;
		border-radius: 6px;
		border-bottom: none;
		cursor: pointer;
		font-size: 14px;
	}

	.tas-desktop-category-list .tas-dcat-item:hover,
	.tas-desktop-location-list .tas-dloc-item:hover {
		background: #f5f5f5;
	}

	.tas-desktop-category-list .tas-dcat-item.active,
	.tas-desktop-location-list .tas-dloc-item.active {
		background: #eaeaea;
	}

	.tas-desktop-location-list {
		display: flex;
		flex-direction: column;
		margin-top: 15px;
		max-height: 350px;
		overflow-y: auto;
	}

	.tas-desktop-location-section.tas-collapsed .tas-desktop-location-list {
		display: none;
	}

	.tas-desktop-location-list::-webkit-scrollbar,
	.tas-desktop-location-list::-webkit-scrollbar-thumb,
	.tas-desktop-location-list::-webkit-scrollbar-track {
		width: 5px;
		border: none;
		background: transparent;
	}

	.tas-desktop-location-list::-webkit-scrollbar-button,
	.tas-desktop-location-list::-webkit-scrollbar-track-piece,
	.tas-desktop-location-list::-webkit-scrollbar-corner,
	.tas-desktop-location-list::-webkit-resizer {
		display: none;
	}

	.tas-desktop-location-list::-webkit-scrollbar-thumb {
		border-radius: 6px;
		background-color: #8082858f;
	}

	.tas-desktop-location-section .tas-chevron {
		transition: transform 0.2s ease;
	}

	.tas-desktop-location-section.tas-collapsed .tas-chevron {
		transform: rotate(-90deg);
	}

	.tas-filter-label {
		font-size: 14px;
		color: #000000;
	}

}

/* No Results State */
.tas-no-results {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	border: 2px dashed #eaeaea;
	margin-top: 20px;
}

.tas-no-results-icon {
	color: #ccc;
	margin-bottom: 15px;
}

.tas-no-results-title {
	font-size: 20px;
	color: #333;
	margin: 0 0 8px 0;
	font-weight: 600;
}

.tas-no-results-text {
	font-size: 15px;
	color: #777;
	margin: 0;
	max-width: 400px;
	line-height: 1.5;
}

/* Sort Dropdown */
.tas-sort-dropdown {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	min-width: 180px;
	z-index: 100;
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.tas-sort-dropdown.active {
	display: flex;
}

.tas-sort-option {
	padding: 12px 16px;
	font-size: 14px;
	color: #555;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.tas-sort-option:hover {
	background: #f9f9f9;
	color: #000;
}

.tas-sort-option.active {
	background: #bbf706;
	color: #000;
	font-weight: 600;
}

/* Header Fixes */
.tas-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #eaeaea;
	background: #fff;
}

.tas-modal-header h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
}

.tas-btn-close {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
}

/* Sort Dropdown CSS */
.tas-sort-dropdown {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	min-width: 180px;
	z-index: 100;
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.tas-sort-dropdown.active {
	display: flex;
}

.tas-sort-option {
	padding: 12px 16px;
	font-size: 14px;
	color: #555;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.tas-sort-option:hover {
	background: #f9f9f9;
	color: #000;
}

.tas-sort-option.active {
	background: #bbf706;
	color: #000;
	font-weight: 600;
}

/* Region Sub-locations Dropdown Styles */
.tas-dloc-region-wrap {
	position: relative;
}

.tas-dloc-region-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tas-dloc-region-arrow {
	transition: transform 0.2s ease;
}

.tas-dloc-suburb-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9em;
	padding: 8px 10px 8px 30px;
}

.tas-dloc-suburb-name {
	color: #444;
}

.tas-dloc-suburb-postcode {
	color: #999;
	font-size: 0.85em;
}

/* Mobile Location Dropdown Styles */
.tas-mloc-dropdown {
	position: relative;
}

.tas-mloc-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
}

.tas-mloc-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 6px;
	margin-top: 5px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	z-index: 100;
	max-height: 350px;
	overflow-y: auto;
}

.tas-mloc-all-item {
	padding: 12px 14px;
	border-bottom: 1px solid #eaeaea;
	cursor: pointer;
	font-weight: 700;
}

.tas-mloc-region-inner-item {
	padding: 12px 14px;
	cursor: pointer;
}

.tas-mloc-region-inner-item>span {
	font-size: 14px;
}

.tas-mloc-sub-locations-wrap {
	background: #fafafa;
}

/*Responsive CSS*/
@media (min-width: 768px) {
	.tas-listing-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
	}

	.tas-listing-image-wrap::after {
		content: " ";
		width: 100%;
		height: 100%;
		background: var(--blur-bg);
		display: block;
		z-index: 1;
		position: absolute;
		left: 0;
		top: 0;
		background-repeat: no-repeat;
		background-position: center center;
		background-size: cover;
		filter: blur(7px);
	}
}

@media (max-width: 991px) {
	.tas-modal-body {
		display: flex;
		flex-direction: column;
	}

	#tas-open-category-view {
		order: 1;
	}

	.tas-price-section {
		order: 2;
	}

	.tas-location-section.tas-mobile-only {
		order: 3;
	}

	.tas-condition-section {
		order: 4;
	}

	.tas-btn-search-main {
		width: 100% !important;
	}
}

@media (max-width: 767px) {

	.tas-listing-location li>svg {
       margin-top: 4px;
    }
	.tas-listing-image-wrap {
		padding-top: 100%;
	}

	.tas-listings-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.tas-modal-overlay {
		align-items: flex-start;
		justify-content: end;
	}

	.tas-modal-content {
		max-width: 85%;
		width: 85%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	.page-id-151513 .container.main-content {
		max-width: 95%;
	}

	.tas-listing-card {
		border-radius: 0;
	}

	.tas-listing-image {
		object-fit: cover;
	}
}

@media (max-width: 550px) {
	.tas-listing-title {
		font-size: 14px;
	}

	.tas-listing-location {
		font-size: 11px;
	}

	.tas-badge-just-listed {
		padding: 6px 6px 4px;
		font-size: 8px;
		line-height: 1 !important;
	}

}

/* Redesigned Mobile layout styles */
.tas-mobile-only-block {
	display: block;
}

@media (min-width: 992px) {
	.tas-mobile-only-block {
		display: none !important;
	}
}

@media (max-width: 991px) {

	.tas-modal-view-main .tas-modal-header h3,
	.tas-modal-view-main #tas-open-category-view .tas-filter-row-left>span,
	.tas-modal-view-main .tas-price-section span.tas-mobile-only,
	.tas-location-section .tas-filter-label>span,
	.tas-condition-section .tas-filter-label>span {
		font-size: 14px;
	}

	/* Top Header Title & Circle Button */
	.tas-mobile-header-top {
		margin-bottom: 25px;
	}

	.tas-mobile-header-top .tas-active-listings-title {
		font-size: 20px;
		font-weight: 600;
		color: #000;
		font-family: inherit;
	}

	.tas-topbar-actions button.tas-btn-filter-circle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 50% !important;
		background: #fff;
		border: 1px solid #e0e0e0;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
		cursor: pointer;
		color: #000;
		transition: all 0.2s ease;
		padding: 0 !important;
	}

	.tas-btn-filter-circle:hover {
		border-color: #ceea76;
		background: #fbfdf5;
	}

	/* Search Input Refined Styles */
	.tas-btn-search-main {
		display: none !important;
	}

	#tas-main-search {
		background-color: #f3f3f3 !important;
		border: none !important;
		border-radius: 30px !important;
		padding: 12px 40px 12px 45px !important;
		font-size: 15px !important;
		font-family: inherit;
		box-shadow: none !important;
		color: #000 !important;
		height: 51px;
	}

	.tas-search-bar-wrap .tas-search-icon {
		left: 18px !important;
	}

	/* Browse by Category Dropdown */
	.tas-browse-category-wrap {
		position: relative;
		margin-bottom: 25px;
		width: 100%;
	}

	.tas-browse-category-wrap.tas-mobile-only-block .tas-btn-browse-category {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 15.5px 20px;
		background: #fff;
		border: 1.5px solid #ceea76;
		border-radius: 30px !important;
		font-size: 14px;
		font-weight: 600;
		color: #000;
		cursor: pointer;
		box-sizing: border-box;
		box-shadow: 0 2px 6px rgba(206, 234, 118, 0.1);
		transition: all 0.2s ease;
		outline: none;
		font-family: inherit;
	}

	.tas-btn-browse-category:hover {
		background-color: #fcfdfa;
	}

	.tas-btn-browse-category-left {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.tas-browse-chevron {
		transition: transform 0.2s ease;
	}

	.tas-browse-category-wrap.active .tas-browse-chevron {
		transform: rotate(180deg);
	}

	.tas-browse-category-dropdown {
		position: absolute;
		top: calc(100% + 5px);
		left: 0;
		right: 0;
		background: #fff;
		border: 1px solid #eaeaea;
		border-radius: 12px;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
		z-index: 1000;
		max-height: 280px;
		overflow-y: auto;
		padding: 8px 0;
		box-sizing: border-box;
	}

	.tas-browse-category-item {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 20px;
		font-size: 14px;
		color: #333;
		cursor: pointer;
		transition: background 0.2s;
		font-weight: 500;
	}

	.tas-browse-category-item:hover {
		background: #f9f9f9;
	}

	.tas-browse-category-item.active {
		background: #f4fce3;
		font-weight: 700;
		color: #000;
	}

	.tas-browse-cat-icon,
	.tas-btn-browse-category-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 18px;
		height: 18px;
		color: #000 !important;
		flex-shrink: 0;
	}

	.tas-browse-cat-icon svg,
	.tas-btn-browse-category-icon svg {
		width: 18px;
		height: 18px;
		stroke: #000 !important;
		fill: none;
		filter: brightness(0) saturate(100%);
	}

	.tas-browse-category-item[data-id="584"] svg {
		fill: #000 !important;
		filter: brightness(0) saturate(100%);
	}

	/* Shortcuts Category circle icons */
	.tas-quick-categories {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 10px;
		scrollbar-width: none;
	}

	.tas-quick-categories::-webkit-scrollbar {
		display: none;
	}

	.tas-qc-item {
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
		margin: 0 !important;
		max-width: none;
		min-width: 0;
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		cursor: pointer;
		position: relative;
	}

	.tas-qc-icon {
		width: 54px;
		height: 54px;
		border-radius: 50%;
		border: 1px solid #e0e0e0;
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.2s ease;
		color: #000000;
	}

	div[data-term="miscellaneous-goods"] .tas-qc-icon>svg {
		margin-right: 3px;
	}

	.tas-qc-item.active .tas-qc-icon {
		background-color: #e9f7bd !important;
		border-color: #e9f7bd !important;
		color: #000;
	}

	.tas-qc-label {
		font-size: 11px;
		font-weight: 500;
		color: #000;
		text-align: center;
		padding-bottom: 6px;
		position: relative;
		white-space: nowrap;
	}

	.tas-qc-item.active .tas-qc-label::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		width: calc(100% - 8px);
		height: 3px;
		background-color: #ceea76;
		border-radius: 2px;
	}

	/* Bottom Actions Row */
	.tas-mobile-actions-row {
		margin-bottom: 25px;
		width: 100%;
	}

	.tas-mobile-actions-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 15px;
		width: 100%;
	}

	.tas-mobile-actions-container button.tas-btn-mobile-filter {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 10px 16px;
		background: #fff;
		border: 1px solid #eaeaea;
		border-radius: 24px !important;
		font-size: 13px;
		font-weight: 600;
		color: #000000;
		cursor: pointer;
		height: 40px;
		box-sizing: border-box;
	}

	.tas-btn-mobile-filter:hover {
		background: #fdfdfd;
		border-color: #ccc;
	}

	.tas-filter-count {
		background-color: #ceea76;
		color: #000;
		font-size: 11px;
		font-weight: 700;
		width: 18px;
		height: 18px;
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 1px 0 0;
		box-sizing: border-box;
		line-height: 1;
		text-align: center;
	}

	.tas-mobile-actions-container .tas-sort-wrap {
		flex: 1;
		display: flex;
		justify-content: flex-end;
	}

	.tas-mobile-actions-container .tas-btn-sort {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 6px;
		padding: 10px 16px;
		background: #fff;
		border: 1px solid #eaeaea;
		border-radius: 24px !important;
		font-size: 13px;
		font-weight: 600;
		color: #000000;
		cursor: pointer;
		height: 40px;
		box-sizing: border-box;
		min-width: 130px;
	}

	.tas-mobile-actions-container .tas-btn-sort:hover {
		background: #fdfdfd;
		border-color: #ccc;
	}

	.tas-mobile-actions-container .tas-sort-dropdown {
		top: calc(100% + 5px);
		right: 0;
		left: auto;
		width: 100%;
		min-width: 180px;
		border-radius: 12px;
	}


	.tas-mobile-select-wrap {
		position: relative;
		width: 100%;
	}

	.tas-mobile-select {
		width: 100%;
		height: 51px;
		padding: 0 40px 0 16px;
		font-size: 14px;
		background-color: #ffffff;
		border: 1px solid #eaeaea;
		border-radius: 8px;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		outline: none;
		cursor: pointer;
		transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	}

	.tas-mobile-select:focus {
		border-color: #bbf706;
		background-color: #fff;
		box-shadow: 0 0 0 3px rgba(187, 247, 6, 0.25);
	}

	.tas-mobile-select-wrap .tas-select-chevron {
		position: absolute;
		right: 14px;
		top: 50%;
		transform: translateY(-50%);
		pointer-events: none;
		color: #64748b;
	}
}