/**
 * Estate Engine — Public Styles
 *
 * @package EstateEngine
 */

/* =====================================================================
   Base / Reset
   ===================================================================== */
.ee-search-form-wrap,
.ee-property-results,
.ee-property-single,
.ee-enquiry-form-wrap {
	box-sizing: border-box;
}

.ee-search-form-wrap *,
.ee-property-results *,
.ee-property-single *,
.ee-enquiry-form-wrap * {
	box-sizing: inherit;
}

/* =====================================================================
   Search Form
   ===================================================================== */
.ee-search-form-wrap {
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 30px;
}

.ee-search-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
}

.ee-search-field {
	flex: 1 1 160px;
	min-width: 140px;
}

.ee-search-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.ee-search-field input,
.ee-search-field select {
	width: 100%;
	padding: 8px 12px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

.ee-search-field input:focus,
.ee-search-field select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.ee-btn {
	display: inline-block;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ee-btn-primary {
	background: #2271b1;
	color: #fff;
}

.ee-btn-primary:hover,
.ee-btn-primary:focus {
	background: #135e96;
	color: #fff;
}

.ee-btn-secondary {
	background: #e7e7e7;
	color: #333;
}

.ee-btn-secondary:hover,
.ee-btn-secondary:focus {
	background: #d0d0d0;
	color: #111;
}

/* =====================================================================
   Property Results Grid
   ===================================================================== */
.ee-property-results {
	margin-top: 10px;
}

.ee-results-count {
	font-size: 13px;
	color: #666;
	margin-bottom: 16px;
}

.ee-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* =====================================================================
   Property Card
   ===================================================================== */
.ee-property-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ee-property-card:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.ee-card-image-link {
	display: block;
}

.ee-card-image-link img,
.ee-card-thumb {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.ee-card-no-image {
	width: 100%;
	height: 200px;
	background: #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 13px;
}

.ee-card-body {
	padding: 16px;
}

.ee-card-type {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 3px;
	margin-bottom: 8px;
}

.ee-card-address {
	font-size: 15px;
	font-weight: 600;
	margin: 4px 0 6px;
	color: #1a1a1a;
}

.ee-card-price {
	font-size: 18px;
	font-weight: 700;
	color: #2271b1;
	margin: 0 0 6px;
}

.ee-card-beds {
	font-size: 13px;
	color: #555;
	margin: 0 0 14px;
}

/* =====================================================================
   Pagination
   ===================================================================== */
.ee-pagination {
	margin-top: 30px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.ee-pagination .page-numbers {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	text-decoration: none;
	color: #333;
}

.ee-pagination .page-numbers.current {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.ee-no-results {
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-align: center;
	color: #666;
}

/* =====================================================================
   Property Single
   ===================================================================== */
.ee-property-single {
	max-width: 960px;
	margin: 0 auto;
}

/* Gallery */
.ee-property-gallery {
	margin-bottom: 28px;
}

.ee-gallery-hero {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.ee-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.ee-gallery-thumb-link img {
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	border: 2px solid transparent;
	transition: border-color 0.2s;
}

.ee-gallery-thumb-link:hover img {
	border-color: #2271b1;
}

/* Property header */
.ee-property-header {
	margin-bottom: 20px;
}

.ee-property-title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
}

.ee-property-address {
	font-size: 15px;
	color: #555;
	margin: 0 0 8px;
}

.ee-property-price {
	font-size: 24px;
	font-weight: 700;
	color: #2271b1;
	margin: 0;
}

/* Stats row */
.ee-property-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	margin-bottom: 24px;
}

.ee-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 13px;
	color: #555;
	min-width: 80px;
}

.ee-stat strong {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

.ee-stat-status {
	background: #e6f0fa;
	color: #2271b1;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	align-self: center;
}

/* Key features */
.ee-property-features,
.ee-property-description,
.ee-property-details,
.ee-property-enquiry {
	margin-bottom: 32px;
}

.ee-property-features h3,
.ee-property-description h3,
.ee-property-details h3,
.ee-property-enquiry h3 {
	font-size: 18px;
	font-weight: 700;
	border-bottom: 2px solid #eee;
	padding-bottom: 8px;
	margin-bottom: 14px;
}

.ee-features-list {
	list-style: disc;
	padding-left: 22px;
	margin: 0;
}

.ee-features-list li {
	padding: 4px 0;
	font-size: 14px;
	color: #444;
}

/* Details table */
.ee-details-table {
	width: 100%;
	border-collapse: collapse;
}

.ee-details-table th,
.ee-details-table td {
	padding: 10px 14px;
	font-size: 14px;
	border-bottom: 1px solid #f0f0f0;
	text-align: left;
}

.ee-details-table th {
	font-weight: 600;
	color: #444;
	width: 160px;
	background: #fafafa;
}

/* =====================================================================
   Enquiry Form
   ===================================================================== */
.ee-enquiry-form-wrap {
	max-width: 520px;
}

.ee-enquiry-form .ee-field {
	margin: 0 0 16px;
}

.ee-enquiry-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.ee-enquiry-form input,
.ee-enquiry-form textarea {
	width: 100%;
	padding: 9px 12px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.ee-enquiry-form input:focus,
.ee-enquiry-form textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.ee-required {
	color: #c00;
}

.ee-enquiry-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

.ee-enquiry-message.ee-success {
	background: #edf7ed;
	border: 1px solid #4caf50;
	color: #2e7d32;
}

.ee-enquiry-message.ee-error {
	background: #fdecea;
	border: 1px solid #f44336;
	color: #c62828;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 640px) {
	.ee-search-fields {
		flex-direction: column;
	}

	.ee-search-field {
		flex: 1 1 100%;
	}

	.ee-property-grid {
		grid-template-columns: 1fr;
	}

	.ee-property-stats {
		gap: 10px;
	}
}
