/* 
 * Guruvayoor Services - Shortcodes CSS
 * This file contains styles for hotels and rooms 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);
}


/* Common styles */

.wide_gv_hotels_wrapper,
.wide_gv_rooms_wrapper {
    font-family: inherit;
    margin: 30px 0;
}


/* Hotels Carousel */

.wide_gv_hotels_carousel {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 20px 10px;
    margin: 0 -10px;
    scrollbar-width: thin;
    scrollbar-color: var(--wide-gv-primary) transparent;
    -webkit-overflow-scrolling: touch;
}

.wide_gv_hotels_carousel::-webkit-scrollbar {
    height: 6px;
}

.wide_gv_hotels_carousel::-webkit-scrollbar-track {
    background: transparent;
}

.wide_gv_hotels_carousel::-webkit-scrollbar-thumb {
    background-color: var(--wide-gv-primary);
    border-radius: 20px;
}

.wide_gv_hotels_container {
    display: inline-flex;
    gap: 20px;
    padding: 10px;
}

.wide_gv_hotels_carousel_nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.wide_gv_hotels_carousel:hover .wide_gv_hotels_carousel_nav {
    opacity: 1;
}

.wide_gv_hotels_nav_btn {
    background: var(--wide-gv-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.wide_gv_hotels_nav_btn:hover {
    background: var(--wide-gv-primary-bold);
    transform: scale(1.1);
}

.wide_gv_hotels_nav_btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* Rooms Grid */

.wide_gv_rooms_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.wide_gv_no_image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--wide-gv-primary) 0%, var(--wide-gv-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: inherit;
    font-size: 24px;
    font-weight: bold;
}


/* Room Features */


/* Cart Notification */

.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;
}


/* Responsive Styles */

@media (max-width: 768px) {
    .wide_gv_hotels_container {
        gap: 15px;
    }
    .wide_gv_hotels_carousel {
        padding: 15px 5px;
        margin: 0 -5px;
    }
    .wide_gv_rooms_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .wide_gv_cart_notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* 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-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_hotels_nav_btn:focus {
    outline: 2px solid var(--wide-gv-accent);
    outline-offset: 2px;
}


/* Print Styles */

@media print {
    .wide_gv_hotels_carousel_nav,
    .book-now-btn,
    .add-to-cart-btn,
    .remove-from-cart-btn,
    .wide_gv_cart_notification {
        display: none !important;
    }
    .wide_gv_hotels_carousel {
        overflow: visible;
        white-space: normal;
    }
    .wide_gv_hotels_container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .wide_gv_rooms_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Updated Hotels Carousel with Swiper */

.wide_gv_hotels_wrapper {
    position: relative;
    margin: 30px 0;
}

.wide_gv_hotels_carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 10px;
    margin: 0 -10px;
}

.wide_gv_hotels_container {
    width: 100%;
    height: 100%;
}


/* Navigation arrows - positioned at ends */

.wide_gv_hotels_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;
}

.wide_gv_hotels_nav:hover {
    background: var(--wide-gv-primary-bold);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.wide_gv_hotels_nav.prev {
    left: -20px;
}

.wide_gv_hotels_nav.next {
    right: -20px;
}


/* Swiper slide styling */

.swiper-slide {
    height: auto;
}


/* Consistent card height */

.swiper-slide .room-service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* Consistent image height */

.swiper-slide .room-service-card img,
.swiper-slide .room-service-card .wide_gv_no_image {
    width: 100%;
    height: 200px !important;
    /* Force consistent height */
    object-fit: cover;
    /* This will crop images to fit */
    min-height: 200px;
    max-height: 200px;
}


/* Pagination dots */

.wide_gv_hotels_pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.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);
}


/* Card content area - ensure consistent height */

.swiper-slide .room-service-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.swiper-slide .room-service-card .featuretemp {
    flex: 1;
    min-height: 0;
    /* Allow scrolling if needed */
    overflow-y: auto;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .wide_gv_hotels_nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .wide_gv_hotels_nav.prev {
        left: -15px;
    }
    .wide_gv_hotels_nav.next {
        right: -15px;
    }
    .swiper-slide .room-service-card img,
    .swiper-slide .room-service-card .wide_gv_no_image {
        height: 180px !important;
        min-height: 180px;
        max-height: 180px;
    }
}


/* Ensure original hotel card styling is preserved */

.room-service-card {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.room-service-card:hover {
    transform: translateY(-5px);
}


/* Autoplay progress - optional, remove if not needed */

.wide_gv_autoplay_progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--wide-gv-primary);
    display: none;
    /* Hide by default */
}