/**
 * Styles for Recently Booked Itineraries Section
 * File: assets/css/recently-booked-itineraries.css
 * 
 * Add this CSS file to your theme:
 * - Place in: wp-content/themes/your-theme/assets/css/
 * - Enqueue in functions.php or include in your main stylesheet
 * 
 * To enqueue, add to functions.php:
 * wp_enqueue_style('rbi-styles', get_template_directory_uri() . '/assets/css/recently-booked-itineraries.css');
 */

/* Recently Booked Itineraries Section */
.rbi-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    padding: 60px 20px;
}

.rbi-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
.rbi-header {
    margin-bottom: 40px;
}

.rbi-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #003b5c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.rbi-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
}

.rbi-stats::before {
    content: "❤️";
    font-size: 18px;
}

/* Filters Styles */
.rbi-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.rbi-filter-btn {
    padding: 10px 24px;
    border: 2px solid #d1d1d1;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    color: #333;
}

.rbi-filter-btn:hover {
    border-color: #4caf50;
    background: #f1f8f4;
}

.rbi-nav-arrows {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.rbi-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #d1d1d1;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.rbi-nav-btn:hover {
    border-color: #4caf50;
    background: #f1f8f4;
}

/* Cards Grid Styles */
.rbi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* Single Card Styles */
.rbi-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.rbi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Card Image Styles */
.rbi-card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.rbi-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbi-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.rbi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.rbi-dot.active {
    background: white;
}

/* Card Content Styles */
.rbi-card-content {
    padding: 20px;
}

.rbi-duration {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.rbi-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 50px;
}

/* Rating Styles */
.rbi-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rbi-star {
    color: #00a699;
    font-size: 18px;
}

.rbi-rating-score {
    font-weight: 600;
    color: #1a1a1a;
}

.rbi-rating-count {
    color: #666;
    font-size: 14px;
}

/* Tag Styles */
.rbi-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fce4ec;
    color: #c2185b;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rbi-tag.couple {
    background: #fff3e0;
    color: #e65100;
}

.rbi-tag.group {
    background: #e3f2fd;
    color: #1565c0;
}

/* Itinerary Styles */
.rbi-itinerary-details {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}

.rbi-itinerary-details strong {
    font-weight: 600;
    color: #333;
}

/* Pricing Styles */
.rbi-pricing {
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.rbi-price-top {
    margin-bottom: 8px;
}

.rbi-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.rbi-savings {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.rbi-current-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.rbi-price-unit {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/* CTA Container with Call Icon and Callback Button */
.rbi-cta-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.rbi-call-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: white;
    border: 2px solid #ff5722;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.rbi-call-btn:hover {
    background: #fff3f0;
    transform: scale(1.05);
}

.rbi-call-icon {
    width: 24px;
    height: 24px;
    fill: #ff5722;
}

.rbi-callback-btn {
    flex: 1;
    padding: 14px;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbi-callback-btn:hover {
    background: #f4511e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rbi-header h2 {
        font-size: 36px;
    }
    
    .rbi-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .rbi-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .rbi-nav-arrows {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .rbi-header h2 {
        font-size: 28px;
    }
    
    .rbi-section {
        padding: 40px 15px;
    }
    
    .rbi-card-content {
        padding: 15px;
    }
}