/**
 * VEstora Premium Frontend Design System
 *
 * @package VEstora
 */

/* General Reset & Layout */
.vestora-search-portal-wrapper,
.vestora-single-property-wrapper,
.vestora-submission-form-wrapper,
.vestora-compare-wrapper,
.vestora-favorites-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
	padding: 30px 0 60px 0;
	box-sizing: border-box;
}

/* Property Grid Layouts */
.vestora-properties-container.vestora-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.vestora-properties-container.vestora-layout-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vestora-properties-container.vestora-layout-list .vestora-card {
	display: flex;
	flex-direction: row;
}

.vestora-properties-container.vestora-layout-list .vestora-card-media {
	width: 320px;
	flex-shrink: 0;
}

/* Property Card Styling */
.vestora-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.vestora-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	border-color: #cbd5e1;
}

.vestora-card-featured {
	border: 2px solid #f59e0b;
}

.vestora-card-media {
	position: relative;
	height: 220px;
	overflow: hidden;
	background: #f1f5f9;
}

.vestora-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.vestora-card:hover .vestora-card-img {
	transform: scale(1.05);
}

.vestora-card-img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

.vestora-card-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}

.vestora-card-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.vestora-action-btn {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #475569;
}

.vestora-action-btn:hover {
	background: #ffffff;
	transform: scale(1.1);
}

.vestora-btn-favorite.active {
	background: #ffffff;
	color: #ef4444;
}

.vestora-card-price {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(6px);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
}

.vestora-card-body {
	padding: 18px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.vestora-card-meta-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 12px;
	color: #64748b;
}

.vestora-card-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.vestora-card-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.vestora-card-title a:hover {
	color: #2563eb;
}

.vestora-card-location {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #64748b;
	font-size: 13px;
	margin-bottom: 15px;
}

.vestora-card-specs {
	display: flex;
	align-items: center;
	gap: 15px;
	padding-top: 12px;
	border-top: 1px dashed #e2e8f0;
	margin-top: auto;
	font-size: 13px;
	color: #334155;
}

.vestora-card-footer {
	padding: 12px 18px;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.vestora-card-agent {
	display: flex;
	align-items: center;
	gap: 8px;
}

.agent-thumb {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.agent-name {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
}

.vestora-card-link-btn {
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

/* Search Portal Hero */
.vestora-search-hero {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-radius: 16px;
	padding: 40px;
	color: #ffffff;
	margin-bottom: 35px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.vestora-search-hero h2 {
	margin: 0 0 8px 0;
	font-size: 32px;
	font-weight: 800;
	color: #ffffff;
}

.vestora-search-hero p {
	margin: 0 0 25px 0;
	color: #94a3b8;
	font-size: 16px;
}

.vestora-top-search-form .top-search-fields {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.vestora-input, .vestora-select, .vestora-textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	font-size: 14px;
	box-sizing: border-box;
	background: #ffffff;
}

.vestora-btn-search, .vestora-btn-apply-filter, .vestora-btn-submit-inquiry, .vestora-btn-submit-property {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
}

.vestora-btn-search:hover, .vestora-btn-apply-filter:hover {
	opacity: 0.95;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Two Column Search Grid */
.vestora-search-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
}

.vestora-filter-sidebar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	height: fit-content;
}

.vestora-filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 15px;
	margin-bottom: 20px;
}

.vestora-filter-header h3 {
	margin: 0;
	font-size: 18px;
}

.vestora-btn-reset {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.vestora-filter-group {
	margin-bottom: 20px;
}

.filter-group-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 8px;
}

.vestora-range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vestora-input-sm {
	width: 100%;
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	font-size: 13px;
}

/* Toggle Buttons */
.vestora-btn-group-toggle {
	display: flex;
	gap: 4px;
}

.btn-toggle {
	flex: 1;
	padding: 8px 0;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
}

.btn-toggle.active {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

/* Checkbox lists */
.vestora-checkbox-list {
	max-height: 180px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vestora-checkbox-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	cursor: pointer;
}

/* Control Bar */
.vestora-results-control-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	background: #ffffff;
	padding: 12px 20px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.vestora-controls-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.vestora-layout-toggle .layout-btn {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	cursor: pointer;
	margin-left: 4px;
}

.vestora-layout-toggle .layout-btn.active {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

/* Single Property Styling */
.vestora-single-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 25px;
}

.vestora-single-title {
	font-size: 28px;
	font-weight: 800;
	margin: 10px 0;
}

.vestora-single-price {
	font-size: 32px;
	font-weight: 800;
	color: #2563eb;
}

.vestora-single-main-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 30px;
	margin-top: 30px;
}

.vestora-section-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 25px;
}

.vestora-box-title {
	margin: 0 0 18px 0;
	font-size: 20px;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 10px;
}

.vestora-specs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 15px;
}

.vestora-spec-box {
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
}

.spec-label {
	font-size: 11px;
	color: #64748b;
	text-transform: uppercase;
}

.spec-val {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin-top: 4px;
}

.vestora-tags-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.vestora-tag-item {
	background: #f1f5f9;
	padding: 8px 14px;
	border-radius: 20px;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.vestora-tag-item.item-feature {
	background: #fef3c7;
	color: #92400e;
}

/* Gallery Slider Component */
.vestora-gallery-wrapper {
	border-radius: 12px;
	overflow: hidden;
	background: #000000;
}

.vestora-main-image-box {
	height: 460px;
}

.vestora-featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vestora-gallery-thumbnails {
	display: flex;
	gap: 8px;
	padding: 12px;
	background: #0f172a;
	overflow-x: auto;
}

.thumb-item {
	width: 90px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.thumb-item.active, .thumb-item:hover {
	opacity: 1;
	border: 2px solid #2563eb;
}

.thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Agent Widget Box */
.vestora-agent-widget-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	position: sticky;
	top: 30px;
}

.vestora-agent-profile {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.agent-avatar-lg {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

.agent-name {
	margin: 0;
	font-size: 18px;
}

.agent-company {
	font-size: 12px;
	color: #64748b;
}

.vestora-agent-buttons {
	display: flex;
	gap: 10px;

}

.vestora-btn-contact {
	flex: 1;
	text-align: center;
	padding: 10px 0;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}

.btn-call {
	background: #2563eb;
	color: #ffffff;
}

.btn-whatsapp {
	background: #25d366;
	color: #ffffff;
}

/* Compare Matrix Table */
.vestora-table-responsive {
	overflow-x: auto;
}

.vestora-compare-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.vestora-compare-table th, .vestora-compare-table td {
	padding: 16px;
	border: 1px solid #f1f5f9;
	text-align: center;
}

.vestora-compare-table .feature-col, .vestora-compare-table .feature-label {
	text-align: left;
	background: #f8fafc;
	font-weight: 700;
	width: 220px;
}

.compare-card-head img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 8px;
}

.remove-compare-item {
	background: #ef4444;
	color: #ffffff;
	border: none;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
	.vestora-search-layout, .vestora-single-main-grid {
		grid-template-columns: 1fr;
	}
}
