/* Banner Overlay - Կարգախոսը աջ կողմում */
.banner-overlay {
    position: absolute;
    top: 50%;
    right: 10px;  /* Տեքստը տեղադրում ենք աջ կողմում */
    width: 45%;   /* Տեքստի լայնությունը սահմանված է 40% */
    transform: translateY(-50%); /* Կենտրոնացնում է վերլուծված ուղղությամբ */
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-align: left; /* Կարգախոսը դեպի աջ հավասարեցված */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Տառերի ստվեր */
    word-wrap: break-word; /* Անհրաժեշտության դեպքում տողերը կկոտրվեն */
    white-space: normal;  /* Տողերի ընդլայնումը թույլատրված է */
    margin-right: 5%;
    font-size: 25px;
}
.banner-overlay1 {
    position: absolute;
    top: 50%;
    left: 10px;  /* Տեքստը տեղադրում ենք ձախ կողմում */
    width: 45%;   /* Տեքստի լայնությունը սահմանված է 40% */
    transform: translateY(-50%); /* Կենտրոնացնում է վերլուծված ուղղությամբ */
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-align: left; /* Կարգախոսը դեպի աջ հավասարեցված */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Տառերի ստվեր */
    word-wrap: break-word; /* Անհրաժեշտության դեպքում տողերը կկոտրվեն */
    white-space: normal;  /* Տողերի ընդլայնումը թույլատրված է */
    margin-right: 5%;
    font-size: 25px;
}

.banner-overlay1 p {
    font-size: 24px;
    margin: 0;
}

/* ========== Travel Planner Styles ========== */
.travel-planner-header {
    background: linear-gradient(135deg, #36a1ff 0%, #0900b5 100%);
    color: white;
    border-bottom: 5px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    padding: 3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.travel-planner-header h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

#travel-planner-form .form-control,
#travel-planner-form .form-select {
    height: 50px;
    border: 2px solid #e8e8e8;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: none;
}

#travel-planner-form .form-control:focus,
#travel-planner-form .form-select:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 0.25rem rgba(37, 117, 252, 0.15);
}

#travel-planner-form .input-group-text {
    border-radius: 8px 0 0 8px;
    width: 45px;
    justify-content: center;
    border: none;
    background-color: #2575fc;
    color: white;
}

