/* Common CSS */

:root {
    --primary-color: #000;
    --light-bg: #fafafa;
    --white-color: #fff;
    --heading-font-size: 42px;
    --heading-font-variant: 500;
    --subheading-font-size: 36px;
    --subheading-font-variant: 500;
    --text-font-size: 16px;
    --text-font-variant: 300;
}

body {
    color: var(--primary-color);
}

.container {
    max-width: 1580px;
    width: 100%;
    padding: 0 42px;
    margin: 0 auto;
}

h1 {
    font-size: var(--heading-font-size);
    font-weight: var(--heading-font-variant);
    color: var(--primary-color);
    margin: 0 0 30px;
}

h2 {
    font-size: var(--subheading-font-size);
    font-weight: var(--subheading-font-variant);
    color: var(--primary-color);
    margin: 0 0 25px;
}

p,
span {
    font-size: var(--text-font-size);
    font-weight: var(--text-font-variant);
}

body .btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 100px;
    color: var(--white-color);
    font-size: var(--text-font-size);
    font-weight: var(--text-font-variant);
    letter-spacing: 1px;
    padding: 16px 26px;
    text-transform: math-auto;
    transition: .5s ease-in;
    white-space: nowrap;
}

body .btn:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Common CSS */

.flatpickr-calendar  span.flatpickr-day.flatpickr-disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* Main Archive Wrapper */
.uplisting-archive-wrapper {
    min-height: 100vh;
    background: var(--white-color);
    position: relative;
}

/* Search Container - Top Bar */
.uplisting-search-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white-color);
    border-bottom: 1px solid #e0e0e0;
}

/* Main Content - Side by Side Layout */
.uplisting-main-content {
    display: flex;
    height: calc(100vh - 80px); /* Full height minus header */
}

/* LEFT SIDE - Properties List */
.uplisting-properties-list {
    width: 65.5%;
    overflow-y: auto;
    /*background: var(--white-color);*/
}

/* RIGHT SIDE - Map */

#uplisting-map {
    width: 100%;
    height: 100%;
}

/* Results Header */
.uplisting-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.uplisting-results-count {
    font-size: 14px;
    color: #222;
}

.uplisting-results-count strong {
    font-weight: 600;
}

/* Properties Grid - Vertical List */
.uplisting-properties-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Property Card - Horizontal Layout */
.uplisting-property-card-wrapper {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    flex-direction: column;
}

/* Property Image - Left Side (40%) */
.uplisting-property-slider {
    width: 280px;
    flex-shrink: 0;
}

.uplisting-main-content.grid-view .uplisting-properties-gridinner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-right: 10px;
}

.uplisting-main-content.grid-view .uplisting-property-info-link,
.uplisting-main-content.grid-view .uplisting-property-info-link .uplisting-property-info,
.uplisting-main-content.slider-view .uplisting-property-info-link,
.uplisting-main-content.slider-view .uplisting-property-info-link .uplisting-property-info {
    padding: 0;
}

.uplisting-main-content.grid-view .uplisting-property-info-link .uplisting-property-info,
.uplisting-main-content.slider-view .uplisting-property-info-link .uplisting-property-info {
    padding-bottom: 20px;
}

.uplisting-main-content.grid-list .uplisting-property-slider {
    width: 50%;
}

.uplisting-main-content.grid-list .uplisting-property-card-wrapper {
    flex-direction: row;
    margin-bottom: 20px;
    margin-right: 10px;
}

.uplisting-main-content.grid-list .uplisting-property-info {
    display: flex;
    justify-content: space-between;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

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

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-container:hover .slider-arrow {
    display: flex;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 8px;
}

.slider-next {
    right: 8px;
}

.slider-arrow svg {
    width: 16px;
    height: 16px;
    color: #222;
}

/* Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slider-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
}

/* Property Info - Right Side (60%) */
.uplisting-property-info-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.uplisting-property-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    display: block;
    text-decoration: none;
    height: 100%;
}

.uplisting-property-location {
    font-size: 14px;
    color: #717171;
    font-weight: 500;
    margin-bottom: 4px;
}

