    .header-top {
        margin-top: 16px;
        padding-right: 12px;
        padding-left: 4px;
        box-sizing: border-box;
        overflow-x: visible;
        min-width: 0;
    }
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Calendar Header and Filter Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 16px;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 12px;
        padding: 0 8px;
    }
}

.calendar-switcher {
    display: flex;
    justify-content: center;
}

.switcher-container {
    background: linear-gradient(180deg, #6b46c1, #9333ea);
    border-radius: 100px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    min-width: 300px;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 768px) {
    .switcher-container {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .switcher-container {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        padding: 2px;
        margin: 0 8px;
    }
    
    .switcher-segment {
        flex: 1;
        text-align: center;
        padding: 6px 4px;
        font-size: 12px;
        max-width: 33.33%;
        white-space: nowrap;
        overflow: hidden;
    }
}

.switcher-segment {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    max-width: 160px;
}

.switcher-segment:hover {
    color: rgba(255, 255, 255, 0.9);
}

.switcher-segment.active {
    background: white;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Calendar Filters */
.calendar-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .calendar-filters {
        width: 100%;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
        gap: 8px;
    }
    
    .filter-select {
        width: 45%;
        padding: 6px 8px;
        font-size: 13px;
        max-width: 150px;
    }
}

.filter-select {
    padding: 6px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    min-width: 120px;
}

.filter-select:hover {
    border-color: #9333ea;
}

.filter-select:focus {
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.calendar-section {
    display: none;
    width: 100%;
}

.calendar-section.active {
    display: block;
}

/* Calendar specific styles for full height */
#calendar .content-grid {
    height: auto;
    margin: 24px auto 0;
    max-width: 1400px;
    width: 100%;
    padding-top: 10px;
    gap: 12px;

    display: flex;
    flex-direction: column;
}

/* Places specific styles - same as calendar */
#places .content-grid {
    height: auto;
    margin: 24px auto 0;
    max-width: 1400px;
    width: 100%;
    padding-top: 10px;
    gap: 12px;

    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    #calendar .content-grid {
        margin: 16px auto 0;
        gap: 12px;
        padding-top: 5px;
        padding: 0 8px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    #places .content-grid {
        margin: 16px auto 0;
        gap: 12px;
        padding-top: 5px;
        padding: 0 8px;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Additional optimization for smaller phones like iPhone 12 Pro */
@media (max-width: 400px) {
    #calendar .content-grid {
        padding: 0 4px;
    }
    
    #places .content-grid {
        padding: 0 4px;
    }
    
    #calendar .card {
        margin: 12px 0;
        padding: 12px;
    }
}

/* Calendar cards use the same style as Places tab cards */
#calendar .card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin: 32px 12px;
}

@media (max-width: 768px) {
    #calendar .card {
        margin: 16px 0;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
        box-sizing: border-box;
    }
    #calendar .card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    #calendar .card p {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    #calendar .content-grid {
        margin: 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    #calendar .card {
        margin: 0;
        border-radius: 0;
        padding: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

#calendar .calendar-section {
    flex: 1;
    overflow: visible;
}

/* Semester Badge Styles */
.semester-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6b46c1, #9333ea);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}

/* Date details container */
.date-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-details .semester-badge {
    margin-top: 2px;
}

.event-meta .semester-badge {
    margin-left: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

/* Mobile Navigation (Top Navigation Bar) */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #6b46c1, #9333ea);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
    padding-bottom: 8px;
}

/* Places Filter Styles */
.places-filters {
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin: 16px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.filter-select:hover {
    border-color: #9333ea;
}

/* Category List Styles */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
}

.category-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 12px 0;
}

@media (max-width: 768px) {
    .category-card {
        margin: 0 0 10px 0;
        padding: 12px;
    }
    
    .categories-list {
        padding: 8px 0;
    }
}

.category-card:active {
    transform: scale(0.98);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 20px;
    color: #6b46c1;
}

.category-details {
    flex: 1;
}

.category-details h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #1f2937;
}

.category-details p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.category-card .fa-chevron-right {
    color: #9ca3af;
    font-size: 14px;
    margin-left: 8px;
}

/* Location List Styles */
.locations-list {
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    .locations-list {
        padding-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .locations-list {
        padding-bottom: 4px;
    }
}

.category-header {
    margin-bottom: 12px;
    padding: 0;
    position: relative; /* Positioning context for filter popover */
}

.category-header h2 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 24px;
}

.category-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.location-search {
    position: relative;
    margin: 0 0 20px 0;
}

.location-search input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: #f9fafb;
}