#travel-planner-form .btn-primary {
    background: linear-gradient(135deg, #36a1ff 0%, #0900b5 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#travel-planner-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

.travel-plan-card {
    transition: transform 0.3s;
    border-top: 5px solid #2575fc;
    overflow: hidden;
}

.travel-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.travel-plan-icon {
    background: rgba(255,255,255,0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.travel-plan-description {
    font-size: 16px;
    line-height: 1.8;
}

.travel-plan-description p {
    margin-bottom: 1.5rem;
}

.travel-plan-description p:first-of-type {
    font-weight: 500;
    font-size: 18px;
}

.travel-planner-form-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.travel-planner-empty-state {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.travel-planner-empty-state i {
    font-size: 5rem;
    color: white;
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    padding: 8px 20px;
}

.btn-outline-primary:hover {
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.2);
}

/* ========== Page Heading ========== */
.page-heading {
    text-align: center;
    margin-bottom: 30px;
}

.page-heading h3 {
    font-size: 30px;
    margin-bottom: 5px;
    color: #000;
}

.page-heading span {
    font-size: 1.1em;
    color: #777;
}

/* ========== Tours List ========== */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tour-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background-color: #fff;
    height: 100%;
}

.tour-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Image container with fixed height */
.tour-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-bottom: 2px solid #f0f0f0;
}

.tour-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Price tag */
.tour-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tour information layout */
.tour-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.tour-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.tour-location {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-location i {
    color: var(--accent-color);
    font-size: 14px;
}

.tour-list-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.tour-type {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-type i {
    color: #6c757d;
}

.tour-stars {
    display: flex;
    gap: 2px;
}

.tour-stars img {
    width: 14px;
    height: 14px;
}

/* Tour card grid layout adjustments */
#tours-container {
    display: flex;
    flex-wrap: wrap;
    /* margin: 0 -10px; */
    width: 100%;
}

.tour-card-wrapper {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Ensure exactly 3 cards per row taking full width minus filter width */
@media (min-width: 991px) {
    #tours-container {
        width: 100%;
    }
    
    .tour-card-wrapper {
        width: 33.333%;
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    /* Make cards fill the available space when filters are shown */
    #tours-column {
        width: calc(100% - 400px);
        max-width: calc(100% - 400px);
        flex: 0 0 calc(100% - 400px);
    }
    
    /* When filters are hidden, adjust the layout */
    #filter-column.d-none + #tours-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Medium screens - 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
    .tour-card-wrapper {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .tour-image-container {
        height: 170px;
    }
}

/* Small screens - 1 card per row */
@media (max-width: 768px) {
    .tour-card-wrapper {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .tour-image-container {
        height: 160px;
    }
}

/* Remove old hover effects */
.tour-card-link::after {
    display: none;
}

/* ========== Tour Detail Page ========== */
.single-property .main-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.single-property .accordion-button {
    background-color: #4CAF50;
    color: white;
}

.single-property .accordion-button:hover {
    background-color: #45A049;
}

.main-button a {
    background-color: #FF5722;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.main-button a:hover {
    background-color: #E64A19;
}
/* Կենտրոնացման և տարածման համար */
.tour-type-filters {
    display: flex;
    justify-content: center; /* Կենտրոնավորում է կոճակները */
    gap: 20px; /* Կոճակների միջև մեծ միջհավասարումը */
    flex-wrap: wrap; /* Եթե տարածությունը չի հերիքում, կոճակները կտեղափոխվեն նոր գիծ */
    margin: 20px 0; /* Թույլատրվում է դուրս գալ փոքր marge */
    padding: 10px 0; /* Քիչ padding */
}

/* Կոճակների ձևավորում */
.tour-type-filters .btn {
    padding: 10px 20px; /* Ապրանքային padding */
    font-size: 16px;
    border-radius: 5px; /* Սեղմված եզրեր */
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* btn-primary */
.tour-type-filters .btn-primary {
    background-color: #007bff;
    color: white;
}

/* btn-secondary */
.tour-type-filters .btn-secondary {
    background-color: #6c757d;
    color: white;
}

/* btn:hover */
.tour-type-filters .btn:hover {
    background-color: #0056b3;
}

/* Փոքր էկրանների համար (<=600px) կոճակները կտեղափոխվեն մեկ սյունակ */
@media (max-width: 600px) {
    .tour-type-filters {
        flex-direction: column; /* Կոճակները կտեղափոխվեն մեկ սյունակ */
        align-items: center;
    }

    .tour-type-filters .btn {
        width: 100%; /* Կոճակները կլրացնեն ամբողջ լայնությունը */
        margin-bottom: 10px; /* Միջհավասարումը */
    }
}

.search-form-wrapper {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.search-form label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.search-form input, .search-form select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-form input:focus, .search-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}

.search-form input::placeholder {
    color: #888;
    font-size: 14px;
    opacity: 0.8;
}

.search-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.search-form select.form-select {
    height: 50px;
    padding: 0 15px;
    background-position: right 15px center;
    cursor: pointer;
}

.search-form .row.mb-4 {
    margin-bottom: 0 !important;
}

.btn-submit {
    margin-top: 8px;
    min-width: 200px;
    height: 50px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.row.mb-4 {
    gap: 15px;
}

.search-form {
    margin-bottom: 30px;
}

.search-form .row {
    margin: 0 -10px;
}

.search-form .col-md-6 {
    padding: 0 10px;
    margin-bottom: 20px;
}

.search-form input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
}

.search-form input[type="number"]::-webkit-outer-spin-button,
.search-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.search-form .form-control,
.search-form .form-select {
    height: 50px;
    background-color: #f8f9fa;
    border: 2px solid #e4e6e8;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    padding: 10px 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.search-form .form-control::placeholder {
    color: #888;
    font-weight: 500;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    background-color: #fff;
    border-color: #5a7bff;
    box-shadow: 0 5px 15px rgba(90,123,255,0.1);
    transform: translateY(-1px);
}

/* Updated Search Form Styles */
.search-form-wrapper {
    background-color: #fff;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-form {
    display: grid;
    gap: 0px;
}

.search-form .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
}

.search-form .col-md-6 {
    padding: 0;
    width: 100%;
    max-width: 100%;
    flex: none;
}

@media (max-width: 768px) {
    .search-form .row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .search-form-wrapper {
        padding: 24px;
    }
}

.search-form .form-control,
.search-form .form-select,
.search-form select {
    height: 50px !important;
    width: 100% !important;
    background-color: #ffffff !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
    margin-bottom: 15px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    padding-right: 0px !important;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.search-form .form-control::placeholder {
    color: #666666;
    font-weight: 500;
}

.search-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 0px;
}

.search-form select::-ms-expand {
    display: none !important;
}

.search-form select:focus {
    outline: none !important;
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}

/* Убедимся, что все поля в одном ряду имеют одинаковую ширину */
.search-form .row > div {
    flex: 1 1 0 !important;
    min-width: 200px !important;
}

.btn-submit {
    height: 48px;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    padding: 0 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(45deg, #357abd, #4a90e2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.btn-submit i {
    font-size: 18px;
}

/* Additional Form Styles */
.search-form .row {
    margin: 0 -8px;
    display: flex;
    flex-wrap: wrap;
}

.search-form .col-md-6 {
    padding: 0 8px;
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 768px) {
    .search-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.search-form .form-control,
.search-form .form-select {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.search-form .form-control:hover,
.search-form .form-select:hover {
    border-color: #4a90e2;
}

@media (max-width: 768px) {
    .search-form-wrapper {
        padding: 20px;
    }
    
    .search-form .form-control,
    .search-form .form-select {
        font-size: 14px;
    }
    
    .btn-submit {
        width: 100%;
        margin-top: 10px;
    }
}

.tour-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.tour-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 220px !important; /* Increased height for images */
    object-fit: cover;
    width: 100%;
}

.tour-card:hover .card-img-top {
    transform: scale(1.05);
}

.tour-card .title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tour-card .price {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tour-card .content {
    padding: 1.25rem;
}

.tour-card .info li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Large screens - always show exactly 3 cards per row */
@media (min-width: 991px) {
    .tour-card-wrapper {
        max-width: 33.333%;
        flex: 0 0 33.333%;
        padding: 0 15px;
    }

    
    #filter-column {
        max-width: 200px;
    }

    /* When filters are hidden, still maintain 3 cards but make them slightly larger */
    .filters-hidden .tour-card-wrapper {
        max-width: 33.333%;
        flex: 0 0 33.333%;
    }
    
    /* Full-width container when filters are hidden */
    .filters-hidden {
        margin: 0 -15px;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 991px) {
    .tour-card-wrapper {
        max-width: 50%;
        flex: 0 0 50%;
    }
    
    .card-img-top {
        height: 200px !important;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .tour-card-wrapper {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .card-img-top {
        height: 200px !important;
    }
    
    .tour-card .content {
        padding: 1rem;
    }
}

    #travel-planner-form .form-control,
    #travel-planner-form .form-select {
        font-size: 0.9rem;
        border-radius: 4px;
    }
    
    #travel-planner-form .form-label {
        font-weight: 500;
        color: #495057;
    }
    
    #travel-planner-form .btn-search {
        background-color: #fd7e14;
        border-color: #fd7e14;
        transition: all 0.3s ease;
    }
    
    #travel-planner-form .btn-search:hover {
        background-color: #e86b0c;
        border-color: #e86b0c;
    }
    
    #travel-planner-form i.fas {
        color: #fd7e14;
    }
    
    .card-header.planner-header {
        background-color: #fd7e14;
    }

/* ========== Top Tours Page Specific Styles ========== */
.top-tours-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.top-tours-section .tour-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}
    
.top-tours-section .tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
    
.top-tours-section .tour-card .card-img-top {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
}
    
.top-tours-section .tour-card:hover .card-img-top {
    transform: scale(1.05);
}

/* TOP Badge Styling - Left side */
.top-badge {
    position: absolute;
    top: 20px;
    left: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border: none;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.top-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.top-badge i {
    font-size: 10px;
    margin-right: 4px;
}

.top-tours-section .badge.top-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.75rem;
}

.top-tours-section .price-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.75rem;
}

.top-tours-section .price-tag .price-pill {
    background-color: rgba(33, 37, 41, 0.75);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
}

.top-tours-section .tour-rating {
    display: flex;
    gap: 2px;
}

.top-tours-section .empty-state {
    padding: 3rem 1rem;
}

.top-tours-section .tour-heading-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.tour-card-link {
    color: inherit;
}
.tour-card-link:hover {
    text-decoration: none;
}
.pagination {
    margin-bottom: 2rem;
}
#filter-column, #tours-column {
    transition: all 0.3s ease;
}
.form-select.form-select-sm, .form-control.form-control-sm {
    font-size: 0.8rem;
}
.card-body {
    padding: 30px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    #filter-column {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 2000 !important;
        padding: 15px !important;
        display: block !important;
        overflow-y: auto !important;
        max-width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateZ(0) !important;
        will-change: transform !important;
        touch-action: pan-y !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    #filter-column.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #filter-column:not(.show) {
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    #filter-column .card {
        max-width: 380px;
        margin: 0 auto;
        margin-top: 50px;
        position: relative;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transform: translateZ(0) translateY(20px);
        transition: transform 0.3s ease;
    }
    
    #filter-column.show .card {
        transform: translateZ(0) translateY(0);
    }
    
    #filter-column .card-body {
        padding: 20px;
        background: white;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    /* Improved filter button for mobile */
    .filter-button .btn {
        height: 44px;
        position: relative;
        z-index: 10;
        transform: translateZ(0);
    }
    
    /* Custom select/dropdown improvements for mobile */
    .custom-options {
        transform: translateZ(0);
        -webkit-overflow-scrolling: touch;
        max-height: 220px;
    }
    
    /* Filter close button improvements */
    .filter-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #dc3545;
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        z-index: 10;
        color: white;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        outline: none;
        transform: translateZ(0);
    }
    
    .filter-close-btn:hover {
        background: #c82333;
        transform: scale(1.1) translateZ(0);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
    
    .filter-close-btn:focus {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
    
    .filter-close-btn span {
        font-size: 20px;
        line-height: 1;
        display: block;
    }
}

/* Large screen styles - revert to original */
@media (min-width: 992px) {
    #filter-column {
        position: static;
        display: block;
        background: transparent;
        z-index: auto;
        padding: 0;
        overflow: visible;
        max-width: 350px;
        margin-right: 20px;
    }
    
    #filter-column .card {
        max-width: none;
        margin: 0;
        margin-top: 0;
        position: static;
        background: white;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    #filter-column .card-body {
        padding: 18px;
        background: white;
    }
    
    /* Hide close button on large screens */
    .filter-close-btn {
        display: none !important;
    }
}

