/**
 * Public-facing Stylesheet for the Property Data Manager plugin.
 *
 * This file contains all the CSS for the frontend components of the plugin,
 * including the property archive (filters, grid, cards), the single property
 * detail page, and the hero search shortcode.
 *
 * @since 1.0.0
 */




/* ==========================================================================
   1. Property Archive: Filter Form
   ========================================================================== */
.pdm-filter-form {
	background: #ffffff;
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid #e2e8f0;
}



.pdm-filter-form .form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
}

.pdm-filter-form .form-group {
	display: flex;
	flex-direction: column;
}

.pdm-filter-form .form-group-span-2 {
	grid-column: span 2;
}

.pdm-filter-form label {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
	color: #4a5568;
}

.pdm-filter-form input[type="text"],
.pdm-filter-form input[type="number"],
.pdm-filter-form select {
	padding: 10px;
	border: 1px solid #cbd5e0;
	background-color: #fff;
	font-size: 15px;
	height: 42px;
	border-radius: 0 !important;
	/* Ensures consistent height across all fields */
}

.pdm-filter-form .form-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 15px;
	margin-top: 10px;
}

@media screen and (max-width: 767px) {
	.pdm-filter-form .form-actions {
		flex-wrap: wrap;
	}

	
}

.pdm-filter-form .search-button {
	background-color: #1E88E5 !important;
	/* Brand Color */
	color: white;
	padding: 10px 25px;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: background-color 0.2s;
	height: 42px;
}

.pdm-filter-form .search-button:hover {
	background-color: #1FACE5 !important;
}

.pdm-filter-form .reset-button {
	background-color: #e2e8f0 !important;
	color: #4a5568 !important;
	padding: 10px 25px;
	text-decoration: none;
	font-weight: bold;
	font-size: 16px;
	border: 1px solid transparent;
	transition: all 0.2s;
	height: 42px;
	display: inline-flex;
	align-items: center;
}

.pdm-filter-form .reset-button:hover {
	background-color: #cbd5e0;
	color: #2d3748;
}

/* --- Styles for Select2 Library --- */
.select2-container--default .select2-selection--single {
	height: 42px !important;
	border: 1px solid #cbd5e0 !important;
	border-radius: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 40px !important;
	/* Vertically center the text */
	padding: 0 0 0 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 40px !important;
}

.select2-dropdown {
	border: 1px solid #cbd5e0 !important;
	border-radius: 0 !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
	background-color: #1E88E5 !important;
	/* Brand Color */
}

.select2-container {
	width: auto !important;
}

.select2-container .select2-selection--single .select2-selection__clear {
	background-color: transparent !important;
}

/* ==========================================================================
   2. Property Archive: Active Filters & Pagination
   ========================================================================== */
.pdm-active-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	padding: 15px;
	margin-bottom: 30px;
	background-color: #fff;
	border: 1px solid #e2e8f0;
}

.filter-tags-wrapper {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.pdm-active-filters .filters-label {
	font-weight: bold;
	color: #2d3748;
	font-size: 14px;
	margin-right: 10px;
}

.pdm-active-filters .filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pdm-active-filters .filter-tag {
	display: inline-flex;
	align-items: center;
	background-color: #e2e8f0;
	color: #4a5568;
	padding: 5px 10px;
	font-size: 13px;
	font-weight: 500;
}

.pdm-active-filters .remove-filter {
	display: inline-block;
	margin-left: 8px;
	color: #718096;
	font-weight: bold;
	font-size: 16px;
	text-decoration: none;
	line-height: 1;
	transition: color 0.2s;
}

.pdm-active-filters .remove-filter:hover {
	color: #d32f2f;
	/* Red on hover */
}

.page-status {
	font-size: 14px;
	font-weight: 500;
	color: #718096;
	white-space: nowrap;
}

.pdm-pagination {
	margin-top: 40px;
	text-align: center;
}

.pdm-pagination .page-numbers {
	display: inline-flex;
	gap: 5px;
	list-style: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
	/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.pdm-pagination .page-numbers li {
	margin: 0;
}

.pdm-pagination .page-numbers a,
.pdm-pagination .page-numbers span {
	display: block;
	padding: 6px 16px;
	/* border-radius: 100px; */
	background-color: #fff;
	border: 1px solid #e2e8f0;

	margin-left: -1px;
	/* Creates a clean border overlap */
	color: #1E88E5;
	/* Brand Color */
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.pdm-pagination .page-numbers a:hover {
	background-color: #f0f4f8;
}

.pdm-pagination .page-numbers.current,
.pdm-pagination .page-numbers span.current {
	background-color: #1E88E5 !important;
	/* Brand Color */
	color: #fff !important;
	font-weight: bold;
	cursor: default;
}

.pdm-pagination .page-numbers .dots {
	color: #a0aec0;
}

/* ==========================================================================
   3. Property Archive: Grid & Cards
   ========================================================================== */
/* --- Modern Property Card Styles --- */

/* Main link wrapper */
.pdm-property-card-link {
	text-decoration: none !important;
	color: inherit !important;
	display: block !important;
}

/* Card container */
.pdm-property-card {
	background-color: #ffffff !important;
	/* border-radius: 20px !important; */
	overflow: hidden !important;
	/* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; */
	transition: all 0.3s ease !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	/* Ensures cards in a row have same height */
}

.pdm-property-card:hover {
	transform: translateY(-5px) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Image section */
.pdm-card-image-wrapper {
	position: relative !important;
	height: 220px !important;
	background-color: #f0f0f0 !important;
}

.pdm-card-image-wrapper img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 0 !important;
}

.pdm-card-no-image {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 100% !important;
	color: #888 !important;
	font-size: 16px !important;
}

/* Status badge on image */
.pdm-status-badge {


	color: #ffffff !important;
	padding: 1px 10px !important;
	border-radius: 20px !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	backdrop-filter: blur(5px) !important;
}

/* Action icons (e.g., favorite button) */
.pdm-card-actions {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
}

.pdm-action-btn {
	background-color: rgba(15, 15, 15, 0.7) !important;
	border: none !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	padding: 0 !important;
	backdrop-filter: blur(5px) !important;
}

.pdm-action-btn svg {
	width: 20px !important;
	height: 20px !important;
	fill: #ffffff !important;
}

/* Content section */
.pdm-card-content {
	padding: 20px !important;
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
	/* Allows button to stick to the bottom */
}

.pdm-card-price {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #1E88E5 !important;
	/* Your Brand Color */
	margin-bottom: 4px !important;
}

.pdm-card-address {
	font-size: 20px !important;
	font-weight: 600 !important;
	color: #1a1a1a !important;
	margin: 0 0 4px 0 !important;
}

.pdm-card-location-type {
	font-size: 14px !important;
	color: #666 !important;
	margin-bottom: 16px !important;
}

.pdm-card-location-type .pdm-dot {
	margin: 0 6px !important;
}

.pdm-card-divider {
	border: none !important;
	height: 1px !important;
	background-color: #eeeeee !important;
	margin: 0 0 16px 0 !important;
}

/* Details with icons (beds, baths, etc.) */
.pdm-card-details {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	gap: 10px !important;
}

.pdm-card-detail-item {
	display: flex !important;
	align-items: center !important;
	font-size: 14px !important;
	color: #333 !important;
	white-space: nowrap !important;
}

.pdm-card-detail-item svg {
	width: 20px !important;
	height: 20px !important;
	fill: #666 !important;
	margin-right: 6px !important;
	flex-shrink: 0 !important;
}

/* Details button */
.pdm-card-button {
	margin-top: 15px !important;
	/* Pushes button to the bottom */
	padding-top: 20px !important;
	/* Space above button */
	padding-bottom: 0px !important;
}

.pdm-card-button {
	background-color: transparent !important;
	/* Your Brand Color */
	color: #000 !important;
	text-align: center !important;
	padding: 6px 15px !important;
	border-radius: 80px !important;
	font-weight: 500 !important;
	width: 40%;
	align-self: flex-end;
	transition: background-color 0.3s ease !important;

	border: 1px solid #1E88E5 !important;
}

.pdm-property-card:hover .pdm-card-button {
	background-color: #1E88E5 !important;
	color: #fff !important;
	/* Darker shade on hover */
}


.pdm-properties-list {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

/* Responsive grid columns */
@media (min-width: 600px) {
	.pdm-properties-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.pdm-properties-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

a.pdm-property-card-link,
a.pdm-property-card-link:hover {
	text-decoration: none;
	color: inherit;
}

.pdm-property-card {
	border: 1px solid #e2e8f0;
	overflow: hidden;
	/* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); */
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	display: flex;
	flex-direction: column;
	background-color: #fff;
}

.pdm-property-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pdm-card-image-wrapper {
	position: relative;
	/* Essential for the status badge */
	width: 100%;
	height: 230px;
	background-color: #f0f4f8;
	overflow: hidden;
}

.pdm-card-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pdm-card-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #a0aec0;
	font-weight: 500;
}

.pdm-status-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: #1E88E5;
	/* Brand color */
	color: #fff;

	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	z-index: 2;
}

.pdm-card-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.pdm-card-price {
	font-size: 1.6rem;
	font-weight: bold;
	color: #1E88E5;
	/* Brand Color */
	margin-bottom: 5px;
}

.pdm-card-address {
	margin: 0 0 10px;
	font-size: 1.2rem;
	font-weight: 600;
	color: #2d3748;
	line-height: 1.3;
}

.pdm-card-location-type {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.9rem;
	color: #718096;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.pdm-card-location-type .pdm-dot {
	color: #cbd5e0;
}

.pdm-card-details {
	display: flex;
	justify-content: space-between;
	font-size: 0.95rem;
	color: #4a5568;
	margin-top: auto;
	/* padding-top: 15px; */
	/* border-top: 1px solid #edf2f7; */
	flex-wrap: wrap;
	gap: 15px;
}

.pdm-card-details span {
	display: inline-flex;
	align-items: center;
	font-weight: 500;
}

.pdm-card-details svg {
	width: 20px;
	height: 20px;
	margin-right: 8px;
	fill: #a0aec0;
}

/* ==========================================================================
   4. Single Property Page
   ========================================================================== */
.pdm-single-property-container {
	font-family: inherit;
	/* Inherit font from the theme */
}

.pdm-error {
	background-color: #fff5f5;
	border: 1px solid #e53e3e;
	color: #c53030;
	padding: 20px;
}

.pdm-single-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 25px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 25px;
}

.pdm-single-address {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	color: #2d3748;
}

.pdm-single-city-state {
	margin: 5px 0 0;
	font-size: 1.1rem;
	color: #718096;
}

.pdm-single-price {
	font-size: 2.5rem;
	font-weight: bold;
	color: #1E88E5;
	/* Brand Color */
	white-space: nowrap;
	padding-left: 20px;
	text-align: right;
}

.pdm-single-status {
	display: block;
	font-size: 0.9rem;
	font-weight: normal;
	color: #4a5568;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* --- Single Property: Swiper.js Gallery --- */
.pdm-swiper-gallery {
	margin-bottom: 30px;
}

.swiper-wrapper {
	box-sizing: border-box !important;
}

.pdm-gallery-main {
	width: 100%;
	height: 500px;
	margin-bottom: 10px;
}

.pdm-gallery-main .swiper-slide {
	background-color: #f0f4f8;
}

.pdm-gallery-main .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
}

.pdm-gallery-main .swiper-button-next,
.pdm-gallery-main .swiper-button-prev {
	color: #fff;
	/* background-color: rgba(6, 117, 253, 0.5); */
	background-color: #1E88E5;
	/* Semi-transparent brand color */
	width: 44px;
	height: 44px;
	/* border-radius: 50%; */
	transition: background-color 0.2s;
}

.pdm-gallery-main .swiper-button-next:hover,
.pdm-gallery-main .swiper-button-prev:hover {
	background-color: #1E88E5;
}

.pdm-gallery-main .swiper-button-next:after,
.pdm-gallery-main .swiper-button-prev:after {
	font-size: 20px;
	font-weight: bold;
}

.pdm-gallery-thumbs {
	height: 100px;
}

.pdm-gallery-thumbs .swiper-slide {
	width: 25%;
	height: 100%;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.2s;
}

.pdm-gallery-thumbs .swiper-slide:hover {
	opacity: 0.8;
}

.pdm-gallery-thumbs .swiper-slide-thumb-active {
	opacity: 1;
	border: 3px solid #1E88E5;
	/* Brand Color */
}

.pdm-gallery-thumbs .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
}

.pdm-no-gallery-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 410px;
	background-color: #f0f4f8;
	color: #a0aec0;
	font-weight: 500;
}

