/* StorageTrail Listings Display */

.stl-listings-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Mobile Filter Toggle Button */
.stl-mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background: #E67E22;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
    transition: background 0.3s;
}

.stl-mobile-filter-toggle:hover {
    background: #D35400;
}

.stl-mobile-filter-toggle .stl-icon {
    font-size: 18px;
}

/* Mobile Close Button */
.stl-mobile-filter-close {
    display: none;
    position: absolute;
/*     top: 15px;
    right: 15px; */
	    top: 80px;
    right: 4px;
    background: transparent;
    border: none;
    color: #2C3E50;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.3s;
}

.stl-mobile-filter-close:hover {
    color: #E67E22;
}

/* Filters Overlay */
.stl-filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.stl-filters-overlay.active {
    opacity: 1;
}

/* Filters Section */
.stl-filters-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border-top: 4px solid #E67E22;
}

.stl-filters-title {
    margin: 0 0 20px 0;
    color: #1a3a52;
    font-size: 22px;
    font-weight: 600;
}

.stl-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stl-filter-group {
    display: flex;
    flex-direction: column;
}

.stl-filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C3E50;
    font-size: 14px;
}

.stl-filter-input,
.stl-filter-select {
    padding: 10px 12px;
    border: 2px solid #BDC3C7;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.stl-filter-input:focus,
.stl-filter-select:focus {
    outline: none;
    border-color: #E67E22;
}

.stl-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stl-price-inputs input {
    flex: 1;
}

.stl-price-inputs span {
    color: #7F8C8D;
}

/* Amenities Filter */
.stl-amenities-filter {
    grid-column: 1 / -1;
}

.stl-amenities-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.stl-amenities-checkboxes label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.stl-amenities-checkboxes label:hover {
    background: #ECF0F1;
}

.stl-amenities-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #E67E22;
    width: 18px;
    height: 18px;
}

/* Filter Actions */
.stl-filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.stl-filter-btn,
.stl-reset-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.stl-filter-btn {
    background: #E67E22;
    color: white;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
}

.stl-filter-btn:hover {
    background: #D35400;
    transform: translateY(-2px);
}

.stl-reset-btn {
    background: #ECF0F1;
    color: #2C3E50;
}

.stl-reset-btn:hover {
    background: #BDC3C7;
}

/* Results Header */
.stl-results-header {
    margin-bottom: 20px;
}

.stl-results-count {
    font-size: 16px;
    color: #7F8C8D;
    font-weight: 500;
}

/* Listings Grid */
.stl-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Listing Card */
.stl-listing-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 400px 1fr;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stl-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

/* Left Side: Images */
.stl-listing-images {
    position: relative;
}

.stl-featured-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #ECF0F1;
}

.stl-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stl-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95A5A6;
    font-size: 16px;
}

.stl-thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 10px;
    background: #F8F9FA;
}

.stl-thumbnail {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.stl-thumbnail:hover {
    transform: scale(1.05);
    border-color: #E67E22;
}

.stl-more-images {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 58, 82, 0.9);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.stl-more-images:hover {
    background: #E67E22;
}

/* Right Side: Details */
.stl-listing-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.stl-listing-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.stl-listing-title a {
    color: #1a3a52;
    text-decoration: none;
    transition: color 0.3s;
}

.stl-listing-title a:hover {
    color: #E67E22;
}

.stl-listing-location {
    color: #7F8C8D;
    margin-bottom: 15px;
    font-size: 15px;
}

.stl-icon {
    margin-right: 5px;
}

.stl-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 6px;
}

.stl-meta-item {
    display: flex;
    flex-direction: column;
}

.stl-meta-label {
    font-size: 12px;
    color: #7F8C8D;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.stl-meta-value {
    font-size: 16px;
    color: #2C3E50;
    font-weight: 600;
}

.stl-price .stl-meta-value {
    color: #E67E22;
    font-size: 20px;
}

.stl-listing-amenities {
    margin-bottom: 15px;
}

.stl-listing-amenities strong {
    display: block;
    margin-bottom: 8px;
    color: #2C3E50;
    font-size: 14px;
}

.stl-amenity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stl-amenity-tag {
    background: #ECF0F1;
    color: #2C3E50;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.stl-listing-excerpt {
    color: #7F8C8D;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.stl-view-details-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #E67E22;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    align-self: flex-start;
}

.stl-view-details-btn:hover {
    background: #D35400;
    transform: translateX(5px);
}

/* Pagination */
.stl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.stl-page-btn {
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #BDC3C7;
    border-radius: 6px;
    color: #2C3E50;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.stl-page-btn:hover {
    border-color: #E67E22;
    color: #E67E22;
}

.stl-page-btn.active {
    background: #E67E22;
    border-color: #E67E22;
    color: white;
}

.stl-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.stl-loading {
    text-align: center;
    padding: 40px;
    color: #7F8C8D;
    font-size: 18px;
}

.stl-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #F8F9FA;
    border-radius: 8px;
    margin: 20px 0;
}

.stl-no-results p {
    font-size: 18px;
    color: #7F8C8D;
}

/* Lightbox */
.stl-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

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

.stl-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.stl-lightbox-img {
    max-width: 600px;
    max-height: 90vh;
    border-radius: 8px;
}

.stl-lightbox-close {
    position: absolute;
    top: 0px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.stl-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 70px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.stl-lightbox-prev {
    left: -80px;
}

.stl-lightbox-next {
    right: -80px;
}

/* Responsive */
@media (max-width: 968px) {
    .stl-listing-card {
        grid-template-columns: 1fr;
    }
    
    .stl-featured-image {
        height: 200px;
    }
    
    .stl-filters-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
	.stl-lightbox-img {
		max-width: 300px !important;
	}
    .stl-listings-wrapper {
        padding: 15px;
    }
    
    /* Show mobile filter button */
    .stl-mobile-filter-toggle {
        display: flex;
    }
    
    /* Off-canvas filter panel */
    .stl-filters-section {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        overflow-y: auto;
        z-index: 999;
        margin: 0;
        border-radius: 0;
        border-top: none;
        border-right: 4px solid #E67E22;
        padding: 60px 20px 20px;
        transition: left 0.3s ease-in-out;
    }
    
    .stl-filters-section.active {
        left: 0;
    }
    
    /* Show mobile close button */
    .stl-mobile-filter-close {
        display: flex;
    }
    
    /* Show overlay */
/*     .stl-filters-overlay {
        display: block;
    } */
    
    .stl-listing-details {
        padding: 20px;
    }
    
    .stl-listing-title {
        font-size: 20px;
    }
    
    .stl-amenities-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .stl-filter-actions {
        flex-direction: column;
    }
    
    .stl-filter-btn,
    .stl-reset-btn {
        width: 100%;
    }
    
    /* Prevent body scroll when filter is open */
    body.stl-filter-open {
        overflow: hidden;
    }
}




/* ================================= */

/* Status Badge on Listing Cards */
.stl-featured-image {
    position: relative;
}

.stl-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 10;
    animation: fadeInBadge 0.3s ease-in;
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Coming Soon Badge - Orange */
.stl-badge-coming-soon {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Available Badge - Green */
.stl-badge-available {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Booked Badge - Red */
.stl-badge-booked {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Hover effect */
.stl-listing-card:hover .stl-status-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stl-status-badge {
        top: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 11px;
    }
}


/* ============================== */