.property-explorer {
position: relative;
margin: 20px 0;
} .property-filters {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 25px;
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
align-items: flex-end;
}
.filter-field {
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
min-width: 150px;
}
.filter-field label {
font-weight: 600;
font-size: 13px;
color: #374151;
}
.filter-field input,
.filter-field select {
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
background: #fff;
transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-field input:focus,
.filter-field select:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.filter-field input::placeholder {
color: #9ca3af;
} .filter-range {
display: flex;
align-items: center;
gap: 8px;
}
.filter-range input {
flex: 1;
min-width: 80px;
}
.filter-range__separator {
color: #9ca3af;
font-weight: 500;
} .filter-sort__selects {
display: flex;
gap: 8px;
}
.filter-sort__selects select {
flex: 1;
} .filter-actions {
display: flex;
gap: 10px;
align-items: flex-end;
}
.filter-submit,
.filter-reset {
padding: 10px 20px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s, transform 0.1s;
}
.filter-submit {
background: #3b82f6;
color: #fff;
}
.filter-submit:hover {
background: #2563eb;
}
.filter-submit:active {
transform: scale(0.98);
}
.filter-reset {
background: #e5e7eb;
color: #374151;
}
.filter-reset:hover {
background: #d1d5db;
} .filter-search {
flex: 2;
min-width: 200px;
} .property-explorer__header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 15px;
}
.property-explorer__count {
color: #6b7280;
font-size: 14px;
}
.property-explorer__toggle {
display: inline-flex;
border-radius: 8px;
overflow: hidden;
border: 1px solid #d1d5db;
}
.toggle-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 16px;
border: none;
background: #fff;
color: #374151;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s, color 0.2s;
}
.toggle-btn:not(:last-child) {
border-right: 1px solid #d1d5db;
}
.toggle-btn:hover {
background: #f3f4f6;
}
.toggle-btn.active {
background: #3b82f6;
color: #fff;
}
.toggle-btn.active:hover {
background: #2563eb;
}
.toggle-btn svg {
flex-shrink: 0;
} .property-list--grid {
display: grid;
gap: 24px;
}
.property-list--cols-2 {
grid-template-columns: repeat(2, 1fr);
}
.property-list--cols-3 {
grid-template-columns: repeat(3, 1fr);
}
.property-list--cols-4 {
grid-template-columns: repeat(4, 1fr);
}
.property-list--list {
display: flex;
flex-direction: column;
gap: 16px;
}
.property-list--list .property-card {
display: flex;
flex-direction: row;
}
.property-list--list .property-card__image {
width: 280px;
flex-shrink: 0;
aspect-ratio: 4/3;
}
.property-list--list .property-card__content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.property-list__empty {
grid-column: 1 / -1;
text-align: center;
padding: 60px 20px;
color: #6b7280;
font-size: 16px;
} .property-card {
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
transition: transform 0.2s, box-shadow 0.2s;
}
.property-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}
.property-card__link {
text-decoration: none;
color: inherit;
display: block;
}
.property-card__image {
position: relative;
aspect-ratio: 4/3;
overflow: hidden;
background: #f3f4f6;
}
.property-card__image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}
.property-card:hover .property-card__image img {
transform: scale(1.05);
}
.property-card__badge {
position: absolute;
top: 12px;
left: 12px;
padding: 4px 10px;
background: #3b82f6;
color: #fff;
font-size: 12px;
font-weight: 600;
border-radius: 4px;
text-transform: uppercase;
}
.property-card__content {
padding: 16px;
}
.property-card__title {
margin: 0 0 8px;
font-size: 16px;
font-weight: 600;
color: #111827;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.property-card__price {
font-size: 20px;
font-weight: 700;
color: #3b82f6;
margin-bottom: 12px;
}
.property-card__meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
font-size: 13px;
color: #6b7280;
margin-bottom: 8px;
}
.property-card__meta span {
display: inline-flex;
align-items: center;
gap: 4px;
}
.property-card__meta svg {
color: #9ca3af;
}
.property-card__location {
display: flex;
align-items: center;
gap: 4px;
font-size: 13px;
color: #6b7280;
margin-top: 8px;
}
.property-card__location svg {
color: #9ca3af;
} .property-map {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
} a.map-popup {
display: block;
min-width: 200px;
color: inherit;
text-decoration: none;
}
.map-popup img {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 6px;
margin-bottom: 10px;
}
.map-popup h4 {
margin: 0 0 6px;
font-size: 14px;
font-weight: 600;
line-height: 1.3;
color: #111827;
}
.map-popup:hover h4 {
color: #3b82f6;
}
.map-popup .price {
margin: 0;
font-size: 16px;
font-weight: 700;
color: #3b82f6;
} .leaflet-popup-content-wrapper {
border-radius: 8px;
}
.leaflet-popup-content {
margin: 12px;
} .property-pagination {
margin-top: 30px;
text-align: center;
}
.property-pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 40px;
padding: 0 12px;
margin: 0 3px;
border: 1px solid #d1d5db;
border-radius: 6px;
text-decoration: none;
color: #374151;
font-size: 14px;
font-weight: 500;
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.property-pagination .page-numbers:hover {
background: #f3f4f6;
border-color: #9ca3af;
}
.property-pagination .page-numbers.current {
background: #3b82f6;
color: #fff;
border-color: #3b82f6;
}
.property-pagination .page-numbers.dots {
border: none;
background: none;
}
.property-pagination .page-numbers.prev,
.property-pagination .page-numbers.next {
font-weight: 400;
} .property-explorer--view-map [data-explorer-results],
.property-explorer--view-map [data-explorer-pagination] {
display: none !important;
}
.property-explorer--view-list [data-explorer-map] {
display: none !important;
} .property-explorer__loading {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.9);
z-index: 100;
align-items: center;
justify-content: center;
border-radius: 12px;
}
.property-explorer__loading span {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 16px 24px;
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
font-size: 14px;
font-weight: 500;
color: #374151;
}
.property-explorer__loading span::before {
content: '';
width: 20px;
height: 20px;
border: 2px solid #e5e7eb;
border-top-color: #3b82f6;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.property-explorer--loading .property-explorer__loading {
display: flex;
}
.property-explorer--loading [data-explorer-results],
.property-explorer--loading [data-explorer-map] {
opacity: 0.5;
pointer-events: none;
} @media (max-width: 1024px) {
.property-list--cols-4 {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.property-filters {
flex-direction: column;
}
.filter-field {
min-width: 100%;
}
.filter-actions {
width: 100%;
}
.filter-submit,
.filter-reset {
flex: 1;
}
.property-list--cols-3,
.property-list--cols-4 {
grid-template-columns: repeat(2, 1fr);
}
.property-explorer__header {
flex-direction: column;
align-items: stretch;
}
.property-explorer__toggle {
justify-content: center;
}
.property-list--list .property-card {
flex-direction: column;
}
.property-list--list .property-card__image {
width: 100%;
}
}
@media (max-width: 480px) {
.property-list--grid {
grid-template-columns: 1fr;
}
.property-card__price {
font-size: 18px;
}
.property-pagination .page-numbers {
min-width: 36px;
height: 36px;
padding: 0 8px;
font-size: 13px;
}
} .marker-cluster-small {
background-color: rgba(59, 130, 246, 0.6) !important;
}
.marker-cluster-small div {
background-color: rgba(59, 130, 246, 0.8) !important;
}
.marker-cluster-medium {
background-color: rgba(59, 130, 246, 0.6) !important;
}
.marker-cluster-medium div {
background-color: rgba(59, 130, 246, 0.8) !important;
}
.marker-cluster-large {
background-color: rgba(59, 130, 246, 0.6) !important;
}
.marker-cluster-large div {
background-color: rgba(59, 130, 246, 0.9) !important;
}
.marker-cluster {
color: #fff !important;
font-weight: 600;
}