/* --- Single Property: Main Content Layout --- */
.pdm-single-main-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 768px) {
	.pdm-single-main-content {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

.pdm-details-column h2,
.pdm-details-column h3 {
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 10px;
	margin-top: 0;
	margin-bottom: 20px;
	color: #2d3748;
}

.pdm-key-facts-list {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}

.pdm-key-facts-list li {
	background: #f7f9fc;
	padding: 10px !important;
}

.pdm-key-facts-list strong {
	display: block;
	color: #718096;
	font-size: 0.9rem;
	margin-bottom: 5px;
}

.pdm-key-facts-list span {
	font-weight: bold;
	color: #2d3748;
	font-size: 1.1rem;
}

.pdm-description {
	line-height: 1.7;
	color: #4a5568;
	margin-bottom: 30px;
}

.pdm-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pdm-tag {
	background-color: #e2e8f0;
	color: #4a5568;
	padding: 5px 12px;
	font-size: 0.9rem;
}

/* --- Single Property: Sidebar (Agent & Map) --- */
.pdm-agent-info,
.pdm-map-container {
	border: 1px solid #e2e8f0;
	padding: 25px;
	margin-bottom: 25px;
}

.pdm-agent-info h4,
.pdm-map-container h4 {
	margin: 0 0 20px;
	font-size: 1.2rem;
	color: #2d3748;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 10px;
}

.pdm-agent-name {
	margin: 0 0 5px;
	font-weight: bold;
	font-size: 1.3rem;
}

.pdm-broker-name {
	margin: 0 0 20px;
	color: #718096;
}

/* --- Single Property: Agent Contact Form --- */
.pdm-agent-contact-form {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid #e2e8f0;
}

.pdm-agent-contact-form p {
	margin: 0 0 15px;
	font-weight: 500;
	color: #4a5568;
}

.pdm-form-group {
	margin-bottom: 15px;
}

.pdm-agent-contact-form input[type="text"],
.pdm-agent-contact-form input[type="email"],
.pdm-agent-contact-form input[type="tel"],
.pdm-agent-contact-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #cbd5e0;
	font-size: 15px;
}

.pdm-agent-contact-form textarea {
	resize: vertical;
}

.pdm-agent-button {
	width: 100%;
	display: block;
	background: #1E88E5 !important;
	/* Brand Color */
	color: #fff;
	text-align: center;
	padding: 12px;
	text-decoration: none;
	font-weight: bold;
	border: none !important;
	cursor: pointer;
	transition: background-color 0.2s;
}

.pdm-agent-button:hover {
	background-color: #1FACE5;
}

.pdm-agent-button:disabled {
	background-color: #a0aec0;
	cursor: not-allowed;
}

.pdm-form-response {
	display: none;
	padding: 15px;
	margin-top: 15px;
	text-align: center;
	font-weight: 500;
}

.pdm-form-response.loading {
	color: #4a5568;
	background-color: #f0f4f8;
}

.pdm-form-response.success {
	color: #2f855a;
	background-color: #f0fff4;
}

.pdm-form-response.error {
	color: #c53030;
	background-color: #fff5f5;
}

/* ==========================================================================
   5. Hero Search Form Shortcode
   ========================================================================== */



.pdm-hero-search-container {
	width: 800px;
	max-width: 800px;
	border-radius: 300px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pdm-status-select {
	position: absolute;
	left: 10px;
	width: 20%
}

#pdm_hero_location_search {
	padding-left: 24% !important
}

.pdm-hero-submit-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 10px !important;
	padding: 10px !important;
	width: 50px !important;
	height: 50px !important;
	display: flex !important;
	justify-content: center;
	align-items: center;
	border: none !important;
}


.pdm-hero-input-group {
	display: flex;
	align-items: center;

}

.pdm-hero-search-icon {
	width: 32px !important;
	height: 32px !important;
	fill: #a0aec0 !important;
	margin: 0 15px;
}

.pdm-hero-input-group input[type="text"] {
	flex-grow: 1;
	border: none !important;
	padding: 20px 0;
	padding-left: 10px;
	font-size: 1.1rem;
	outline: none;
	background-color: #ffffff !important;
	border-radius: 100px !important;
	color: #000 !important;
}

.pdm-hero-input-group input[type="text"]:focus {
	outline: none !important;
	border: none !important;
	box-shadow: 0 0 0 3px #1E88E58e;

}

.pdm-hero-submit-btn {
	background-color: #1E88E5 !important;
	/* Brand Color */
	color: white !important;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.2s;
	border-radius: 200px !important;
	box-shadow: none !important;
}

.pdm-hero-submit-btn svg {
	width: 20px !important;
	height: 20px !important;
	margin-left: 1px;
}

.pdm-hero-submit-btn:hover {
	background-color: #1FACE5 !important;
}

.pdm-status-select {
	appearance: none;
	/* remove default browser style */
	-webkit-appearance: none;
	-moz-appearance: none;

	border: none;
	outline: none;
	background: #ffffff;
	height: 70% !important;

	font-weight: 500;
	color: #333;
	border-radius: 0;
	border-right: 1px solid #ddd;
	/* subtle divider */
	cursor: pointer;
	min-width: 110px;

	/* make it blend with flex container */
	height: 100%;
	line-height: 1.4;
}



/* custom dropdown arrow */
.pdm-status-select {
	background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E<path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
}

.pdm-status-select:focus {
	outline: none !important;
	border-right: 1px solid #c2c2c2;
}



