/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --bg-main: #0b0c10;
    --bg-panel: rgba(21, 26, 35, 0.85);
    --bg-card: #1f2833;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #c5a880; /* Gold accent */
    --text-muted: #95a5a6;
    --accent: #ff3838; /* Glowing red from map overview */
    --accent-glow: rgba(255, 56, 56, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --sidebar-width: 420px;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --radius: 12px;
}

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

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Layout */
.app-container {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-header img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.header-title h1 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.header-title p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Scrollable Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar Styling */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}
.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation Tabs */
.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 2px solid var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Crew Profile Card */
.crew-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.crew-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
    color: var(--text-secondary);
}

.crew-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.crew-member {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crew-member i {
    font-size: 0.75rem;
    color: var(--accent);
}

/* Action Button */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--accent-glow);
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 56, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Timeline/Itinerary */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-badge {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-badge {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.timeline-item.active .timeline-badge {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    transform: scale(1.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-item.active .timeline-content {
    background: rgba(255, 56, 56, 0.08);
    border-color: var(--accent);
    box-shadow: inset 0 0 8px rgba(255, 56, 56, 0.1);
}

.timeline-day {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Offline Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Main Map Area */
.map-container {
    flex: 1;
    height: 100%;
    position: relative;
    background: #000;
}

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

/* Map Style Selector Control */
.map-control-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.map-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.map-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.map-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Custom Marker CSS */
.custom-photo-marker {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-photo-marker:hover {
    transform: scale(1.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    z-index: 1000 !important;
}

.marker-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 6px;
    border: 1px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Bottom Slide-up Photo Drawer */
.photo-drawer {
    position: absolute;
    bottom: -320px;
    left: calc(var(--sidebar-width) + 20px);
    right: 20px;
    height: 280px;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.photo-drawer.open {
    bottom: 20px;
}

.photo-drawer.expanded {
    height: calc(100% - 40px);
    top: 20px;
    bottom: 20px;
    left: 20px !important;
    right: 20px !important;
    transition: all 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.photo-drawer.expanded .drawer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: start;
}

.photo-drawer.expanded .drawer-photo-card {
    width: 100%;
    height: 100%;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-header h3 span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.drawer-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.close-drawer, .expand-drawer {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-drawer:hover {
    color: var(--accent);
}

.expand-drawer:hover {
    color: var(--text-primary);
}

.drawer-content {
    flex: 1;
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    align-items: center;
}

/* Scrollbar for Drawer */
.drawer-content::-webkit-scrollbar {
    height: 6px;
}
.drawer-content::-webkit-scrollbar-track {
    background: transparent;
}
.drawer-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.drawer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.drawer-photo-card {
    height: 180px;
    width: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.drawer-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.drawer-photo-card:hover img {
    transform: scale(1.08);
}

.drawer-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 8px;
    font-size: 0.7rem;
    color: white;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.95);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img, .lightbox video {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
    margin-top: 16px;
    color: white;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.lightbox-caption p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* Modal for Overview Map */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.9);
    z-index: 10005;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Floating view toggle on mobile - hidden on desktop */
.mobile-view-toggle {
    display: none;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Rules */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .map-container {
        width: 100%;
        height: 100%;
        display: none; /* Hidden by default */
    }
    
    /* Toggle active state */
    body.mobile-map-active .sidebar {
        display: none;
    }
    
    body.mobile-map-active .map-container {
        display: block;
    }
    
    .mobile-view-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2000;
        background: var(--accent);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.2);
        padding: 12px 24px;
        border-radius: 30px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px var(--accent-glow);
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
    }
    
    .mobile-view-toggle:active {
        transform: translateX(-50%) scale(0.95);
    }
    
    .mobile-view-toggle i {
        font-size: 1rem;
    }
    
    .photo-drawer {
        left: 20px;
        bottom: -290px;
        z-index: 1500;
    }
    .photo-drawer.open {
        bottom: 84px; /* Raised higher on mobile so it doesn't overlap with the floating view toggle button */
    }
    .photo-drawer.expanded {
        height: calc(100% - 40px);
        top: 20px;
        bottom: 20px;
        left: 20px !important;
        right: 20px !important;
    }
    
    .all-photos-box {
        z-index: 1400; /* sits under photo-drawer but above map */
    }
    
    .all-photos-box:not(.collapsed) {
        bottom: 84px !important; /* Lifted on mobile to avoid toggle button overlap when expanded */
    }
    
    .map-control-panel {
        top: 15px;
        right: 15px;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 250px;
        gap: 6px;
        z-index: 1000;
    }
    
    .map-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Permanent Camp Tooltip Labels */
.camp-tooltip-permanent {
    background: var(--bg-panel) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--text-secondary) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    pointer-events: none; /* Prevents blocking clicks on elements beneath */
}
.camp-tooltip-permanent::before {
    border-top-color: var(--text-secondary) !important;
}

/* Document Link Hovers */
.doc-link:hover {
    background: var(--bg-card) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(255, 56, 56, 0.15);
    transform: translateY(-1px);
}

/* All Photos Expandable Box in Bottom Left */
.all-photos-box {
    position: absolute;
    bottom: 20px;
    left: calc(var(--sidebar-width) + 20px);
    width: 280px;
    height: 48px;
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.all-photos-box.hidden {
    bottom: -100px;
    opacity: 0;
    pointer-events: none;
}

.all-photos-header {
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.all-photos-box:not(.collapsed) .all-photos-header {
    border-color: var(--border-color);
}

.all-photos-header h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.all-photos-header h3 i {
    color: var(--text-secondary);
}

.all-photos-header h3 span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.toggle-all-photos {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.2s ease;
}

.toggle-all-photos:hover {
    color: var(--text-primary);
}

.all-photos-box:not(.collapsed) .toggle-all-photos {
    transform: rotate(180deg);
}

.all-photos-box:not(.collapsed) {
    width: 380px;
    height: 500px;
    max-height: calc(100% - 100px);
}

.all-photos-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 100px;
    gap: 8px;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.all-photos-box:not(.collapsed) .all-photos-content {
    opacity: 1;
}

/* Custom Scrollbar for All Photos Content */
.all-photos-content::-webkit-scrollbar {
    width: 6px;
}
.all-photos-content::-webkit-scrollbar-track {
    background: transparent;
}
.all-photos-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.all-photos-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.all-photo-card {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.all-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.all-photo-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-photo-card:hover img {
    transform: scale(1.08);
}

/* Overlays on All Photo cards */
.all-photo-card-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.all-photo-card-map-pin {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
}

.all-photo-card-map-pin:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
}

/* All Photos Header Controls */
.all-photos-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.expand-all-photos {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.expand-all-photos:hover {
    color: var(--text-primary);
}

.all-photos-box:not(.collapsed) .expand-all-photos {
    display: flex;
}

/* All Photos Fullscreen State */
.all-photos-box.fullscreen {
    height: calc(100% - 40px) !important;
    width: calc(100% - 40px) !important;
    top: 20px;
    bottom: 20px;
    left: 20px !important;
    right: 20px !important;
    z-index: 1001; /* Sits above sidebar and other components when fullscreen */
}

.all-photos-box.fullscreen .all-photos-content {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 140px;
    gap: 16px;
}

/* Responsive adjustments for all-photos-box on mobile */
@media (max-width: 768px) {
    .all-photos-box {
        left: 20px !important;
        width: calc(100% - 40px) !important;
        bottom: 84px !important;
    }
    .all-photos-box:not(.collapsed) {
        width: calc(100% - 40px) !important;
        height: 320px !important;
        max-height: 50vh !important;
    }
    .all-photos-box.fullscreen {
        height: calc(100% - 40px) !important;
        width: calc(100% - 40px) !important;
    }
}

