/**
 * Odmor Promo Carousel Styles v3
 * Fixed to allow Elementor color overrides
 */

/* Main container */
.odmor-promo-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Track */
.promo-carousel-track {
    position: relative;
    width: 100%;
}

/* Slide - fade effect */
.promo-carousel-slide {
    display: none;
    width: 100%;
}

.promo-carousel-slide.active {
    display: block;
}

/* Card - vertical layout (image on top, content below) */
.promo-card {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Image Section */
.promo-card-image {
    position: relative;
    width: 100% !important;
    height: 250px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.promo-card:hover .promo-card-image img {
    transform: scale(1.08);
}

/* Badge - default styles, can be overridden by Elementor */
.promo-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 2;
}

/* Content Section */
.promo-card-content {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff;
}

/* Title - default color, overridable */
.promo-card-title {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a56db;
    line-height: 1.3 !important;
}

.promo-card:hover .promo-card-title {
    color: #1e40af;
}

/* Description */
.promo-card-desc {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #64748b;
}

/* Pricing */
.promo-card-pricing {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

.promo-card-price {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0f172a;
    line-height: 1 !important;
}

.promo-card-price small {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: inherit;
}

.promo-card-suffix {
    font-size: 13px !important;
    color: #64748b;
}

.promo-card-validity {
    margin: 0 !important;
    padding: 10px 0 0 0 !important;
    font-size: 12px !important;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

/* Arrows - centered on image area */
.promo-carousel-arrow {
    position: absolute;
    top: 125px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a56db;
    transition: all 0.3s ease;
    z-index: 10;
}

.promo-carousel-arrow:hover {
    background: #1a56db;
    color: #ffffff;
    border-color: #1a56db;
    box-shadow: 0 8px 25px rgba(26, 86, 219, 0.3);
}

.promo-carousel-prev {
    left: 10px;
}

.promo-carousel-next {
    right: 10px;
}

/* Dots */
.promo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0;
}

.promo-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.promo-carousel-dot:hover {
    background: #94a3b8;
}

.promo-carousel-dot.active {
    background: #1a56db;
    width: 28px;
    border-radius: 5px;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 800px) {
    .odmor-promo-carousel {
        padding: 20px 60px;
    }

    .promo-card {
        max-width: 450px;
    }

    .promo-card-image {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .odmor-promo-carousel {
        padding: 15px;
    }

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

    .promo-card-image {
        height: 200px;
    }

    .promo-card-content {
        padding: 20px !important;
    }

    .promo-card-title {
        font-size: 20px !important;
    }

    .promo-card-price {
        font-size: 28px !important;
    }

    .promo-carousel-arrow {
        width: 40px;
        height: 40px;
        top: 125px;
    }

    .promo-carousel-prev {
        left: 5px;
    }

    .promo-carousel-next {
        right: 5px;
    }
}
