/**
 * Single Event Template Styles
 * Mobile-first responsive design with Elementor integration
 * 
 * To customize scroll offset for your site's header height:
 * 
 * OPTION 1: Add to your theme's functions.php:
 * add_filter('vista_events_scroll_offset', function() { return 80; });
 * 
 * OPTION 2: Add to Appearance → Customize → Additional CSS:
 * html { scroll-padding-top: 80px !important; }
 * 
 * (Replace 80 with your header height in pixels)
 */

/* ============================================
   Elementor Integration - CSS Variables
   These will be populated by Elementor globals
   ============================================ */
:root {
    --vista-primary-color: var(--e-global-color-primary, #2563eb);
    --vista-secondary-color: var(--e-global-color-secondary, #64748b);
    --vista-text-color: var(--e-global-color-text, #1e293b);
    --vista-accent-color: var(--e-global-color-accent, #f59e0b);
    --vista-heading-font: var(--e-global-typography-primary-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    --vista-body-font: var(--e-global-typography-text-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    --vista-container-width: 1140px;
    --vista-spacing: 1.5rem;
    --scroll-offset: 100px; /* Default scroll offset for fixed headers */
}

/* ============================================
   Base Styles
   ============================================ */
body.single-vista_event .vista-single-event {
    font-family: var(--vista-body-font);
    color: var(--vista-text-color, #1e293b) !important;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    background: #f9fafb !important;
}

/* Force white backgrounds on all content containers to override dark mode */
body.single-vista_event .vista-single-event > *,
body.single-vista_event .vista-event-content,
body.single-vista_event .vista-event-header,
body.single-vista_event .vista-event-section,
body.single-vista_event .vista-event-main-content,
body.single-vista_event .vista-event-sidebar,
body.single-vista_event .vista-related-events,
body.single-vista_event .sidebar-widget,
body.single-vista_event .organizer-card,
body.single-vista_event .organizer-card-header,
body.single-vista_event .detail-item,
body.single-vista_event .vista-event-details-grid,
body.single-vista_event .event-description-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}

/* Force dark text colors on all text elements to override dark mode */
body.single-vista_event .vista-single-event,
body.single-vista_event .vista-single-event *,
body.single-vista_event .vista-event-content,
body.single-vista_event .vista-event-content *,
body.single-vista_event .vista-event-header,
body.single-vista_event .vista-event-header *,
body.single-vista_event .vista-event-section,
body.single-vista_event .vista-event-section *,
body.single-vista_event .vista-event-main-content,
body.single-vista_event .vista-event-main-content *,
body.single-vista_event .vista-event-sidebar,
body.single-vista_event .vista-event-sidebar *,
body.single-vista_event .vista-related-events,
body.single-vista_event .vista-related-events *,
body.single-vista_event .sidebar-widget,
body.single-vista_event .sidebar-widget *,
body.single-vista_event .organizer-card,
body.single-vista_event .organizer-card *,
body.single-vista_event .organizer-card-header,
body.single-vista_event .organizer-card-header *,
body.single-vista_event .detail-item,
body.single-vista_event .detail-item *,
body.single-vista_event .vista-event-details-grid,
body.single-vista_event .vista-event-details-grid *,
body.single-vista_event .event-description-content,
body.single-vista_event .event-description-content * {
    color: #1e293b !important;
}

/* Exceptions for links and interactive elements */
body.single-vista_event .vista-single-event a,
body.single-vista_event .vista-event-content a,
body.single-vista_event .vista-event-section a,
body.single-vista_event .sidebar-widget a {
    color: var(--vista-primary-color, #2563eb) !important;
}

body.single-vista_event .vista-single-event a:hover,
body.single-vista_event .vista-event-content a:hover,
body.single-vista_event .vista-event-section a:hover,
body.single-vista_event .sidebar-widget a:hover {
    color: var(--vista-primary-color, #2563eb) !important;
    opacity: 0.8;
}

body.single-vista_event .vista-single-event h1,
body.single-vista_event .vista-single-event h2,
body.single-vista_event .vista-single-event h3,
body.single-vista_event .vista-single-event h4,
body.single-vista_event .vista-single-event h5,
body.single-vista_event .vista-single-event h6 {
    font-family: var(--vista-heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    color: #1e293b !important;
}

body.single-vista_event .vista-single-event p,
body.single-vista_event .vista-single-event span,
body.single-vista_event .vista-single-event div,
body.single-vista_event .vista-single-event li,
body.single-vista_event .vista-single-event td,
body.single-vista_event .vista-single-event th,
body.single-vista_event .vista-single-event label,
body.single-vista_event .vista-single-event small {
    color: #1e293b !important;
}

/* Remove underlines from links */
.vista-single-event a {
    text-decoration: none;
}

.vista-single-event a:hover {
    text-decoration: none;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset, 100px); /* Flexible for different header heights */
}

/* Allow sites to override scroll offset based on their header */
body.admin-bar {
    --scroll-offset: 132px; /* WP Admin bar (32px) + typical header (100px) */
}

/* Full-width container - Override theme constraints */
body.single-vista_event .site,
body.single-vista_event .site-content,
body.single-vista_event #content,
body.single-vista_event #primary,
body.single-vista_event .content-area,
#primary.vista-single-event,
.vista-single-event .site-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure Elementor full-width behavior */
body.elementor-page-full-width.single-vista_event #primary,
body.elementor-page-full-width.single-vista_event .site-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.vista-breadcrumbs {
    background: #ffffff;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 2rem;
    font-size: 0.875rem;
    color: var(--vista-secondary-color);
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 10;
}

.vista-breadcrumbs a {
    color: var(--vista-primary-color);
    transition: opacity 0.2s;
}

.vista-breadcrumbs a:hover {
    opacity: 0.7;
}

.vista-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #cbd5e1;
}

.vista-breadcrumbs .current {
    color: var(--vista-text-color);
    font-weight: 500;
}

/* ============================================
   Event Header - More Compact
   ============================================ */
body.single-vista_event .vista-event-header {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 2rem 2rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.vista-event-header-content {
    max-width: var(--vista-container-width);
    margin: 0 auto;
    width: 100%;
}

body.single-vista_event .vista-event-title {
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--vista-text-color, #1e293b);
    line-height: 1.2;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    body.single-vista_event .vista-event-title {
        font-size: 32px;
        margin-bottom: 0.75rem;
        line-height: 1.25;
    }
}

@media screen and (max-width: 480px) {
    body.single-vista_event .vista-event-title {
        font-size: 24px;
        margin-bottom: 0.625rem;
        line-height: 1.3;
    }
}

/* Event Meta Primary - Date/Time/Venue */
.vista-event-meta-primary {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.vista-event-datetime,
.vista-event-venue,
.vista-event-category {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.vista-event-datetime .dashicons,
.vista-event-venue .dashicons,
.vista-event-category .dashicons {
    color: var(--vista-primary-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

@media (max-width: 768px) {
    .vista-event-meta-primary {
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .vista-event-datetime,
    .vista-event-venue,
    .vista-event-category {
        gap: 0.625rem;
    }
    
    .vista-event-datetime .dashicons,
    .vista-event-venue .dashicons,
    .vista-event-category .dashicons {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .vista-event-meta-primary {
        gap: 0.625rem;
        margin-top: 0.625rem;
    }
    
    .vista-event-datetime,
    .vista-event-venue,
    .vista-event-category {
        gap: 0.5rem;
    }
    
    .vista-event-datetime .dashicons,
    .vista-event-venue .dashicons,
    .vista-event-category .dashicons {
        font-size: 18px;
    }
}

body.single-vista_event .datetime-content,
body.single-vista_event .venue-content,
body.single-vista_event .category-content {
    flex: 1;
    color: #1e293b !important;
}

body.single-vista_event .datetime-content *,
body.single-vista_event .venue-content *,
body.single-vista_event .category-content * {
    color: #1e293b !important;
}

/* Flexible Schedule Badge in Header - High Contrast */
.vista-event-header .vista-flexible-schedule-badge,
.vista-event-datetime .vista-flexible-schedule-badge,
.vista-event-meta-primary .vista-flexible-schedule-badge,
.datetime-content .vista-flexible-schedule-badge {
    display: inline-block !important;
    background: #f39c12 !important;
    background-color: #f39c12 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3) !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
}

.vista-event-header .vista-flexible-schedule-badge:hover,
.vista-event-datetime .vista-flexible-schedule-badge:hover {
    background: #e67e22 !important;
    background-color: #e67e22 !important;
    box-shadow: 0 3px 8px rgba(243, 156, 18, 0.4) !important;
    transform: translateY(-1px);
}

/* Flexible Schedule Display in Header */
.vista-event-header .vista-flexible-duration-display {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 12px 0 8px 0 !important;
    line-height: 1.5 !important;
}

.vista-event-header .vista-flexible-availability-display {
    font-size: 14px !important;
    color: #475569 !important;
    margin: 8px 0 !important;
    line-height: 1.6 !important;
}

/* Event Type Badges in Header - Same style as event cards */
.vista-event-meta-primary .vista-event-type-badges-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

body.single-vista_event .vista-event-meta-primary .vista-event-type-badge,
body.single-vista_event .vista-event-type-badges-header .vista-event-type-badge {
    background: var(--e-global-color-primary, #3b82f6) !important;
    background-color: var(--e-global-color-primary, #3b82f6) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: none !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    border: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.event-time {
    color: var(--vista-secondary-color);
    font-size: 0.95rem;
}

.venue-location {
    color: var(--vista-secondary-color);
    font-size: 0.9rem;
}

/* Organizer Information in Header */
.vista-event-organizer-header {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .vista-event-organizer-header {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .vista-event-organizer-header {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

.organizer-header-label {
    font-size: 0.85rem;
    color: var(--vista-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.organizers-list-header {
    display: grid;
    gap: 1.5rem;
}

body.single-vista_event .organizer-card-header {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .organizer-card-header {
        grid-template-columns: 70px 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .organizer-card-header {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        padding: 1rem;
        border-radius: 4px;
    }
}

.organizer-logo-header {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
}

.organizer-logo-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-info-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.single-vista_event .organizer-name-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--vista-text-color, #1e293b);
    margin: 0;
}

body.single-vista_event .organizer-description-header {
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.organizer-contact-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.organizer-contact-header .organizer-contact-link,
.organizer-contact-header a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.organizer-contact-header .organizer-contact-link:hover,
.organizer-contact-header a:hover {
    color: var(--e-global-color-secondary, #6366f1);
    text-decoration: none;
}

.organizer-contact-header .organizer-contact-link .dashicons,
.organizer-contact-header .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--e-global-color-secondary, #6366f1);
    flex-shrink: 0;
}

.organizer-contact-header .organizer-contact-link:hover .dashicons,
.organizer-contact-header a:hover .dashicons {
    color: var(--e-global-color-secondary, #6366f1);
}

/* Event Status Badge */
.vista-event-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vista-status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.vista-status-current {
    background: #dcfce7;
    color: #166534;
}

.vista-status-past {
    background: #f1f5f9;
    color: #64748b;
}

/* ============================================
   Featured Image with Lightbox
   ============================================ */
.vista-event-featured-image {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    max-height: 500px;
    background: #000;
    position: relative;
}

.vista-event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    transition: transform 0.3s ease;
}

.vista-image-lightbox {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.vista-image-lightbox:hover img {
    transform: scale(1.05);
}

.vista-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vista-image-lightbox:hover .vista-image-overlay {
    opacity: 1;
}

.vista-enlarge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.vista-enlarge-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Lightbox Modal */
.vista-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 3rem;
    opacity: 0;
}

.vista-lightbox-modal.active {
    display: flex;
    animation: vista-lightbox-fade-in 0.3s ease-out forwards;
}

@keyframes vista-lightbox-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.vista-lightbox-wrapper {
    max-width: 95%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.vista-lightbox-modal.active .vista-lightbox-wrapper {
    animation: vista-lightbox-fade-in-up 0.4s ease-out forwards;
}

@keyframes vista-lightbox-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vista-lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    padding: 0 1rem;
    text-align: center;
}

.vista-lightbox-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: default;
}

.vista-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
}

.vista-lightbox-close {
    position: fixed !important;
    top: 2rem !important;
    right: 2rem !important;
    background: #111827 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.75rem 1.5rem !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.vista-lightbox-close:hover {
    background: #1f2937 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.vista-lightbox-close:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    background: #111827 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .vista-lightbox-modal {
        padding: 1rem;
    }
    
    .vista-lightbox-close {
        top: 1rem !important;
        right: 1rem !important;
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
    
    .vista-lightbox-wrapper {
        max-width: 100%;
    }
    
    .vista-lightbox-title {
        font-size: 1.125rem;
        padding: 0 0.5rem;
    }
    
    .vista-lightbox-content {
        border-radius: 4px;
    }
    
    .vista-lightbox-content img {
        max-height: 70vh;
    }
}

/* ============================================
   Event Content Layout
   ============================================ */
body.single-vista_event {
    background: #f9fafb !important;
}

body.single-vista_event .vista-single-event {
    background: #f9fafb !important;
    padding: 50px 0;
}

body.single-vista_event .vista-event-content {
    max-width: 100%;
    margin: 0;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    background: #ffffff !important;
    background-color: #ffffff !important;
    width: 100%;
}

@media screen and (max-width: 768px) {
    body.single-vista_event .vista-single-event {
        padding: 20px 0;
        background: #f9fafb !important;
    }
    
    body.single-vista_event .vista-event-content {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

@media screen and (max-width: 480px) {
    body.single-vista_event .vista-single-event {
        padding: 15px 0;
        background: #f9fafb !important;
    }
    
    body.single-vista_event .vista-event-content {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

/* Main content takes full width on mobile */
body.single-vista_event .vista-event-main-content {
    width: 100%;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Sidebar hidden on mobile, shown on desktop */
body.single-vista_event .vista-event-sidebar {
    width: 100%;
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 2rem;
}

@media screen and (max-width: 768px) {
    body.single-vista_event .vista-event-sidebar {
        padding: 1.5rem 1rem;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

@media screen and (max-width: 480px) {
    body.single-vista_event .vista-event-sidebar {
        padding: 1.25rem 0.875rem;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

/* ============================================
   Section Styles - More Compact
   ============================================ */
body.single-vista_event .vista-event-section {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 2rem 2rem 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.vista-event-section > * {
    max-width: var(--vista-container-width);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Registration Form Layout
   ============================================ */
.registration-compact-grid {
    display: block;
    width: 100%;
}

.registration-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Registration form container - ensures it respects section width */
.vista-event-registration .vista-registration-container {
    width: 100%;
    max-width: 700px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden; /* Prevent form from breaking out */
}

body.single-vista_event .section-title {
    font-size: 0.875rem !important;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    color: #1e293b !important;
    font-weight: 600;
    text-transform: uppercase !important;
}

@media screen and (max-width: 768px) {
    body.single-vista_event .section-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem;
        color: #1e293b !important;
    }
}

@media screen and (max-width: 480px) {
    body.single-vista_event .section-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.625rem;
        color: #1e293b !important;
    }
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

/* ============================================
   Event Description
   ============================================ */
body.single-vista_event .event-description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--vista-text-color, #1e293b);
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.event-description-content p {
    margin-bottom: 1rem;
}

/* ============================================
   Event Details Grid
   ============================================ */
body.single-vista_event .vista-event-details-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

body.single-vista_event .detail-item {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 1rem 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
}

body.single-vista_event .detail-item strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--vista-text-color, #1e293b);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .detail-item strong {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .detail-item strong {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
}

body.single-vista_event .detail-item p {
    margin: 0.25rem 0;
    color: var(--vista-text-color, #1e293b);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .detail-item p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0.2rem 0;
    }
}

@media (max-width: 480px) {
    .detail-item p {
        font-size: 0.85rem;
        line-height: 1.35;
        margin: 0.15rem 0;
    }
}

.detail-item address {
    font-style: normal;
    line-height: 1.8;
    color: var(--vista-text-color);
    margin-top: 0.25rem;
}

.venue-room {
    font-style: italic;
    color: var(--vista-secondary-color);
}

/* ============================================
   Compact Location Section
   ============================================ */
.vista-event-location-compact {
    padding: 2rem !important;
}

.location-compact-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.venue-name {
    font-size: 24px !important;
    font-weight: 600;
    margin: 0;
    color: var(--vista-text-color);
}

.location-details .venue-room {
    font-size: 14px;
    color: var(--vista-secondary-color);
    margin: 0;
    font-style: normal;
}

.location-details .venue-address {
    font-style: normal;
    line-height: 1.6;
    color: var(--vista-text-color);
    margin: 0;
}

.location-nav-compact {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 14px;
    margin-top: 0.5rem;
}

.location-nav-compact a {
    color: var(--vista-primary-color);
    font-weight: 500;
}

.location-nav-compact a:hover {
    text-decoration: underline !important;
}

.location-nav-compact .separator {
    color: #cbd5e1;
}

.directions-note {
    font-size: 14px;
    color: var(--vista-secondary-color);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.location-map-compact {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .location-compact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Action Links */
.add-to-calendar,
.view-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--vista-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.add-to-calendar:hover,
.view-map:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.add-to-calendar .dashicons,
.view-map .dashicons {
    font-size: 18px;
}

/* Navigation Buttons */
.vista-navigation-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.nav-btn svg {
    flex-shrink: 0;
}

.nav-btn-google {
    background: #4285f4;
    color: white;
}

.nav-btn-google:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    color: white;
}

.nav-btn-waze {
    background: #33ccff;
    color: white;
}

.nav-btn-waze:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 204, 255, 0.3);
    color: white;
}

/* Mobile optimization */
@media screen and (max-width: 768px) {
    body.single-vista_event .vista-breadcrumbs {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    body.single-vista_event .vista-event-header {
        padding: 1rem 1rem 0;
    }
    
    body.single-vista_event .vista-event-section {
        padding: 1.25rem 1rem !important;
    }
    
    body.single-vista_event .vista-event-section > * {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    body.single-vista_event .vista-breadcrumbs {
        padding: 0.625rem 0.875rem;
        font-size: 0.7rem;
    }
    
    body.single-vista_event .vista-event-header {
        padding: 0.875rem 0.875rem 0;
    }
    
    body.single-vista_event .vista-event-section {
        padding: 1rem 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .vista-navigation-buttons {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Organizer header mobile adjustments */
    .organizer-card-header {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .organizer-logo-header {
        width: 60px;
        height: 60px;
    }
    
    .organizer-name-header {
        font-size: 1.05rem;
    }
    
    .organizer-description-header {
        font-size: 0.9rem;
    }
    
    .organizer-contact-header {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vista-breadcrumbs {
        padding: 1rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .vista-breadcrumbs .separator {
        margin: 0 0.25rem;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 4px;
    }
}

.btn-primary {
    background: var(--vista-primary-color);
    color: white;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background: #ffffff !important;
    color: var(--vista-primary-color) !important;
    border: 2px solid var(--vista-primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: var(--vista-primary-color);
    border: 2px solid var(--vista-primary-color);
}

.btn-secondary:hover {
    background: var(--vista-primary-color);
    color: white;
}

/* Event Details Registration Button - Light Style */
.detail-item .event-details-register-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1.25rem !important;
    background: transparent !important;
    color: var(--e-global-color-secondary, #6366f1) !important;
    border: 2px solid var(--e-global-color-secondary, #6366f1) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    margin-top: 0.5rem !important;
}

@media (max-width: 768px) {
    .detail-item .event-details-register-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        gap: 0.4rem !important;
    }
}

@media (max-width: 480px) {
    .detail-item .event-details-register-btn {
        padding: 0.45rem 0.875rem !important;
        font-size: 0.8rem !important;
        border-radius: 4px !important;
    }
    
    .detail-item .event-details-register-btn .dashicons-arrow-right-alt {
        font-size: 16px !important;
        width: 16px !important;
        height: 16px !important;
    }
}

.detail-item .event-details-register-btn:hover,
.detail-item .event-details-register-btn:active,
.detail-item .event-details-register-btn:focus {
    background: var(--e-global-color-secondary, #6366f1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-color: var(--e-global-color-secondary, #6366f1) !important;
}

.detail-item .event-details-register-btn:hover .action-text,
.detail-item .event-details-register-btn:active .action-text,
.detail-item .event-details-register-btn:focus .action-text {
    color: #ffffff !important;
}

.detail-item .event-details-register-btn:hover .dashicons-arrow-right-alt,
.detail-item .event-details-register-btn:active .dashicons-arrow-right-alt,
.detail-item .event-details-register-btn:focus .dashicons-arrow-right-alt {
    color: #ffffff !important;
}

.detail-item .event-details-register-btn .action-text {
    display: inline-block !important;
    color: inherit !important;
}

.detail-item .event-details-register-btn .dashicons-arrow-right-alt {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-left: 0.25rem !important;
    color: inherit !important;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* ============================================
   Organizers
   ============================================ */
.organizers-list {
    display: grid;
    gap: 1.5rem;
}

body.single-vista_event .organizer-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    grid-template-columns: 80px 1fr;
    align-items: start;
}

.organizer-card:last-child {
    border-bottom: none;
}

.organizer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
}

.organizer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 18px;
    font-weight: 600;
}

.organizer-info p {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.organizer-info p:first-of-type {
    font-size: 15px;
    margin-bottom: 0.75rem;
}

/* Organizer Contact Items in Sidebar */
.organizer-contact-item {
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.6;
}

.organizer-contact-item .organizer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.organizer-contact-item .organizer-contact-link:hover {
    color: var(--e-global-color-secondary, #6366f1);
    text-decoration: none;
}

.organizer-contact-item .organizer-contact-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--e-global-color-secondary, #6366f1);
    flex-shrink: 0;
}

.organizer-contact-item .organizer-contact-link:hover .dashicons {
    color: var(--e-global-color-secondary, #6366f1);
}

.organizer-info .dashicons {
    color: var(--e-global-color-secondary, #6366f1);
    font-size: 16px;
}

@media (max-width: 768px) {
    .organizer-card {
        grid-template-columns: 60px 1fr;
    }
    
    .organizer-logo {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Presenters / Speakers Section
   ============================================ */
.presenters-list {
    display: grid;
    gap: 1.5rem;
}

.presenter-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: start;
}

.presenter-card:last-child {
    border-bottom: none;
}

.presenter-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
}

.presenter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.presenter-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 18px;
    font-weight: 600;
}

.presenter-info p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .presenter-card {
        grid-template-columns: 60px 1fr;
    }
    
    .presenter-image {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Venue Thumbnail
   ============================================ */
.venue-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.venue-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.venue-name-wrap {
    flex: 1;
}

.venue-name-wrap .venue-name {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.venue-name-wrap .venue-room {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .venue-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   Google Maps
   ============================================ */
.vista-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vista-map-container iframe {
    display: block;
    width: 100%;
}

/* ============================================
   Sidebar Widgets
   ============================================ */
body.single-vista_event .sidebar-widget {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .sidebar-widget {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 4px;
    }
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.875rem !important;
    color: var(--vista-text-color);
    font-family: var(--vista-body-font) !important;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .sidebar-widget h3 {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sidebar-widget h3 {
        font-size: 0.75rem !important;
        margin-bottom: 0.625rem;
    }
}

body.single-vista_event .quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent !important;
    background-color: transparent !important;
}

/* Simple Quick Actions */
.quick-actions-simple {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .quick-actions-simple {
        gap: 0.625rem;
    }
}

@media (max-width: 480px) {
    .quick-actions-simple {
        gap: 0.5rem;
    }
}

.action-link {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.action-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000 !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.action-link a .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #000000 !important;
    transition: color 0.2s ease;
}

.action-link a:hover {
    text-decoration: none !important;
    color: var(--e-global-color-secondary, #6366f1) !important;
}

.action-link a:hover .dashicons {
    color: var(--e-global-color-secondary, #6366f1) !important;
}

.action-link-primary a {
    font-weight: 600;
    font-size: 16px;
    color: #000000 !important;
}

@media (max-width: 768px) {
    .action-link-primary a {
        font-size: 15px;
    }
    
    .action-link-primary a .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .action-link-primary a {
        font-size: 14px;
    }
    
    .action-link-primary a .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    .action-link-primary a .dashicons-arrow-right-alt {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

.action-link-primary a:hover {
    color: var(--e-global-color-secondary, #6366f1) !important;
}

.action-link-primary a .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Arrow icon for registration links in Quick Actions */
.action-link-primary a .dashicons-arrow-right-alt {
    margin-left: 0.25rem;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.action-link-primary a .action-text {
    display: inline-block;
}

/* Share Buttons */
.share-buttons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.share-buttons p {
    margin-bottom: 0.75rem;
}

.share-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Taxonomy Tags */
.taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.taxonomy-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: white;
    color: var(--vista-primary-color);
    border: 1px solid var(--vista-primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.taxonomy-tag:hover {
    background: var(--vista-primary-color);
    color: white;
}

.taxonomy-tag.tag {
    background: #e2e8f0;
    color: var(--vista-secondary-color);
    border-color: #e2e8f0;
}

.taxonomy-tag.tag:hover {
    background: var(--vista-secondary-color);
    color: white;
}

/* ============================================
   Related Events (Other Events)
   ============================================ */
body.single-vista_event .vista-related-events {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 2rem 1rem;
    margin: 3rem -1rem 0;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

body.single-vista_event .related-events-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    width: 100%;
}

body.single-vista_event .related-event-card {
    background: #ffffff;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.related-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.event-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-content {
    padding: 1.25rem;
}

.event-card-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

body.single-vista_event .event-card-content h3 a {
    color: var(--vista-text-color, #1e293b);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.event-card-content h3 a:hover {
    color: var(--vista-primary-color);
}

body.single-vista_event .event-date,
body.single-vista_event .event-venue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--vista-text-color, #1e293b);
}

.event-date .dashicons,
.event-venue .dashicons {
    font-size: 16px;
    color: var(--vista-primary-color);
}

/* ============================================
   Tablet Breakpoint (768px)
   ============================================ */
@media screen and (min-width: 768px) {
    body.single-vista_event .vista-event-header {
        padding: 2rem 1.5rem 0;
    }
    
    body.single-vista_event .vista-event-section {
        padding: 2rem 1.5rem;
    }
    
    body.single-vista_event .vista-event-meta-primary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body.single-vista_event .vista-event-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body.single-vista_event .organizer-card {
        grid-template-columns: 150px 1fr;
        align-items: start;
    }
    
    body.single-vista_event .related-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Desktop Breakpoint (1024px)
   ============================================ */
@media screen and (min-width: 1024px) {
    body.single-vista_event .vista-event-header {
        padding: 2rem 2rem 0;
    }
    
    body.single-vista_event .vista-event-section {
        padding: 2rem 2rem;
    }
    
    body.single-vista_event .vista-event-meta-primary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Two-column layout: main content + sidebar */
    body.single-vista_event .vista-event-content {
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
    
    body.single-vista_event .related-events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    body.single-vista_event .vista-related-events {
        padding: 3rem 2rem;
        margin: 4rem -2rem 0;
    }
}

/* ============================================
   Mobile Responsiveness for Related Events
   ============================================ */
@media screen and (max-width: 768px) {
    body.single-vista_event .vista-related-events {
        padding: 1.25rem 1rem !important;
        margin: 2rem 0 0 !important;
    }
    
    body.single-vista_event .related-events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    body.single-vista_event .related-event-card {
        width: 100%;
        max-width: 100%;
    }
    
    body.single-vista_event .event-card-content {
        padding: 1rem;
    }
    
    body.single-vista_event .event-card-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    body.single-vista_event .event-date,
    body.single-vista_event .event-venue {
        font-size: 0.85rem;
        margin: 0.375rem 0;
    }
}

@media screen and (max-width: 480px) {
    body.single-vista_event .vista-related-events {
        padding: 1rem 0.875rem !important;
        margin: 1.5rem 0 0 !important;
    }
    
    body.single-vista_event .related-events-grid {
        gap: 0.75rem;
    }
    
    body.single-vista_event .event-card-content {
        padding: 0.875rem;
    }
    
    body.single-vista_event .event-card-content h3 {
        font-size: 0.9375rem;
    }
    
    body.single-vista_event .event-date,
    body.single-vista_event .event-venue {
        font-size: 0.8rem;
    }
}

/* ============================================
   Large Desktop Breakpoint (1280px)
   ============================================ */
@media (min-width: 1280px) {
    .vista-event-content {
        grid-template-columns: 1fr 360px;
    }
}

/* ============================================
   Print Styles - Optimized for Printing
   ============================================ */
@media print {
    /* Hide unnecessary elements */
    .vista-breadcrumbs,
    .vista-event-share-header,
    .vista-share-modal,
    .vista-lightbox-modal,
    .vista-sticky-bottom-bar,
    .vista-event-sidebar,
    .vista-related-events,
    .vista-event-status,
    .vista-navigation-buttons,
    .location-nav-compact,
    .add-to-calendar,
    .btn-primary,
    .btn-secondary,
    .vista-image-overlay,
    .vista-image-lightbox,
    .vista-event-registration,
    .widget-taxonomy,
    .vista-event-type-badges-header {
        display: none !important;
    }
    
    /* Show map but make it compact */
    .location-map-compact {
        display: block !important;
        text-align: center !important;
        margin: 0.25rem 0 !important;
    }
    
    /* Page setup */
    @page {
        margin: 1cm;
        size: letter;
    }
    
    /* Base print styles */
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* Event Header */
    .vista-event-header {
        background: #ffffff !important;
        border-bottom: 1px solid #000000 !important;
        padding: 0.5rem 0 !important;
        page-break-inside: avoid;
        margin-bottom: 0.5rem !important;
    }
    
    .vista-event-title {
        font-size: 16px !important;
        color: #000000 !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }
    
    .vista-event-meta-primary {
        color: #000000 !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    
    .vista-event-organizer-header {
        border-top: 1px solid #cccccc !important;
        padding-top: 0.25rem !important;
        margin-top: 0.25rem !important;
        font-size: 12px !important;
    }
    
    /* Featured Image */
    .vista-event-featured-image {
        margin: 0.5rem 0 !important;
        page-break-inside: avoid;
        text-align: center;
    }
    
    .vista-event-featured-image img {
        max-width: 250px !important;
        width: auto !important;
        height: auto !important;
        border: 1px solid #cccccc !important;
    }
    
    /* Content Layout */
    .vista-event-content {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    
    .vista-event-main-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Sections */
    .vista-event-section {
        background: #ffffff !important;
        border-bottom: 1px solid #cccccc !important;
        padding: 0.5rem 0 !important;
        page-break-inside: avoid;
        margin-bottom: 0.25rem !important;
    }
    
    .section-title {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        text-transform: uppercase !important;
        margin-bottom: 0.25rem !important;
        border-bottom: 1px solid #000000 !important;
        padding-bottom: 0.125rem !important;
    }
    
    /* Event Details */
    .vista-event-details-grid {
        display: block !important;
    }
    
    .detail-item {
        margin-bottom: 0.5rem !important;
        padding: 0.25rem 0 !important;
        page-break-inside: avoid;
    }
    
    .detail-item strong {
        display: inline-block !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        margin-right: 0.5rem !important;
        margin-bottom: 0 !important;
    }
    
    .detail-item p {
        display: inline !important;
        font-size: 12px !important;
        color: #000000 !important;
        margin: 0 !important;
    }
    
    .detail-item p br {
        display: block !important;
        margin-top: 0.125rem !important;
    }
    
    /* Location Section */
    .location-compact-grid {
        display: block !important;
    }
    
    .location-details {
        margin-bottom: 0.25rem !important;
    }
    
    .venue-header {
        margin-bottom: 0.25rem !important;
    }
    
    .venue-thumbnail {
        display: none !important;
    }
    
    .venue-name {
        font-size: 12px !important;
        color: #000000 !important;
        margin-bottom: 0.125rem !important;
        font-weight: 700 !important;
    }
    
    .venue-address {
        font-size: 12px !important;
        color: #000000 !important;
        font-style: normal !important;
        line-height: 1.4 !important;
    }
    
    .directions-note {
        font-size: 12px !important;
        color: #000000 !important;
        margin-top: 0.25rem !important;
        font-style: italic !important;
    }
    
    /* Map - Compact */
    #vista-map-compact {
        max-width: 250px !important;
        height: 150px !important;
        margin: 0.25rem auto !important;
    }
    
    /* Organizers */
    .organizers-list {
        display: block !important;
    }
    
    .organizer-card {
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        padding: 0.25rem 0.5rem !important;
        margin-bottom: 0.25rem !important;
        page-break-inside: avoid;
    }
    
    .organizer-logo {
        display: none !important;
    }
    
    .organizer-info h3 {
        font-size: 12px !important;
        color: #000000 !important;
        margin-bottom: 0.125rem !important;
        font-weight: 700 !important;
    }
    
    .organizer-info p {
        font-size: 12px !important;
        color: #000000 !important;
        margin: 0.125rem 0 !important;
        line-height: 1.4 !important;
    }
    
    .organizer-info .dashicons {
        display: none !important;
    }
    
    /* Event Description */
    .event-description-content {
        font-size: 12px !important;
        color: #000000 !important;
        line-height: 1.4 !important;
    }
    
    .event-description-content p {
        margin-bottom: 0.5rem !important;
    }
    
    /* Links - show URLs */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: #666666;
        word-break: break-all;
    }
    
    a[href^="#"]::after,
    a[href^="javascript:"]::after,
    .vista-event-featured-image a::after,
    .organizer-info a::after {
        content: "";
    }
    
    /* Remove all colors and backgrounds */
    * {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    
    /* Ensure text is black and consistent size */
    h1, h2, h3, h4, h5, h6,
    p, span, div, li, td, th,
    address, small {
        color: #000000 !important;
        font-size: 12px !important;
    }
    
    h1 {
        font-size: 16px !important;
    }
    
    h2, h3 {
        font-size: 12px !important;
    }
    
    /* Compact spacing */
    * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .vista-event-section,
    .detail-item,
    .organizer-card,
    .event-description-content p {
        margin-bottom: 0.25rem !important;
    }
    
    /* Page breaks - avoid but allow if needed */
    .vista-event-section {
        page-break-inside: avoid;
    }
    
    .vista-event-header {
        page-break-after: avoid;
    }
    
    /* No footer */
    body::after {
        display: none !important;
    }
}

/* ============================================
   Sticky Bottom Registration Bar
   ============================================ */
.vista-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--e-global-color-secondary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1005;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 120px;
    border-top: none;
}

.vista-sticky-bottom-bar.visible {
    transform: translateY(0);
}

.vista-sticky-bottom-bar.hidden-by-footer {
    transform: translateY(100%);
}

.sticky-bar-content {
    max-width: var(--vista-container-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    min-height: 100px;
}

.sticky-bar-thumbnail {
    flex-shrink: 0;
    width: 100px;
    max-width: 100px;
    height: 100px;
    max-height: 100px;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-bar-thumbnail img {
    width: 100%;
    height: 100%;
    max-width: 100px;
    max-height: 100px;
    display: block;
    object-fit: cover;
}

.sticky-bar-info {
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.sticky-bar-title {
    font-size: 24px !important;
    font-weight: 600;
    margin: 0 0 0 0;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.9;
    align-items: center;
    margin-top: 0;
}

.sticky-bar-dates {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}

/* Flexible Schedule Badge in Sticky Bar */
.sticky-bar-flexible-badge,
.sticky-bar-dates .vista-flexible-schedule-badge {
    background: #f39c12 !important;
    background-color: #f39c12 !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.4) !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

@media (max-width: 768px) {
    .sticky-bar-flexible-badge,
    .sticky-bar-dates .vista-flexible-schedule-badge {
        padding: 4px 10px !important;
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    .sticky-bar-flexible-badge,
    .sticky-bar-dates .vista-flexible-schedule-badge {
        padding: 3px 8px !important;
        font-size: 9px !important;
        letter-spacing: 0.4px !important;
        line-height: 1.25 !important;
    }
}

.sticky-bar-deadline {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #ffffff;
}

.sticky-bar-deadline::before {
    content: '•';
    margin: 0 0.5rem;
    opacity: 0.7;
}

.sticky-bar-action {
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-direction: row !important;
    justify-content: flex-end;
}

.sticky-bar-btn,
button.sticky-bar-btn,
a.sticky-bar-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.875rem 1.75rem !important;
    background: #ffffff !important;
    color: var(--e-global-color-secondary) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0;
    min-height: 44px !important;
    line-height: 1 !important;
}

.sticky-bar-btn:hover,
button.sticky-bar-btn:hover,
a.sticky-bar-btn:hover {
    background: #ffffff !important;
    color: var(--e-global-color-secondary) !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
}

.sticky-bar-btn .dashicons,
button.sticky-bar-btn .dashicons,
a.sticky-bar-btn .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    color: var(--e-global-color-secondary) !important;
}

/* Share Button - Lite Version (White Outline, White Text) */
.sticky-bar-btn-share,
a.sticky-bar-btn-share,
.sticky-bar-btn-share-icon {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    box-shadow: none !important;
    min-height: 44px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sticky-bar-btn-share .dashicons,
a.sticky-bar-btn-share .dashicons,
.sticky-bar-btn-share-icon .dashicons {
    color: #ffffff !important;
}

.sticky-bar-btn-share:hover,
.sticky-bar-btn-share:active,
.sticky-bar-btn-share:focus,
a.sticky-bar-btn-share:hover,
a.sticky-bar-btn-share:active,
a.sticky-bar-btn-share:focus,
.sticky-bar-btn-share-icon:hover,
.sticky-bar-btn-share-icon:active,
.sticky-bar-btn-share-icon:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.sticky-bar-btn-share:hover .dashicons,
.sticky-bar-btn-share:active .dashicons,
.sticky-bar-btn-share:focus .dashicons,
a.sticky-bar-btn-share:hover .dashicons,
a.sticky-bar-btn-share:active .dashicons,
a.sticky-bar-btn-share:focus .dashicons,
.sticky-bar-btn-share-icon:hover .dashicons,
.sticky-bar-btn-share-icon:active .dashicons,
.sticky-bar-btn-share-icon:focus .dashicons {
    color: #ffffff !important;
}

/* Desktop/Tablet - Share Button with Icon */
@media (min-width: 481px) {
    .sticky-bar-btn-share-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.875rem 1rem !important;
        min-width: 44px !important;
        width: auto;
        height: auto;
        min-height: 44px !important;
        border-radius: 6px !important;
    }
    
    .sticky-bar-btn-share-icon .dashicons {
        font-size: 20px !important;
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }
}

/* Register Button - Stays White */
.sticky-bar-btn-register,
a.sticky-bar-btn-register {
    background: #ffffff !important;
    color: var(--e-global-color-secondary) !important;
    border: none !important;
    min-height: 44px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sticky-bar-btn-register:hover,
a.sticky-bar-btn-register:hover {
    background: #ffffff !important;
    color: var(--e-global-color-secondary) !important;
}

/* Register Button with Text and Arrow */
.sticky-bar-btn-register .action-text {
    display: inline-block !important;
    font-weight: 600 !important;
    color: inherit !important;
}

.sticky-bar-btn-register .dashicons-arrow-right-alt {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    color: inherit !important;
    margin-left: 0.25rem !important;
}

/* Mobile responsive - Compact Design */
@media (max-width: 768px) {
    .vista-sticky-bottom-bar {
        max-height: 85px !important;
    }
    
    .sticky-bar-content {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0.5rem 1rem;
        gap: 1rem;
        min-height: 75px;
        max-height: 85px;
        align-items: center;
    }
    
    .sticky-bar-thumbnail {
        width: 60px;
        max-width: 60px;
        height: 60px;
        max-height: 60px;
        flex-shrink: 0;
    }
    
    .sticky-bar-thumbnail img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .sticky-bar-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .sticky-bar-title {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        margin-bottom: 0;
    }
    
    .sticky-bar-meta {
        flex-direction: row;
        gap: 0.4rem;
        font-size: 0.7rem;
        margin-top: 0;
        line-height: 1.15;
    }
    
    .sticky-bar-action {
        flex-shrink: 0;
        flex-direction: row !important;
        gap: 0.4rem !important;
        align-items: center;
        justify-content: flex-end;
    }
    
    .sticky-bar-btn {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap;
        min-height: 40px !important;
    }
    
    .sticky-bar-btn .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .sticky-bar-btn-register {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
        gap: 0.375rem !important;
        min-height: 40px !important;
    }
    
    .sticky-bar-btn-register .action-text {
        font-size: 0.875rem !important;
    }
    
    /* Hide icon in Inquire Now button on mobile for compactness */
    .sticky-bar-btn-register .dashicons-edit {
        display: none !important;
    }
    
    .sticky-bar-btn-share-icon {
        padding: 0.625rem 0.875rem !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 6px !important;
    }
    
    .sticky-bar-btn-share-icon .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }
    
    /* Hide share button text on mobile, show only icon */
    .sticky-bar-btn-share .sticky-bar-share-text {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .vista-sticky-bottom-bar {
        max-height: 100px !important;
    }
    
    .sticky-bar-content {
        padding: 0.5rem 0.75rem;
        gap: 1rem;
        min-height: 70px;
        max-height: 100px;
        display: flex;
        align-items: center;
        overflow: hidden;
    }
    
    /* Hide thumbnail on mobile */
    .sticky-bar-thumbnail {
        display: none !important;
    }
    
    /* Hide meta (price, dates) on mobile */
    .sticky-bar-meta {
        display: none !important;
    }
    
    .sticky-bar-info {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        margin-right: 0.75rem;
    }
    
    .sticky-bar-title {
        font-size: 14px !important;
        margin-bottom: 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 600;
    }
    
    /* Hide share button on mobile */
    .sticky-bar-btn-share-icon {
        display: none !important;
    }
    
    .sticky-bar-action {
        display: flex;
        align-items: center;
        gap: 0;
        flex-shrink: 0;
        justify-content: flex-end;
    }
    
    /* Register/Inquire Button - Prominent, right-aligned */
    .sticky-bar-btn-register {
        flex: 0 0 auto;
        min-width: 90px;
        max-width: 120px;
        padding: 0.625rem 0.875rem !important;
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        white-space: nowrap !important;
        min-height: 40px !important;
    }
    
    .sticky-bar-btn-register .dashicons,
    .sticky-bar-btn-register .action-text,
    .sticky-bar-btn-register .dashicons-edit,
    .sticky-bar-btn-register .dashicons-arrow-right-alt {
        display: none !important;
    }
}

/* Hide on print */
@media print {
    .vista-sticky-bottom-bar {
        display: none;
    }
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --vista-text-color: #f1f5f9;
        --vista-secondary-color: #94a3b8;
    }
    
    .vista-event-header {
        background: #1e293b;
        border-bottom-color: #334155;
    }
    
    .detail-item,
    .organizer-card,
    .sidebar-widget {
        background: #1e293b;
        border-color: #334155;
    }
    
    .related-event-card {
        background: #1e293b;
    }
    
    .vista-related-events {
        background: #0f172a;
        border-top-color: #334155;
    }
}

/* ============================================
   Share Event Modal - Isolated from Theme CSS
   ============================================ */
#vista-share-modal.vista-share-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1000000 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#vista-share-modal.vista-share-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    animation: vista-share-fade-in 0.3s ease-out forwards !important;
}

@keyframes vista-share-fade-in {
    from {
        opacity: 0 !important;
    }
    to {
        opacity: 1 !important;
    }
}

#vista-share-modal .vista-share-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

#vista-share-modal .vista-share-modal-content {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    max-width: 400px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000001 !important;
    transform: translateY(30px) !important;
    animation: vista-share-fade-in-up 0.4s ease-out forwards !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#vista-share-modal.vista-share-modal.active .vista-share-modal-content {
    animation: vista-share-fade-in-up 0.4s ease-out forwards !important;
}

@keyframes vista-share-fade-in-up {
    from {
        opacity: 0 !important;
        transform: translateY(30px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

#vista-share-modal .vista-share-modal-close {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    color: #6b7280 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
    z-index: 10 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

#vista-share-modal .vista-share-modal-close:hover {
    color: #111827 !important;
}

#vista-share-modal .vista-share-modal-close .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

#vista-share-modal .vista-share-modal-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 1.25rem 0 !important;
    padding-right: 2rem !important;
    line-height: 1.4 !important;
}

#vista-share-modal .vista-share-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Social Media Icons - Simple Icon Buttons with Labels */
#vista-share-modal .vista-share-social-icons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

#vista-share-modal .vista-share-icon-btn {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 0.5rem !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    min-width: 60px !important;
}

#vista-share-modal .vista-share-icon-btn:hover {
    background: #f3f4f6 !important;
    transform: translateY(-2px) scale(1.05) !important;
}

#vista-share-modal .vista-share-icon-btn .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* X Icon (Twitter replacement) */
#vista-share-modal .vista-x-icon {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

#vista-share-modal .vista-share-icon-label {
    font-size: 14px !important;
    font-family: var(--e-global-typography-text-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
    color: #000000 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

#vista-share-modal .vista-share-facebook:hover {
    background: #1877f2 !important;
}

#vista-share-modal .vista-share-facebook:hover .dashicons {
    color: #ffffff !important;
}

#vista-share-modal .vista-share-facebook:hover .vista-share-icon-label {
    color: #ffffff !important;
}

#vista-share-modal .vista-share-twitter:hover,
#vista-share-modal .vista-share-x:hover {
    background: #000000 !important;
}

#vista-share-modal .vista-share-twitter:hover .dashicons,
#vista-share-modal .vista-share-x:hover .vista-x-icon {
    color: #ffffff !important;
}

#vista-share-modal .vista-share-twitter:hover .vista-share-icon-label,
#vista-share-modal .vista-share-x:hover .vista-share-icon-label {
    color: #ffffff !important;
}

#vista-share-modal .vista-share-email-btn:hover {
    background: #3b82f6 !important;
}

#vista-share-modal .vista-share-email-btn:hover .dashicons {
    color: #ffffff !important;
}

#vista-share-modal .vista-share-email-btn:hover .vista-share-icon-label {
    color: #ffffff !important;
}

/* Copy Link Section */
#vista-share-modal .vista-share-copy {
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb !important;
    margin: 0 !important;
}

#vista-share-modal .vista-share-url-container {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
}

#vista-share-modal .vista-share-url-input {
    flex: 1 !important;
    padding: 0.625rem 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 0.8125rem !important;
    background: #f9fafb !important;
    color: #111827 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
}

#vista-share-modal .vista-share-copy-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1rem !important;
    background: var(--e-global-color-secondary, #6366f1) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: none !important;
    white-space: nowrap !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

#vista-share-modal .vista-share-copy-btn:hover {
    background: var(--e-global-color-secondary, #6366f1) !important;
    color: #ffffff !important;
    transform: none !important;
}

#vista-share-modal .vista-share-copy-btn .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#vista-share-modal .vista-share-copy-btn .copied-text {
    color: #10b981 !important;
}

/* Share Button in Header */
.vista-event-share-header {
    margin-top: 1rem;
}

.vista-share-btn-header,
.vista-event-share-header .vista-share-btn-header,
.vista-event-share-header a.vista-share-btn-header {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background: var(--e-global-color-secondary, #6366f1) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}

.vista-share-btn-header:hover,
.vista-share-btn-header:active,
.vista-share-btn-header:focus,
.vista-event-share-header .vista-share-btn-header:hover,
.vista-event-share-header .vista-share-btn-header:active,
.vista-event-share-header .vista-share-btn-header:focus,
.vista-event-share-header a.vista-share-btn-header:hover,
.vista-event-share-header a.vista-share-btn-header:active,
.vista-event-share-header a.vista-share-btn-header:focus {
    background: var(--e-global-color-secondary, #6366f1) !important;
    color: #ffffff !important;
    transform: none !important;
    text-decoration: none !important;
}

.vista-share-btn-header .dashicons,
.vista-event-share-header .vista-share-btn-header .dashicons,
.vista-event-share-header a.vista-share-btn-header .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #ffffff !important;
}

.vista-share-btn-header span:not(.dashicons),
.vista-event-share-header .vista-share-btn-header span:not(.dashicons),
.vista-event-share-header a.vista-share-btn-header span:not(.dashicons) {
    color: #ffffff !important;
}

/* Share Button in Sticky Bar */
.vista-sticky-bottom-bar .vista-share-event-trigger {
    margin-left: 0.75rem;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.vista-sticky-bottom-bar .vista-share-event-trigger:hover,
.vista-sticky-bottom-bar .vista-share-event-trigger:active,
.vista-sticky-bottom-bar .vista-share-event-trigger:focus,
.vista-sticky-bottom-bar .sticky-bar-btn-share:hover,
.vista-sticky-bottom-bar .sticky-bar-btn-share:active,
.vista-sticky-bottom-bar .sticky-bar-btn-share:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.vista-sticky-bottom-bar .vista-share-event-trigger .dashicons {
    color: #ffffff !important;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    #vista-share-modal .vista-share-modal-content {
        padding: 1.25rem !important;
        width: 95% !important;
        max-width: 95% !important;
    }
    
    #vista-share-modal .vista-share-social-icons {
        gap: 0.75rem !important;
    }
    
    #vista-share-modal .vista-share-icon-btn {
        min-width: 50px !important;
        padding: 0.5rem 0.375rem !important;
    }
    
    #vista-share-modal .vista-share-icon-btn .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    #vista-share-modal .vista-share-icon-label {
        font-size: 12px !important;
    }
    
    #vista-share-modal .vista-share-url-container {
        flex-direction: column !important;
    }
    
    #vista-share-modal .vista-share-copy-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .vista-sticky-bottom-bar .sticky-bar-action {
        flex-wrap: wrap;
    }
    
    .vista-sticky-bottom-bar .vista-share-event-trigger {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
    }
}

