/* ============================================
   SWIPER CUSTOM STYLES
   ============================================ */

/* Hero Swiper Buttons */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 20px;
}

.hero-swiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}

/* Categories Swiper Navigation */
.categories-next,
.categories-prev {
    color: #059669; /* green-600 */
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #d1fae5; /* green-100 */
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.categories-next {
    right: -22px;
}

.categories-prev {
    left: -22px;
}

.categories-next:hover,
.categories-prev:hover {
    background: #059669;
    color: white;
    border-color: #059669;
    transform: translateY(-50%) scale(1.1);
}

.categories-next:after,
.categories-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Mobile - Hide navigation arrows, show pagination */
@media (max-width: 768px) {
    .categories-next,
    .categories-prev {
        display: none;
    }
}

/* Desktop - Show navigation arrows */
@media (min-width: 769px) {
    .categories-pagination {
        display: none;
    }
}

.categories-pagination {
    bottom: 0 !important;
}

.categories-pagination .swiper-pagination-bullet {
    background: #059669;
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.categories-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

.swiper-slide-active,
.swiper-slide-next,
.swiper-slide-prev {
    opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

/* ============================================
   LEAFLET MAP STYLES
   ============================================ */

#map {
    z-index: 1;
}

.leaflet-control-zoom {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.leaflet-control-zoom a {
    border-radius: 0 !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background: #059669 !important;
    color: white !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .hero-swiper .swiper-button-next:after,
    .hero-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Prevent layout shift during Swiper initialization */
.swiper-wrapper {
    height: auto;
}

.categories-swiper {
    width: 100%;
    overflow: hidden;
}

.categories-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.categories-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
    display: flex;
}

.categories-swiper .swiper-slide > a {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Loading state for Swiper */
.swiper:not(.swiper-initialized) {
    overflow: hidden;
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

.swiper:not(.swiper-initialized) .swiper-slide {
    flex-shrink: 0;
    width: 100%;
}