.location-search .fa-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.location-item {
    display: flex; /* Use flexbox for better alignment */
    flex-direction: column;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    margin: 0 0 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.location-item:active {
    transform: scale(0.98);
}

.location-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.location-icon i {
    color: #0ea5e9;
    font-size: 16px;
}

.location-details {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.location-details h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-details p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.location-details .opening-hours {
    color: #10b981;
    font-size: 12px;
    margin-top: 4px;
}

.location-item .fa-chevron-right {
    color: #d1d5db;
    font-size: 14px;
    margin-left: 8px;
}

/* Expandable Location Styles */
.location-content {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.location-main {
    flex: 1;
    min-width: 0;
}

.location-main h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-summary {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.expand-icon {
    color: #d1d5db;
    font-size: 14px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.location-expanded {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.expanded-details {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 0;
    gap: 2px;
}

.detail-item:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.detail-item strong {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
}

.detail-item span {
    color: #1f2937;
    font-weight: 500;
    font-size: 14px;
}

.detail-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.navigate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navigate-button:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.navigate-button:active {
    transform: translateY(0);
}

.location-item.expanded .expand-icon {
    transform: rotate(90deg);
}

/* Back button */

/* --- Layout fix: ensure expanded panel sits below the row --- */
.location-item {
    display: flex;            /* stack vertically to avoid side-by-side */
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
.location-item > .location-content { /* header row */
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.location-item > .location-expanded { /* expanded panel */
    width: 100%;
    margin-top: 12px;
}
.back-to-categories {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #6b46c1;
    font-size: 15px;
    font-weight: 500;
    padding: 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Back button in header */
.header-top .back-to-categories {
    width: auto;
    padding: 8px;
    margin-right: 16px;
    margin-left: -8px;
    border-radius: 8px;
    font-size: 18px;
}

.header-top .back-to-categories:hover {
    background: #f3f4f6;
}

.back-to-categories i {
    margin-right: 8px;
}

/* Remove margin from back button icon when in header */
.header-top .back-to-categories i {
    margin-right: 0;
}

/* Ensure content doesn't hide behind fixed navigation */
.content-wrapper {
    padding: 16px;
    padding-top: 120px; /* Space for mobile nav at top */
    padding-bottom: 100px; /* Extra space for mobile bottom nav */
    max-width: 100%;
    overflow-x: hidden;
}

.nav-bar {
    background: linear-gradient(180deg, #6b46c1, #9333ea);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.mobile-nav .nav-item:hover,
.mobile-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav .nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.mobile-search {
    margin: 0 16px 16px 16px;
}

/* Main layout for all devices */
.main-content {
    min-height: 100vh;
    background: #f5f5f5;
    width: 100%;
}

/* Search Containers */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 16px;
}

/* Consolidated search styles */

.search-icon {
    color: #9ca3af;
    margin-right: 12px;
    font-size: 16px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #374151;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.mic-icon {
    color: #9ca3af;
    margin-left: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mic-icon:hover {
    color: #6b46c1;
}

/* Content Sections */
.content-wrapper {
    padding: 16px;
    padding-top: 120px; /* Space for mobile nav at top */
    padding-bottom: 100px; /* Extra space for mobile bottom nav */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Tab content visibility */
.tab-content {
    display: none;
    visibility: hidden;
    opacity: 0;
    padding: 16px;
    animation: fadeIn 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.tab-content.active {
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative; /* Put back in the flow */
}

/* Ensure content is visible on mobile */
@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 180px; /* Space for search and mobile nav */
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .tab-content {
        padding: 4px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile tab content styles */
}

/* Removed h1 styles as headings were removed */

/* Use flexbox for all content grids */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1400px;
    margin: 16px auto 0;
    width: 100%;
    padding-top: 10px;
    box-sizing: border-box;
}

#places-grid {
    gap: 16px;
}

@media (max-width: 768px) {
    /* Default for other tabs that don't have specific styling */
    .content-grid:not(#calendar .content-grid):not(#places .content-grid) {
        margin: 8px auto 0;
        gap: 8px;
        padding: 0 8px;
        box-sizing: border-box;
        width: 100%;
    }
}

/* iPhone 12 Pro and similar device optimization */
@media (max-width: 400px) {
    .content-wrapper {
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .tab-content {
        padding: 2px;
    }
    
    .content-grid:not(#calendar .content-grid):not(#places .content-grid) {
        padding: 0 2px;
        margin: 4px auto 0;
    }
    
    #places-grid {
        padding: 0 8px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    
    /* Places-specific optimizations for iPhone 12 Pro */
    .content-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 8px;
        margin: 8px auto 0;
    }

    .category-card {
        margin: 0 0 8px 0;
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .location-item {
        width: 100%;
        box-sizing: border-box;
        padding: 8px;
        margin: 0 0 6px 0;
        border-radius: 10px;
    }

    .location-item > .location-content {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .location-details {
        flex: 1;
        min-width: 0;
        margin-right: 8px;
        padding: 0;
    }

    .location-details h4 {
        margin: 0 0 2px 0;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }
    .category-card {
        margin: 0 0 6px 0;
        padding: 8px 6px;
        border-radius: 10px;
    }
    .tab-content {
        padding: 0 10px 0 2px;
    }
    .content-grid {
        padding: 0 10px 0 2px;
        margin: 2px auto 0;
    }
}

/* Calendar cards use the same style as Places tab cards */
#calendar .card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    #calendar .card {
        margin: 16px 0;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
        box-sizing: border-box;
    }
    #calendar .card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    #calendar .card p {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

.card h3 {
    display: flex;
    align-items: center;
}

.card h3 i {
    margin-right: 12px;
    color: #6b46c1;
    font-size: 22px;
}

.card p {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

/* List Styles */
.location-list,
.date-list,
.event-list,
.club-list,
.support-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-item,
.date-item,
.event-item,
.club-item,
.support-item {
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #6b46c1;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 768px) {
    .date-item,
    .event-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .location-item {
        padding: 10px 12px;
        font-size: 13px;
        margin: 0 0 10px 0;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .category-details h3 {
        font-size: 15px;
    }
    
    .category-details p {
        font-size: 13px;
    }
}

.location-item:hover,
.date-item:hover,
.event-item:hover,
.club-item:hover,
.support-item:hover {
    background: #f3f4f6;
    cursor: pointer;
}

.location-item .opening-hours {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

.location-item .facilities {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
}

/* Remove hover hint for location details */
/* Previously showed "Click for location details" on hover */
/* Rule removed to satisfy UX requirement */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 14px;
}

.link-item:hover {
    background: #6b46c1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.link-item i {
    margin-right: 12px;
    font-size: 14px;
}

/* Unified Styles for all screen sizes */
.content-wrapper {
    padding: 16px;
    padding-top: 140px; /* Space for nav at top */
    padding-bottom: 100px; /* Extra space for bottom nav */
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Headings were removed */

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    font-size: 16px;
    margin-bottom: 16px;
}

.location-item,
.date-item,
.event-item,
.club-item,
.support-item,
.link-item {
    padding: 16px 20px;
    font-size: 16px;
}

/* Unified categories and locations styles */
.categories-list, .locations-list {
    display: block;
    width: 100%;
    padding: 0;
}

.category-card, .location-item {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

/* Animation for tab switching */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states and interactions */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

/* Accessibility improvements */
.nav-item:focus,
.search-input:focus,
.link-item:focus {
    outline: 2px solid #6b46c1;
    outline-offset: 2px;
}

/* Light theme styles only - dark theme removed */

/* Loading and Error States */
.loading-message, .error-message {

    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-message i, .error-message i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #6b46c1;
}

.loading-message h3, .error-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #374151;
}

.loading-message p, .error-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

.retry-button {
    background: #6b46c1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #553c9a;
    transform: translateY(-2px);
}

.retry-button i {
    margin-right: 8px;
    font-size: 14px;
}

/* Location Modal Styles */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.location-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.location-modal-header h3 {
    margin: 0;
    color: #6b46c1;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f3f4f6;
    color: #374151;
}

.location-modal-body p {
    margin: 8px 0;
    color: #374151;
}

.location-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.maps-button, .copy-button {
    flex: 1;
    background: #6b46c1;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.maps-button:hover, .copy-button:hover {
    background: #553c9a;
    transform: translateY(-2px);
}

.copy-button {
    background: #6b7280;
}

.copy-button:hover {
    background: #4b5563;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category header layout with back button and right-aligned filter button */
.category-header .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
}

.category-header .header-top h2 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.filter-button {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-button:hover {
    background: #e5e7eb;
}

/* Popover */
.filter-popover {
    position: absolute;
    right: 16px;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 8px;
    z-index: 50;
}

.filter-options {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 200px;
    max-height: 280px;
    overflow: auto;
}

.filter-options li {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.filter-options li:hover {
    background: #f3f4f6;
}

/* Footer */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
    color: #888;
    font-size: 1rem;
    background: #f9f9f9;
    margin-top: 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .site-footer {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

/* Disable hover tooltip on location items */
.location-item[data-coordinates]:hover::after {
    content: none !important;
    display: none !important;
}
