/* ================================================
   Packages Page Specific Styles
   ================================================ */

/* ================================================
   Page Header with Modern Design
   ================================================ */
.page-header {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    z-index: -2;
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 125, 50, 0.85), rgba(27, 94, 32, 0.85));
    z-index: -1;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   Package Filters
   ================================================ */
.package-filters {
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.package-search .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.package-search .btn {
    border-radius: 0 25px 25px 0;
}

/* ================================================
   Enhanced Professional Package Cards
   ================================================ */
.package-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.package-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.package-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(1.05) contrast(1.1);
}

.package-card:hover .package-image img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1.1) contrast(1.15);
}

.package-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent-color), #ff6f00);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-duration {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.discount-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.package-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 280px);
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stars {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-right: 10px;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.package-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.feature-item i {
    color: var(--primary-color);
    width: 18px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.feature-item.more-features {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.feature-item.more-features:hover {
    color: var(--primary-dark);
    background: rgba(45, 125, 50, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 -12px;
}

.package-price {
    margin-bottom: 25px;
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.package-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.original-price {
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.per-person,
.per-couple {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.savings-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-color), #ff6f00);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
}

.package-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: auto;
}

.package-actions .btn {
    font-size: 0.95rem;
    padding: 14px 20px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.package-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(45, 125, 50, 0.3);
}

.package-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 125, 50, 0.4);
}

.package-actions .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.package-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 125, 50, 0.3);
}

.btn-block {
    width: 100%;
}

/* ================================================
   Package Categories
   ================================================ */
.packages-section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ================================================
   Loading States
   ================================================ */
.package-skeleton {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    height: 500px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

.skeleton-image {
    height: 250px;
    background: #e0e0e0;
}

.skeleton-content {
    padding: 25px;
}

.skeleton-line {
    height: 15px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

/* ================================================
   Empty State
   ================================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ================================================
   Package Details Modal
   ================================================ */
.package-modal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.package-modal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 20px 30px;
}

.package-modal .modal-title {
    font-weight: 600;
}

.package-modal .btn-close {
    filter: invert(1);
}

.package-modal .modal-body {
    padding: 30px;
}

.package-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-feature i {
    color: var(--primary-color);
    width: 20px;
}

.itinerary-day {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.itinerary-day h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

/* ================================================
   Responsive Design for Professional Layout
   ================================================ */
@media (max-width: 1199.98px) {
    .page-title {
        font-size: 3rem;
    }
    
    .package-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .package-search {
        margin-top: 15px;
    }
    
    .section-header .section-title {
        font-size: 2rem;
    }
    
    .package-card {
        margin-bottom: 30px;
    }
    
    .package-image {
        height: 250px;
    }
    
    .package-content {
        padding: 25px;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .detail-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        height: 50vh;
        min-height: 350px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin: 2px;
    }
    
    .package-content {
        padding: 20px;
    }
    
    .package-title {
        font-size: 1.3rem;
    }
    
    .package-image {
        height: 220px;
    }
    
    .current-price {
        font-size: 1.6rem;
    }
    
    .package-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .package-modal .modal-body {
        padding: 20px;
    }
    
    .package-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .package-duration {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .package-image {
        height: 200px;
    }
    
    .package-content {
        padding: 15px;
    }
    
    .package-title {
        font-size: 1.2rem;
    }
    
    .current-price {
        font-size: 1.4rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .package-features {
        gap: 8px;
    }
    
    .feature-item {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .package-actions .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .package-price {
        padding: 15px 10px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .package-filters .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ================================================
   Special Effects
   ================================================ */
.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.package-card:hover::before {
    opacity: 0.05;
}

.package-actions .btn-primary {
    position: relative;
    overflow: hidden;
}

.package-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.package-actions .btn-primary:hover::before {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
}