/* 
 * Guruvayoor Services - Car Shops and Cars Shortcodes CSS
 * This file contains styles for car shops and cars shortcodes
 */

:root {
    --wide-gv-primary: var(--e-a-color-primary, #f3bafd);
    --wide-gv-primary-bold: var(--e-a-color-primary-bold, #d004d4);
    --wide-gv-secondary: var(--e-a-color-secondary, #515962);
    --wide-gv-success: var(--e-a-color-success, #0a875a);
    --wide-gv-danger: var(--e-a-color-danger, #dc2626);
    --wide-gv-warning: var(--e-a-color-warning, #f59e0b);
    --wide-gv-accent: var(--e-a-color-accent, #93003f);
    --wide-gv-car-primary: #3b82f6;
    --wide-gv-car-secondary: #1e40af;
    --wide-gv-shop-primary: #8b5cf6;
    --wide-gv-shop-secondary: #6d28d9;
}


/* Common wrapper styles */

.wide_gv_shops_wrapper,
.wide_gv_cars_wrapper {
    font-family: inherit;
    margin: 30px 0;
}


/* ===========================================
   CAR SHOPS CAROUSEL STYLES - UPDATED
=========================================== */

.wide_gv_shops_wrapper {
    position: relative;
    margin: 30px 0;
    padding: 10px 0;
}

.wide_gv_shops_carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 10px;
    margin: 0 -10px;
}

.wide_gv_shops_container {
    width: 100%;
    height: 100%;
}


/* Ensure Swiper slides have proper sizing */

.wide_gv_shops_carousel .swiper-slide {
    width: 320px !important;
    /* Match hotel card width */
    height: auto;
}

@media (max-width: 768px) {
    .wide_gv_shops_carousel .swiper-slide {
        width: 280px !important;
    }
}

@media (max-width: 480px) {
    .wide_gv_shops_carousel .swiper-slide {
        width: 260px !important;
    }
}


/* Navigation arrows - matching hotel carousel */

.wide_gv_shops_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--wide-gv-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s;
    opacity: 0.8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wide_gv_shops_nav:hover {
    background: var(--wide-gv-primary-bold);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wide_gv_shops_nav.prev {
    left: -20px;
}

.wide_gv_shops_nav.next {
    right: -20px;
}


/* Responsive navigation */

@media (max-width: 768px) {
    .wide_gv_shops_nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .wide_gv_shops_nav.prev {
        left: -15px;
    }
    .wide_gv_shops_nav.next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .wide_gv_shops_nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .wide_gv_shops_nav.prev {
        left: -10px;
    }
    .wide_gv_shops_nav.next {
        right: -10px;
    }
}


/* Pagination dots */

.wide_gv_shops_pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.wide_gv_pagination_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.wide_gv_pagination_dot.active {
    background: var(--wide-gv-primary);
    transform: scale(1.3);
}


/* Swiper breakpoints for car shops - matching hotels */

.wide_gv_shops_carousel .swiper-container {
    padding: 0 20px;
}


/* Ensure consistent image heights */

.wide_gv_shop_card .card-image-section {
    height: 200px !important;
    min-height: 200px;
    max-height: 200px;
}

.wide_gv_shop_card .room-service-image,
.wide_gv_shop_card .wide_gv_no_image {
    height: 200px !important;
    min-height: 200px;
    max-height: 200px;
}

@media (max-width: 768px) {
    .wide_gv_shop_card .card-image-section {
        height: 180px !important;
        min-height: 180px;
        max-height: 180px;
    }
    .wide_gv_shop_card .room-service-image,
    .wide_gv_shop_card .wide_gv_no_image {
        height: 180px !important;
        min-height: 180px;
        max-height: 180px;
    }
}


/* Swiper slide adjustments */

.swiper-slide {
    display: flex;
    justify-content: center;
}


/* Car shop card hover effects */

.wide_gv_shop_card.room-service-card:hover {
    transform: translateY(-5px);
}


/* Fix for Swiper spacing */

.swiper-wrapper {
    padding: 5px 0;
}


/* Autoplay progress visibility */

.wide_gv_shops_carousel:hover .wide_gv_shops_nav {
    opacity: 0.8;
}


/* Keyboard navigation focus */

.wide_gv_shops_nav:focus {
    outline: 2px solid var(--wide-gv-accent);
    outline-offset: 2px;
}


/* Print styles for car shops */

@media print {
    .wide_gv_shops_carousel {
        overflow: visible !important;
    }
    .wide_gv_shops_container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .swiper-slide {
        width: auto !important;
        height: auto !important;
    }
    .wide_gv_shops_nav,
    .wide_gv_shops_pagination {
        display: none !important;
    }
}


/* ===========================================
   CARS GRID STYLES
=========================================== */

.wide_gv_cars_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}


/* Car card fallback image */

.car-image-section .wide_gv_no_image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--wide-gv-car-primary) 0%, var(--wide-gv-car-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: inherit;
    font-size: 24px;
    font-weight: bold;
}


/* Car action buttons */

.car-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}


/* Remove from Cart Button for cars */

.wide_gv_cars .remove-from-cart-btn {
    background-color: var(--wide-gv-danger) !important;
    color: #fff;
    border-radius: 8px;
    width: 100%;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    grid-column: span 2;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
}

.wide_gv_cars .remove-from-cart-btn:hover {
    background-color: #b91c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}


/* ===========================================
   CART NOTIFICATION STYLES
=========================================== */

.wide_gv_cart_notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--wide-gv-success);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.wide_gv_cart_notification.show {
    transform: translateY(0);
    opacity: 1;
}

.wide_gv_cart_notification.hide {
    transform: translateY(100px);
    opacity: 0;
}

.wide_gv_cart_icon {
    font-size: 20px;
}

.wide_gv_cart_message {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}


/* Car-specific cart notification */

#wide_gv_car_cart_notification {
    background: var(--wide-gv-car-primary);
}

#wide_gv_car_cart_notification.wide_gv_cart_notification.show {
    background: var(--wide-gv-car-primary);
}

#wide_gv_car_cart_notification.wide_gv_cart_notification.show.error {
    background: var(--wide-gv-danger);
}


/* ===========================================
   RESPONSIVE STYLES
=========================================== */

@media (max-width: 768px) {
    /* Car shops responsive */
    .wide_gv_shops_nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .wide_gv_shops_nav.prev {
        left: -15px;
    }
    .wide_gv_shops_nav.next {
        right: -15px;
    }
    .wide_gv_shops_carousel .swiper-slide .shop-partner-card {
        height: 180px;
    }
    .shop-image-container .wide_gv_no_image {
        height: 180px;
        font-size: 20px;
    }
    /* Cars responsive */
    .wide_gv_cars_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .car-image-section .wide_gv_no_image {
        height: 160px;
        font-size: 20px;
    }
    .car-action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .wide_gv_cars .remove-from-cart-btn {
        grid-column: 1;
    }
    /* Cart notification responsive */
    .wide_gv_cart_notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wide_gv_shops_nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .wide_gv_shops_nav.prev {
        left: -10px;
    }
    .wide_gv_shops_nav.next {
        right: -10px;
    }
    .wide_gv_shops_carousel .swiper-slide .shop-partner-card {
        height: 160px;
    }
    .shop-image-container .wide_gv_no_image {
        height: 160px;
        font-size: 18px;
    }
    .car-image-section .wide_gv_no_image {
        height: 140px;
        font-size: 18px;
    }
}


/* ===========================================
   LOADING STATES
=========================================== */

.wide_gv_loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wide_gv_loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--wide-gv-car-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: wide-gv-spin 0.8s linear infinite;
}

