/* My Listings Page Styles */


/* Filter Options */
.filter-options {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.form-select, .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 0.9rem;
    height: 50px;
}

/* Listing Cards */
.listing-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.listing-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.edit-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.edit-button:hover {
    background-color: #218838;
    color: white;
}

.listing-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.listing-id {
    color: #6c757d;
}

.listing-status {
    font-weight: 600;
}

.listing-status.active {
    color: #28a745;
}

.listing-status.pending {
    color: #ffc107;
}

.listing-status.inactive {
    color: #dc3545;
}

.listing-type {
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.listing-pricing {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.sell-price, .rent-price {
    font-weight: 500;
}

/* Pagination */
.pagination-container {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.showing-results {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
}

.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.pagination-number:hover {
    background-color: #e9ecef;
}

.pagination-number.active {
    background-color: #dc3545;
    color: white;
}

.pagination-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-arrow:hover {
    background-color: #e9ecef;
}

.pagination-arrow.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    background-color: #f1f3f5;
}

.pagination-ellipsis {
    color: #6c757d;
    font-weight: bold;
    margin: 0 2px;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .listing-pricing {
        flex-direction: column;
        gap: 5px;
    }

    .col-md-4 {
        margin-bottom: 20px;
    }



    .pagination-container .row {
        flex-direction: column;
        gap: 15px;
    }

    .showing-results {
        text-align: center;
    }

    .custom-pagination {
        justify-content: center;
    }

    .pagination-numbers {
        margin: 0 5px;
    }

    .pagination-number, .pagination-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Hide the ellipsis and some page numbers on very small screens */
    @media (max-width: 375px) {
        .pagination-ellipsis, .pagination-number:nth-child(3) {
            display: none;
        }
    }
}
