/* Packages Listing Page Styles */

/* View Options */
.view-options {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-options:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.view-options .btn-group {
    display: flex;
    gap: 0.5rem;
}

.view-options .btn-outline-primary {
    border: 2px solid #e5e5e5;
    color: #666;
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.view-options .btn-outline-primary:hover,
.view-options .btn-check:checked + .btn-outline-primary {
    background: var(--primary-color, #A91467);
    border-color: var(--primary-color, #A91467);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(169,20,103,0.2);
}

/* Package Cards */
.package-item {
    margin-bottom: 2rem;
}

.package-item .item {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.package-item .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

/* Package Image */
.package-item .photo {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.package-item .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-item .item:hover .photo img {
    transform: scale(1.05);
}

/* Wishlist Button */
.package-item .wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.98);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.package-item .wishlist:hover {
    background: var(--primary-color, #A91467);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(169,20,103,0.2);
}

.package-item .wishlist i {
    color: var(--primary-color, #A91467);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.package-item .wishlist:hover i {
    color: #fff;
}

/* Price Tag */
.package-item .price-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--primary-color, #A91467);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(169,20,103,0.2);
}

.package-item .price-tag del {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
    margin-left: 0.5rem;
}

/* Package Content */
.package-item .text {
    padding: 1.5rem;
}

.package-item .text h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #222;
}

.package-item .text h2 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.package-item .text h2 a:hover {
    color: var(--primary-color, #A91467);
}

/* Reviews */
.package-item .review {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-item .review i {
    color: #ffc107;
    font-size: 1rem;
}

.package-item .review small {
    color: #666;
    font-size: 0.9rem;
}

/* Package Details */
.package-item .element {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #444;
    padding: 0.5rem;
    background: #f8f9fb;
    border-radius: 0.8rem;
}

.package-item .element i {
    color: var(--primary-color, #A91467);
    margin-right: 0.5rem;
}

/* List View */
.package-item .item.list-view {
    display: flex;
    flex-direction: row;
}

.package-item .item.list-view .photo {
    width: 350px;
    flex-shrink: 0;
}

.package-item .item.list-view .text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

/* Filter Section */
.package-sidebar {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.package-sidebar .widget {
    margin-bottom: 1.5rem;
}

.package-sidebar .widget:last-child {
    margin-bottom: 0;
}

.package-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 600;
}

.package-sidebar .box {
    background: #f8f9fb;
    padding: 1rem;
    border-radius: 0.8rem;
}

.package-sidebar .form-control,
.package-sidebar .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8f9fb;
}

.package-sidebar .form-control:focus,
.package-sidebar .form-select:focus {
    border-color: var(--primary-color, #A91467);
    box-shadow: 0 0 0 3px rgba(169,20,103,0.1);
    background: #fff;
}

/* Select2 Customization */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e0e0e0;
    border-radius: 0.8rem;
    min-height: 45px;
    background: #f8f9fb;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary-color, #A91467);
    box-shadow: 0 0 0 3px rgba(169,20,103,0.1);
    background: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--primary-color, #A91467);
    border: none;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.3rem 0.8rem;
    margin: 0.3rem;
    box-shadow: 0 2px 10px rgba(169,20,103,0.15);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 0.5rem;
}

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

.pagination .page-item .page-link {
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color, #A91467);
    border-color: var(--primary-color, #A91467);
    color: #fff;
    box-shadow: 0 2px 10px rgba(169,20,103,0.15);
}

.pagination .page-item .page-link:hover {
    background: var(--primary-color, #A91467);
    border-color: var(--primary-color, #A91467);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(169,20,103,0.2);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .package-item .photo {
        height: 250px;
    }
}

@media (max-width: 991px) {
    .package-item .item.list-view {
        flex-direction: column;
    }

    .package-item .item.list-view .photo {
        width: 100%;
    }

    .package-item .photo {
        height: 220px;
    }

    .package-item .item.list-view .text {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .view-options {
        padding: 1rem;
    }

    .view-options .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .view-options .col-md-6:last-child {
        margin-bottom: 0;
    }

    .package-item .photo {
        height: 200px;
    }

    .package-item .text {
        padding: 1.2rem;
    }

    .package-item .text h2 {
        font-size: 1.1rem;
    }

    .package-sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575px) {
    .package-item .photo {
        height: 180px;
    }

    .package-item .price-tag {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }

    .package-item .element {
        font-size: 0.9rem;
    }
}
