/* ============================================
   EXPLORE SECTION - TABS
   ============================================ */

.explore-section-modern {
    background: linear-gradient(135deg, #102a43 0%, #334f5d 100%);
    position: relative;
    overflow: hidden;
}

.explore-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
}

.explore-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
}

.explore-tabs {
    position: relative;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(39, 175, 165, 0.4);
}

.tab-icon {
    font-size: 2rem;
}

.tab-label {
    font-size: 0.9rem;
}

.tab-panels {
    position: relative;
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

.business-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.business-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.business-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.business-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.business-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.business-card-modern:hover .business-image-wrapper img {
    transform: scale(1.1);
}

.business-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.business-card-modern:hover .business-overlay {
    opacity: 1;
}

.business-link {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-dark-blue);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.business-link:hover {
    background: var(--primary-teal);
    color: white;
    transform: scale(1.05);
}

.business-info-modern {
    padding: 1.5rem;
    text-align: center;
}

.business-info-modern h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 0.5rem;
}

.business-info-modern p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   BOOKINGS SECTION
   ============================================ */

.bookings-section-modern {
    background: var(--gray-light);
}

.bookings-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.booking-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.booking-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.booking-card-modern.featured {
    border: 3px solid var(--primary-teal);
}

.booking-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(196, 29, 21, 0.4);
}

.booking-image-modern {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-teal) 100%);
}

.booking-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.booking-card-modern:hover .booking-image-modern img {
    transform: scale(1.1);
}

.booking-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.booking-content-modern {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    flex: 1;
}

.booking-content-modern h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.booking-content-modern p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: auto;
    padding-bottom: 2rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(39, 175, 165, 0.1);
    color: var(--primary-dark-blue);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-booking {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 175, 165, 0.4);
}