/* --- Hero Form CSS Animation --- */
@keyframes pdm-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pdm-form-animate {
	animation: pdm-fade-in-up 0.3s ease-out forwards;
}

@media screen and (max-width: 767px) {
	.pdm-hero-search-container {
		width: 100%;
		max-width: 100%;
		border-radius: 100px;
	}

	.pdm-hero-input-group input[type="text"] {
		font-size: 1rem;
		flex-direction: column!important;

	}

	.pdm-hero-input-group {
		flex-direction: column !important;
		align-items: stretch !important;}

	#pdm_hero_location_search{
		padding: 16px !important;
		border-radius: 14px !important;
		margin-top: 8px;
	}

	.pdm-status-select {
		min-width: 90px;
		font-size: 0.9rem;
		position: initial;
		width: 100%;
		padding: 16px !important;
		border-radius: 14px;
	}

	.pdm-hero-submit-btn {
		width: 45px !important;
		height: 45px !important;
		padding: 8px !important;
		top: 76%;
		right: 8px !important;
		border-radius: 14px !important;
	}

	.pdm-hero-submit-btn svg {
		width: 18px !important;
		height: 18px !important;
	}


}

/* ==========================================================================
   6. AJAX Loading States
   ========================================================================== */
#pdm-ajax-container {
	position: relative;
}

/*  */

/* --- Styles for Advanced Filters Toggle --- */
.pdm-advanced-filters {
	display: none;
	/* Hidden by default */
	margin-top: 20px;
}

.pdm-toggle-filters-button {
	background-color: transparent !important;
	color: #1E88E5 !important;
	/* Brand Color */
	font-weight: bold;
	border: none !important;
	font-size: 16px;
	border: none;
	cursor: pointer;
	padding: 10px 0;
}

.pdm-toggle-filters-button:hover,
.pdm-toggle-filters-button:focus {
	background-color: transparent !important;
	color: #1FACE5 !important;
}

/* Adjust form actions to position the new button */
.pdm-filter-form .form-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	/* This pushes left and right groups apart */
	align-items: center;
	margin-top: 10px;
}

.form-actions-left,
.form-actions-right {
	display: flex;
	align-items: center;
	gap: 15px;
}



/* === Single Property Page Styling === */

.pdm-single-property-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	font-family: "Segoe UI", Tahoma, sans-serif;
	color: #222;
}

/* Header */
.pdm-single-header {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	border-bottom: 2px solid #ddd;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.pdm-single-address {
	font-size: 1.75rem;
	margin: 0;
	font-weight: 600;
}

.pdm-single-city-state {
	font-size: 1rem;
	color: #666;
}

.pdm-single-price {
	font-size: 1.5rem;
	font-weight: bold;
	color: #1E88E5;
	font-family: inherit, sans-serif;
}

.pdm-single-status {
	display: inline-block;
	margin-left: 0.5rem;
	background: #eee;
	color: #444;
	padding: 0.25rem 0.6rem;
	font-size: 0.9rem;
}

/* Gallery */
.pdm-swiper-gallery {
	margin-bottom: 2rem;
}

.pdm-no-gallery-image {
	text-align: center;
	font-size: 1rem;
	padding: 3rem;
	background: #f5f5f5;
	border: 1px solid #ddd;
}

/* Layout */
.pdm-single-main-content {
	display: flex;
	gap: 2rem;
}

.pdm-details-column {
	flex: 2;
}

.pdm-sidebar-column {
	flex: 1;
}

/* Key facts */
.pdm-key-facts-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem 0;
}

.pdm-key-facts-list li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #eee;
	font-size: 0.95rem;
}

.pdm-key-facts-list li strong {
	display: inline-block;
	min-width: 120px;
	color: #333;
}

/* Description */
.pdm-description {
	background: #f9f9f9;
	padding: 1rem;
	line-height: 1.5;
	margin-bottom: 1.5rem;
}

/* Tags */
.pdm-tags-list {
	margin: 1rem 0;
}

.pdm-tag {
	display: inline-block;
	margin: 0.2rem;
	padding: 0.4rem 0.8rem;
	background: #eef4ff;
	border: 1px solid #c8daff;
	font-size: 0.85rem;
	color: #1FACE5;
}

/* Tables */
.pdm-tax-history {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.pdm-tax-history th,
.pdm-tax-history td {
	border: 1px solid #ddd;
	padding: 0.6rem 0.8rem;
	text-align: left;
	font-size: 0.9rem;
}

.pdm-tax-history th {
	background: #f0f4fa;
	font-weight: 600;
}

/* Schools */
.pdm-schools {
	display: grid;
	gap: 1rem;
	margin-bottom: 1rem;
}

.pdm-school {
	padding: 0.8rem 1rem;
	border: 1px solid #ddd;
	background: #fafafa;
	font-size: 0.9rem;
}

.pdm-school strong {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

/* Mortgage */
.pdm-mortgage-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pdm-mortgage-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.4rem 0;
	border-bottom: 1px solid #eee;
}

.pdm-mortgage-list em {
	color: #1FACE5;
	font-weight: 600;
}

/* Agent Info */
.pdm-agent-info {
	border: 1px solid #ddd;
	background: #f9f9f9;
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.pdm-agent-name {
	font-weight: 600;
	font-size: 1.1rem;
}

.pdm-broker-name {
	font-size: 0.95rem;
	color: #555;
}

/* Map */
.pdm-map-container iframe {
	border: 0;
	width: 100%;
	height: 300px;
}

/* Accordion container */
.pdm-accordion {
	border-top: 1px solid #ddd;
	margin-bottom: 10px;
}

/* Accordion header */
.pdm-accordion-header {
	background: #1E88E5;
	color: #fff;
	padding: 12px 15px;
	cursor: pointer;
	font-weight: 600;
	text-transform: uppercase;
	position: relative;
}

/* Add "+" / "-" indicator */
.pdm-accordion-header::after {
	content: '+';
	position: absolute;
	right: 15px;
	font-size: 18px;
	transition: transform 0.2s ease;
}

.pdm-accordion-header.active::after {
	content: '-';
}

/* Accordion content */
.pdm-accordion-content {
	display: none;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-top: none;
}

.pdm-accordion-content.open {
	display: block;
}



.pdm-cart,
.pdm-checkout {
	max-width: 700px;
	margin: 0 auto;
	font-family: Arial, sans-serif;
}

.pdm-cart-item,
.pdm-order-summary {
	border: 1px solid #ddd;
	padding: 15px;
	margin-bottom: 15px;
}

.pdm-checkout-button,
.subscribe-btn,
.pdm-checkout button {
	background: #1FACE5;
	color: #fff;
	padding: 12px 20px;
	border: none;
	text-decoration: none;
	cursor: pointer;
	display: inline-block;
}

.pdm-checkout-button:hover,
.subscribe-btn:hover {
	background: #034a9c;
}



/* ==========================================================================
   7. State Selector Page
   ========================================================================== */
.pdm-state-selector-container {
	max-width: 900px;
	margin: 2rem auto;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pdm-plan-summary {

	padding: 0 25px 25px 0;
	/* border-bottom: 1px solid #e2e8f0; */
}

.pdm-plan-summary h2 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 1.8rem;
}

.pdm-plan-summary p {
	margin-bottom: 0;
	font-size: 1.1rem;
	color: #4a5568;
}

.pdm-state-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1px;
	/* background-color: #e2e8f0; */
	/* Grid line color */
	/* border-bottom: 1px solid #e2e8f0; */
}

.pdm-state-label {
	display: flex;
	align-items: center;
	padding: 15px;
	background-color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
}

.pdm-state-label:hover {
	background-color: #f7f9fc;
}

.pdm-state-label input[type="checkbox"] {
	margin-right: 12px;
	transform: scale(1.2);
}

.pdm-selection-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	background-color: #f7f9fc;
	flex-wrap: wrap;
	gap: 15px;
}

.pdm-price-summary {
	font-size: 1.2rem;
	color: #2d3748;
}

#pdm-state-count {
	font-weight: bold;
}

.pdm-total-price {
	font-weight: bold;
	font-size: 1.5rem;
	color: #1E88E5;
	/* Brand color */
	margin-left: 10px;
}

.pdm-checkout-button {
	font-size: 1rem;
	padding: 12px 25px;
	text-align: center;
	font-weight: bold;
	background-color: #1E88E5;
	color: #fff !important;
	text-decoration: none;
	transition: background-color 0.2s;
}

.pdm-checkout-button:hover {
	background-color: #1FACE5;
}

.pdm-checkout-button.disabled {
	background-color: #a0aec0;
	cursor: not-allowed;
	pointer-events: none;
}


/* --- Styles for New State Selector --- */
.pdm-state-select-wrapper {
	padding: 25px;
}

/* Style Select2 to match our theme */
.select2-container--default .select2-selection--multiple {
	border: 1px solid #cbd5e0;
	padding: 5px;
}