.uplisting-property-details {
    font-size: 14px;
    color: #717171;
    margin-top: 4px;
    margin-bottom: 8px;
}

.uplisting-property-price {
    margin-top: 8px;
    font-size: 16px;
}

.uplisting-property-price strong {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Map Info Window */
.uplisting-map-infowindow {
    max-width: 250px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.uplisting-map-infowindow a:focus-visible {
    outline: 0;
}

.uplisting-map-infowindow img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.uplisting-map-infowindow h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #222;
}

.uplisting-map-infowindow p {
    font-size: 14px;
    color: #717171;
    margin: 4px 0;
}

.uplisting-map-infowindow .price {
    color: #222;
    font-weight: 600;
    font-size: 16px;
}

/* Map Warning */
.uplisting-map-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    text-align: center;
    padding: 40px;
}

.uplisting-map-warning h4 {
    font-size: 20px;
    color: #222;
    margin-bottom: 8px;
}

.uplisting-map-warning p {
    font-size: 14px;
    color: #717171;
}

/* Scrollbar Styling for List */
.uplisting-properties-list::-webkit-scrollbar {
    width: 8px;
}

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

.uplisting-properties-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.uplisting-properties-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.flatpickr-buttons button {
    background: transparent;
    color: var(--primary-color);
    border: 0;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}


/* Mobile View */
@media (max-width: 768px) {
    .uplisting-properties-list {
        padding: 16px;
    }
    
    .uplisting-properties-grid {
        gap: 16px;
    }
    
    /* Stack Card Vertically */
    .uplisting-property-card-wrapper {
        flex-direction: column;
        padding: 0;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
    }
    
    .uplisting-property-slider {
        width: 100%;
    }
    
    .slider-container {
        height: 240px;
        border-radius: 0;
    }
    
    .uplisting-property-info-link {
        padding: 16px;
    }
    
    .uplisting-map-container {
        height: 400px;
    }
}

/* ========================================
   SEARCH BAR STYLES
   ======================================== */

.uplisting-search-fields {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    padding: 12px 0;
}

.uplisting-search-field:last-child {
    border-right: none;
}

.uplisting-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* No Results */
.uplisting-no-results {
    text-align: center;
    padding: 60px 20px;
}

.uplisting-no-results h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 8px;
}

.uplisting-no-results p {
    font-size: 16px;
    color: #717171;
}
/* Property Card Wrapper */

/* Property Slider Styles */
.uplisting-property-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-container:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-arrow svg {
    width: 16px;
    height: 16px;
    color: #222;
}

/* Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
}

/* Property Info Link */
.uplisting-property-info-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 16px;
}

.uplisting-property-price {
    margin-top: 4px;
}

.uplisting-property-price strong {
    font-size: 16px;
    color: #222;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container {
        height: 240px;
    }
}

/* Modern Airbnb-Style Design */

.uplisting-search-bar {
    margin: 0 auto;
    padding: 0 10px 0 0;
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.uplisting-search-field {
    position: relative;
    padding: 14px 24px;
    cursor: pointer;
    flex: 1;
    transition: background 0.2s ease;
    border: 1px solid #ebebeb;
    border-radius: 24px;
}

.uplisting-search-fields .uplisting-search-field input {
    padding: 0;
    border: 0;
}

.uplisting-search-fields .uplisting-field-content {
    line-height: 100%;
}


.uplisting-search-field.active {
    z-index: 10;
}

.uplisting-field-value {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #717171;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uplisting-datepicker-input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #717171;
    width: 100%;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.uplisting-datepicker-input::placeholder {
    color: #717171;
}

/* Dropdown Styles */
.uplisting-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    padding: 24px;
    min-width: 300px;
    display: none;
    z-index: 1000;
}

.uplisting-dropdown.active {
    display: block;
}

.uplisting-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%) rotate(45deg);
}

/* Location Dropdown */
.uplisting-location-dropdown {
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 8px;
}

.uplisting-location-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uplisting-location-item {
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    color: #222;
}

.uplisting-location-item:hover {
    background: #f7f7f7;
}

