/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.header-content {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
}

/* Hamburger Menu - Always visible on all screen sizes */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    position: relative;
    z-index: 10001;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-menu span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 10001;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* User info display */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.user-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.bronze { background: #CD7F32; color: white; }
.level-badge.silver { background: #C0C0C0; color: white; }
.level-badge.gold { background: #FFD700; color: #333; }
.level-badge.platinum { background: #E5E4E2; color: #333; }
.level-badge.diamond { background: #B9F2FF; color: #333; }

.points-display {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #1e40af;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Loading button state */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: 1px solid #4b5563;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* Map View */
.map-container {
    position: relative;
    height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#map {
    height: 100%;
    width: 100%;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5000;
}

    .filter-panel {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        min-width: 250px;
        margin-bottom: 1rem;
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        cursor: pointer;
    }

    .filter-panel.expanded {
        max-height: 500px;
    }

    .filter-panel h3 {
        margin: 0;
        color: #333;
        font-size: 1.1rem;
        cursor: pointer;
        user-select: none;
    }
    
    .location-panel {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        min-width: 250px;
    }
    
    .location-controls {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .location-controls .btn {
        width: 100%;
        justify-content: center;
        font-weight: 500;
    }
    
    
    .location-info {
        background: #f0f9ff;
        border: 1px solid #0ea5e9;
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .location-info p {
        margin-bottom: 1rem;
        color: #0c4a6e;
    }
    
    .coordinates-input-group {
        display: flex;
        gap: 0.5rem;
    }
    
    .coordinates-input-group input {
        flex: 1;
    }
    
    .coordinates-input-group .btn {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    
    .form-help {
        color: #6b7280;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        display: block;
    }

    /* Password Guidelines */
    .password-guidelines {
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    .guideline-item {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .guideline-item:last-child {
        margin-bottom: 0;
    }

    .guideline-icon {
        margin-right: 0.5rem;
        font-size: 1rem;
        min-width: 20px;
        text-align: center;
    }

    .guideline-icon.valid {
        color: #10b981;
    }

    .guideline-icon.invalid {
        color: #ef4444;
    }

    .guideline-text {
        color: #374151;
    }

    .guideline-item.valid .guideline-text {
        color: #10b981;
        font-weight: 500;
    }

    .guideline-item.invalid .guideline-text {
        color: #6b7280;
    }

.filter-panel h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-panel h3::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-panel.expanded h3::after {
    transform: rotate(180deg);
}

.toggle-indicator {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.filter-panel.expanded .toggle-indicator {
    transform: rotate(180deg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Events View */
.events-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.events-header h2 {
    color: #333;
    font-size: 1.8rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

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

.event-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-card .venue {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.event-card .datetime {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-card .description {
    color: #555;
    line-height: 1.5;
}

.event-card .expiry-info {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #0c4a6e;
    text-align: center;
    font-weight: 500;
}

.event-card .expiry-info.expired {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Status View */
.status-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Leaderboard View */
.leaderboard-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.leaderboard-header h2 {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.leaderboard-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.leaderboard-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.filter-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.leaderboard-table {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px 100px;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}

.leaderboard-row:hover {
    background-color: #f8fafc;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    text-align: center;
}

.rank.rank-1 { color: #FFD700; }
.rank.rank-2 { color: #C0C0C0; }
.rank.rank-3 { color: #CD7F32; }

.user-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name-row {
    font-weight: 600;
    color: #1e293b;
}

.user-business {
    font-size: 0.85rem;
    color: #64748b;
}

.points-cell {
    text-align: center;
    font-weight: 600;
    color: #1e40af;
}

.level-cell {
    text-align: center;
}

.level-badge-row {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge-row.bronze { background: #CD7F32; color: white; }
.level-badge-row.silver { background: #C0C0C0; color: white; }
.level-badge-row.gold { background: #FFD700; color: #333; }
.level-badge-row.silver { background: #C0C0C0; color: white; }
.level-badge-row.gold { background: #FFD700; color: #333; }
.level-badge-row.platinum { background: #E5E4E2; color: #333; }
.level-badge-row.diamond { background: #B9F2FF; color: #333; }

.leaderboard-header-row {
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-header h2 {
    color: #333;
    font-size: 1.8rem;
}

.status-filters {
    display: flex;
    gap: 1rem;
}

.status-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.status-item.open {
    border-left-color: #10b981;
}

.status-item.closed {
    border-left-color: #ef4444;
}

.status-item.limited {
    border-left-color: #f59e0b;
}

.status-item.maintenance {
    border-left-color: #8b5cf6;
}

.status-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-item .venue-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.status-item .venue-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.status-item .venue-type {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.status-item .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-item.open .status-badge {
    background: #d1fae5;
    color: #065f46;
}

.status-item.closed .status-badge {
    background: #fee2e2;
    color: #991b1b;
}

.status-item.limited .status-badge {
    background: #fef3c7;
    color: #92400e;
}

.status-item.maintenance .status-badge {
    background: #ede9fe;
    color: #5b21b6;
}

.status-item .message {
    color: #555;
    line-height: 0;
    margin-bottom: 0.25rem;
}

.status-item .timestamp {
    color: #999;
    font-size: 0.8rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.venue-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.modal-header h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
}

.info-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    margin-left: 0.5rem;
}

.info-btn:hover {
    color: #3b82f6;
    background-color: #f3f4f6;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #333;
}

/* Venue Info Popup */
.venue-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.venue-info-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.venue-info-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.venue-info-header h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    color: #333;
    background-color: #f3f4f6;
}

.venue-info-body {
    padding: 1.5rem;
}

.info-item {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.info-value {
    color: #6b7280;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-value a {
    color: #3b82f6;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Venue Info Photos */
.venue-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.venue-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.venue-photo-item:hover {
    transform: scale(1.05);
}

.venue-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.venue-photo-item:hover .venue-photo-overlay {
    opacity: 1;
}

.venue-photo-overlay i {
    color: white;
    font-size: 1.2rem;
}

/* Image Gallery Modal */
.image-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.gallery-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.gallery-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gallery-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.gallery-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.gallery-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    min-height: 400px;
    max-height: 60vh;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-main img.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    pointer-events: all;
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.gallery-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    overflow-x: auto;
    max-height: 120px;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Simple Image Zoom Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zoom-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10002;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#zoomImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#zoomImage.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f3f4f6;
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .gallery-main {
        min-height: 300px;
        max-height: 50vh;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-thumbnails {
        max-height: 100px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Venue Photo Upload */
.venue-photos-upload {
    margin-top: 0.5rem;
}

.photos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.photo-upload-slot {
    position: relative;
    aspect-ratio: 1;
}

.photo-upload-area {
    width: 100%;
    height: 100%;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    text-align: center;
    padding: 0.5rem;
}

.photo-upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.photo-upload-area i {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.photo-upload-area p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.photo-upload-area small {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.photo-preview {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    position: relative;
}

.photo-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.photo-remove-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive design for smaller screens */
@media (max-width: 640px) {
    .photos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.modal-body {
    padding: 1rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    display: block;
    visibility: visible;
}

.modal-footer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.modal-footer a {
    color: #007bff !important;
    text-decoration: none;
    font-weight: 500;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-footer a:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

#showRegisterLink, #showLoginLink {
    color: #007bff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

#showRegisterLink:hover, #showLoginLink:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Forms */
.form-group {
    margin-bottom: 0.75rem;
}

/* Remove box styling from beach-specific fields */
.beach-specific-fields {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.text-center {
    text-align: center;
}

/* Selection menu with three buttons */
.selection-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.selection-options .btn {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

/* Independent Status Popup Styling */
.independent-status-popup {
    max-width: 350px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.independent-status-popup .status-header {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.independent-status-popup .status-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.independent-status-popup .status-location {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.independent-status-popup .status-content {
    margin: 0;
}

.independent-status-popup .status-message {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
}

.independent-status-popup .status-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.independent-status-popup .status-user {
    font-weight: 500;
    text-align: center;
    margin: 0;
}

.independent-status-popup .status-time {
    color: #9ca3af;
}

.text-center a {
    color: #667eea;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 0.4rem 0;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    /* Hamburger menu is now always visible - no mobile-specific rules needed */
    
    .nav {
        display: none;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .language-selector-container {
        margin-right: 0;
    }
    
    .language-select {
        padding: 5px 10px;
        padding-right: 24px;
        font-size: 13px;
        background-size: 10px;
        background-position: right 6px center;
    }
    
    .nav {
        order: 3;
        flex-grow: 1; 
        justify-content: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .map-container {
        height: 75vh;
    }
    
    .map-controls {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
    }
    
    .filter-panel {
        min-width: auto;
    }
    
    .events-header,
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .status-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .language-selector-container {
        margin-right: 0.5rem;
    }
    
    .language-select {
        padding: 4px 8px;
        padding-right: 20px;
        font-size: 12px;
        background-size: 8px;
        background-position: right 4px center;
    }
}

/* Custom Markers */
    .manual-pin-marker .pin-icon {
        width: 40px;
        height: 40px;
        background-image: url('../images/location-pin.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: all 0.3s ease;
    }

    .manual-pin-marker:hover .pin-icon {
        transform: scale(1.1);
    }

    .manual-pin-marker.dragging .pin-icon {
        transform: scale(1.2);
    }

/* Ensure manual pin marker is always on top */
.manual-pin-marker {
    z-index: 5000 !important;
}

.user-location-marker .user-location-icon {
    width: 36px;
    height: 36px;
    background-image: url('../images/location-pin.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    z-index: 5000 !important; /* Ensure high z-index */
}

/* Ensure user location marker is always on top */
.user-location-marker {
    z-index: 5000 !important;
}

/* Venue markers */
.custom-venue-marker {
    transition: all 0.3s ease;
}

.custom-venue-marker:hover {
    transform: scale(1.1);
}

/* Event markers */
.custom-event-marker {
    transition: all 0.3s ease;
}

.custom-event-marker:hover {
    transform: scale(1.1);
}

/* Event popup styling */
.event-popup {
    max-width: 200px;
    font-family: 'Inter', sans-serif;
}

.event-popup-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-popup-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.event-type-badge {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.event-popup-content {
    color: #374151;
    line-height: 1.2 !important;
}

.event-popup-content p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px;
    line-height: 1.2 !important;
    display: block;
}

.event-popup-content .description-text {
    max-height: 3.5em; /* Approximately 3 lines */
    overflow-y: auto;
    line-height: 1.2 !important;
    padding-right: 4px;
    margin: 0 !important;
    font-size: 12px;
    display: block;
}

.event-popup-content .description-text::-webkit-scrollbar {
    width: 4px;
}

.event-popup-content .description-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.event-popup-content .description-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.event-popup-content .description-text::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.event-popup-content strong {
    color: #1f2937;
    font-weight: 600;
}

.event-popup-media {
    margin-bottom: 0;
}

.event-popup-media img {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.event-popup-media img:hover {
    transform: scale(1.02);
}

.expiry-info {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
}

.expiry-info.expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Pin Popup */
.pin-popup, .user-location-popup {
    text-align: center;
    min-width: 200px;
}

.pin-popup h4, .user-location-popup h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.pin-popup p, .user-location-popup p {
    margin: 8px 0;
    color: 666;
    font-size: 0.9em;
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem;
    max-width: 400px;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #3b82f6;
    margin-bottom: 10px;
}

/* Stack notifications vertically */
.notification + .notification {
    top: calc(80px + 80px * var(--notification-index, 0));
}

/* Map Search Button */
.map-search-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #374151;
    transition: all 0.3s ease;
}

.map-search-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.map-search-btn:active {
    transform: scale(0.95);
}

/* Search Modal Styles */
.search-container {
    max-height: 400px;
    overflow-y: auto;
}

.search-input-group {
    position: relative;
    margin-bottom: 20px;
}

.search-input-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.search-clear-btn:hover {
    color: #6b7280;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f9fafb;
}

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

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.search-result-icon.venue {
    background: #3b82f6;
}

.search-result-icon.event {
    background: #10b981;
}

.search-result-icon.status {
    background: #f59e0b;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.search-no-results i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}

.search-no-results h4 {
    margin: 0 0 8px 0;
    color: #374151;
}

.search-no-results p {
    margin: 0;
    font-size: 14px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-info {
    border-left-color: #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #10b981;
}

.notification-error .notification-content i {
    color: #ef4444;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #f1f5f9;
    color: #333;
}

/* Map Legend */
.map-legend {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-size: 12px;
    margin-bottom: 1rem;
    min-width: 200px;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #666;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Crowd Selector */
.crowd-selector {
    margin-top: 10px;
}

.crowd-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crowd-option {
    flex: 1;
    min-width: 60px;
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.crowd-option:hover {
    border-color: #8b5cf6;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.crowd-option.selected {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.crowd-option i {
    font-size: 16px;
}

.crowd-option .crowd-icon {
    font-size: 16px;
    line-height: 1;
}

.crowd-option span {
    font-weight: 500;
    text-align: center;
}

/* Crowd indicator in venue popup */
.crowd-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

/* Crowd indicator - similar to weather indicator */
.crowd-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.crowd-few {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.crowd-few .crowd-icon {
    color: inherit;
}

.crowd-some {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.crowd-some .crowd-icon {
    color: inherit;
}

.crowd-busy {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.crowd-busy .crowd-icon {
    color: inherit;
}

.crowd-packed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.crowd-packed .crowd-icon {
    color: inherit;
}

/* Status indicators row layout */
.status-indicators-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

/* Weather indicator */
.weather-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Status navigation */
.status-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.nav-arrow {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.nav-arrow:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-indicators {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

.status-dot:hover {
    background: #9ca3af;
}

.status-content {
    min-height: 0;
}

.no-status {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Venue Popup Styles */
.venue-popup {
    max-width: 200px;
    width: 200px;
}

.venue-popup .status-media {
    text-align: center;
    margin: 0;
}

.venue-popup .status-media img,
.venue-popup .status-media video {
    max-width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.independent-status-popup .status-media img,
.independent-status-popup .status-media video {
    max-width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Popup Actions */
.popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0;
}

.popup-actions .btn {
    flex: 1;
    max-width: 120px;
}

/* Directions Button Styling */
.directions-btn {
    background: #059669 !important;
    border-color: #047857 !important;
    color: white !important;
}

.directions-btn:hover {
    background: #047857 !important;
    border-color: #065f46 !important;
    color: white !important;
}

.directions-btn:active {
    background: #065f46 !important;
    border-color: #064e3b !important;
}

/* Share Button Styling */
.share-btn {
    background: #7c3aed !important;
    border-color: #6d28d9 !important;
    color: white !important;
}

.share-btn:hover {
    background: #6d28d9 !important;
    border-color: #5b21b6 !important;
    color: white !important;
}

.share-btn:active {
    background: #5b21b6 !important;
    border-color: #4c1d95 !important;
}

/* Status Time Container with Inline Navigation */
.status-time-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
}

.status-time-container .status-time {
    margin: 0;
}

.status-time-container .status-time small {
    margin: 0;
}

.status-time {
    margin: 0;
    flex: 1;
    text-align: center;
}

.status-time-container .nav-arrow {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    flex-shrink: 0;
}

.status-time-container .nav-arrow:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

.status-time-container .nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Media Thumbnail Styles */
.media-thumbnail {
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
    overflow: hidden;
}

.media-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.media-thumbnail .play-overlay,
.media-thumbnail .zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.media-thumbnail:hover .play-overlay,
.media-thumbnail:hover .zoom-overlay {
    opacity: 1;
}

.media-thumbnail .play-overlay {
    font-size: 24px;
}

.media-thumbnail .zoom-overlay {
    font-size: 20px;
}

/* Media Popup Styles */
.media-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.media-popup-overlay > div {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.media-popup-overlay button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10001;
    transition: color 0.2s ease;
}

.media-popup-overlay button:hover {
    color: #333;
}

/* Form actions - ensure buttons are inline */
.form-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

/* Success Popup Styles */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.success-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.success-popup-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.success-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.success-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.success-popup-content {
    padding: 2rem;
}

.success-popup-content p {
    margin: 0 0 1.5rem 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
}

.success-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.success-popup-actions .btn {
    flex: 1;
    max-width: 150px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.form-actions .btn {
    display: inline-block !important;
    flex: 1;
    width: auto !important;
    margin: 0;
}

/* Delete panel styles */
.delete-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.delete-panel .delete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.delete-panel h3 {
    margin: 0;
    color: #DC2626;
}

.delete-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.delete-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.delete-tab {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.delete-tab.active {
    border-bottom-color: #DC2626;
    color: #DC2626;
    font-weight: 600;
}

.delete-tab:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.delete-tab-pane {
    display: none;
}

.delete-tab-pane.active {
    display: block;
}

.delete-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delete-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
    transition: all 0.3s ease;
}

.delete-item:hover {
    background: #FEF2F2;
    border-color: #FECACA;
}

.delete-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delete-item-title {
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.delete-item-details {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

.delete-item-meta {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin: 0;
}

.delete-item-media {
    margin: 0.5rem 0;
}

.delete-item-media img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

.delete-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background: #DC2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #B91C1C;
}

.btn-danger:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}


/* Language Selector - Simple and Clean */
.language-selector-container {
    margin-right: 1rem;
}

.language-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 28px;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.language-select option {
    background: white;
    color: #374151;
}

/* Camera Capture Interface Styles */
.camera-options {
    display: flex !important;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: nowrap !important; /* Keep buttons in same line */
    flex-direction: row !important; /* Force horizontal layout */
}

.camera-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px; /* Keep minimum width for mobile */
    flex: 1; /* Make buttons fill available space equally */
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.camera-main-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    min-width: 120px;
}

.camera-main-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.camera-btn:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.camera-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #667eea;
}

.camera-btn span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-btn:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.photo-btn:hover i {
    color: #10b981;
}

.video-btn:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.video-btn:hover i {
    color: #f59e0b;
}

.camera-options .gallery-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
    border-color: #8b5cf6 !important;
    border-radius: 12px !important;
    width: auto !important;
    height: auto !important;
    min-width: 120px !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.camera-options .gallery-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    border-color: #7c3aed !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3) !important;
}

.camera-options .gallery-btn i {
    color: white !important;
    margin-bottom: 8px !important;
    font-size: 24px !important;
}

.camera-options .gallery-btn:hover i {
    color: white !important;
}

/* Specific override for venue status form camera options */
#cameraOptions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
}

/* Camera Modal Styles */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.camera-modal-content {
    width: 90%;
    max-width: 500px;
    background: #1f2937;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: cameraModalSlideIn 0.3s ease-out;
}

@keyframes cameraModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #374151;
    border-bottom: 1px solid #4b5563;
}

.camera-mode-selector {
    display: flex;
    gap: 8px;
    background: #4b5563;
    padding: 4px;
    border-radius: 12px;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.mode-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.mode-btn:hover:not(.active) {
    background: #6b7280;
    color: white;
}

.mode-btn i {
    font-size: 16px;
}

.camera-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.camera-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.camera-close:hover {
    background: #4b5563;
    color: white;
}

.camera-preview-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.camera-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Transform will be applied dynamically via JavaScript based on camera type */
}

.camera-preview-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: #374151;
    gap: 32px;
}

.camera-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #6b7280;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.camera-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #9ca3af;
    transform: scale(1.1);
}

.camera-capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.camera-capture-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.camera-capture-btn:active {
    transform: scale(0.95);
    background: #f3f4f6;
}

/* Recording state */
.camera-capture-btn.recording {
    background: #ef4444;
    color: white;
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.6);
    }
}

/* Media Preview Styles */
.media-preview {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-preview-content {
    position: relative;
    width: 100%;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.media-preview-content img,
.media-preview-content video {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.remove-media:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Sargazo Meter Markers */
.sargazo-meter-marker {
    transition: all 0.3s ease;
}

.sargazo-meter-marker:hover {
    transform: scale(1.1);
}

/* Map Marker Styles - moved from inline styles */
.venue-marker-container {
    position: relative;
    background-color: #9CA3AF;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-marker-icon {
    transform: rotate(45deg);
    font-size: 16px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.event-marker-container {
    background-color: #8B5CF6;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.independent-status-marker-container {
    background-color: #10B981;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.manual-pin-marker-container {
    background-color: #EF4444;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sargazo-meter-container {
    position: relative;
    width: 32px;
    height: 32px;
    background-color: #F59E0B;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sargazo-meter-icon {
    transform: rotate(45deg);
    font-size: 12px;
    color: white;
    font-weight: bold;
}

/* Media Thumbnail Styles */
.media-thumbnail {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.media-thumbnail video {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 8px;
}

.media-thumbnail img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 8px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    opacity: 0.8;
}

/* Loading Preview Styles */
.loading-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    min-height: 200px;
    width: 100%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.loading-subtitle {
    color: #adb5bd;
    font-size: 12px;
    margin-top: 4px;
}

/* Media Upload Preview Styles */
.media-preview-content {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-preview-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Event Popup Media Styles */
.event-popup-media .media-thumbnail {
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: 100%;
}


/* Responsive Design for Camera */
@media (max-width: 768px) {
    .camera-options {
        flex-direction: row; /* Keep buttons in same line even on mobile */
        gap: 8px;
    }
    
    .camera-btn {
        flex-direction: row;
        padding: 12px 16px;
        min-width: auto;
        text-align: left;
    }
    
    .camera-btn i {
        margin-bottom: 0;
        margin-right: 12px;
        font-size: 20px;
    }
    
    .camera-btn span {
        font-size: 14px;
    }
    
    .camera-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .camera-preview-container {
        height: 300px;
    }
    
    .camera-controls {
        padding: 20px;
        gap: 24px;
    }
    
    .camera-control-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .camera-capture-btn {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .camera-preview-container {
        height: 250px;
    }
    
    .camera-controls {
        gap: 20px;
    }
    
    .camera-control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .camera-capture-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}

