/* ===========================================
   spLinkPartials/servicesModal.css - Services Modal
   =========================================== */

.link-services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-service-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* Service images - horizontal scroll when multiple */
.link-service-images {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.link-service-images::-webkit-scrollbar {
    display: none;
}

.link-service-image {
    min-width: 100%;
    width: 100%;
    height: 180px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.link-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image carousel container */
.link-service-images-wrap {
    position: relative;
    overflow: hidden;
}

/* Dot indicators */
.link-service-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.link-service-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.link-service-dot.active {
    background: #ffffff;
    transform: scale(1.15);
}

/* Navigation arrows */
.link-service-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
    color: #374151;
}

.link-service-nav svg {
    width: 16px;
    height: 16px;
}

.link-service-nav-prev {
    left: 8px;
}

.link-service-nav-next {
    right: 8px;
}

@media (hover: hover) {
    .link-service-images-wrap:hover .link-service-nav {
        opacity: 1;
    }

    .link-service-nav {
        display: flex;
    }
}

.link-service-info {
    padding: 16px;
}

.link-service-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--link-text-primary);
    margin: 0 0 6px;
}

.link-service-description {
    font-size: 14px;
    color: var(--link-text-secondary);
    line-height: 1.5;
    margin: 0 0 10px;
}

.link-service-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--link-accent);
}

/* Desktop */
@media screen and (min-width: 768px) {
    .link-service-image {
        height: 220px;
    }
}
