/* Enhanced Cards CSS - Additional Styling for Professional Look */

/* --- Advanced Card Animations --- */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* --- Card Loading States --- */
.card-loading {
    position: relative;
    overflow: hidden;
}

.card-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 200px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* --- Enhanced Package Cards --- */
.package-card-premium {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.package-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card-premium:hover::before {
    opacity: 1;
}

/* --- Hotel Cards with Glass Effect --- */
.hotel-card-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* --- Interactive Elements --- */
.interactive-badge {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-badge:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- Floating Action Buttons --- */
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: badgeFloat 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-btn.phone {
    background: linear-gradient(135deg, var(--primary-color), #004080);
}

/* --- Card Comparison Mode --- */
.card-compare {
    position: relative;
    transform: scale(0.95);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.card-compare.selected {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 3px var(--accent-color);
}

.compare-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-checkbox.checked {
    background: var(--primary-color);
    color: white;
}

/* --- Advanced Hover Effects --- */
.card-3d {
    perspective: 1000px;
}

.card-3d .card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* --- Gradient Overlays --- */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 51, 102, 0.1) 0%,
        rgba(212, 175, 55, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover .gradient-overlay {
    opacity: 1;
}

/* --- Responsive Enhancements --- */
@media (max-width: 768px) {
    .floating-action {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .card-3d:hover .card-inner {
        transform: none;
    }
}

/* --- Print Styles --- */
@media print {
    .floating-action,
    .offer-badge,
    .price-badge {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* --- Dark Mode Support --- */
@media (prefers-color-scheme: dark) {
    .card {
        background: linear-gradient(145deg, #2d3748 0%, #4a5568 100%);
        color: white;
    }
    
    .package-features,
    .hotel-rating {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .amenity-badge {
        background: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
}

/* --- Accessibility Enhancements --- */
.card:focus-within {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.3);
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 400px;
    border-radius: 20px;
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.long {
    width: 90%;
}