.select2-container--default .select2-search--inline .select2-search__field {
	font-size: 1rem;
	margin-top: 8px;
	padding: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: #1E88E5;
	border-color: #1FACE5;
	color: #fff;
	padding: 5px 10px;
	font-size: 0.9rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: #fff;
	margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: #e2e8f0;
}


/* ==========================================================================
   8. Agent Archive Page
   ========================================================================== */

.pdm-agents-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

a.pdm-agent-card-link,
a.pdm-agent-card-link:hover {
	text-decoration: none;
	color: inherit;
}

.pdm-agent-card {
	background-color: #fff;
	border: 1px solid #e2e8f0;
	text-align: center;
	padding: 30px 20px;
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;

	display: flex;
	flex-direction: column;
	height: 100%;
	/* border-radius: 20px; */
	text-decoration: none;
}

.pdm-agent-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.pdm-agent-card-photo-wrapper {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 20px;
	background-color: #f0f4f8;
	border: 4px solid #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.pdm-agent-card-photo-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pdm-agent-card-no-photo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: bold;
	color: #1E88E5;
	/* Brand Color */
	background-color: #e2e8f0;
}

.pdm-agent-card-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.pdm-agents-list a {
	text-decoration: none !important;
}

.pdm-agent-card-name {
	margin: 0 0 5px !important;
	font-size: 1.3rem !important;
	font-weight: 600 !important;
	color: #2d3748;
}

.pdm-agent-card-broker {
	margin-bottom: 0 !important;
	font-size: 0.95rem;
	color: #718096;
	flex-grow: 1;
}

.pdm-agent-card-location {
	font-size: 0.9rem;
	color: #4a5568;
	border-top: 1px solid #edf2f7;
	padding-top: 15px;
	margin-top: 15px;
}

/* ==========================================================================
   9. Agent Filter Form Layout
   ========================================================================== */

.pdm-agent-filter-form .form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	align-items: end;
	/* Aligns items to the bottom */
}

/* On larger screens, force 3 columns */
@media (min-width: 960px) {
	.pdm-agent-filter-form .form-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.pdm-agent-filter-form .form-actions {
	display: flex;
	gap: 15px;
	justify-content: flex-start;
	/* Aligns buttons to the left */
	flex-direction: row;
	margin-top: -10px;
}

/* ==========================================================================
   10. Modern State Selector
   ========================================================================== */

.pdm-selector-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	max-width: 1100px;
	margin: 2rem auto;
}

.pdm-selector-main {
	flex: 1;
	min-width: 60%;
}

.pdm-selector-sidebar {
	flex-basis: 320px;
	position: relative;
}

.pdm-summary-box {
	position: sticky;
	top: 50px;
	/* Adjust this value based on your theme's sticky header height */
	background: #fff;
	border: 1px solid #e2e8f0;
	/* border-radius: 8px; */
	padding: 25px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pdm-summary-box h4 {
	margin-top: 0;
	font-size: 1.3rem;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

#pdm-selected-list-container {
	max-height: 200px;
	overflow-y: auto;
	margin-bottom: 20px;
	border: 1px solid #e2e8f0;
	padding: 15px;
	background-color: #f7f9fc;
}

#pdm-selected-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#pdm-selected-list li {
	padding: 4px 0;
	font-size: 0.95rem;
}

.pdm-no-states {
	color: #718096;
	font-style: italic;
	margin: 0;
}

.pdm-price-summary {
	border-top: 1px solid #e2e8f0;
	padding-top: 20px;
	margin-bottom: 20px;
}

.pdm-price-summary .pdm-price-line {
	display: flex;
	justify-content: space-between;
	font-size: 1.1rem;
	margin-bottom: 10px;
}

.pdm-price-summary .pdm-price-line.total {
	font-size: 1.4rem;
	font-weight: bold;
}

.pdm-price-summary .pdm-price-line.total strong {
	color: #1E88E5;
}

.pdm-state-filter input {
	width: 100%;
	padding: 12px;
	font-size: 1rem;
	border: 1px solid #cbd5e0;
	margin-bottom: 20px;
	border-radius: 0 !important;
}

.pdm-state-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.pdm-state-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	line-height: 1;
	/* border-radius: 5px; */
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.pdm-state-item:hover {
	border-color: #1E88E5;
	transform: translateY(-2px);
}

.pdm-state-item.selected {
	background-color: #e9f2ff;
	border-color: #1E88E5;
	font-weight: bold;
	color: #1E88E5;
}

.pdm-state-checkbox {
	width: 20px;
	height: 20px;
	border: 2px solid #cbd5e0;
	border-radius: 50%;
	transition: all 0.2s;
	flex-shrink: 0;
	margin-left: 10px;
}

.pdm-state-item.selected .pdm-state-checkbox {
	background-color: #1E88E5;
	border-color: #1E88E5;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"%3E%3Cpath d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/%3E%3C/svg%3E');
}

@media (max-width: 768px) {
	.pdm-selector-sidebar {
		flex-basis: 100%;
		order: -1;
		/* Move sidebar to the top on mobile */
	}

	.pdm-summary-box {
		position: static;
	}
}

/* ==========================================================================
   Dashboard Widgets
   ========================================================================== */
.pdm-dashboard-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.pdm-widget {
	background: #fff;
	border: 1px solid #e2e8f0;
	padding: 20px;
}

.pdm-widget h3 {
	margin-top: 0;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 15px;
}

.pdm-chart-container {
	position: relative;
	height: 300px;
}

/* ==========================================================================
   11. Modern "My Account" Page Dashboard
   ========================================================================== */

/* General Layout */
.pdm-myaccount-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-bottom: 40px;
}

/* @media (min-width: 768px) {
    .pdm-myaccount-grid {
        grid-template-columns: 1fr 1fr;
    }
} */

.pdm-myaccount-widget {
	background-color: #fff;
	border: 1px solid #e2e8f0;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.pdm-myaccount-widget h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.2rem;
	padding-bottom: 15px;
	border-bottom: 1px solid #e2e8f0;
}

