/* ==========================================
   RECENTLY BOOKED SECTION STYLES
   ========================================== */

.recently-booked-section {
    margin: 3rem 0;
    padding: 0;
}

.recently-booked-header {
    margin-bottom: 1.5rem;
}

.recently-booked-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recently-booked-title i {
    color: #10B981;
    font-size: 1.5rem;
}

.recently-booked-subtitle {
    color: #717171;
    font-size: 0.9375rem;
}

/* Carousel Container */
.recently-booked-carousel {
    position: relative;
    padding: 0 3rem;
}

.recently-booked-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recently-booked-scroll::-webkit-scrollbar {
    display: none;
}

/* Navigation Arrows */
.recently-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: 2px solid #EBEBEB;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recently-arrow:hover {
    background: #10B981;
    border-color: #10B981;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.recently-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.recently-arrow-left {
    left: 0;
}

.recently-arrow-right {
    right: 0;
}

.recently-arrow i {
    font-size: 1.25rem;
    color: #222222;
}

.recently-arrow:hover i {
    color: #FFFFFF;
}

.recently-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .recently-arrow {
        display: flex;
    }
}

/* Individual Booking Card */
.recently-booked-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #EBEBEB;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.recently-booked-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border-color: #10B981;
}

/* Card Image */
.recently-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recently-booked-card:hover .recently-card-image {
    transform: scale(1.05);
}

/* Image Container */
.recently-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Card Content */
.recently-card-content {
    padding: 1rem;
}

/* "Booked Recently" Badge */
.booked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.booked-badge i {
    font-size: 0.875rem;
}

/* Date Items */
.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #222;
}

.date-item i {
    color: #10B981;
    font-size: 1rem;
}

.date-label {
    font-weight: 600;
    color: #717171;
    min-width: 70px;
}

.date-value {
    font-weight: 600;
    color: #222;
}

/* Price */
.recently-price {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #EBEBEB;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #10B981;
}

.recently-price i {
    font-size: 1rem;
}

/* Loading State */
.recently-loading {
    text-align: center;
    padding: 3rem 0;
}

.recently-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #10B981;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.recently-empty {
    text-align: center;
    padding: 3rem 0;
    color: #717171;
}

.recently-empty i {
    font-size: 4rem;
    color: #E5E7EB;
    margin-bottom: 1rem;
}

/* Property Name */
.recently-property-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Time Ago Badge (Optional) */
.time-ago-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .recently-booked-carousel {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .recently-booked-title {
        font-size: 1.5rem;
    }
    
    .recently-booked-card {
        flex: 0 0 260px;
    }
    
    .recently-card-image,
    .recently-image-wrapper {
        height: 180px;
    }
    
    .recently-card-content {
        padding: 0.875rem;
    }
    
    .recently-property-name {
        font-size: 0.875rem;
    }
    
    .date-item {
        font-size: 0.8125rem;
    }
    
    .recently-price {
        font-size: 1rem;
    }
}

/* Slide Hint */
.recently-slide-hint {
    text-align: center;
    color: #717171;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

@media (max-width: 1024px) {
    .recently-slide-hint {
        display: block;
    }
}

/* Animation on scroll into view */
.recently-booked-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.recently-booked-card:nth-child(1) { animation-delay: 0.1s; }
.recently-booked-card:nth-child(2) { animation-delay: 0.2s; }
.recently-booked-card:nth-child(3) { animation-delay: 0.3s; }
.recently-booked-card:nth-child(4) { animation-delay: 0.4s; }
.recently-booked-card:nth-child(5) { animation-delay: 0.5s; }