.uplisting-location-item.selected {
    background: #f7f7f7;
    font-weight: 600;
}

/* Guests Dropdown */
.uplisting-guests-dropdown {
    min-width: 320px;
}

.uplisting-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #ebebeb;
}

.uplisting-guest-row:last-child {
    border-bottom: none;
}

.uplisting-guest-label {
    font-size: 16px;
    color: #222;
    font-weight: 500;
}

.uplisting-guest-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.uplisting-guest-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #b0b0b0;
    background: #fff;
    color: #222;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.uplisting-guest-btn:hover:not(:disabled) {
    border-color: #222;
    background: #222;
    color: #fff;
}

.uplisting-guest-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.uplisting-guest-count {
    font-size: 16px;
    color: #222;
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

/* Search Button */
.uplisting-search-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

/* Main Content */

.uplisting-main-content.map-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 100%;
    padding: 0;
}

/* Results Header */
.uplisting-results-count {
    font-size: 14px;
    color: #717171;
}

.uplisting-results-count strong {
    color: #222;
    font-weight: 600;
}

/* View Toggle */
.uplisting-view-toggle {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.uplisting-view-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #717171;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.uplisting-view-btn:hover {
    background: #f7f7f7;
    color: #222;
}

.uplisting-view-btn.active {
    background: #222;
    color: #fff;
}

/* Properties Grid */
.uplisting-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.uplisting-property-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.uplisting-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.uplisting-property-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.uplisting-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.uplisting-property-card:hover .uplisting-property-image img {
    transform: scale(1.05);
}

.uplisting-property-info:hover {
    text-decoration: none;
}

.uplisting-property-price {
    font-size: 16px;
    color: #222;
}

.uplisting-property-price strong {
    font-weight: 600;
}

/* Image Gallery Lightbox */
.uplisting-gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.uplisting-gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.uplisting-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.uplisting-gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.uplisting-gallery-close svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.uplisting-gallery-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uplisting-gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { 
        transform: scale(0.9);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.uplisting-gallery-prev,
.uplisting-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.uplisting-gallery-prev:hover,
.uplisting-gallery-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.uplisting-gallery-prev {
    left: 20px;
}

.uplisting-gallery-next {
    right: 20px;
}

.uplisting-gallery-prev svg,
.uplisting-gallery-next svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2.5;
}

.uplisting-gallery-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.uplisting-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.uplisting-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.uplisting-gallery-dot.active {
    background: #fff;
    width: 12px;
    height: 12px;
}

.uplisting-gallery-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
}

/* Map Container */
.uplisting-map-container {
    position: absolute;
    top: 0;
    right: 0;
    height: calc(100vh - 110px);
    width: 37% !important;
}

#uplisting-map {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* No Results */
.uplisting-no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.uplisting-no-results h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 8px;
}

.uplisting-no-results p {
    font-size: 16px;
    color: #717171;
}

/* Map Info Window */
.uplisting-map-infowindow {
    max-width: 280px;
}

.uplisting-map-infowindow img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.uplisting-map-infowindow h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #222;
}

.uplisting-map-infowindow p {
    font-size: 14px;
    color: #717171;
    margin: 4px 0;
}

.uplisting-map-infowindow .price {
    color: #222;
    font-weight: 600;
    font-size: 15px;
}


/* Responsive Design */
@media (max-width: 1600px) {
    .uplisting-properties-list {
        width: 59.5%;
    }
}