.pdm-widget-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* API Key Widget */
.pdm-api-key-display {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pdm-api-key-display code {
	background: #f7f9fc;
	padding: 10px;
	border: 1px solid #e2e8f0;
	flex-grow: 1;
	overflow-wrap: break-word;
	font-family: monospace;
}

.pdm-key-note {
	margin-top: auto;
	/* Pushes to the bottom */
	padding-top: 15px;
	color: #718096;
	font-size: 0.9em;
}

/* Usage Widget */
.pdm-usage-filters {
	display: flex;
	gap: 10px;
}

.pdm-usage-filters select {
	max-width: 150px;
}

.pdm-chart-container-account {
	position: relative;
	height: 250px;
	margin-top: 20px;
}

/* ==========================================================================
   12. Modern WooCommerce "My Account" Page Styles (v2)
   ========================================================================== */

/* Define CSS variables for easy themeing */
:root {
	--pdm-primary-color: #1E88E5;
	--pdm-dark-blue: #1565C0;
	--pdm-light-gray-bg: #f8f9fa;
	--pdm-border-color: #dee2e6;
	--pdm-text-dark: #212529;
	--pdm-text-light: #6c757d;
}

/* Main Layout Container */
.woocommerce-account .woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sidebar Navigation Menu */
.woocommerce-account .woocommerce-MyAccount-navigation {
	flex: 1;
	min-width: 240px;
	background-color: #fff;
	border: 1px solid var(--pdm-border-color);
	padding: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 14px 18px;
	text-decoration: none;
	color: var(--pdm-text-light);
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: all 0.2s ease-in-out;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background-color: var(--pdm-light-gray-bg);
	color: var(--pdm-text-dark);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active>a {
	background-color: var(--pdm-light-gray-bg);
	color: var(--pdm-primary-color);
	font-weight: 700;
	border-left-color: var(--pdm-primary-color);
}

/* Main Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
	flex: 3;
	min-width: 65%;
	background-color: #fff;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin-top: 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--pdm-text-dark);
	border-bottom: 1px solid var(--pdm-border-color);
	padding-bottom: 15px;
	margin-bottom: 25px;
}

.woocommerce-account .woocommerce-MyAccount-content p {
	line-height: 1.7;
	color: var(--pdm-text-dark);
	margin-bottom: 25px;
}

.woocommerce-account .woocommerce-MyAccount-content p a {
	color: var(--pdm-primary-color);
	text-decoration: none;
	font-weight: 600;
}

/* Table Styles */
.woocommerce-account table.woocommerce-table {
	border: 1px solid var(--pdm-border-color);
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}

.woocommerce-account table.woocommerce-table th,
.woocommerce-account table.woocommerce-table td {
	padding: 15px;
	text-align: left;
	border-bottom: 1px solid var(--pdm-border-color);
}

.woocommerce-account table.woocommerce-table th {
	background-color: var(--pdm-light-gray-bg);
	font-weight: 600;
	color: var(--pdm-text-dark);
}

.woocommerce-account table.woocommerce-table tr:last-child td {
	border-bottom: none;
}

.woocommerce-account table.woocommerce-table .button {
	white-space: nowrap;
}

/* General Button Styles */
.woocommerce-account .button,
.woocommerce-account .button:hover {
	background: var(--pdm-primary-color) !important;
	color: #fff !important;
	border-radius: 0 !important;
	padding: 10px 20px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	font-size: 0.9rem !important;
	letter-spacing: 0.5px;
	transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out !important;
	border: none !important;
}

.woocommerce-account .button:hover {
	background: var(--pdm-dark-blue) !important;
	transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.woocommerce-account .woocommerce {
		flex-direction: column;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		min-width: 100%;
	}
}

/* ==========================================================================
   13. Modern "My Account" Subscriptions Table
   ========================================================================== */

/* Remove default borders and add our own modern structure */
.woocommerce-account .my_account_subscriptions {
	border: 1px solid var(--pdm-border-color);
	border-radius: 0;
	/* No rounded corners */
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

/* Style the table header */
.woocommerce-account .my_account_subscriptions thead th {
	background-color: var(--pdm-light-gray-bg);
	border-bottom: 2px solid var(--pdm-border-color);
	padding: 15px 20px;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--pdm-text-light);
	text-align: left;
}

/* Style the table rows */
.woocommerce-account .my_account_subscriptions tbody tr {
	transition: background-color 0.2s ease-in-out;
}

.woocommerce-account .my_account_subscriptions tbody tr:hover {
	background-color: #fcfdff;
}

.woocommerce-account .my_account_subscriptions tbody td {
	padding: 20px;
	border-bottom: 1px solid var(--pdm-border-color);
	vertical-align: middle;
	color: var(--pdm-text-dark);
}

.woocommerce-account .my_account_subscriptions tbody tr:last-child td {
	border-bottom: none;
}

/* Style specific columns */
.woocommerce-account .my_account_subscriptions .subscription-id a {
	font-weight: 700;
	color: var(--pdm-primary-color);
	text-decoration: none;
}

.woocommerce-account .my_account_subscriptions .subscription-next-payment small {
	display: block;
	font-size: 0.85rem;
	color: var(--pdm-text-light);
	margin-top: 4px;
}

.woocommerce-account .my_account_subscriptions .subscription-total .amount {
	font-weight: 600;
	font-size: 1rem;
}

/* Modern "Status" Pill */
.woocommerce-account .my_account_subscriptions .subscription-status {
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
}

/* Style for the 'Active' status (you can add more for other statuses like on-hold, etc.) */
.woocommerce-orders-table__row--status-active .subscription-status {
	color: #28a745;
	/* Green for active */
}

/* Modernize the "View" button */
.woocommerce-account .my_account_subscriptions .subscription-actions .button.view {
	background-color: var(--pdm-text-dark) !important;
	font-size: 0.85rem !important;
	padding: 8px 15px !important;
	text-transform: none;
	letter-spacing: 0;
}

.woocommerce-account .my_account_subscriptions .subscription-actions .button.view:hover {
	background-color: #000 !important;
	transform: translateY(0);
	/* Disable the hover effect for this smaller button */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
	.woocommerce-account .my_account_subscriptions thead {
		display: none;
	}

	.woocommerce-account .my_account_subscriptions tbody tr {
		display: block;
		margin-bottom: 20px;
		border: 1px solid var(--pdm-border-color);
	}

	.woocommerce-account .my_account_subscriptions tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		text-align: right !important;
		border-bottom: 1px solid #f0f2f5;
	}

	.woocommerce-account .my_account_subscriptions tbody td::before {
		content: attr(data-title);
		font-weight: 600;
		margin-right: auto;
		text-align: left;
		color: var(--pdm-text-dark);
	}

	.woocommerce-account .my_account_subscriptions tbody td:last-child {
		border-bottom: none;
	}

	.woocommerce-account .my_account_subscriptions .subscription-actions {
		justify-content: flex-end;
	}
}

.woocommerce table.shop_table {
	border-radius: 0 !important;
}

/* ==========================================================================
   14. Modern "My Account" Form Styles (Edit Account, Addresses)
   ========================================================================== */

/* Form container adjustments */
.woocommerce-account .woocommerce-MyAccount-content form {
	margin-top: 25px;
}

/* Style for individual form rows */
.woocommerce-account .form-row {
	padding: 0;
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
}

/* Style for form labels */
.woocommerce-account .form-row label {
	font-weight: 600;
	color: var(--pdm-text-dark);
	margin-bottom: 8px;
	font-size: 0.95rem;
}

/* Style for input fields and textareas */
.woocommerce-account .form-row input.input-text,
.woocommerce-account .form-row textarea {
	background-color: #fff;
	border: 1px solid var(--pdm-border-color);
	padding: 12px 15px;
	width: 100%;
	box-shadow: none;
	font-size: 1rem;
	color: var(--pdm-text-dark);
	transition: border-color 0.2s ease-in-out;
	border-radius: 0;
	/* No rounded corners */
}

.woocommerce-account .form-row input.input-text:focus,
.woocommerce-account .form-row textarea:focus {
	border-color: var(--pdm-primary-color);
	box-shadow: 0 0 0 1px var(--pdm-primary-color);
	outline: none;
}

/* Specific adjustments for password fields */
.woocommerce-account .woocommerce-form-edit-account .password-input {
	position: relative;
}

.woocommerce-account .show-password-input {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

/* Style for fieldset legends (like in the password change section) */
.woocommerce-account fieldset {
	border: none;
	padding: 0;
	margin: 0 0 30px;
}

.woocommerce-account legend {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--pdm-text-dark);
	margin-bottom: 15px;
	width: 100%;
}

/* Address section layout */
.woocommerce-MyAccount-content .woocommerce-Address {
	margin-bottom: 30px;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	font-size: 1.2rem;
	border: none;
	padding: 0;
	margin-bottom: 10px;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	font-size: 0.9rem;
	font-weight: 400;
}

.woocommerce-MyAccount-content address {
	border: 1px solid var(--pdm-border-color);
	padding: 20px;
	font-style: normal;
	line-height: 1.7;
}



/* ==========================================================================
   18. Custom Hero Search Suggestions
   ========================================================================== */

.pdm-hero-input-group {
	position: relative;
	/* Required for suggestion positioning */
}

.pdm-suggestions-container {
	display: none;
	position: absolute;
	top: 110%;
	left: 0;
	right: 0;
	background-color: #fff;
	border: 1px solid var(--pdm-border-color);
	border-top: none;
	z-index: 1000;
	max-height: 240px;
	overflow-y: auto;
	border-radius: 16px;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 6px 20px;
	padding: 16px;
}

/* --- Custom Rounded Grey Scrollbar --- */
.pdm-suggestions-container {
	scrollbar-width: thin !important;
	/* Firefox */
	scrollbar-color: #c1c1c1 #f1f1f1 !important;
	/* thumb | track for Firefox */
}

/* Chrome, Edge, Safari */
.pdm-suggestions-container::-webkit-scrollbar {
	width: 8px !important;
	height: 8px !important;
}

.pdm-suggestions-container::-webkit-scrollbar-track {
	background: #f1f1f1 !important;
	border-radius: 10px !important;
}

.pdm-suggestions-container::-webkit-scrollbar-thumb {
	background-color: #c1c1c1 !important;
	/* Neutral grey thumb */
	border-radius: 10px !important;
	border: 2px solid #f1f1f1 !important;
	/* Padding effect */
}

.pdm-suggestions-container::-webkit-scrollbar-thumb:hover {
	background-color: #a0a0a0 !important;
	/* Slightly darker on hover */
}

/* Remove the scrollbar arrows (up/down buttons) */
.pdm-suggestions-container::-webkit-scrollbar-button {
	display: none !important;
	height: 0 !important;
	width: 0 !important;
}







.pdm-suggestion-item {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: 16px;
	font-size: 1rem;
	color: #363636;
	cursor: pointer;
	/* border-bottom: 1px solid #eee; */
}

.pdm-suggestion-item:hover {
	background-color: rgb(233, 231, 228);
}

.pdm-suggestion-icon {
	margin-right: 8px;
	color: #666;
	font-size: 14px;
}

.pdm-suggestion-text strong {
	font-weight: bold;
	color: #000;
}

.pdm-suggestion-icon {
	margin-right: 8px;
	color: #666;
	font-size: 14px;
	font-weight: 700;
}

/* --- Loading Indicator Spinner --- */


@keyframes pdm-spin {
	0% {
		transform: translateY(-50%) rotate(0deg);
	}

	100% {
		transform: translateY(-50%) rotate(360deg);
	}
}

/* --- Active Suggestion for Keyboard Navigation --- */
.pdm-suggestion-item.suggestion-active {
	background-color: #f0f5fa;
	cursor: pointer;
}



/* --- Custom Cart Layout --- */

/* SaaS Cart Layout */
.pdm-saas-cart {
	max-width: 700px;
	margin: 0 auto;
	padding: 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	font-family: 'Inter', sans-serif;
}

.pdm-cart-title {
	font-size: 28px;
	font-weight: 700;
	color: #1E88E5;
	margin-bottom: 20px;
	text-align: center;
}

.pdm-cart-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.woocommerce-cart-form {
	border: none !important;
}

.woocommerce-cart-form table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-cart-form table.shop_table th,
.woocommerce-cart-form table.shop_table td {
	padding: 15px;
	border-bottom: 1px solid #eee;
}

.woocommerce-cart-form table.shop_table th {
	text-align: left;
	font-weight: 600;
	color: #444;
}

.pdm-cart-summary {
	padding: 20px;
	background: #f9fbff;
	border-radius: 10px;
	border: 1px solid #e0ebff;
}

.pdm-cart-summary h2 {
	font-size: 20px;
	color: #1E88E5;
	margin-bottom: 15px;
}

.pdm-checkout-btn {
	display: block;
	width: 100%;
	padding: 15px;
	background: #1E88E5;
	color: #fff !important;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	border-radius: 8px;
	transition: background 0.2s ease-in-out;
}

.pdm-checkout-btn:hover {
	background: #045bc3;
}

body.cart .debug-test {
	background: yellow !important;
}


/* ==========================================================================
   20. Properties Carousel
   ========================================================================== */

.pdm-carousel-container {
	padding: 40px 0;
}

.pdm-property-card-link {
	width: 100%;
}

.pdm-properties-carousel {
	width: 100%;
	padding: 20px 10px 60px 10px !important;
	/* Add padding for shadows and pagination */
}

.pdm-properties-carousel .swiper-slide {
	height: auto;
	/* Allow slides to grow based on content */
	display: flex;
}

.pdm-properties-carousel .pdm-property-card {
	width: 100%;
	/* Ensure card fills the slide */
}

/* Style for the pagination bullets */
.pdm-properties-carousel .swiper-pagination-bullet {
	background-color: var(--pdm-text-light);
	opacity: 0.5;
	transition: all 0.2s;
	width: 14px;
	height: 14px;
}

.pdm-properties-carousel .swiper-pagination-bullet-active {
	background-color: var(--pdm-primary-color);
	opacity: 1;
	transform: scale(1.3);
}




/* Carousel Loading State */
#pdm-carousel-placeholder.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	/* Give it some height while loading */

}

