:root {
    --primary: #ff5a5f;
    --border: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 23px auto;
    padding: 16px;
    position: relative;
}

/* Custom Select & Inputs */
.custom-select,
.input-wrapper {
    position: relative;
    width: 100%;
    min-height: 54px;
    flex: 1;
}

.select-trigger,
.input-wrapper input {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 2.7rem !important;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.input-wrapper input {
    cursor: text;
    color: #333;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.select-trigger:hover,
.input-wrapper input:hover {
    border-color: var(--primary);
    background: #fff;
}

.select-trigger span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-leading {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #666;
    pointer-events: none;
}

/* Dropdown Options */
.custom-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 250px;
    overflow-y: auto;
}

.custom-select.active .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select.active .arrow {
    transform: translateY(-50%) rotate(180deg);
}

.option {
    padding: 14px 20px;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 15px;
}

.option:hover {
    background: #fff1f1;
}

.option.selected {
    background: #ffe6e6;
    color: var(--primary);
    font-weight: 500;
}

.option:first-child {
    border-radius: 12px 12px 0 0;
}

.option:last-child {
    border-radius: 0 0 12px 12px;
}

/* Search Button */
.filter-btn {
    background: var(--primary);
    color: white;
    border: none;
    min-height: 54px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    padding: 0 20px;
}

.filter-btn:hover {
    background: #ff4449;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3);
}

.filter-btn:active {
    transform: translateY(0);
}

/* Tablet View (836px and up) */
@media (min-width: 836px) {
    .filter-bar {
        flex-direction: row;
        align-items: stretch;
        padding: 12px;
        gap: 0;
    }

    .custom-select,
    .input-wrapper {
        border-right: 1px solid #e8e8e8;
        border-radius: 0;
    }

    .custom-select:first-child .select-trigger {
        border-radius: 12px 0 0 12px;
    }

    .input-wrapper {
        border-right: none;
    }

    .input-wrapper input {
        border-radius: 0;
    }

    .filter-btn {
        width: auto;
        min-width: 180px;
        flex-shrink: 0;
        border-radius: 0 12px 12px 0;
    }

    .select-trigger,
    .input-wrapper input {
        padding: 0 40px 0 50px;
    }
}

/* Desktop View (1024px and up) */
@media (min-width: 1024px) {
    .filter-bar {
        padding: 14px;
    }

    .custom-select,
    .input-wrapper {
        min-height: 60px;
    }

    .filter-btn {
        min-height: 60px;
        min-width: 200px;
    }

    .select-trigger,
    .input-wrapper input {
        font-size: 16px;
        padding: 0 45px 0 55px;
    }

    .icon-leading {
        left: 20px;
        font-size: 19px;
    }

    .arrow {
        right: 20px;
    }

    .option {
        padding: 16px 24px;
    }
}

/* Small Mobile Adjustments (below 375px) */
@media (max-width: 374px) {
    .select-trigger span,
    .filter-btn span {
        font-size: 14px;
        margin: 23px;
    }

    .select-trigger,
    .input-wrapper input {
        padding: 0 40px 0 45px;
    }

    .icon-leading {
        left: 14px;
        font-size: 16px;
    }

    .arrow {
        right: 14px;
    }

    .filter-btn {
        font-size: 14px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.select-trigger:focus-visible,
.input-wrapper input:focus-visible,
.filter-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.option:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.package-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 18px !important;
    gap: 30px;
    justify-content: center;
    padding: 50px 40px;
}


.card {
    flex: 1 1 300px;
    max-width: 320px;
    padding: 12px;
    border-radius: 12px;
    background-color: #fff;
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-family: "Baloo bhai 2", serif;
    font-weight: 700;
    font-size: 1.4rem;
}

.card p {
    font-family: "Poppins", serif;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}


.card-details {
    display: flex;
    margin-top: 18px;
    justify-content: space-between;
    align-items: center;
}

.card-details>* {
    font-family: 'Poppins', sans-serif;
}

.image-cont{
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
    transform: 0.3 ease-in-out;
}
.card img:hover{
    transform: scale(1.1);
}

.card h3 {
    height: 50px;
    line-height: 26px;

}

.card-duration {
    height: 30px;
}

.card-description {
    height: 50px;
}

.card button {
    cursor: pointer;
    /* position: absolute;
    right: 5px; */
    padding: 8px;
    border: none;
    background-color: #14532D;
    color: #fff;
    border-radius: 20px;
}

.card button:hover {
    color: #14532D;
    background-color: #ccc;
}

@media (max-width: 992px) {

    .card {
        flex: 1 1 45%;
        max-width: 45%;
    }

}

@media (max-width: 576px) {

    .packages-cards {
        padding: 40px 20px;
    }

    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card img {
        height: 200px;
    }

    .card button {
        margin-top: 10px;
    }
}