@media (max-width: 1024px) {
    .uplisting-main-content.map-view {
        grid-template-columns: 1fr;
    }
    
    .uplisting-map-container {
        position: relative;
        top: 0;
        height: 400px;
    }
    
    .uplisting-gallery-prev {
        left: 10px;
    }
    
    .uplisting-gallery-next {
        right: 10px;
    }

    .uplisting-main-content {
        flex-direction: column-reverse;
        height: auto;
    }

    .uplisting-properties-list {
        width: 100%;
    }

    .uplisting-properties-list {
        width: 100%;
        height: auto;
    }

    .uplisting-map-container {
        width: 100%;
        position: relative;
        top: 0;
        height: 500px;
        order: -1;
        /* Map on top */
    }

    .uplisting-main-content {
        gap: 50px;
    }

    .uplisting-map-container {
        width: 100% !important;
    }

    .uplisting-main-content.grid-view .uplisting-properties-gridinner,
    .uplisting-main-content.grid-list .uplisting-property-card-wrapper {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .uplisting-search-bar {
        flex-direction: column;
        border-radius: 20px;
        gap: 0;
    }
    
    .uplisting-search-fields {
        flex-direction: column;
        width: 100%;
    }
    
    .uplisting-search-field {
        border-right: none;
        border-bottom: 1px solid #ebebeb;
        width: 100%;
    }
    
    .uplisting-search-field:last-child {
        border-bottom: none;
    }
    
    .uplisting-search-btn {
        width: 100%;
        justify-content: center;
        margin: 8px 0 0 0;
        border-radius: 12px;
    }
    
    .uplisting-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .uplisting-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .uplisting-gallery-container {
        width: 95%;
        height: 70vh;
    }
    
    .uplisting-gallery-prev,
    .uplisting-gallery-next {
        width: 40px;
        height: 40px;
    }
    
    .uplisting-gallery-dots {
        bottom: 20px;
    }
}

@media (max-width: 580px) {
    .uplisting-main-content.grid-view .uplisting-properties-gridinner {
        grid-template-columns: repeat(1, 1fr);
    }

    .uplisting-main-content.grid-list .uplisting-property-card-wrapper {
        flex-direction: column;
    }

    .uplisting-main-content.grid-list .uplisting-property-slider {
        width: 100%;
    }

    .uplisting-main-content.grid-list .uplisting-property-info-link{
        padding: 0 0 20px;
        
    }
}

    /**
 * Single Property Page Styles
 * Airbnb-style property detail page
 */

/* Main Wrapper */
/* .single-property-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 40px;
} */

/* Property Header */
.property-header {
    margin-bottom: 24px;
}

/* .property-title {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.2;
} */

.property-meta-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #222;
}

.property-location {
    text-decoration: underline;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* .property-specs {
    color: #717171;
} */

/* Image Gallery Grid */
.property-gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-item-3 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.gallery-item-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.gallery-item-5 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    position: relative;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* View Photos Button */
.view-photos-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    z-index: 10;
}

.view-photos-btn:hover {
    background: #f7f7f7;
    transform: scale(1.04);
}

.view-photos-btn svg {
    width: 16px;
    height: 16px;
}


/* Main Content */
.property-main-content {
    flex: 1;
}

.property-section {
    padding: 32px 0;
    border-bottom: 1px solid #ebebeb;
}

/* .property-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0 0 24px 0;
} */

/* Description */
.property-description {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

.read-more-link {
    color: #222;
    font-weight: 600;
    text-decoration: underline;
    margin-top: 16px;
    display: inline-block;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #222;
}

.amenity-item svg {
    width: 24px;
    height: 24px;
    color: #222;
    flex-shrink: 0;
}

/* Location Section */
.property-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.location-address {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px 0;
}

.location-description {
    font-size: 14px;
    color: #717171;
    margin: 0;
}

/* Reviews Section */
.reviews-list {
    display: grid;
    gap: 40px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
} */

.review-author {
    display: flex;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    font-size: 16px;
    color: #222;
}

.author-info span {
    font-size: 14px;
    color: #717171;
}

.review-rating {
    font-size: 14px;
}

/* .review-content {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
} */

.view-all-reviews {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    border: 1px solid #222;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all-reviews:hover {
    background: #f7f7f7;
}

/* Sidebar - Booking Card */
.property-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    max-width: 480px;
    width: 100%;
}

.booking-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.booking-price {
    font-size: 22px;
    margin-bottom: 24px;
}

.booking-price strong {
    font-size: 22px;
    font-weight: 600;
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-field {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    padding: 12px;
    position: relative;
}

.form-row .form-field:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.form-row .form-field:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-field label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #222;
}

