/* 
 * Guruvayoor Services - Event Venues Shortcode CSS
 * Matches the events styling with venue-specific elements
 */

:root {
    --venue-primary: #003366;
    --venue-secondary: #FF9933;
    --venue-accent: #FF9933;
    --venue-light-bg: #FFF8E7;
    --venue-dark-blue: #004488;
    --venue-white: #FFFFFF;
    --venue-text: #000000;
    --venue-gray: #555555;
    --venue-light-gray: #f8f9fa;
    --venue-border: #e0e0e0;
    --venue-shadow: rgba(0, 51, 102, 0.08);
    --venue-shadow-hover: rgba(0, 51, 102, 0.15);
    --venue-success: #0a875a;
    --venue-danger: #dc2626;
}


/* Venues Wrapper */

.wide_gv_venues_wrapper {
    font-family: 'Playfair Display', serif;
    margin: 30px 0;
}


/* Venues Grid */

.wide_gv_venues_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}


/* No Image Placeholder */

.wide_gv_no_image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--venue-primary) 0%, var(--venue-dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--venue-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
}


/* Venue-specific card styles */

.wide_gv_venues.room-service-card {
    background: var(--venue-white);
    border-radius: 16px;
    overflow: hidden;
    max-width: 380px;
    box-shadow: 0 4px 20px var(--venue-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wide_gv_venues.room-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px var(--venue-shadow-hover);
}

.wide_gv_venues .room-image-section {
    height: 200px;
    overflow: hidden;
    line-height: 0;
}

.wide_gv_venues .room-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.wide_gv_venues.room-service-card:hover .room-featured-image {
    transform: scale(1.06);
}

.wide_gv_venues .room-content-section {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wide_gv_venues .room-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--venue-primary);
}


/* Venue-specific info styles */

.wide_gv_venues .venue-location {
    font-size: 13px;
    color: var(--venue-gray);
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.5;
}

.wide_gv_venues .venue-location svg {
    width: 16px;
    height: 16px;
    fill: var(--venue-gray);
    flex-shrink: 0;
}

.wide_gv_venues .venue-capacity {
    margin: 8px 0;
}

.wide_gv_venues .venue-capacity-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.wide_gv_venues .venue-amenities-preview {
    font-size: 12px;
    color: var(--venue-gray);
    margin: 8px 0;
    line-height: 1.5;
}

.wide_gv_venues .venue-amenities-preview strong {
    color: var(--venue-primary);
}


/* Action Buttons - Same as events */

.wide_gv_venues .room-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.book-now-btn,
.add-to-cart-btn {
    flex: 1;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.book-now-btn {
    background: var(--venue-secondary);
    color: var(--venue-white);
}

.book-now-btn:hover {
    background: #e68829;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.add-to-cart-btn {
    background: transparent;
    color: var(--venue-primary);
    border: 2px solid var(--venue-primary);
}

.add-to-cart-btn:hover {
    background: var(--venue-primary);
    color: var(--venue-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

.remove-from-cart-btn {
    background: var(--venue-danger);
    color: var(--venue-white);
    flex: 1;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.remove-from-cart-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 1;
}


/* Modal styles - Using same modal as events */

.wide_gv_event_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wide_gv_event_modal.active {
    display: flex !important;
}

.wide_gv_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.wide_gv_modal_content {
    position: relative;
    background: var(--venue-white);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Modal Header */

.wide_gv_modal_header {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.modal_event_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal_header_info {
    position: relative;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0, 51, 102, 0.9));
    color: var(--venue-white);
    padding: 30px 30px 20px;
    width: 100%;
}

.modal_header_info h3 {
    margin: 0 0 8px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--venue-white);
}

.modal_header_info p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Modal Close Button */

.wide_gv_modal_close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--venue-white);
    border: none;
    color: var(--venue-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wide_gv_modal_close:hover {
    background: var(--venue-secondary);
    color: var(--venue-white);
    transform: rotate(90deg);
}


/* Modal Body */

.wide_gv_modal_body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.form_group {
    margin-bottom: 25px;
}

.form_group label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--venue-primary);
}

