/* Flexible Content Components CSS */

/* Services carousel component styles */
.services-prev, .services-next {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.services-prev:active, .services-next:active {
    transform: translateY(-50%) scale(0.95);
}

.services-prev:active {
    transform: translateY(-50%) translateX(-5px) scale(0.95);
}

.services-next:active {
    transform: translateY(-50%) translateX(5px) scale(0.95);
}

/* Gallery and map view toggle styles */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.view-content {
    transition: opacity 0.3s ease-in-out;
}

/* Horizontal tabs component styles */
.tab-scroller {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.tab-scroller::-webkit-scrollbar { /* WebKit */
    display: none;
}

.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.tab-fade-left, .tab-fade-right {
    transition: opacity 0.3s ease;
}

/* Full width content scroll prevention */
.no-scroll-target {
    scroll-margin-top: 0;
}

/* Carousel components shared styles */
.services-carousel, .testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.services-slides, .testimonials-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.service-slide, .testimonial-slide {
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

/* Carousel navigation buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav-btn.prev {
    left: 10px;
}

.carousel-nav-btn.next {
    right: 10px;
}

/* Pagination dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #e5e7eb;
}

.carousel-dot:hover {
    background-color: var(--primary-color, #3b82f6);
}

.carousel-dot.active {
    background-color: var(--primary-color, #3b82f6);
}

/* Location cards and contact components */
.location-card {
    transition: box-shadow 0.3s ease;
}

.location-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* View toggle buttons */
.view-toggle-btn {
    transition: all 0.3s ease;
}

.view-toggle-btn.active {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Post grid and product grid enhancements */
.post-item, .product-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover, .product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Banner section enhancements */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-nav-btn.prev {
        left: 5px;
    }
    
    .carousel-nav-btn.next {
        right: 5px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .services-prev:active, .services-next:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .post-item:hover, .product-item:hover {
        transform: none;
    }
} 