
/* Shortlets Page Styling */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Mobile Search Toggle */
.sl-mobile-search-toggle {
    display: none;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.sl-mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #dab972;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.sl-mobile-search-btn i {
    font-size: 18px;
}

.sl-mobile-search-btn:hover {
    background: #c9a863;
}

/* Search Section */
.sl-search-section {
    background: #f8f9fa;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.sl-search-section.active {
    overflow-y: auto;
}

.sl-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.sl-mobile-search-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 20px;
}

.sl-mobile-search-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.sl-close-mobile-search {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.sl-close-mobile-search:hover {
    color: #dab972;
}

.sl-search-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sl-search-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.sl-search-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.sl-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.sl-search-input:focus {
    outline: none;
    border-color: #dab972;
    box-shadow: 0 0 5px rgba(218, 185, 114, 0.3);
}

.sl-search-btn {
    padding: 12px 25px;
    background: #dab972;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.sl-search-btn:hover {
    background: #c9a863;
}

.sl-search-btn i {
    font-size: 18px;
}

.sl-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Filter Bar */
.sl-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.sl-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

.sl-filter-toggle.active {
    color: #dab972;
}

.sl-filter-toggle i {
    font-size: 18px;
}

.sl-filter-toggle:hover {
    color: #dab972;
}

.sl-results-info {
    font-size: 14px;
    color: #666;
}

.sl-sort-dropdown {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

/* Mobile Filter Container */
.sl-mobile-filter-container {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Filter Modal */
.sl-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
}

.sl-filter-modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
}

.sl-filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sl-filter-modal-title {
    font-size: 20px;
    font-weight: 600;
}

.sl-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.sl-modal-close:hover {
    color: #dab972;
}

.sl-filter-grid {
    display: grid;
    gap: 20px;
}

.sl-filter-section {
    margin-bottom: 20px;
}

.sl-filter-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sl-filter-options, .sl-number-selector, .sl-rating-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sl-filter-option, .sl-number-btn, .sl-rating-btn {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sl-filter-option.selected, .sl-number-btn.selected, .sl-rating-btn.selected {
    background: #dab972;
    color: white;
    border-color: #dab972;
}

.sl-filter-option:hover, .sl-number-btn:hover, .sl-rating-btn:hover {
    background: #f5f5f5;
}

.sl-price-range {
    margin-top: 10px;
}

.sl-price-inputs {
    display: flex;
    gap: 20px;
}

.sl-price-input-group {
    flex: 1;
}

.sl-price-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.sl-price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.sl-price-input:focus {
    outline: none;
    border-color: #dab972;
}

.sl-filter-modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.sl-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.sl-btn-clear {
    background: #f8f9fa;
    border: 1px solid #ccc;
    color: #333;
}

.sl-btn-clear:hover {
    background: #e9ecef;
}

.sl-btn-apply {
    background: #dab972;
    border: none;
    color: white;
}

.sl-btn-apply:hover {
    background: #c9a863;
}

/* Results Section */
.sl-results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sl-shortlet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.sl-shortlet-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sl-shortlet-card:hover {
    transform: translateY(-5px);
}

.sl-shortlet-image {
    position: relative;
}

.sl-shortlet-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sl-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sl-wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.sl-wishlist-btn i {
    font-size: 18px;
    color: #333;
}

.sl-shortlet-content {
    padding: 15px;
}

.sl-shortlet-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sl-shortlet-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.sl-shortlet-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.sl-shortlet-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.sl-shortlet-detail i {
    font-size: 16px;
    color: #dab972;
}

.sl-shortlet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sl-shortlet-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sl-price-period {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.sl-shortlet-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.sl-shortlet-rating i {
    color: #dab972;
}

.sl-view-details-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #dab972;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.sl-view-details-btn:hover {
    background: #c9a863;
}

.sl-no-results {
    text-align: center;
    padding: 40px;
}

.sl-no-results i {
    font-size: 48px;
    color: #dab972;
    margin-bottom: 20px;
}

.sl-no-results h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sl-no-results p {
    font-size: 16px;
    color: #666;
}

/* Error Messages */
.sl-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 20px;
    font-size: 14px;
}

.sl-error-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl-error-toast.show {
    opacity: 1;
}

.sl-error-toast i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sl-mobile-search-toggle {
        display: block;
    }

    .sl-search-section:not(.active) {
        display: none;
    }

    .sl-mobile-search-header {
        display: flex;
    }

    .sl-search-container {
        flex-direction: column;
    }

    .sl-search-input-group {
        min-width: 100%;
    }

    .sl-filter-bar {
        display: none;
    }

    .sl-mobile-filter-container {
        display: flex;
    }

    .sl-shortlet-grid {
        grid-template-columns: 1fr;
    }

    .sl-search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sl-search-section {
        padding: 15px;
    }

    .sl-search-input {
        padding: 10px;
        font-size: 14px;
    }

    .sl-search-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .sl-shortlet-image img {
        height: 180px;
    }

    .sl-shortlet-title {
        font-size: 16px;
    }

    .sl-shortlet-description {
        font-size: 13px;
    }

    .sl-shortlet-detail {
        font-size: 13px;
    }

    .sl-shortlet-price {
        font-size: 14px;
    }

    .sl-view-details-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}