/* ===================================
   Discover Services Section - Modern Redesign
   Inspired by Airbnb/Booking.com
   =================================== */

/* --- Section Container --- */
.discover-services {
    padding: 0;
    width: 100%;
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
}

/* --- Header --- */
.services-header {
    padding: 0;
    margin-bottom: 28px;
}

.services-header-text {
    max-width: 600px;
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.services-badge i {
    font-size: 11px;
}

.discover-services h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a2e;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* --- Slider Container --- */
.services-slider-container {
    position: relative;
    padding: 0;
}

.services-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding: 8px 4px 16px 4px;
    gap: 20px;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.services-slider.grabbing {
    cursor: grabbing;
}

/* --- Navigation Arrows --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #374151;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.services-slider-container:hover .slider-arrow {
    opacity: 1;
    pointer-events: all;
}

.slider-arrow:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.05);
    color: #111827;
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.97);
}

.prev-arrow {
    left: -16px;
}

.next-arrow {
    right: -16px;
}

/* --- Service Card --- */
.service-card {
    flex: 0 0 auto;
    width: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    scroll-snap-align: start;
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
}

/* --- Card Image --- */
.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Category Tag */
.service-category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #374151;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.service-category-tag i {
    font-size: 10px;
    color: #6366f1;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn:active {
    transform: scale(0.92);
}

.favorite-btn i {
    font-size: 16px;
    color: #374151;
    transition: all 0.2s;
}

.favorite-btn.active i {
    font-weight: 900;
    color: #ef4444;
}

/* --- Card Content --- */
.card-content {
    padding: 16px 16px 18px;
    background: #fff;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.card-meta-row .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.card-meta-row .rating i {
    color: #f59e0b;
    font-size: 12px;
}

.card-meta-row .reviews {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1a1a2e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content .location {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-content .location i {
    font-size: 11px;
    color: #ef4444;
}

/* --- Card Footer --- */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.price-unit {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

/* --- Book Button --- */
.book-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.book-service-btn:not(:disabled) {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.book-service-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.book-service-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: default;
    box-shadow: none;
}

/* --- Scroll Indicator --- */
.services-scroll-indicator {
    display: flex;
    justify-content: center;
    padding: 16px 24px 0;
}

.scroll-track {
    width: 80px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.scroll-thumb {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 3px;
    transition: transform 0.15s ease;
}

/* ===================================
   Responsive Design
   =================================== */

/* Mobile Small (360px) */
@media (max-width: 480px) {
    .discover-services {
        padding: 32px 0 40px;
    }

    .services-header {
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .discover-services h2 {
        font-size: 22px;
    }

    .services-subtitle {
        font-size: 13px;
    }

    .services-slider-container {
        padding: 0 16px;
    }

    .services-slider {
        gap: 14px;
    }

    .service-card {
        width: 240px;
    }

    .card-image {
        height: 160px;
    }

    .slider-arrow {
        display: none;
    }
}

/* Tablet (768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .discover-services {
        padding: 40px 0 48px;
    }

    .service-card {
        width: 260px;
    }

    .card-image {
        height: 180px;
    }

    .slider-arrow {
        display: none;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .discover-services h2 {
        font-size: 32px;
    }

    .service-card {
        width: 290px;
    }

    .card-image {
        height: 210px;
    }

    .services-slider {
        gap: 24px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .discover-services {
        max-width: 1400px;
    }

    .service-card {
        width: 300px;
    }
}