/* ==========================================================================
   21. Skeleton Loading Animation
   ========================================================================== */

.pdm-property-card.is-loading .pdm-skeleton {
	background-color: #e2e8f0;
	position: relative;
	overflow: hidden;
}

/* Shimmer/Pulse Animation */
.pdm-property-card.is-loading .pdm-skeleton::after {
	content: '';
	position: absolute;
	top: 0;
	left: -150%;
	width: 150%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	animation: pdm-shimmer 1.5s infinite;
}

@keyframes pdm-shimmer {
	0% {
		left: -150%;
	}

	100% {
		left: 150%;
	}
}

/* Placeholder Element Styles */
.pdm-skeleton-image {
	height: 230px;
}

.pdm-skeleton-price {
	width: 40%;
	height: 2.2rem;
	margin-bottom: 10px;
}

.pdm-skeleton-address {
	width: 80%;
	height: 1.2rem;
	margin-bottom: 12px;
}

.pdm-skeleton-location {
	width: 50%;
	height: 1rem;
	margin-bottom: 20px;
}

.pdm-card-details .pdm-skeleton-detail {
	height: 1rem;
	flex-grow: 1;
}

/* Agent Card Skeleton Styles */
.pdm-agent-card.is-loading .pdm-skeleton {
	background-color: #e2e8f0;
	position: relative;
	overflow: hidden;
}

.pdm-agent-card.is-loading .pdm-skeleton::after {
	content: '';
	position: absolute;
	top: 0;
	left: -150%;
	width: 150%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	animation: pdm-shimmer 1.5s infinite;
}

.pdm-skeleton-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
}

.pdm-skeleton-name {
	width: 70%;
	height: 1.3rem;
	margin: 0 auto 10px;
}

.pdm-skeleton-broker {
	width: 90%;
	height: 1rem;
	margin: 0 auto 15px;
}

.pdm-skeleton-location-agent {
	width: 50%;
	height: 0.9rem;
	margin: 0 auto;
}

.pdm-carousel-container .pdm-properties-list {
	width: 100%;
}






/* 🔹 General Table Styling */
.pdm-usage-table,
.pdm-logs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 14px;
	background: #fff;
	/* border-radius: 6px; */
	overflow: hidden;
	/* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
}

.pdm-usage-table thead,
.pdm-logs-table thead {
	background: #f9fafb;
	border-bottom: 2px solid #e5e7eb;
}

.pdm-usage-table th,
.pdm-usage-table td,
.pdm-logs-table th,
.pdm-logs-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.pdm-usage-table th,
.pdm-logs-table th {
	font-weight: 600;
	color: #374151;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pdm-usage-table td,
.pdm-logs-table td {
	color: #4b5563;
	vertical-align: middle;
}

/* 🔹 Row Hover Effect */
.pdm-usage-table tbody tr:hover,
.pdm-logs-table tbody tr:hover {
	background: #f3f4f6;
}

/* 🔹 Status Colors */
.pdm-logs-table td[style*="green"] {
	font-weight: 600;
	color: #16a34a !important;
	/* Success */
}

.pdm-logs-table td[style*="orange"] {
	font-weight: 600;
	color: #d97706 !important;
	/* Client Error */
}

.pdm-logs-table td[style*="red"] {
	font-weight: 600;
	color: #dc2626 !important;
	/* Server Error */
}

/* 🔹 Code Styling for Endpoints */
.pdm-logs-table code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 4px;
	font-family: monospace;
	font-size: 13px;
	color: #111827;
}

/* 🔹 Responsive */
@media (max-width: 768px) {

	.pdm-usage-table,
	.pdm-logs-table {
		font-size: 13px;
	}

	.pdm-usage-table th,
	.pdm-usage-table td,
	.pdm-logs-table th,
	.pdm-logs-table td {
		padding: 8px 10px;
	}
}


/* Disabled state styling */
.pdm-state-item.disabled {
	opacity: 0.5;
	pointer-events: none;
	background: #f5f5f5;
	border: 1px dashed #ccc;
}

.pdm-state-item.disabled .pdm-state-checkbox {
	background: #ccc !important;
}


/* Action Button Styles */

.pdm-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 15px;
}

.pdm-actions .button {
	flex: 1;
	text-align: center;
}

.pdm-actions .button {
	background-color: var(--pdm-primary-color) !important;
	color: #fff !important;
	border-radius: 0 !important;
	padding: 10px 20px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	font-size: 0.9rem !important;
	letter-spacing: 0.5px;
	transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out !important;
	border: none !important;
}

.pdm-actions .button:hover {
	background-color: var(--pdm-dark-blue) !important;
	transform: translateY(-2px);
}

.pdm-actions .button:disabled,
.pdm-actions .button.disabled {
	background-color: #a0aec0 !important;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
}


/*
 * Property Data Manager - Single Agent Profile Styles
 *
 * This stylesheet provides modern, responsive styling for the single agent profile template.
 * Inspired by leading real estate platforms like Zillow and Realtor.com.
 */
/* ==========================================================================
   Base & Typography
   ========================================================================== */
:root {
	--pdm-primary-color: #1E88E5 !important;
	--pdm-secondary-color: #000000 !important;
	--pdm-accent-color: #1E88E5 !important;
	--pdm-text-color: #333 !important;
	--pdm-text-light: #555 !important;
	--pdm-border-color: #e0e0e0 !important;
	--pdm-background-light: #f7f9fa !important;
	--pdm-background-white: #fff !important;
	--pdm-font-family: inherit, sans-serif !important;
	/* --pdm-border-radius: 8px !important; */
	--pdm-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
	--pdm-transition: all 0.3s ease-in-out !important;
}

/* Import Google Font */
.pdm-single-agent-profile-wrapper {
	font-family: var(--pdm-font-family) !important;
	color: var(--pdm-text-color) !important;
	line-height: 1.6 !important;
}

.pdm-single-agent-profile {

	margin: 0 auto !important;

}

.pdm-single-agent-profile h1,
.pdm-single-agent-profile h2,
.pdm-single-agent-profile h3 {
	font-weight: 600 !important;
	color: var(--pdm-secondary-color) !important;
	margin-top: 0 !important;
}

.pdm-single-agent-profile p {
	margin-top: 0 !important;
	margin-bottom: 1em !important;
	color: var(--pdm-text-light) !important;
}

.pdm-single-agent-profile a {
	color: var(--pdm-primary-color) !important;
	text-decoration: none !important;
	transition: var(--pdm-transition) !important;
}

.pdm-single-agent-profile a:hover {
	color: var(--pdm-secondary-color) !important;
	text-decoration: underline !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.pdm-single-agent-profile .pdm-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 12px 24px !important;
	border-radius: var(--pdm-border-radius) !important;
	border: 1px solid transparent !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	cursor: pointer !important;
	transition: var(--pdm-transition) !important;
	text-decoration: none !important;
}

.pdm-single-agent-profile .pdm-btn-primary {
	background-color: var(--pdm-primary-color) !important;
	color: #fff !important;
	border-color: var(--pdm-primary-color) !important;
}