.btn-booking svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section-modern {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #102a43 100%);
    overflow: hidden;
    margin-bottom: 0;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.cta-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(39, 175, 165, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(42, 235, 206, 0.3) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    text-align: center;
    color: white;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(39, 175, 165, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(39, 175, 165, 0.6);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-cta-primary svg,
.btn-cta-secondary svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-title .title-main {
        font-size: 6rem;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: 90vh;
    }
    
    .hero-content-wrapper {
        transform: translateY(-20px);
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .title-main {
        font-size: 4rem !important;
    }
    
    .title-subtitle {
        font-size: 2rem !important;
    }
    
    .hero-tagline {
        font-size: 1.5rem !important;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-pill {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .section-title-modern {
        font-size: 2.5rem !important;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .business-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .bookings-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: auto;
        max-width: 280px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .btn-cta-primary svg,
    .btn-cta-secondary svg {
        width: 28px;
        height: 28px;
        order: -1;
    }
    
    .btn-cta-primary span,
    .btn-cta-secondary span {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-content-wrapper {
        padding: 1rem;
    }
    
    .title-main {
        font-size: 3rem !important;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .card-content-modern {
        padding: 1.5rem;
    }
    
    .tab-button {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }
    
    /* Booking cards small screen adjustments */
    .bookings-grid-modern {
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .booking-card-modern {
        border-radius: 16px;
    }
    
    .booking-content-modern {
        padding: 1.25rem;
    }
    
    .booking-title-modern {
        font-size: 1.25rem;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   EVENTS PAGE STYLING
   ============================================ */

.events-hero {
    background: linear-gradient(135deg, #102a43 0%, #334f5d 100%);
    padding: 140px 2rem 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.03) 35px,
        rgba(255, 255, 255, 0.03) 70px
    );
    pointer-events: none;
}

.events-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.events-hero .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-bright-teal);
}

.events-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.events-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.portal-cta {
    background: linear-gradient(135deg, rgba(39, 175, 165, 0.1), rgba(42, 235, 206, 0.1));
    border: 2px solid var(--primary-teal);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.portal-actions {
    display: flex;
    gap: 1rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--secondary-bright-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 175, 165, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
}

.cta-btn.secondary:hover {
    background: var(--primary-teal);
    color: white;
}

.filters-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark-blue);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(39, 175, 165, 0.1);
}

.results-count {
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-light);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-image-placeholder-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-date {
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.event-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 0.75rem;
}

.event-card-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.no-events {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ============================================
   EVENT DETAIL MODAL
   Unified styling for home and events pages
   ============================================ */

.event-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    box-sizing: border-box;
}

.event-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.event-detail-dialog {
    background: white;
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    padding: 2rem;
}

.event-detail-modal.active .event-detail-dialog {
    transform: scale(1);
}

/* Close button - Always visible with contrast */
.event-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--primary-red, #c41d15);
    color: white;
    font-size: 28px;
    z-index: 10001;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.4);
}

.event-detail-close:hover {
    background: #a01710;
    transform: scale(1.1);
}

/* Content layout - Desktop side by side */
.event-detail-content {
    display: flex;
    flex-direction: row;
    max-height: calc(90vh - 4rem);
    overflow-y: auto;
    gap: 2rem;
}

.event-detail-left {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: calc(90vh - 6rem);
}

.event-detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
    max-height: calc(90vh - 6rem);
}

/* Image/Media area - SHOW FULL IMAGE */
.event-detail-media {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 380px;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.event-detail-media img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 8px;
}

.event-detail-media img:hover {
    opacity: 0.95;
}

/* Date badge */
.event-date-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red, #c41d15), #a11818);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.4);
    z-index: 10;
}

/* No image placeholder */
.event-no-image {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    border-radius: 12px;
}

.event-no-image span:first-child {
    font-size: 2.5rem;
    opacity: 0.6;
}

.event-no-image span:last-child {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

/* Header section */
.event-detail-header {
    padding: 0 0 1rem 0;
    flex-shrink: 0;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 1rem;
}

.event-detail-header h3 {
    font-family: 'Norwester', var(--font-heading), sans-serif;
    font-size: 1.75rem;
    color: var(--primary-dark-blue, #102a43);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.event-detail-venue {
    color: #64748b;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-detail-venue::before {
    content: "📍";
    font-size: 1rem;
}

/* Scrollable content area */
.event-detail-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
    min-height: 0;
}

.event-detail-description {
    line-height: 1.75;
    color: #475569;
    font-size: 1rem;
    font-family: 'Cardo', var(--font-body), serif;
}

/* Meta info section */
.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.event-detail-meta > span,
.event-detail-meta > div {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    border-left: 3px solid var(--accent-teal);
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e3a5f;
}

/* Actions area */
.event-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.03) 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Action buttons in modal */
.event-detail-actions a,
.event-detail-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

/* Primary button - Red */
.event-detail-actions .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red, #c41d15), #a11818) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(196, 29, 21, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a11818, #8b1515) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 29, 21, 0.4);
}

/* Calendar/Secondary button - Teal */
.event-detail-actions .btn-calendar,
.btn-calendar {
    background: linear-gradient(135deg, var(--accent-teal, #27afa5), #1f9d92) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(39, 175, 165, 0.3);
}

.btn-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 175, 165, 0.4);
}

/* Share/Outline button */
.event-detail-actions .btn-share,
.btn-share {
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    color: #475569 !important;
}

.btn-share:hover {
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
    transform: translateY(-2px);
}

/* ============================================
   MOBILE STYLES - Unified for all pages
   ============================================ */
@media (max-width: 768px) {
    /* Modal overlay - allow vertical scroll */
    .event-detail-modal {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Modal dialog - scrollable container */
    .event-detail-dialog {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        max-height: none;
        border-radius: 0;
        padding: 1rem;
        padding-top: 4rem;
        padding-bottom: 2rem;
        margin: 0;
        overflow: visible;
    }
    
    .event-detail-modal.active .event-detail-dialog {
        transform: scale(1);
    }
    
    /* Close button - absolute to dialog, top right */
    .event-detail-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        background: var(--primary-red, #c41d15);
        color: white;
        font-size: 26px;
        z-index: 100;
        box-shadow: 0 4px 15px rgba(196, 29, 21, 0.5);
        border-radius: 50%;
    }
    
    /* Content stacks vertically */
    .event-detail-content {
        flex-direction: column;
        gap: 1rem;
        overflow: visible;
        max-height: none;
    }
    
    .event-detail-left {
        flex: none;
        width: 100%;
        gap: 1rem;
    }
    
    /* Mobile image - SHOW FULL FLYER */
    .event-detail-media {
        width: 100%;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        border-radius: 12px;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: visible;
        padding: 0.5rem;
    }
    
    .event-detail-media img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 8px;
    }
    
    /* Date badge on mobile */
    .event-date-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
        border-radius: 6px;
        bottom: 0.75rem;
        left: 0.75rem;
    }
    
    .event-detail-right {
        flex: none;
        display: flex;
        flex-direction: column;
        background: white;
        padding: 0;
    }
    
    .event-detail-header {
        padding: 0.5rem 0;
        flex-shrink: 0;
        background: white;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0.5rem;
    }
    
    .event-detail-header h3 {
        font-family: 'Norwester', var(--font-heading), sans-serif;
        font-size: 1.2rem;
        line-height: 1.2;
        margin: 0 0 0.4rem 0;
        text-transform: uppercase;
        color: var(--primary-dark-blue, #102a43);
    }
    
    .event-detail-venue {
        font-size: 0.85rem;
        margin: 0;
        font-weight: 600;
        color: #64748b;
    }
    
    /* Meta info cards on mobile */
    .event-detail-meta {
        padding: 0;
        margin: 0.5rem 0;
        gap: 0.5rem;
    }
    
    .event-detail-meta > span,
    .event-detail-meta > div {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Description - full height, page scrolls */
    .event-detail-scrollable {
        padding: 0.75rem;
        overflow: visible;
        max-height: none;
        margin-bottom: 1rem;
        border: 1px solid #f1f5f9;
        border-radius: 8px;
        background: #fafafa;
    }
    
    .event-detail-description {
        font-size: 0.9rem;
        line-height: 1.7;
        color: #475569;
    }
    
    /* Actions - at bottom */
    .event-detail-actions {
        padding: 1rem 0 0 0;
        background: white;
        border-top: 1px solid #f1f5f9;
        gap: 0.6rem;
        display: flex;
        flex-direction: column;
    }
    
    .event-detail-actions a,
    .event-detail-actions button {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
        font-weight: 700;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .event-detail-dialog {
        max-width: 95%;
    }
    
    .event-detail-left {
        flex: 0 0 380px;
    }
}

/* Portal CTA responsive */
@media (max-width: 768px) {
    .portal-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   EVENTS LIST VIEW
   ============================================ */

.events-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.events-list-header {
    display: grid;
    grid-template-columns: 140px 1fr 180px 100px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.events-list-body {
    max-height: 70vh;
    overflow-y: auto;
}

.events-list-row {
    display: grid;
    grid-template-columns: 140px 1fr 180px 100px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
}

.events-list-row:hover {
    background: linear-gradient(135deg, rgba(39, 175, 165, 0.05) 0%, rgba(39, 175, 165, 0.1) 100%);
}

.events-list-row:last-child {
    border-bottom: none;
}

.list-col-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-date-main {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.list-date-time {
    font-size: 0.8rem;
    color: #64748b;
}

.list-col-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.list-event-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.list-event-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.list-event-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.list-event-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.list-event-desc {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-recurring-badge,
.list-featured-badge {
    margin-right: 0.5rem;
}

.list-col-venue {
    color: #475569;
    font-size: 0.9rem;
}

.list-col-cost {
    font-weight: 600;
    color: #27afa5;
}

.events-list-empty {
    padding: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
}

/* List view responsive */
@media (max-width: 1024px) {
    .events-list-header,
    .events-list-row {
        grid-template-columns: 120px 1fr 120px;
    }
    
    .list-col-cost {
        display: none;
    }
    
    .events-list-header .list-col-cost {
        display: none;
    }
}

@media (max-width: 768px) {
    .events-list-header {
        display: none;
    }
    
    .events-list-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .list-col-date {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .list-date-main {
        font-size: 0.85rem;
    }
    
    .list-col-venue {
        font-size: 0.85rem;
        color: #64748b;
    }
    
    .list-col-venue::before {
        content: "📍 ";
    }
    
    .list-col-cost {
        display: block;
        font-size: 0.85rem;
    }
    
    .list-col-cost::before {
        content: "💵 ";
    }
}