/* ========== Filter Section Styling ========== */
/* Custom Select Base Styles */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    height: 31px;
}

.custom-select-trigger .arrow {
    position: relative;
    width: 10px;
    height: 10px;
}

.custom-select-trigger .arrow::before,
.custom-select-trigger .arrow::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: #888;
    transition: all 0.3s;
}

.custom-select-trigger .arrow::before {
    left: 0;
    transform: rotate(45deg);
}

.custom-select-trigger .arrow::after {
    right: 0;
    transform: rotate(-45deg);
}

.custom-select-wrapper.open .arrow::before {
    transform: rotate(-45deg);
}

.custom-select-wrapper.open .arrow::after {
    transform: rotate(45deg);
}

.custom-options {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    display: block;
}

.search-container {
    padding: 8px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Filter Button Styling */
.filter-button {
    margin-bottom: 15px;
    padding: 0 5px;
}

@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    }
}

.filter-button .btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 1px solid rgba(220, 220, 220, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    border-radius: 12px;
    padding: 12px 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: subtle-pulse 3s infinite ease-in-out;
    backdrop-filter: blur(5px);
}

.filter-button .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.filter-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    color: #444;
    border-color: rgba(200, 200, 200, 0.8);
}

.filter-button .btn:hover::before {
    left: 0;
}