.pdm-single-agent-profile .pdm-btn-primary:hover {
	background-color: #000000 !important;
	border-color: #000000 !important;
	color: #fff !important;
	transform: translatey(-2px) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.pdm-single-agent-profile .pdm-btn-secondary {
	background-color: transparent !important;
	color: var(--pdm-primary-color) !important;
	border: 1px solid var(--pdm-primary-color) !important;
}

.pdm-single-agent-profile .pdm-btn-secondary:hover {
	background-color: var(--pdm-primary-color) !important;
	color: #fff !important;
}

.pdm-single-agent-profile .pdm-btn-tertiary {
	background-color: transparent !important;
	color: var(--pdm-text-light) !important;
	border-color: var(--pdm-border-color) !important;
	font-weight: 500 !important;
}

.pdm-single-agent-profile .pdm-btn-tertiary:hover {
	background-color: #e9edf0 !important;
	border-color: #ccc !important;
}

.pdm-single-agent-profile .pdm-btn-full {
	width: 100% !important;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.pdm-agent-header {
	display: grid !important;
	grid-template-columns: auto 1fr auto !important;
	gap: 24px !important;
	align-items: center !important;
	background-color: var(--pdm-background-white) !important;
	padding: 24px !important;
	border-radius: var(--pdm-border-radius) !important;
	box-shadow: var(--pdm-box-shadow) !important;
	margin-bottom: 32px !important;
}

.pdm-agent-photo {
	width: 120px !important;
	height: 120px !important;
}

.pdm-agent-photo img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 50% !important;
	border: 4px solid var(--pdm-background-white) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.pdm-agent-no-photo {
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	background-color: var(--pdm-primary-color) !important;
	color: #fff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 48px !important;
	font-weight: 600 !important;
}

.pdm-agent-name {
	font-size: 2.2rem !important;
	margin-bottom: 4px !important;
}

.pdm-agent-broker {
	font-size: 1.1rem !important;
	color: var(--pdm-text-light) !important;
	margin-bottom: 12px !important;
}

.pdm-header-badges {
	display: flex !important;
	gap: 8px !important;
	margin-bottom: 12px !important;
}

.pdm-badge {
	display: inline-block !important;
	padding: 4px 10px !important;
	border-radius: 16px !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.pdm-realtor-badge {
	background-color: #e9f3ff !important;
	color: #005cc8 !important;
	border: 1px solid #b7d5f9 !important;
}

.pdm-experience-badge {
	background-color: #f0f0f0 !important;
	color: var(--pdm-text-light) !important;
}

.pdm-agent-rating {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 1rem !important;
}

.pdm-stars .pdm-star-icon {
	color: #f7a828 !important;
	font-style: normal !important;
}

.pdm-rating-text {
	font-weight: 600 !important;
}

.pdm-reviews-count {
	color: var(--pdm-text-light) !important;
}

.pdm-agent-header-actions {
	display: flex !important;
	gap: 12px !important;
}

/* ==========================================================================
   Main Layout (Grid)
   ========================================================================== */
.pdm-agent-body {
	display: grid !important;
	grid-template-columns: 2fr 1fr !important;
	gap: 32px !important;
	align-items: flex-start !important;
}

.pdm-agent-main-content {
	display: flex !important;
	flex-direction: column !important;
	gap: 32px !important;
	max-width: 100% !important;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.pdm-card {
	background-color: var(--pdm-background-white) !important;
	border-radius: var(--pdm-border-radius) !important;
	box-shadow: var(--pdm-box-shadow) !important;
	overflow: hidden !important;
}

.pdm-card-header {
	font-size: 1.5rem !important;
	padding: 20px 24px !important;
	border-bottom: 1px solid var(--pdm-border-color) !important;
	margin-bottom: 0 !important;
}

.pdm-card-body {
	padding: 24px !important;
}

.pdm-card-body>*:last-child {
	margin-bottom: 0 !important;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.pdm-agent-bio {
	font-size: 1.1rem !important;
}

.pdm-about-video {
	margin-top: 24px !important;
}

.pdm-video-responsive {
	position: relative !important;
	overflow: hidden !important;
	padding-top: 56.25% !important;
	/* 16:9 aspect ratio */
}

.pdm-video-responsive iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	border-radius: var(--pdm-border-radius) !important;
}

.pdm-agent-credentials {
	margin-top: 24px !important;
	border-top: 1px solid var(--pdm-border-color) !important;
	padding-top: 16px !important;
	font-size: 0.9rem !important;
}

.pdm-credential-label {
	font-weight: 600 !important;
}

/* ==========================================================================
   Expertise & Pills
   ========================================================================== */
.pdm-expertise-group {
	margin-bottom: 24px !important;
}

.pdm-expertise-group:last-child {
	margin-bottom: 0 !important;
}

.pdm-expertise-title {
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	margin-bottom: 12px !important;
	color: var(--pdm-text-color) !important;
}

.pdm-pills-container {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
}

.pdm-pill {
	padding: 6px 14px !important;
	background-color: #eef1f3 !important;
	color: var(--pdm-text-light) !important;
	border-radius: 20px !important;
	font-size: 0.9rem !important;
	font-weight: 500 !important;
}

.pdm-show-more {
	margin-top: 16px !important;
	padding: 0 !important;
	border: none !important;
}

.pdm-show-more:hover {
	text-decoration: underline !important;
	cursor: pointer !important;
	background-color: transparent !important;
}

.pdm-hidden {
	display: none !important;
}

/* ==========================================================================
   Listing Stats Section
   ========================================================================== */
.pdm-listing-stats-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
	gap: 24px !important;
	margin-bottom: 32px !important;
}

.pdm-listing-stat-item {
	display: flex !important;
	align-items: center !important;
	gap: 16px !important;
	background-color: var(--pdm-background-light) !important;
	padding: 20px !important;
	border-radius: var(--pdm-border-radius) !important;
}

.pdm-stat-icon {
	font-size: 2rem !important;
	color: var(--pdm-primary-color) !important;
}

.pdm-stat-info {
	display: flex !important;
	flex-direction: column !important;
}

.pdm-stat-value {
	font-size: 2rem !important;
	font-weight: 700 !important;
	color: var(--pdm-secondary-color) !important;
	line-height: 1.1 !important;
}

.pdm-stat-label {
	font-size: 1rem !important;
	font-weight: 500 !important;
	color: var(--pdm-text-light) !important;
}

.pdm-stat-meta {
	font-size: 0.85rem !important;
	color: #888 !important;
}

.pdm-subsection-title {
	font-size: 1.25rem !important;
	margin-top: 16px !important;
	margin-bottom: 16px !important;
	border-top: 1px solid var(--pdm-border-color) !important;
	padding-top: 24px !important;
}

.pdm-listings-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
	gap: 16px !important;
}

.pdm-listing-card {
	border: 1px solid var(--pdm-border-color) !important;
	border-radius: var(--pdm-border-radius) !important;
	overflow: hidden !important;
	transition: var(--pdm-transition) !important;
}

.pdm-listing-card:hover {
	transform: translatey(-4px) !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

.pdm-listing-photo img {
	width: 100% !important;
	height: 150px !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 0 !important;
}

.pdm-listing-info {
	padding: 16px !important;
}

.pdm-listing-price {
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: var(--pdm-secondary-color) !important
}

.pdm-listing-address {
	color: var(--pdm-text-light) !important;
	margin-bottom: 8px !important;
}

.pdm-listing-details {
	display: flex !important;
	gap: 16px !important;
	font-size: 0.9rem !important;
	color: #666 !important;
}

/* ==========================================================================
   Q&A Accordion
   ========================================================================== */
/* Accordion Styles */
.pdm-accordion-agent {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5rem !important;
}

.pdm-accordion-item-agent {
	border: 1px solid var(--border-color) !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	transition: var(--transition) !important;
}

.pdm-accordion-item-agent:hover {
	box-shadow: var(--shadow) !important;
}

.pdm-accordion-header-agent {
	width: 100% !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 1rem 1.5rem !important;
	background: var(--card-background) !important;
	border: none !important;
	cursor: pointer !important;
	font-weight: 600 !important;
	font-size: 1.125rem !important;
	color: var(--text-color) !important;
	transition: var(--transition) !important;
	border-radius: 0 !important;
}

.pdm-accordion-header-agent:hover {
	border-radius: 0 !important;
	background: #f3f4f6 !important;
}

.pdm-accordion-icon {
	transition: transform 0.3s ease !important;
	font-size: 1rem !important;
	color: var(--primary-color) !important;
}

.pdm-accordion-item-agent.active .pdm-accordion-icon {
	transform: rotate(180deg) !important;
}

.pdm-accordion-content-agent {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
	padding: 0 1.5rem;
	/* keep side padding */
	padding-top: 0;
	padding-bottom: 0;
	background: #f9fafb;
	border-radius: 0 !important;
}

.pdm-accordion-item-agent.active .pdm-accordion-content-agent {
	border-radius: 0 !important;
	padding: 1rem 1.5rem;
}


.pdm-accordion-content-agent p {
	border-radius: 0 !important;
	margin: 0 !important;
	line-height: 1.6 !important;
	color: #4b5563 !important;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.pdm-agent-sidebar {
	position: sticky !important;
	top: 24px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 24px !important;
}

.pdm-sidebar-card {
	background-color: var(--pdm-background-white) !important;
	border-radius: var(--pdm-border-radius) !important;
	box-shadow: var(--pdm-box-shadow) !important;
	padding: 24px !important;
}

.pdm-sidebar-header {
	font-size: 1.25rem !important;
	margin-bottom: 16px !important;
}

/* Sidebar Contact Form */
.pdm-contact-form .pdm-form-group {
	margin-bottom: 16px !important;
}

.pdm-contact-form label {
	display: block !important;
	font-weight: 500 !important;
	font-size: 0.9rem !important;
	margin-bottom: 4px !important;
	color: var(--pdm-text-light) !important;
}

.pdm-contact-form input,
.pdm-contact-form textarea {
	width: 100% !important;
	padding: 12px !important;
	border: 1px solid var(--pdm-border-color) !important;
	border-radius: var(--pdm-border-radius) !important;
	font-family: var(--pdm-font-family) !important;
	font-size: 1rem !important;
	transition: border-color 0.2s !important;
}

.pdm-contact-form input:focus,
.pdm-contact-form textarea:focus {
	outline: none !important;
	border-color: var(--pdm-primary-color) !important;
	box-shadow: 0 0 0 2px rgba(0, 120, 130, 0.2) !important;
}

.pdm-form-footer {
	font-size: 0.8rem !important;
	color: #999 !important;
	text-align: center !important;
	margin-top: 16px !important;
}

/* Sidebar Contact Info */
.pdm-contact-info-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
}

.pdm-contact-info-item {
	display: flex !important;
	gap: 12px !important;
	align-items: flex-start !important;
}

.pdm-contact-info-item i {
	color: var(--pdm-primary-color) !important;
	margin-top: 4px !important;
}

.pdm-contact-info-item strong {
	display: block !important;
	color: var(--pdm-text-color) !important;
	font-weight: 600 !important;
}

.pdm-contact-info-item a {
	word-break: break-all !important;
}

/* Sidebar Social Media */
.pdm-social-links {
	display: flex !important;
	gap: 12px !important;
	flex-wrap: wrap !important;
}

.pdm-social-icon {
	width: 40px !important;
	height: 40px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background-color: #f0f0f0 !important;
	color: #555 !important;
	font-size: 1.1rem !important;
}

.pdm-social-icon:hover {
	background-color: var(--pdm-primary-color) !important;
	color: #fff !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
/* ==========================================================================
   Responsive Design
   ========================================================================== */

/*
 * Tablet and Smaller Desktop Styles (Max 1024px)
 * This handles the transition from two-column to single-column layout.
 */
@media (max-width: 1024px) {
    /* Main Layout: Stack main content and sidebar vertically */
    .pdm-accordion-agent{
		gap: 0!important;
	}
	
	.pdm-agent-body {
		
       display: flex !important;
	   flex-wrap: wrap !important;
        gap: 24px !important; /* Slightly reduce gap */
    }

    /* Sidebar: Remove sticky position for better scrolling */
    .pdm-agent-sidebar {
        position: static !important;
        top: auto !important;
    }

    /* Header: Align items better when space is reduced */
    .pdm-agent-header {
        grid-template-columns: 120px 1fr auto !important; /* Keep photo on the left */
        gap: 16px !important;
    }

    /* Listing Stats: Ensure statistics are flexible but not too wide */
    .pdm-listing-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 16px !important;
    }
}



/*
 * Mobile Styles (Max 768px)
 * This is for typical tablet portrait and mobile phone screens.
 */
@media (max-width: 768px) {

	.pdm-accordion-header-agent{
		font-size: 1rem !important;
		line-height: 1.5 !important;
		text-wrap: wrap !important;
		padding: 0.75rem 0 !important;
	}

	.pdm-accordion-header-agent span{
		text-align: left !important;
	}
    /* General Padding */
    .pdm-single-agent-profile-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

	.pdm-single-agent-profile{
		max-width: 100% !important;
	}

    /* Agent Header: Stack elements for a full-width mobile view */
    .pdm-agent-header {
        grid-template-columns: 1fr !important; /* Single column */
        text-align: center !important;
        padding: 20px !important; /* Slightly reduced padding */
    }

    /* Agent Photo: Center the image */
    .pdm-agent-photo {
        margin: 0 auto 16px !important; /* Center photo and add bottom margin */
    }

    /* Agent Info: Center text details */
    .pdm-agent-info {
        text-align: center !important;
    }

    /* Name and Brokerage: Adjust font sizes */
    .pdm-agent-name {
        font-size: 1.8rem !important;
    }

    .pdm-agent-broker {
        font-size: 1rem !important;
    }

    /* Badges and Rating: Center badges/ratings */
    .pdm-header-badges,
    .pdm-agent-rating {
        justify-content: center !important;
        margin-bottom: 16px !important;
		align-items: center !important;
    }

    /* Actions: Stack buttons to be full width */
    .pdm-agent-header-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    /* Buttons: Ensure buttons are full width in the actions block */
    .pdm-agent-header-actions .pdm-btn {
        width: 100% !important;
    }

    /* Card Titles: Reduce card header font size */
    .pdm-card-header {
        font-size: 1.3rem !important;
        padding: 16px 20px !important;
    }

    /* Card Body: Reduce padding in the card body */
    .pdm-card-body {
        padding: 20px !important;
    }

    /* Listing Stats: Force a single column for stats if necessary, or let them wrap */
    .pdm-listing-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Stat Item: Remove flex for stat info for better stacking */
    .pdm-listing-stat-item {
        padding: 16px !important;
    }

    .pdm-stat-value {
        font-size: 1.8rem !important;
    }

    .pdm-stat-label {
        font-size: 0.9rem !important;
    }

    /* Listing Cards Grid: Ensure listings take up full width for easy viewing */
    .pdm-listings-grid {
        grid-template-columns: 1fr !important;
    }

    /* Listing Photo: Adjust height for mobile */
    .pdm-listing-photo img {
        height: 200px !important;
    }

    /* Form Inputs: Ensure text areas are a reasonable size */
    .pdm-contact-form textarea {
        min-height: 100px !important;
    }
}




/*
 * Small Mobile Adjustments (Max 480px)
 * Minor tweaks for very small screens.
 */
@media (max-width: 480px) {
    .pdm-agent-photo {
        width: 100px !important;
        height: 100px !important;
    }

    .pdm-agent-name {
        font-size: 1.6rem !important;
    }

    /* Further refine button padding for smaller screens */
    .pdm-single-agent-profile .pdm-btn {
        padding: 10px 20px !important;
        font-size: 15px !important;
    }

    /* Adjust padding of main wrappers */
    .pdm-agent-header,
    .pdm-sidebar-card,
    .pdm-card-body {
        padding: 16px !important;
    }
}



/* Premium Quote Form Styles */
.pdm-get-quote h2 {
    color: var(--pdm-text-dark) !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    border-bottom: 2px solid var(--pdm-primary-color) !important;
    padding-bottom: 8px !important;
    display: inline-block !important
    }
.pdm-get-quote p {
    color: var(--pdm-text-light) !important;
    margin-bottom: 24px !important
    }
.pdm-get-quote .pdm-form-group {
    margin-bottom: 20px !important
    }
.pdm-get-quote .pdm-input {
    width: 100% !important;
    border: none !important;
    border-bottom: 2px solid var(--pdm-border-color) !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
    background-color: transparent !important;
    color: var(--pdm-text-dark) !important;
    transition: border-color 0.3s ease !important;
    border-radius: 0 !important;
    /* As requested */
    }
.pdm-get-quote .pdm-input::placeholder {
    color: #aab2bd !important
    }
.pdm-get-quote .pdm-input:focus {
    outline: none !important;
    border-bottom-color: var(--pdm-dark-blue) !important
    }
.pdm-get-quote .pdm-button {
    background-color: var(--pdm-primary-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    border-radius: 0 !important;
    /* As requested */
    width: 100% !important
    }
.pdm-get-quote .pdm-button:hover {
    background-color: var(--pdm-dark-blue) !important;
    /* A slightly darker shade of primary */
    transform: translatey(-2px) !important
    }
.pdm-get-quote .pdm-button:disabled, .pdm-get-quote .pdm-button.pdm-loading {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important
    }
.pdm-get-quote .pdm-button.pdm-loading {
    position: relative !important;
    color: transparent !important
    }
.pdm-get-quote .pdm-button.pdm-loading::after {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    margin-left: -10px !important;
    margin-top: -10px !important;
    animation: pdm-spin 1s linear infinite !important
    }

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

/* Form Message Styles */
.pdm-form-message {
    padding: 15px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
    border-left: 4px solid;
}

.pdm-form-message.pdm-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.pdm-form-message.pdm-error {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}