/* ========================================
   LISTING PAGE STYLES
   ======================================== */

/* Header Section */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #495057;
}

.results-count {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.search-sort-container {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 34%;
    color: #6c757d;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.sort-dropdown {
    min-width: 150px;
}

.form-select {
    font-size: 14px;
    padding: 8px 12px;
}

/* Main Content Section */
.listing-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Filters Sidebar */
.filters-sidebar {
    padding: 0px 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 16px;
}

.filter-header h6 {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.filter-header i {
    color: #8a8a8a;
    font-size: 14px;
}

.filter-header[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.filter-options {
    padding-left: 8px;
}

.form-check {
    margin-bottom: 16px;
}

.form-check-input {
    margin-right: 12px;
    max-width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #FE8267;
    border-color: #FE8267;
}

.form-check-label {
    font-size: 16px;
    color: #4a4a4a;
    cursor: pointer;
    font-weight: 500;
}

/* Price Range */
.price-range {
    padding: 0 12px;
}

.price-slider {
    position: relative;
    margin: 20px 0;
}

.form-range {
    width: 100%;
    height: 6px;
    background: #FCEBE6;
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-track {
    height: 6px;
    background: #FCEBE6;
    border-radius: 3px;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FE8267;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(254, 130, 103, 0.3);
    margin-top: -7px;
}

.form-range::-moz-range-track {
    height: 6px;
    background: #FCEBE6;
    border-radius: 3px;
    border: none;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FE8267;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(254, 130, 103, 0.3);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    margin-top: 8px;
}

/* Guests Counter */
.guests-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #FDF4F2;
    border-radius: 10px;
    border: none;
    justify-content: space-between;
}

.guests-counter .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    color: #666666;
    font-weight: 600;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.guests-counter .btn:hover {
    background-color: #FE8267;
    border-color: #FE8267;
    color: white;
}

.guests-counter .form-control {
    width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: none;
    background-color: transparent;
    color: #374151;
    padding: 0;
}

/* Calendar Widget */
.calendar-widget {
    padding: 0 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d0d0;
    color: #666666;
}

.calendar-header .btn:hover {
    background-color: #FE8267;
    border-color: #FE8267;
    color: white;
}

.month-year {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
}

.calendar-grid {
    font-size: 14px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: #8a8a8a;
    padding: 8px 0;
    font-size: 12px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day {
    text-align: center;
    padding: 10px 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #4a4a4a;
}

.day:hover {
    background-color: #f0f0f0;
}

.day.selected {
    background-color: #FE8267;
    color: white;
    font-weight: 600;
}

/* Listings Grid */
.listings-grid {
    padding-left: 24px;
}

.listing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.listing-card .card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.listing-card .card-body {
    padding: 24px;
}

.listing-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-location {
    color: #8a8a8a;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-location img {
    width: 14px;
    height: 14px;
}

.card-price .price-amount {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

.card-price .price-period {
    font-size: 16px;
    color: #8a8a8a;
    margin-left: 6px;
    font-weight: 500;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    display: flex;
    gap: 3px;
}

.stars i {
    font-size: 14px;
}

.rating-count {
    font-size: 14px;
    color: #8a8a8a;
    font-weight: 500;
}

.btn-outline-primary {
    border: 1px solid #D0D5DD;
    color: #344054;
    font-weight: 7600;
    border-radius: 58px;
    padding: 10px 18px;
    font-size: 16px;
    letter-spacing: 2px;

}

.btn-primary
{
    background-color: #FE8267;
    border-color: #FE8267;
    font-weight: 600;
    border-radius: 64px;
}
.btn-primary:hover
{
    background-color: #fefdfc;
    border-color: #FE8267;
    color: black;
    font-weight: 600;
    border-radius: 64px;
}
.btn-light
{
    background-color: #f6f4f3;
    border-color: #4b4847;
    font-weight: 600;
    border-radius: 64px;
}
.btn-outline-primary:hover {
    background-color: #FE8267;
    color: white;
    border-color: #FE8267;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 991px) {
    .listing-main {
        padding: 20px 0;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .listings-grid {
        padding-left: 0;
    }
    
    .search-sort-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .sort-dropdown {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .listing-header {
        padding: 16px 0;
    }
    
    .listing-header .row {
        text-align: center;
    }
    
    .listing-header .col-md-4 {
        margin-bottom: 16px;
    }
    
    .results-count {
        font-size: 14px;
    }
    
    .filters-sidebar {
        padding: 16px;
    }
    
    .filters-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    .listing-card .card-img-top {
        height: 180px;
    }
    
    .listing-card .card-body {
        padding: 16px;
    }
    
    .listing-card .card-title {
        font-size: 14px;
    }
    
    .card-price .price-amount {
        font-size: 18px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .listing-main {
        padding: 16px 0;
    }
    
    .filters-sidebar {
        padding: 12px;
    }
    
    .calendar-days .day {
        padding: 6px 2px;
        font-size: 11px;
    }
    
    .guests-counter .form-control {
        width: 50px;
        font-size: 12px;
    }
    
    .guests-counter .btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Filter Actions */
.filter-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.filter-actions .btn {
    font-size: 14px;
    padding: 8px 16px;
}

/* Date Inputs */
.date-inputs .form-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.date-inputs .form-control-sm {
    font-size: 13px;
    padding: 6px 8px;
}

/* No Results */
.no-results {
    padding: 3rem 1rem;
}

.no-results i {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-sort-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem;
        margin: 0 -1rem;
        border-top: 1px solid #e9ecef;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
}

/* Price slider improvements */
.price-range {
    padding: 0.5rem 0;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

/* Guests counter improvements */
.guests-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guests-counter input {
    text-align: center;
    max-width: 80px;
}

.guests-counter .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Pagination Styling */
.pagination {
    margin: 0;
}

.pagination .page-link {
    color: #FE8267;
    border: 1px solid #f0f0f0;
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #FE8267;
    border-color: #FE8267;
}

.pagination .page-item.active .page-link {
    background-color: #FE8267;
    border-color: #FE8267;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #bdbdbd;
    background-color: #f6f4f3;
    border-color: #f0f0f0;
    cursor: not-allowed;
}

/* Pagination container */
.d-flex.justify-content-center {
    margin-top: 2rem;
}

/* Make pagination responsive */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 6px 8px;
        font-size: 14px;
        margin: 0 1px;
    }
    
    .pagination .page-item:not(.active):not(.disabled) .page-link {
        display: none;
    }
    
    .pagination .page-item.active .page-link,
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        display: block;
    }
}/
* Select2 Custom Styling */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 6px 12px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #495057;
    line-height: 1.5;
    padding-left: 0;
    padding-right: 20px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 3px;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Location select specific styling */
.location-select {
    margin-bottom: 0;
}

.destination-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: white;
}

/* Hero search form adjustments for select2 */
.search-field .select2-container {
    width: 100% !important;
}

.search-field .select2-selection {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.search-field .select2-selection__rendered {
    font-size: 14px;
    color: #333;
}

.search-field .select2-selection__placeholder {
    color: #999;
}/* L
ocation Filter Checkboxes */
.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filter-options .form-check {
    margin-bottom: 8px;
    padding-left: 1.5em;
}

.filter-options .form-check-input {
    margin-top: 0.25em;
}

.filter-options .form-check-label {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    line-height: 1.4;
}

.filter-options .form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 500;
}

/* Filter header with collapse */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 12px;
}

.filter-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.filter-header i {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.filter-header[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

/* Responsive adjustments for location filter */
@media (max-width: 768px) {
    .filter-options {
        max-height: 150px;
    }
    
    .filter-options .form-check-label {
        font-size: 13px;
    }
}