/* Make logo clickable */
.container-wide {max-width: 1536px;margin: 0 auto;padding: 0 1rem;}
/* Listings Section */
.listings-section {padding: 3rem 0 5rem;background: var(--gray-50);}
.listings-layout {display: grid;grid-template-columns: 1fr;gap: 2rem;}
/* Filters Sidebar */
.filters-sidebar {display: none;background: var(--white);border-radius: 16px;padding: 1.5rem;height: fit-content;position: sticky;top: 100px;box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);}
.filters-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 1.5rem;padding-bottom: 1rem;border-bottom: 1px solid var(--gray-200);}
.filters-header h3 {
font-size: 1.25rem;
font-weight: 700;
color: var(--navy-primary);
}

.filter-reset {
font-size: 0.875rem;
font-weight: 600;
color: var(--gold-primary);
background: none;
border: none;
cursor: pointer;
transition: color 0.3s;
}

.filter-reset:hover {
color: var(--gold-secondary);
}

.filter-group {
margin-bottom: 1.5rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
border-bottom: none;
}

.filter-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
font-weight: 700;
color: var(--navy-primary);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 1rem;
}

.filter-icon {
width: 16px;
height: 16px;
stroke: var(--gold-primary);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.filter-search {
position: relative;
margin-bottom: 1rem;
}

.filter-search input {
width: 100%;
height: 2.5rem;
padding: 0 2.5rem 0 1rem;
border: 1px solid var(--gray-200);
border-radius: 8px;
font-size: 0.875rem;
font-family: inherit;
transition: border-color 0.3s;
}

.filter-search input:focus {
outline: none;
border-color: var(--navy-primary);
}

.search-icon {
position: absolute;
right: 0.75rem;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
stroke: var(--gray-400);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.filter-options {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
aside.filters-sidebar .filter-options{max-height: 400px;overflow: auto;scrollbar-width: none;}
aside.filters-sidebar .filter-options:hover{    scrollbar-width: thin;}

.checkbox-label {
display: flex;
align-items: center;
gap: 0.75rem;
cursor: pointer;
font-size: 0.875rem;
color: var(--gray-700);
transition: color 0.3s;
}

.checkbox-label:hover {
color: var(--navy-primary);
}

.checkbox-label input[type="checkbox"] {
display: none;
}

.checkbox-custom {
width: 18px;
height: 18px;
min-width: 18px;
border: 2px solid var(--gray-300);
border-radius: 4px;
position: relative;
transition: all 0.3s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
border-color: var(--gold-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
content: '';
position: absolute;
left: 5px;
top: 2px;
width: 4px;
height: 8px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}

.checkbox-label small {
color: var(--gray-400);
font-size: 0.75rem;
}

.filter-apply-btn {
width: 100%;
height: 3rem;
background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
color: var(--white);
border: none;
border-radius: 12px;
font-size: 0.875rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2);
transition: all 0.3s;
margin-top: 1rem;
}

.filter-apply-btn:hover {
background: linear-gradient(to right, rgba(245, 158, 11, 0.9), rgba(251, 191, 36, 0.9));
}

/* Main Content */
.listings-main {
width: 100%;
}

/* Toolbar */
.listings-toolbar {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 1.25rem;
background: var(--white);
border-radius: 12px;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.toolbar-left {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}

.filter-toggle-mobile {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.625rem 1rem;
background: var(--navy-primary);
color: var(--white);
border: none;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: background 0.3s;
}

.filter-toggle-mobile:hover {
background: var(--navy-secondary);
}

.filter-toggle-mobile svg {
width: 16px;
height: 16px;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.results-count {
font-size: 0.875rem;
color: var(--gray-600);
}

.results-count strong {
color: var(--navy-primary);
font-weight: 700;
}

.toolbar-right {
display: flex;
align-items: center;
gap: 1rem;
}

.view-toggle {
display: none;
gap: 0.25rem;
padding: 0.25rem;
background: var(--gray-100);
border-radius: 8px;
}

.view-btn {
padding: 0.5rem;
background: transparent;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s;
}

.view-btn svg {
width: 18px;
height: 18px;
stroke: var(--gray-600);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.view-btn.active,
.view-btn:hover {
background: var(--white);
}

.view-btn.active svg {
stroke: var(--navy-primary);
}

.sort-select {
padding: 0.625rem 2.5rem 0.625rem 1rem;
border: 1px solid var(--gray-300);
border-radius: 8px;
font-size: 0.875rem;
font-weight: 500;
font-family: inherit;
color: var(--navy-primary);
background: var(--white);
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.75rem center;
transition: border-color 0.3s;
}

.sort-select:focus {
outline: none;
border-color: var(--navy-primary);
}

/* Active Filters */
.active-filters {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1.5rem;
}

.filter-tag {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: var(--white);
border: 1px solid var(--gray-300);
border-radius: 8px;
font-size: 0.875rem;
color: var(--gray-700);
}

.filter-tag button {
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
background: var(--gray-200);
border: none;
border-radius: 9999px;
cursor: pointer;
transition: background 0.3s;
}

.filter-tag button:hover {
background: var(--gray-300);
}

/* Property Grid */
.property-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
margin-bottom: 2.5rem;
}

/* Listing Card */
.listing-card {
background: var(--white);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
transition: all 0.3s;
}

.listing-card:hover {
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
transform: translateY(-4px);
}

.listing-image {
position: relative;
height: 12rem;
overflow: hidden;
}

.listing-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}

.listing-card:hover .listing-image img {
transform: scale(1.05);
}

.listing-badges {
position: absolute;
top: 1rem;
left: 1rem;
display: flex;
gap: 0.5rem;
z-index: 1;
}

.badge-verified {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.375rem 0.75rem;
background: #22c55e;
color: var(--white);
font-size: 0.75rem;
font-weight: 600;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.badge-verified svg {
width: 12px;
height: 12px;
fill: var(--white);
stroke: var(--white);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}

.badge-featured {
padding: 0.375rem 0.75rem;
background:#0891f1;
color: var(--white);
font-size: 0.75rem;
font-weight: 600;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.badge-new {
padding: 0.375rem 0.75rem;
background: #3b82f6;
color: var(--white);
font-size: 0.75rem;
font-weight: 600;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.wishlist-btn {
position: absolute;
top: 1rem;
right: 1rem;
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(4px);
border: none;
border-radius: 9999px;
cursor: pointer;
transition: all 0.3s;
z-index: 1;
}

.wishlist-btn svg {
width: 18px;
height: 18px;
stroke: var(--gray-600);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
transition: all 0.3s;
}

.wishlist-btn:hover {
background: var(--white);
}

.wishlist-btn:hover svg {
stroke: #ef4444;
fill: #ef4444;
}

.listing-content {
padding: 1.25rem;
}

.listing-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.5rem;
margin-bottom: 0.5rem;
}

.listing-header h3 {
font-size: 1.125rem;
font-weight: 700;
color: var(--navy-primary);
line-height: 1.4;
}

.listing-rating {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.625rem;
background: var(--gray-100);
border-radius: 6px;
font-size: 0.875rem;
font-weight: 700;
color: var(--navy-primary);
white-space: nowrap;
}

.listing-rating svg {
width: 14px;
height: 14px;
fill: var(--gold-primary);
stroke: var(--gold-primary);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}

.listing-location {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.875rem;
color: var(--gray-600);
margin-bottom: 1rem;
}

.listing-location .icon {
width: 16px;
height: 16px;
stroke: var(--gray-400);
flex-shrink: 0;
}

.listing-price {
display: flex;
flex-direction: column;
gap: 0.125rem;
padding: 0.75rem;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
border-radius: 8px;
margin-bottom: 1rem;
}

.price-value {
font-size: 1.25rem;
font-weight: 700;
color: var(--navy-primary);
}

.price-label {
font-size: 0.75rem;
color: var(--gray-600);
font-weight: 500;
}

.listing-features {
display: flex;
gap: 1.5rem;
padding: 0.75rem 0;
border-top: 1px solid var(--gray-200);
border-bottom: 1px solid var(--gray-200);
margin-bottom: 1rem;
}

.feature-item {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--gray-700);
}

.feature-item svg {
width: 16px;
height: 16px;
stroke: var(--gray-400);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.listing-amenities {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
}

.amenity-tag {
padding: 0.375rem 0.75rem;
background: var(--gray-100);
color: var(--gray-700);
font-size: 0.75rem;
font-weight: 500;
border-radius: 6px;
}

.listing-actions {
display: grid;
grid-template-columns: 1fr auto;
gap:0;
}

.btn-primary-listing {
padding: 0.75rem 1.25rem;
background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
color: var(--white);
border: none;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
box-shadow: 0 4px 6px -1px rgb(12 12 11 / 24%);
transition: all 0.3s;
}

.btn-primary-listing:hover {
background:var(--gold-primary);
}

.btn-secondary-listing {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.25rem;
background: var(--white);
color: var(--navy-primary);
border: 1px solid var(--gray-300);
border-radius: 8px;
font-size: 0.875rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: all 0.3s;
}

.btn-secondary-listing:hover {
background: var(--gray-100);
}

.btn-secondary-listing svg {
width: 16px;
height: 16px;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

/* Pagination */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
}

.page-btn {
min-width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
padding: 0.5rem;
background: var(--white);
border: 1px solid var(--gray-300);
border-radius: 8px;
font-size: 0.875rem;
font-weight: 600;
font-family: inherit;
color: var(--gray-700);
cursor: pointer;
transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
background: var(--gray-100);
}

.page-btn.active {
background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
color: var(--white);
border-color: var(--gold-primary);
}

.page-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.page-btn svg {
width: 16px;
height: 16px;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.page-dots {
padding: 0 0.5rem;
color: var(--gray-400);
font-weight: 600;
}

/* Responsive Design */
@media (min-width: 640px) {
.property-grid {
grid-template-columns: repeat(2, 1fr);
}

.view-toggle {
display: flex;
}
}

@media (min-width: 1024px) {
.page-header h1 {
font-size: 3rem;
}

.listings-layout {
grid-template-columns: 280px 1fr;
}

.filters-sidebar {
display: block;
}

.filter-toggle-mobile {
display: none;
}

.property-grid {
grid-template-columns: repeat(3, 1fr);
}
}

@media (min-width: 1280px) {
.listings-layout {
grid-template-columns: 320px 1fr;
}
}

/* Mobile Filters Overlay */
@media (max-width: 1023px) {
.filters-sidebar.mobile-active {
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
max-width: 100%;
height: 100vh;
overflow-y: auto;
border-radius: 0;
}

.filters-sidebar.mobile-active::before {
content: '';
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: -1;
}
}

.nav a.active {
color: var(--gold-primary);
position: relative;
}

.nav a.active::after {
width: 100%;
}