/* Listings Template Styles */

.single-featured-property.d-flex.flex-row {
    flex-direction: row;
    align-items: flex-start;
    min-height: 90px;
}

.single-featured-property.d-flex.flex-row .property-thumb {
    margin-bottom: 0;
}

.single-featured-property.d-flex.flex-row .property-content {
    padding-left: 24px;
}

.order-sidebar {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.order-sidebar .list-group-item {
    border: none;
    border-radius: 4px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.order-sidebar .list-group-item.active,
.order-sidebar .list-group-item:active {
    background: #f1f1f1;
    color: #222;
    font-weight: 600;
}

.order-sidebar .list-group-item:hover {
    background: #f8f9fa;
}

@media (max-width: 991px) {
    .order-sidebar {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .single-featured-property.d-flex.flex-row {
        flex-direction: column !important;
    }
    .single-featured-property.d-flex.flex-row .property-thumb {
        width: 100% !important;
        height: auto !important;
    }
    .single-featured-property.d-flex.flex-row .property-content {
        padding-left: 0 !important;
    }
}

.single-featured-property.card.flex-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 220px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.property-thumb.card-img-left {
    width: 100%;
    height: 300px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.property-thumb.card-img-left img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.single-featured-property .property-content.card-body {
    padding-left: 24px;
    padding-right: 16px;
}

@media (max-width: 991px) {
    .single-featured-property.card.flex-row {
        flex-direction: column;
        min-height: unset;
    }
    .property-thumb.card-img-left {
        width: 100% !important;
        height: 300px !important;
        border-radius: 12px 12px 0 0;
    }
    .property-thumb.card-img-left img {
        height: 300px !important;
    }
    .details-below-img-btn {
        padding: 8px 18px;
        font-size: 15px;
    }
}

.details-below-img-btn {
    display: block;
    margin: 12px auto 0 auto;
    background: #007bff;
    color: #fff;
    border-radius: 22px;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: none;
    transition: background 0.2s, color 0.2s;
    width: fit-content;
    text-align: center;
}

.details-below-img-btn:hover, .details-below-img-btn:focus {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

.property-thumb.position-relative {
    position: relative;
}

.details-overlay-btn-classic {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 2;
    background: #007bff;
    color: #fff;
    border-radius: 22px;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    opacity: 0.98;
    border: none;
    transition: background 0.2s, color 0.2s;
    pointer-events: auto;
    display: inline-block;
}

.details-overlay-btn-classic:hover, .details-overlay-btn-classic:focus {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

.details-card-btn {
    min-width: 160px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 22px;
    padding: 10px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #007bff;
    color: #fff;
    transition: background 0.2s, color 0.2s;
}

.details-card-btn:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

.property-thumb.card-img-left {
    width: 400px;
    height: 120px;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    overflow: hidden;
}

.property-thumb.card-img-left img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 16px 0 0 16px;
}

.single-featured-property.card.flex-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 120px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto 24px auto;
}

.property-thumb.card-img-left {
    flex: 0 0 40%;
    height: 100%;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.property-thumb.card-img-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px 0 0 16px;
}

.property-content.card-body {
    flex: 1 1 0%;
    padding-left: 24px;
    padding-right: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Custom range slider color to match button */
input[type=range].form-range {
    accent-color: #007bff;
}

input[type=range].form-range::-webkit-slider-thumb {
    background: #007bff;
    border: 2px solid #0056b3;
}

input[type=range].form-range::-moz-range-thumb {
    background: #007bff;
    border: 2px solid #0056b3;
}

input[type=range].form-range::-ms-thumb {
    background: #007bff;
    border: 2px solid #0056b3;
}

input[type=range].form-range::-webkit-slider-runnable-track {
    background: #e6f0ff;
}

input[type=range].form-range::-moz-range-track {
    background: #e6f0ff;
}

input[type=range].form-range::-ms-fill-lower, input[type=range].form-range::-ms-fill-upper {
    background: #e6f0ff;
}

/* Grid card styles for equal height */
.grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.grid-card .property-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.grid-card .property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-card:hover .property-thumb img {
    transform: scale(1.05);
}

.grid-card .property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.grid-card .property-content h5 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.grid-card .property-content .location {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.grid-card .property-content .space {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.grid-card .property-content .description {
    flex: 1;
    margin-bottom: 15px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.range-dual {
    pointer-events: auto;
    accent-color: #007bff;
    position: absolute;
    width: 100%;
    top: 0;
    height: 36px;
    background: transparent;
}

.range-dual::-webkit-slider-thumb {
    background: #007bff;
    border: 2px solid #0056b3;
}

.range-dual::-moz-range-thumb {
    background: #007bff;
    border: 2px solid #0056b3;
}

.range-dual::-ms-thumb {
    background: #007bff;
    border: 2px solid #0056b3;
}

.range-dual::-webkit-slider-runnable-track,
.range-dual::-moz-range-track,
.range-dual::-ms-fill-lower,
.range-dual::-ms-fill-upper {
    background: #e6f0ff;
} 