.form-field input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #222;
}

.guests-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.guests-display {
    font-size: 14px;
    color: #222;
}

.reserve-btn {
    width: 100%;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.1s ease;
}


.booking-info {
    text-align: center;
    font-size: 14px;
    color: #717171;
}

.booking-info p {
    margin: 0;
}

/* Price Breakdown */
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #222;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
    font-size: 16px;
}

/* Contact Info */
.contact-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ebebeb;
    text-align: center;
    font-size: 14px;
}

.contact-info a {
    color: #222;
    font-weight: 600;
    text-decoration: underline;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #ebebeb;
}

.lightbox-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: #f7f7f7;
}

.lightbox-counter {
    font-size: 14px;
    color: #222;
}

.lightbox-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    position: absolute;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-image.active {
    opacity: 1;
    position: relative;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #ebebeb;
}

.lightbox-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    opacity: 1;
    border: 2px solid #222;
}

/* Responsive Design */
@media (max-width: 1128px) {
    .property-content-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .property-sidebar {
        position: static;
    }
}

@media (max-width: 950px) {
    .property-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        height: 400px;
    }
    
    .gallery-item-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .gallery-item-2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .gallery-item-3 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .gallery-item-4,
    .gallery-item-5 {
        display: none;
    }
}

@media (max-width: 768px) {
    .single-property-wrapper {
        padding: 16px 20px;
    }
    
    .property-gallery-grid {
        grid-template-columns: 1fr;
        height: 300px;
    }
    
    .gallery-item-1 {
        grid-column: 1;
        grid-row: 1;
    }
    
    .gallery-item-2,
    .gallery-item-3 {
        display: none;
    }
    
    .view-photos-btn {
        bottom: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .property-content-wrapper {
        gap: 32px;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 15px;
    }

   .booking-divider {
        margin: 18px 0;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 12px;
    }
    
    .lightbox-next {
        right: 12px;
    }
    
    .lightbox-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    /* .property-title {
        font-size: 22px;
    } */
    
    .property-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========================================
   FILTER MODAL STYLES
   ======================================== */

/* Filter Button */
.uplisting-filter-btn {
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.uplisting-filter-btn:hover {
    border-color: #222;
    background: #f7f7f7;
}

.uplisting-filter-btn svg {
    width: 18px;
    height: 18px;
    stroke: #222;
}

/* Filter Modal Overlay */
.uplisting-filter-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.uplisting-filter-modal-overlay.active {
    display: block;
}

/* Filter Modal */
.uplisting-filter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

/* Modal Header */
.uplisting-filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #ebebeb;
}

.uplisting-filter-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.uplisting-filter-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.uplisting-filter-modal-close:hover {
    background: #f7f7f7;
}

.uplisting-filter-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #222;
}

/* Modal Body */
.uplisting-filter-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.uplisting-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}

.uplisting-filter-row:last-child {
    border-bottom: none;
}

.uplisting-filter-label {
    font-size: 16px;
    color: #222;
    font-weight: 500;
}

.uplisting-filter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.uplisting-filter-btn-minus,
.uplisting-filter-btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #b0b0b0;
    background: #fff;
    color: #222;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 300;
}

.uplisting-filter-btn-minus:hover:not(:disabled),
.uplisting-filter-btn-plus:hover:not(:disabled) {
    border-color: #222;
    background: #222;
    color: #fff;
}

.uplisting-filter-btn-minus:disabled,
.uplisting-filter-btn-plus:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.uplisting-filter-count {
    font-size: 16px;
    color: #222;
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

/* Modal Footer */
.uplisting-filter-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #ebebeb;
    background: var(--light-bg);
}

.uplisting-filter-results-count {
    font-size: 14px;
    color: #717171;
}

/* Body no-scroll when modal is open */
body.no-scroll {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .uplisting-filter-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .uplisting-filter-modal-header {
        padding: 20px;
    }
    
    .uplisting-filter-modal-body {
        padding: 20px;
    }
    
    .uplisting-filter-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .uplisting-filter-apply-btn {
        width: 100%;
    }
}