@keyframes wide-gv-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ===========================================
   ACCESSIBILITY
=========================================== */

.wide_gv_shops_nav:focus,
.wide_gv_cars .book-now-btn:focus,
.wide_gv_cars .add-to-cart-btn:focus,
.wide_gv_cars .remove-from-cart-btn:focus {
    outline: 2px solid var(--wide-gv-accent);
    outline-offset: 2px;
}


/* ===========================================
   PRINT STYLES
=========================================== */

@media print {
    .wide_gv_shops_nav,
    .wide_gv_shops_pagination,
    .wide_gv_cars .book-now-btn,
    .wide_gv_cars .add-to-cart-btn,
    .wide_gv_cars .remove-from-cart-btn,
    .wide_gv_cart_notification {
        display: none !important;
    }
    .wide_gv_shops_carousel {
        overflow: visible;
    }
    .wide_gv_shops_container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .wide_gv_shops_carousel .swiper-slide {
        height: auto !important;
    }
    .wide_gv_shops_carousel .swiper-slide .shop-partner-card {
        height: auto !important;
    }
    .wide_gv_cars_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===========================================
   CUSTOM SCROLLBAR FOR CAR SHOPS CAROUSEL
=========================================== */

.wide_gv_shops_carousel::-webkit-scrollbar {
    height: 6px;
}

.wide_gv_shops_carousel::-webkit-scrollbar-track {
    background: transparent;
}

.wide_gv_shops_carousel::-webkit-scrollbar-thumb {
    background-color: var(--wide-gv-shop-primary);
    border-radius: 20px;
}


/* ===========================================
   SWIPER OVERRIDES FOR CAR SHOPS
=========================================== */

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    height: auto;
}


