/* premium-overrides.css – loaded after app.css */
.header {
    background: var(--bg-primary) !important;
    box-shadow: var(--shadow) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 1000 !important;
}

.photo-map-page .filters-container {
    display: flex;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    gap: 1rem;
    flex-wrap: wrap;
}

.photo-map-page .filter-controls select {
    height: 52px !important;
    border-radius: var(--radius) !important;
    border: none !important;
    box-shadow: var(--shadow) !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    padding: 0 1.25rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: 'Outfit', sans-serif !important;
}

.photo-map-page .search-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    /* removed side padding */
    background: var(--bg-primary) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary) !important;
}

.photo-map-page .search-box i {
    color: var(--text-secondary) !important;
    font-size: 1rem;
}

.photo-map-page .search-box input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary) !important;
}

/* popular page spacing */
.popular-page {
    padding: 0.5rem 0.5rem !important;
    margin-top: 30px !important;
}

/* Premium slideshow UI overrides – glassmorphic dark theme */

/* Overlay backdrop */
.slideshow-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn .3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Container for the slide */
.slideshow-container {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

/* Slide image */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.slideshow-container:hover .slide-img {
    transform: scale(1.02);
}

/* Action buttons panel – glassmorphic */
/* Bottom centered action bar */
.slideshow-action-bar {
    position: absolute;
    bottom: 2.5rem; /* raise a bit to clear arrows */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    z-index: 35; /* above arrows */
    flex-direction: row;
}

.slideshow-action-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 0.6rem;
    color: #e0e7ff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.slideshow-action-bar button:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Arrow positioning – give side margin */
.nav-arrow.left { left: 1.5rem; }
.nav-arrow.right { right: 1.5rem; }

/* Ensure arrows stay above backdrop but below action bar */
.nav-arrow { z-index: 30; }

/* Close button – keep on top */
.close-btn { z-index: 40; }

    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    z-index: 20;
    flex-direction: row;
}

.slideshow-action-bar button {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 0.5rem;
    color: #e0e7ff;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.slideshow-action-bar button:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Ensure navigation arrows stay on top */
.nav-arrow {
    z-index: 25;
}

/* Close button stays top right with higher stack */
.close-btn {
    z-index: 30;
}

/* Bottom comments panel (slides up) */
.comments-bottom-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 38vh;
    overflow-y: auto;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem;
    color: #f3f4f6;
    animation: slideUp .3s ease-out forwards;
    z-index: 20;
    /* mobile: full width, desktop keep same */
}

/* Comments heading line */
.comments-bottom-panel .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

/* Existing .close-btn & .nav-arrow style retained */
/* Legacy .action-buttons-fixed and stray CSS removed – replaced by .slideshow-action-bar */
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    z-index: 10;
}


/* Removed action-buttons-fixed CSS */
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    color: #e0e7ff;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.action-buttons-fixed button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Icon color variants */
.action-buttons-fixed button.liked {
    color: #f87171;
}

.action-buttons-fixed button.favorited {
    color: #fbbf24;
}

.action-buttons-fixed button.share {
    color: #818cf8;
}

.action-buttons-fixed button.comments {
    color: #60a5fa;
}

/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background .2s, transform .15s;
    z-index: 10;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 1rem;
}

.nav-arrow.right {
    right: 1rem;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #e5e7eb;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .15s;
    z-index: 15;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: rotate(20deg);
}

/* Comments panel – glassmorphic sidebar at bottom */
.comments-section-fixed {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-height: 38vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 1rem;
    color: #f3f4f6;
    animation: slideUp .3s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comments-section-fixed .comment {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.6rem;
    margin-bottom: 0.6rem;
}

.comments-section-fixed input {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    padding: 0.4rem 0.6rem;
    width: 100%;
}

.comments-section-fixed button {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    margin-left: 0.4rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

/* Slide counter */
.slide-counter {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #e0e7ff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.2rem 0.6rem;
    border-radius: 0.6rem;
    z-index: 10;
}

/* Header navigation actions buttons normalization */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.nav-actions .btn,
.nav-actions form button.btn {
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1.25rem !important;
    font-size: 0.9rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

.nav-actions form.inline {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-actions .btn-outline {
    background: white !important;
    border: 2px solid #2563eb !important;
    color: #2563eb !important;
}

.nav-actions .btn-outline:hover {
    background: rgba(37, 99, 235, 0.05) !important;
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.nav-actions .btn-primary {
    background: #2563eb !important;
    border: 2px solid #2563eb !important;
    color: white !important;
}

.nav-actions .btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}