/* Special Offers Elementor Frontend Styles */

.so-elementor-widget {
    width: 100%;
}

/* Grid Layout */
.so-elementor-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

.so-elementor-grid.so-elementor-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Item Styles */
.so-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.so-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* Image Styles */
.so-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.so-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.so-item:hover .so-item-image img {
    transform: scale(1.05);
}

/* Content Styles */
.so-item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.so-item-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

.so-item-description {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Meta Information */
.so-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.so-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
}

.so-item-duration {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Meals Information */
.so-item-meals {
    margin-bottom: 15px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    border-left: 3px solid #3498db;
}

.meals-label {
    font-weight: 600;
    color: #2c3e50;
}

/* Button Styles */
.so-item-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.so-item-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1c6ea4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    color: #ffffff;
}

/* List Layout */
.so-elementor-list .so-elementor-grid {
    display: block;
}

.so-elementor-list .so-item {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    height: auto;
}

.so-elementor-list .so-item-image {
    flex: 0 0 350px;
    height: 250px;
    margin-right: 0;
}

.so-elementor-list .so-item-content {
    flex: 1;
    padding: 25px;
}

/* Masonry Layout */
.so-elementor-masonry .so-elementor-grid {
    display: grid;
    grid-auto-rows: minmax(100px, auto);
    grid-auto-flow: row dense;
}

/* Carousel Layout */
.so-elementor-carousel {
    position: relative;
}

.so-carousel {
    width: 100%;
    padding-bottom: 40px;
}

.so-carousel .swiper-slide {
    height: auto;
}

.so-carousel .swiper-pagination {
    bottom: 0;
}

.so-carousel .swiper-pagination-bullet {
    background: #3498db;
    opacity: 0.7;
}

.so-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: #2980b9;
}

.so-carousel .swiper-button-prev,
.so-carousel .swiper-button-next {
    color: #3498db;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.so-carousel .swiper-button-prev:after,
.so-carousel .swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .so-elementor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .so-elementor-list .so-item {
        flex-direction: column;
    }
    
    .so-elementor-list .so-item-image {
        flex: none;
        width: 100%;
        height: 200px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .so-elementor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .so-item-content {
        padding: 15px;
    }
    
    .so-item-title {
        font-size: 1.1rem;
    }
    
    .so-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .so-item-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .so-elementor-list .so-item-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .so-item-image {
        height: 200px;
    }
    
    .so-item-content {
        padding: 12px;
    }
    
    .so-item-title {
        font-size: 1rem;
    }
}

/* Special States */
.so-item.featured {
    border: 2px solid #f39c12;
    position: relative;
}

.so-item.featured::before {
    content: "★";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}

/* Loading State */
.so-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.so-item.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* CTA Button Styles */
.so-item-cta {
    display: inline-block;
    margin-top: 15px;
    margin-left: 10px;
}

.so-item-cta.elementor-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.so-item-cta.elementor-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    color: #ffffff;
}

.so-item-cta .elementor-button-text {
    color: inherit;
}

/* Responsive CTA */
@media (max-width: 768px) {
    .so-item-cta {
        display: block;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .so-item-cta.elementor-button {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Accessibility */
.so-item-button:focus,
.so-item-cta:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .so-item-button,
    .so-carousel .swiper-button-prev,
    .so-carousel .swiper-button-next,
    .so-carousel .swiper-pagination {
        display: none;
    }
    
    .so-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}