/* ===========================================
   BUTTON DISABLED STATE
=========================================== */

.wide_gv_cars .add-to-cart-btn:disabled,
.wide_gv_cars .book-now-btn:disabled,
.wide_gv_cars .remove-from-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.wide_gv_cars .add-to-cart-btn:disabled:hover,
.wide_gv_cars .book-now-btn:disabled:hover,
.wide_gv_cars .remove-from-cart-btn:disabled:hover {
    background: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}


/* ===========================================
   PRICE STYLING ENHANCEMENTS
=========================================== */

.car-price {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 18px;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.car-price span {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}


/* ===========================================
   HOVER EFFECTS ENHANCEMENTS
=========================================== */

.shop-partner-card:hover .shop-main-image {
    transform: scale(1.08);
}

.wide_gv_cars.car-rental-card:hover .car-featured-image {
    transform: scale(1.05);
}


/* ===========================================
   CONTAINER PADDING FOR MOBILE
=========================================== */

@media (max-width: 640px) {
    .wide_gv_shops_wrapper,
    .wide_gv_cars_wrapper {
        margin: 20px 0;
    }
    .wide_gv_shops_carousel {
        padding: 15px 5px;
        margin: 0 -5px;
    }
    .wide_gv_cars_grid {
        padding: 15px 0;
    }
}


/* ===========================================
   Z-INDEX MANAGEMENT
=========================================== */

.wide_gv_shops_nav {
    z-index: 20;
}

.wide_gv_cart_notification {
    z-index: 10000;
}


/* ===========================================
   TRANSITION TIMINGS
=========================================== */

.shop-partner-card,
.wide_gv_cars.car-rental-card {
    transition: all 0.3s ease;
}

.shop-main-image,
.car-featured-image {
    transition: transform 0.5s ease;
}

.wide_gv_cart_notification {
    transition: all 0.3s ease;
}


/* ===========================================
   FONT FAMILY FALLBACKS
=========================================== */

.shop-name,
.shop-location,
.car-title,
.car-price {
    font-family: "Cormorant Garamond", serif;
}

.wide_gv_cart_message,
.wide_gv_cars .add-to-cart-btn,
.wide_gv_cars .book-now-btn,
.wide_gv_cars .remove-from-cart-btn {
    font-family: inherit;
}