/* Event Listings Grid Styles */
.events-grid {
    margin: 40px 0;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-image-overlay {
    opacity: 1;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(25, 118, 210, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.event-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 10px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-details {
    flex: 1;
    margin-bottom: 16px;
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #555;
}

.event-detail i {
    width: 14px;
    margin-right: 8px;
    color: #1976d2;
    font-size: 0.75rem;
}

.event-price {
    font-weight: 600;
    color: rgba(0,0,0,0.8);
    font-size: 0.8rem;
}

.event-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: white;
    color: #1976d2;
    border: 2px solid #1976d2;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #1976d2;
    color: white;
    text-decoration: none;
}

.btn-disabled {
    background: #f5f5f5;
    color: #999;
    border: 2px solid #ddd;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
    background: #f5f5f5;
    color: #999;
}

.restriction-badge {
    color: #d32f2f;
    font-size: 0.75rem;
    font-weight: 500;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-events i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Responsive adjustments for event listings */
@media (max-width: 768px) {
    .event-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-card {
        margin-bottom: 20px;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .event-title {
        font-size: 1.05rem;
    }
}

/* Ensure proper card sizing */
.events-grid .uk-grid > * {
    margin-bottom: 25px;
}

/* ========================================================================
   Event Detail Page Styles
 ========================================================================== */

.event-hero {
    position: relative;
    height: 30vh; /* Reduced from 60vh to 30vh (50% height) */
    min-height: 250px; /* Reduced from 400px to 250px */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    aspect-ratio: 16/9; /* Maintain 16:9 aspect ratio */
    width: 100%; /* Full container width, not viewport */
    border-radius: 12px; /* Add border radius for container styling */
    overflow: hidden; /* Ensure content respects border radius */
    margin-bottom: 20px; /* Add margin to separate from content below */
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.event-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.event-hero .event-title {
    font-size: 3rem; /* Reduced from 3.5rem */
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #1976d2; /* Bright blue color */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Added drop shadow */
}

.event-hero .event-subtitle {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    opacity: 0.95;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    color: #1976d2; /* Bright blue color */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Added drop shadow */
    font-weight: 500; /* Made text slightly bolder for better readability */
}

.event-details-grid {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: -60px 0 40px 0;
    position: relative;
    z-index: 3;
    padding: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-value {
    color: #666;
    font-size: 1.1rem;
}

.ticket-button {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    text-decoration: none;
    color: white;
}

.ticket-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
    justify-content: center;
}

.secondary-button {
    background: white;
    color: #1976d2;
    border: 2px solid #1976d2;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.secondary-button:hover {
    background: #1976d2;
    color: white;
    text-decoration: none;
}

.image-gallery {
    margin: 40px 0;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.content-section {
    margin: 40px 0;
}

.share-button {
    display: none;
}

/* Venue-specific styles */
.venue-postcode {
    font-size: 0.9rem;
    color: #888;
    font-weight: normal;
}

.venue-website-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.venue-website-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

.venue-map-section {
    margin: 60px 0 0 0; /* Added top margin to separate from content */
    background: white;
    border-radius: 12px; /* Restored border radius for container styling */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%; /* Full container width, not viewport */
    position: relative;
}

.map-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    padding: 30px 0 20px 0; /* Centered padding */
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    color: #333;
    text-align: center; /* Center the title */
}

.venue-map-container {
    position: relative;
    height: 400px; /* Increased height */
    width: 100%;
}

.venue-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay {
    position: absolute;
    top: 15px; /* Increased from 10px */
    right: 15px; /* Increased from 10px */
    z-index: 10;
}

.map-overlay-link {
    background: rgba(25, 118, 210, 0.9);
    color: white;
    padding: 10px 15px; /* Increased padding */
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem; /* Slightly larger font */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Increased gap */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Added shadow */
}

.map-overlay-link:hover {
    background: rgba(25, 118, 210, 1);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.map-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-link:hover {
    color: #1565c0;
    text-decoration: none;
}

/* Event Detail Page Responsive Styles */
@media (max-width: 768px) {
    .event-hero {
        height: 25vh; /* Even smaller on mobile */
        min-height: 200px;
    }
    
    .event-hero .event-title {
        font-size: 2.2rem; /* Reduced from 2.5rem */
    }
    
    .event-hero .event-subtitle {
        font-size: 1.1rem; /* Reduced from 1.2rem */
    }
    
    .event-details-grid {
        margin: -40px 10px 30px 10px;
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ticket-button, .secondary-button {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .share-button {
        display: inline-flex;
    }
    
    .map-title {
        font-size: 1.5rem;
        padding: 20px 15px 15px 15px;
    }
    
    .venue-map-container {
        height: 300px; /* Smaller on mobile */
    }
    
    .map-overlay {
        top: 10px;
        right: 10px;
    }
    
    .map-overlay-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }
}