/* Garatges Map Widget Styles */

.garatges-map-wrapper {
	width: 100%;
	background: #f5f5f5;
}

.garatges-container {
	display: grid;
	grid-template-columns: 3fr 2fr;s
	gap: 0;
	height: 700px;
	max-height: 90vh;
}

.garatges-map-section {
	position: relative;
	background: #e0e0e0;
}

.garatges-map-container {
	width: 100%;
	height: 100%;
}

/* Zoom Controls */
.map-zoom-controls {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 2px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	overflow: hidden;
}

.map-zoom-btn {
	width: 40px;
	height: 40px;
	background: white;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	transition: all 0.2s;
	line-height: 1;
}

.map-zoom-btn:hover {
	background: #f0f0f0;
	color: #2252AC;
}

.map-zoom-btn:active {
	background: #e0e0e0;
}

.map-zoom-btn:first-child {
	border-bottom: 1px solid #e0e0e0;
}

/* Sidebar */
.garatges-sidebar {
	background: #ffffff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-left: 1px solid #e0e0e0;
	position: relative;
}

/* Search */
.garatges-search {
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	position: relative;
}

.garatges-search-input {
	width: 100%;
	padding: 12px 40px 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.3s;
}

.garatges-search-input:focus {
	border-color: #0066cc;
}

.search-icon {
	position: absolute;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	pointer-events: none;
}

/* Filters Panel */
.garatges-filters-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.garatges-filters-panel.active {
	transform: translateX(0);
}

.filters-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 2px solid #e0e0e0;
	background: #fafafa;
}

.filters-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.filters-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s;
}

.filters-close:hover {
	background: #e0e0e0;
	color: #333;
}

.filters-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.filter-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 12px;
	cursor: pointer;
	transition: all 0.2s;
	background: white;
}

.filter-option:hover {
	background: #f9fafb;
	border-color: #2252AC;
}

.filter-option input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #2252AC;
}

.filter-option span {
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

.filters-footer {
	display: flex;
	gap: 12px;
	padding: 20px;
	border-top: 2px solid #e0e0e0;
	background: #fafafa;
}

.filters-clear,
.filters-apply {
	flex: 1;
	padding: 14px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.filters-clear {
	background: white;
	color: #666;
	border: 2px solid #e0e0e0;
}

.filters-clear:hover {
	background: #f5f5f5;
	border-color: #999;
}

.filters-apply {
	background: #2252AC;
	color: white;
}

.filters-apply:hover {
	background: #1d4ed8;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Header */
.garatges-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	background: #fafafa;
}

.garatges-count {
	font-size: 14px;
	color: #333;
}

.garatges-count-number {
	font-weight: 600;
	color: #0066cc;
}

.garatges-filter-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	color: #333;
	transition: all 0.3s;
}

.garatges-filter-btn:hover {
	background: #f0f0f0;
	border-color: #999;
}

/* List */
.garatges-list {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
}

/* Garatge Item */
.garatge-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
	transition: all 0.3s;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	display: flex;
	gap: 0;
}

.garatge-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.garatge-item.active {
	border-color: #2252AC;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.garatge-item-image-wrapper {
	position: relative;
	width: 120px;
	flex-shrink: 0;
	align-self: stretch;
	overflow: hidden;
}

.garatge-item-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	min-height: 100%;
}

.garatge-item-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 32px;
}

.garatge-item-content {
	padding: 12px 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.garatge-item-badges {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.garatge-item-badge {
	background: white;
	color: #374151;
	padding: 4px 10px;
	border-radius: 16px;
	font-size: 11px;
	font-weight: 500;
	border: 1px solid #d1d5db;
}

.garatge-item-title {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 6px 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.garatge-item-address {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 10px;
	display: flex;
	align-items: start;
	gap: 6px;
	line-height: 1.4;
}

.garatge-item-address svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #6b7280;
}

.garatge-item-features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.garatge-item-feature {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: #2252AC;
	background: #eff6ff;
	padding: 4px 8px;
	border-radius: 16px;
	font-weight: 500;
}

.garatge-item-feature svg {
	width: 14px;
	height: 14px;
	color: #2252AC;
	flex-shrink: 0;
}

.garatge-item-footer {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top: 10px;
	border-top: 1px solid #f3f4f6;
	margin-top: auto;
}

.garatge-item-price {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

.garatge-item-details-btn {
	background: #2252AC;
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s;
	letter-spacing: 0.5px;
	width: 100%;
}

.garatge-item-details-btn:hover {
	background: #1d4ed8;
}

/* Custom Map Marker Info Window */
.garatge-infowindow {
	max-width: 250px;
}

.garatge-infowindow h3 {
	margin: 0 0 8px 0;
	font-size: 16px;
	color: #333;
}

.garatge-infowindow p {
	margin: 5px 0;
	font-size: 13px;
	color: #666;
}

.garatge-infowindow a {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 12px;
	background: #0066cc;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
	.garatges-container {
		grid-template-columns: 1fr;
		height: auto;
	}
	
	.garatges-map-section {
		height: 400px;
		order: 2;
	}
	
	.garatges-sidebar {
		border-left: none;
		border-bottom: 1px solid #e0e0e0;
		order: 1;
		max-height: 500px;
	}
}

@media (max-width: 768px) {
	.garatges-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.garatge-item-features {
		gap: 8px;
	}
	
	.garatge-item-feature {
		font-size: 11px;
	}
}

/* Scrollbar styling */
.garatges-list::-webkit-scrollbar {
	width: 6px;
}

.garatges-list::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.garatges-list::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.garatges-list::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* Loading State */
.garatges-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: #666;
	font-size: 14px;
}

/* Empty State */
.garatges-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
	color: #999;
}

.garatges-empty svg {
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.garatges-empty p {
	font-size: 16px;
	margin: 0;
}
