/* RentCafe Listings Styles */
.rentcafe-listings-container {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.custom-fp-button {
    background-color: #a3905d !important;
    font-family: "Plus Jakarta Sans", Sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 0px 0px 0px 0px;
    padding: 15px 28px 15px 28px;
    margin-bottom: 16px;
}

.rentcafe-filters {
    display: flex
;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    border: 1px solid #c7c7c7;
    border-width: 1px 0 1px 0;
    padding: 10px 10px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.rentcafe-filters input,
.rentcafe-filters select,
.rentcafe-filters button {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.rentcafe-filters input:focus,
.rentcafe-filters select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.rentcafe-filters input {
    flex: 1;
    min-width: 200px;
}

.rentcafe-results-count {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.rentcafe-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 70px; 
    margin-bottom: 2rem;
    padding: 10px;
}

.rentcafe-listing-card {
    display: flex;
    flex-wrap: wrap;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #a3905d;
    padding-top: 0px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
.listing-content {
    width: 100%;
    text-align: center;
}
.rentcafe-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007cba;
}

.listing-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.listing-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
}

.floorplan {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
}

.listing-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.detail-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item .label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.detail-item .value {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.listing-actions {
    text-align: center;
}

.apply-button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.apply-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 92, 138, 0.3);
    color: white;
    text-decoration: none;
}

.rentcafe-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.rentcafe-error p {
    margin: 0.5rem 0;
}

.rentcafe-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #7f8c8d;
    font-style: italic;
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.rentcafe-no-results p {
    margin: 0;
    font-size: 1.1rem;
}

/* Loading state */
.rentcafe-loading {
    opacity: 0.6;
    pointer-events: none;
}

.rentcafe-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



/* Property Details Page Styles */
.rentcafe-property-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.property-back {
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    padding: 10px 15px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #5a6268;
    color: white;
}

.property-header {
    text-align: center;
    margin-bottom: 30px;
}

.property-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.floorplan {
    color: #7f8c8d;
    font-size: 1.2em;
}

.property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.property-gallery {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.thumbnail:hover {
    opacity: 0.8;
}
.main_list_details {
    display: flex
;
}
.no-image {
    height: 300px;
    width: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6c757d;
}

.property-details h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.detail-item .label {
    font-weight: bold;
    color: #495057;
}

.detail-item .value {
    color: #2c3e50;
}

.property-sidebar > * {
    margin-bottom: 20px;
}

.property-specials,
.property-amenities {
    padding: 15px;
    border-radius: 5px;
}

.property-specials h3,
.property-amenities h3 {
    margin-bottom: 10px;
}

.property-actions .apply-button,
.property-virtual-tour .virtual-tour-button {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}

.property-actions .apply-button {
    background: #007bff;
    color: white;
}

.property-actions .apply-button:hover {
    background: #0056b3;
}

.property-virtual-tour .virtual-tour-button {
    background: #17a2b8;
    color: white;
}

.property-virtual-tour .virtual-tour-button:hover {
    background: #138496;
}

.property-video {
    margin-top: 20px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

.property-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.property-footer h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.additional-info p {
    margin-bottom: 5px;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-content {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .image-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-image img {
        height: 300px;
    }
}

/* Link styling in listings */
.property-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-link:hover {
    color: #007bff;
    text-decoration: underline;
}


/* Enhanced Gallery Styles */
.property-image-gallery {
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.property-image-gallery h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.9;
}

.image-caption {
    padding: 10px;
    margin: 0;
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
}

/* Lightbox Styles */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: #ff4757;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Thumbnail active state */
.thumbnail.active {
    border: 1px solid ;
    transform: scale(1.05);
}

/* Error message styling */
.property-images-error {
    background: #ffe6e6;
    border: 1px solid #ff4757;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.property-images-error h3 {
    color: #ff4757;
    margin-bottom: 10px;
}

.property-images-error .error {
    color: #ff4757;
    margin: 0;
}
div#bedrooms-filter {
    gap: 8px;
    display: flex;
}
input#rentcafe-search {
    border: 1px solid #c7c7c7;
}
.filters-main-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.rentcafe-filters input,
.rentcafe-filters select,
.rentcafe-filters button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.rentcafe-filters input:focus,
.rentcafe-filters select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.rentcafe-filters input {
    flex: 1;
    min-width: 80px;
}
div#rentcafe-beds-filter {
    gap: 8px;
    display: flex
;
}
.rentcafe-filters button {
    background: #e5ebee;
    color: white;
    border-radius: 5px;
    border: 1px solid #c7c7c752;
    padding: 7px 10px;
    color: #000000;
}

.rentcafe-filters button:hover {
    background: #5a6268;
}

.rentcafe-filters button#rentcafe-refresh {
    background: #28a745;
}

.rentcafe-filters button#rentcafe-refresh:hover {
    background: #218838;
}

.rentcafe-filters button#rentcafe-clear-filters {
    background: #dc3545;
}

.rentcafe-filters button#rentcafe-clear-filters:hover {
    background: #c82333;
}

.rentcafe-filters button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive filters */
@media (max-width: 768px) {
    .rentcafe-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rentcafe-filters input,
    .rentcafe-filters select,
    .rentcafe-filters button {
        width: 100%;
        min-width: unset;
    }
}
/* Responsive design for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .lightbox-close {
        top: -30px;
        right: -30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 150px;
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rentcafe-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .rentcafe-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rentcafe-filters input,
    .rentcafe-filters select,
    .rentcafe-filters button {
        width: 100%;
        min-width: unset;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item {
        justify-content: space-between;
    }
    
    .rentcafe-listing-card {
        padding: 1.25rem;
    }
    
    .listing-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .rentcafe-controls {
        padding: 0.75rem;
    }
    
    .rentcafe-listing-card {
        padding: 1rem;
    }
    
    .apply-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for new listings */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rentcafe-listing-card {
    animation: fadeIn 0.5s ease-out;
}