.filter-button img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    filter: brightness(0.3);
    transition: all 0.3s ease;
}

.filter-button .btn:hover img {
    transform: rotate(90deg);
    opacity: 0.8;
}

#filter-column .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#filter-column .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#filter-column .card-body {
    padding: 18px;
}

#filter-column .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

#filter-column .form-control,
#filter-column .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

#filter-column .form-control:focus,
#filter-column .form-select:focus {
    border-color: #36a1ff;
    box-shadow: 0 0 0 3px rgba(54, 161, 255, 0.15);
    background-color: #fff;
}

/* Custom Select Styling Improvements */
.custom-select-wrapper {
    margin-bottom: 12px;
}

.custom-select-trigger {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.custom-select-wrapper.open .custom-select-trigger,
.custom-select-trigger:hover {
    background-color: #fff;
    border-color: #36a1ff;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 0 3px rgba(54, 161, 255, 0.15);
}

.custom-options {
    border: 1px solid #36a1ff;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

.search-input {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    width: 100%;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #36a1ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(54, 161, 255, 0.15);
}

.custom-option-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option-item:hover {
    background-color: #f0f7ff;
}

.custom-option-item.selected {
    background-color: #e6f2ff;
    color: #0066cc;
    font-weight: 500;
}

/* Price Range Styling */
.currency-checkboxes {
    margin-bottom: 8px;
}

.currency-option {
    position: relative;
    display: inline-block;
}

.currency-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.currency-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.currency-label img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.currency-input:checked + .currency-label {
    background-color: #e6f2ff;
    border-color: #36a1ff;
}

.currency-input:checked + .currency-label img {
    opacity: 1;
}

.currency-input:focus + .currency-label {
    box-shadow: 0 0 0 3px rgba(54, 161, 255, 0.15);
}

/* Price inputs */
#filter-form .d-flex.align-items-center.gap-1 {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
}

#filter-form .d-flex.align-items-center.gap-1 input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: #333;
    outline: none;
}

#filter-form .d-flex.align-items-center.gap-1:focus-within {
    border-color: #36a1ff;
    box-shadow: 0 0 0 3px rgba(54, 161, 255, 0.15);
    background-color: #fff;
}

/* Buttons */
#filter-form .btn-primary {
    background: linear-gradient(135deg, #36a1ff 0%, #0066cc 100%);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

#filter-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, #2b96ff 0%, #0059b3 100%);
}

#filter-form .btn-outline-secondary {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

#filter-form .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #dc3545;
    border-color: #dc3545;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}
