/* Lite CSV Egg Card Layout */
.lce-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.lce-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lce-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Carousel Section */
.lce-card-carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.lce-card-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lce-prev,
.lce-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.lce-prev:hover,
.lce-next:hover {
    background: rgba(0,0,0,0.9);
}

.lce-prev {
    left: 10px;
}

.lce-next {
    right: 10px;
}

.lce-slide-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

/* Card Content */
.lce-card-content {
    padding: 20px;
}

.lce-card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.lce-card-location {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
}

.lce-card-location a {
    color: #007cba;
    text-decoration: none;
}

.lce-card-location a:hover {
    text-decoration: underline;
}

.lce-card-rating {
    font-size: 16px;
    color: #ffc107;
    margin-bottom: 8px;
}

.lce-card-temp {
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 12px;
    font-weight: 500;
}

.lce-flight-details {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.lce-flight-details li {
    margin-bottom: 4px;
    padding-left: 0;
}

.lce-flight-details li:before {
    content: none;
}

/* Card Footer */
.lce-card-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.lce-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.lce-new-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.lce-read-more {
    font-size: 13px;
    color: #007cba;
    text-decoration: none;
    align-self: flex-start;
}

.lce-read-more:hover {
    text-decoration: underline;
}

.lce-cta {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.lce-cta:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.lce-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
}

.lce-sort-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.lce-sort-select {
    padding: 8px 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #1f2328;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.lce-sort-select:hover {
    border-color: #0969da;
}

.lce-sort-select:focus {
    outline: 2px solid #0969da;
    outline-offset: 2px;
    border-color: #0969da;
}

.lce-sort-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* OPTIMIZED v1.1.0: Loading indicator for AJAX sorting */
.lce-sort-loading {
    font-size: 13px;
    color: #57606a;
    font-style: italic;
}

.lce-load-more-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 16px 0 8px;
}

.lce-load-more-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.lce-load-more-btn:hover {
    background: #005a87;
}

.lce-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.lce-load-more-spinner {
    text-align: center;
    padding: 16px 0;
    color: #4a5568;
    font-weight: 600;
}

.lce-load-more-sentinel {
    width: 100%;
    height: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lce-card-container {
        flex-direction: column;
    }
    
    .lce-sort-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lce-card {
        min-width: auto;
        max-width: none;
    }
    
    .lce-card-carousel {
        height: 180px;
    }
    
    .lce-card-content {
        padding: 16px;
    }
    
    .lce-card-title {
        font-size: 16px;
    }
    
    .lce-new-price {
        font-size: 18px;
    }
}

/* Hide carousel controls if only one image */
.lce-card-carousel:has(img:only-child) .lce-prev,
.lce-card-carousel:has(img:only-child) .lce-next,
.lce-card-carousel:has(img:only-child) .lce-slide-count {
    display: none;
}

/* TUI Card Specific Styles */
.lce-save-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.lce-mealplan-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(39, 174, 96, 0.9);
    color: #fff;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    max-width: 150px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lce-departure-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    z-index: 2;
}

/* TUI Section Wrapper Styles */
.lce-tui-section {
    margin: 24px auto 32px;
    max-width: 1220px;
    position: relative;
    padding: 4px;
    border-radius: 22px;
    background: linear-gradient(120deg, #0ea5e9 0%, #14b8a6 55%, #0ea5e9 100%);
    box-shadow: 0 20px 45px rgba(15, 118, 110, 0.18);
}

.lce-tui-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(110% 110% at 10% 5%, rgba(255,255,255,0.25), transparent 60%);
    pointer-events: none;
}

.lce-tui-shell {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 28px 24px;
}

.lce-tui-shell .lce-search-wrapper {
    margin-bottom: 24px;
}

.lce-sponsor-filter .lce-card-container {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .lce-tui-section {
        padding: 2px;
        margin: 16px auto;
    }
    .lce-tui-shell {
        padding: 18px 16px;
    }
}

/* No Offers Message Styling - Enhanced Card-style Design */
.lce-no-offers-message {
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 32px 24px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lce-no-offers-message::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.lce-no-offers-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lce-no-offers-message h3 {
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 16px;
    line-height: 1.7;
}

.lce-no-offers-message p {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.lce-billige-rejser-link {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    position: relative;
    z-index: 1;
}

.lce-billige-rejser-link:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
