/**
 * Travelio - Deals & Offers CSS Style Sheet
 * Premium styling with modern tokens, gradients, and micro-animations.
 */

:root {
    --deals-primary: #0B5ED7;
    --deals-dark: #082B5C;
    --deals-light: #F3F8FF;
    --deals-white: #FFFFFF;
    --deals-text: #16213A;
    --deals-border: #E4EAF2;
    --deals-success: #16A765;
    --deals-orange: #FFB020;
    --deals-red: #FF4D4F;
    --deals-shadow: 0 8px 24px rgba(0,0,0,0.04);
    --deals-radius: 14px;
}

/* Premium Hero Section */
.deals-hero {
    position: relative;
    background-image: linear-gradient(rgba(8, 43, 92, 0.78), rgba(8, 43, 92, 0.78)), 
                      url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0 140px;
    color: var(--deals-white);
    text-align: center;
}

.deals-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    animation: fadeInDown 0.8s ease;
}

.deals-hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Search Card styling */
.floating-search-card {
    background: var(--deals-white);
    border-radius: var(--deals-radius);
    box-shadow: 0 12px 36px rgba(8, 43, 92, 0.12);
    padding: 28px;
    border: 1px solid var(--deals-border);
    margin-top: -60px;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

/* Autocomplete suggestion dropdown */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deals-white);
    border: 1px solid var(--deals-border);
    z-index: 999;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 5px;
}

.autocomplete-suggestion-item {
    transition: background 0.2s ease;
}

.autocomplete-suggestion-item:hover {
    background-color: var(--deals-light);
}

/* Deal Card Premium Wrapper */
.deal-card-premium {
    background-color: var(--deals-white);
    border: 1px solid var(--deals-border);
    border-radius: var(--deals-radius);
    box-shadow: var(--deals-shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.deal-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(8, 43, 92, 0.08);
    border-color: rgba(11, 94, 215, 0.2);
}

/* Image Container Badges */
.deal-card-img-container {
    position: relative;
    overflow: hidden;
    height: 190px;
    background-color: #f0f0f0;
}

.deal-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.deal-card-premium:hover .deal-card-img {
    transform: scale(1.08);
}

/* Badge Tags styling */
.deal-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--deals-dark);
    color: var(--deals-white);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.discount-badge-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--deals-red);
    color: var(--deals-white);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.deal-wishlist-btn {
    position: absolute;
    top: 50px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--deals-text);
    transition: all 0.2s ease;
}

.deal-wishlist-btn:hover {
    transform: scale(1.1);
    background: var(--deals-white);
}

/* Countdown bar overlay */
.deal-countdown-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 43, 92, 0.85);
    backdrop-filter: blur(4px);
    color: var(--deals-white);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Card Body spacing */
.deal-card-body {
    padding: 16px;
}

.deal-location {
    font-size: 0.78rem;
    font-weight: 500;
    color: #667085;
}

.deal-type-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
}

.deal-type-hotel { background-color: #E8F0FF; color: var(--deals-primary); }
.deal-type-flight { background-color: #E6F8F3; color: var(--deals-success); }
.deal-type-tour { background-color: #FFF2CC; color: var(--deals-orange); }
.deal-type-activity { background-color: #FFF0F0; color: var(--deals-red); }
.deal-type-transfer { background-color: #F0F3F8; color: #555; }
.deal-type-visa { background-color: #F5E8FF; color: #8F00FF; }

.deal-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.deal-title a {
    color: var(--deals-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.deal-title a:hover {
    color: var(--deals-primary);
}

.deal-description {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Amenity Tags */
.badge-amenity {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: var(--deals-light);
    color: #475467;
}

.badge-amenity.free-cancellation {
    background-color: #E6F8F3;
    color: var(--deals-success);
}

.badge-amenity.instant-conf {
    background-color: #FFF2CC;
    color: #A36A00;
}

/* Pricing typography */
.old-price-val {
    font-size: 0.8rem;
}

.new-price-val {
    font-size: 1.4rem;
    font-weight: 800;
}

/* Promotional Card styling */
.promo-card {
    background: linear-gradient(135deg, var(--deals-primary) 0%, var(--deals-dark) 100%) !important;
}

.promo-circle-visual-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.promo-circle-visual-2 {
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.bounce-animation {
    animation: floatGift 3s infinite ease-in-out;
}

/* Trending Destination links */
.trending-item-link {
    transition: all 0.2s ease;
    border: 1px solid var(--deals-border);
}

.trending-item-link:hover {
    background-color: var(--deals-light);
    border-color: rgba(11, 94, 215, 0.3);
    transform: translateX(4px);
}

/* Skeleton Loading Shimmer */
.skeleton-loader-card {
    position: relative;
    border: 1px solid var(--deals-border);
}

.skeleton-shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 1004px;
    display: inline-block;
    position: relative;
    animation: placeholderShimmer 1.5s infinite linear;
}

@keyframes placeholderShimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

@keyframes floatGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .deals-hero {
        padding: 60px 0 100px;
    }
    .deals-hero h1 {
        font-size: 2.3rem;
    }
    .floating-search-card {
        padding: 20px;
        margin-top: -40px;
    }
}
