.packages {
    margin-top: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f1f7 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ===== HEADER SECTION ===== */
.package-title {
    text-align: center;
    padding: 80px 20px;
    animation: fadeInDown 0.8s ease;
}

.package-title h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.package-title p {
    font-size: 1.1em;
    color: #2d3748;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5em;
    color: #2d3748;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    animation: fadeIn 1s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #9cdef4, #121212);
    border-radius: 2px;
}

.package-section {
    margin: 60px 50px;
}

/* ===== POPULAR DESTINATIONS ===== */
.destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.destination-card {
    background-size: cover;
    background-position: center;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.3), rgba(56, 178, 172, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.destination-card:hover::before {
    opacity: 1;
}

.destination-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.destination-card h3 {
    color: white;
    font-size: 1em;
    /* font-weight: 700; */
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); */
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* ===== TOUR CATEGORIES ===== */
.tour-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    margin: 0 auto;
    max-width: 1000px;
}

.category-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* padding: 20px; */
    /* border:1px solid black; */
    margin: 0;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name h3 {
    font-weight: 400;
    color: #2d3748;
    font-size: 1.1em;
    margin-top: 40px;
}

/* ===== ALL ITINERARIES SECTION ===== */
.safaris-section {
    margin: 80px 50px 50px;
}

.safari-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 50px;
}

/* ===== FILTERS SIDEBAR ===== */
.filters-sidebar {
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.search-container {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #3182ce;
    background: white;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.suggestion-item {
    display: block;
    padding: 12px 20px;
    color: #2d3748;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f7fafc;
    color: #3182ce;
}

/* ===== FILTER GROUPS ===== */
.filter-group {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 18px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title i {
    color: #9cdef4;
    font-size: 1.1em;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-option:hover {
    background: #f7fafc;
}

.filter-option input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #3182ce;
}

.filter-option span {
    cursor: pointer;
    color: #4a5568;
    flex: 1;
    font-size: 0.95em;
}

.clear-filters-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f1eded, #9f0404);
    border: none;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 48, 48, 0.3);
}

.clear-filters-btn:active {
    transform: translateY(0);
}

/* ===== ITINERARIES GRID ===== */
.safaris-container {
    position: relative;
}

.safaris {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 4em;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.no-results p {
    color: #718096;
    font-size: 1.2em;
}

/* ===== ITINERARY CARDS ===== */
.itinerary-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.itinerary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.itinerary-card a {
    text-decoration: none;
    display: block;
}

.itinerary-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.itinerary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.itinerary-card:hover .itinerary-image img {
    transform: scale(1.1);
}

.itinerary-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #111111;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.itinerary-badge i {
    color: #9cdef4;
}

.itinerary-content {
    padding: 25px;
}

.itinerary-title {
    color: #111111;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
}

.itinerary-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.price-label {
    color: #111111;
    font-size: 0.9em;
}

.price-amount {
    color: #111111;
    font-size: 1.8em;
    font-weight: 700;
}

.itinerary-footer {
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.view-details {
    color: #9cdef4;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.itinerary-card:hover .view-details {
    gap: 12px;
}

.view-details i {
    transition: transform 0.3s ease;
}

.itinerary-card:hover .view-details i {
    transform: translateX(4px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .safari-grid {
        grid-template-columns: 280px 1fr;
    }

    .safaris {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 968px) {
    .package-title h1 {
        font-size: 2.5em;
    }

    .safari-grid {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: relative;
        top: 0;
    }

    .destinations {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .tour-categories {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .safaris {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .package-section,
    .safaris-section {
        margin: 40px 20px;
    }
}

@media (max-width: 640px) {
    .package-title h1 {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .destinations {
        grid-template-columns: 1fr;
    }

    .safaris {
        grid-template-columns: 1fr;
    }

    .itinerary-card {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    .itinerary-content {
        padding: 15px;
    }

    .itinerary-title {
        color: #111111;
        font-size: 1em;
        font-weight: 400;
        margin-bottom: 10px;
    }

    .itinerary-price {
        gap: 5px;
        margin-bottom: 10px;
    }

    .price-label {
        font-size: 0.7em;
    }

    .price-amount {
        font-size: 1.5em;
    }
}