.wide_gv_number_input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--venue-border);
    border-radius: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--venue-text);
    background: var(--venue-light-bg);
    transition: all 0.3s ease;
}

.wide_gv_number_input:focus,
.wide_gv_number_input:focus-visible {
    outline: none;
    border-color: var(--venue-secondary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}

textarea.wide_gv_number_input {
    resize: vertical;
    min-height: 80px;
    font-family: 'Playfair Display', serif;
}


/* Features Scroll Area */

.wide_gv_features_scroll {
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid var(--venue-border);
    border-radius: 10px;
    background: var(--venue-light-bg);
    padding: 5px;
}


/* Feature Checkbox Item */

.wide_gv_feature_item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--venue-border);
    transition: background 0.3s ease;
}

.wide_gv_feature_item:last-child {
    border-bottom: none;
}

.wide_gv_feature_item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.wide_gv_feature_checkbox {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--venue-secondary);
}

.wide_gv_feature_label {
    flex: 1;
    cursor: pointer;
}

.wide_gv_feature_name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--venue-text);
    margin-bottom: 4px;
    font-weight: 500;
}

.wide_gv_feature_rate {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--venue-secondary);
    font-weight: 600;
}

.wide_gv_feature_note {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--venue-gray);
    margin-top: 2px;
}


/* Modal Footer */

.wide_gv_modal_footer {
    padding: 20px 30px;
    background: var(--venue-light-bg);
    border-top: 1px solid var(--venue-border);
    display: flex;
    gap: 15px;
}

.wide_gv_modal_btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wide_gv_modal_btn.primary {
    background: var(--venue-secondary);
    color: var(--venue-white);
}

.wide_gv_modal_btn.primary:hover {
    background: #e68829;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.wide_gv_modal_btn.secondary {
    background: transparent;
    color: var(--venue-primary);
    border: 2px solid var(--venue-primary);
}

.wide_gv_modal_btn.secondary:hover {
    background: var(--venue-primary);
    color: var(--venue-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}


/* Cart Notification */

.wide_gv_cart_notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--venue-success);
    color: var(--venue-white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.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: 22px;
}

.wide_gv_cart_message {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 500;
}


/* Scrollbar Styling */

.wide_gv_features_scroll::-webkit-scrollbar {
    width: 6px;
}

.wide_gv_features_scroll::-webkit-scrollbar-track {
    background: var(--venue-light-bg);
    border-radius: 10px;
}

.wide_gv_features_scroll::-webkit-scrollbar-thumb {
    background: var(--venue-secondary);
    border-radius: 10px;
}

.wide_gv_features_scroll::-webkit-scrollbar-thumb:hover {
    background: #e68829;
}


/* Loading State */

.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(--venue-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: venueSpin 0.8s linear infinite;
}

@keyframes venueSpin {
    to {
        transform: rotate(360deg);
    }
}


/* Body lock when modal is open */

body.modal-open {
    overflow: hidden !important;
}


/* Responsive Styles */

@media (max-width: 768px) {
    .wide_gv_venues_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .wide_gv_event_modal {
        padding: 15px;
    }
    .wide_gv_modal_content {
        max-width: 100%;
        max-height: 95vh;
    }
    .wide_gv_modal_header {
        height: 180px;
    }
    .modal_header_info h3 {
        font-size: 24px;
    }
    .wide_gv_modal_body {
        padding: 20px;
    }
    .wide_gv_modal_footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    .wide_gv_modal_btn {
        width: 100%;
    }
    .wide_gv_cart_notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wide_gv_modal_header {
        height: 160px;
    }
    .modal_header_info {
        padding: 20px 20px 15px;
    }
    .modal_header_info h3 {
        font-size: 22px;
    }
    .wide_gv_modal_close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}


/* Accessibility */

.wide_gv_modal_close:focus,
.wide_gv_modal_btn:focus,
.wide_gv_feature_checkbox:focus {
    outline: 2px solid var(--venue-accent);
    outline-offset: 2px;
}