/* ==========================================================================
   Valcea.net — Premium Mobile-First & Desktop Styling
   ========================================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --brand-primary: #059669;
    --brand-primary-dark: #047857;
    --brand-secondary: #0f172a;
    --brand-accent: #f59e0b;
    --border-light: #e2e8f0;
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.14);
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hide scrollbar for horizontal pill lists on mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism Header & Bottom Bar */
.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-bottom-bar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Hero Background — Masivul Cozia & Valea Oltului, Județul Vâlcea */
.hero-mesh {
    position: relative;
    overflow: hidden;
    background-color: #051a13;
}

/* Layer 1: Photographic Background of Vâlcea (Munții Cozia & Râul Olt) */
.hero-mesh::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-image: url('hero-valcea.webp?v=1');
    background-size: cover;
    background-position: center 36%;
    background-repeat: no-repeat;
    opacity: 0.85;
    filter: saturate(1.25) contrast(1.10) brightness(1.02);
    transform: scale(1.02);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Mobile 4G/5G Optimization: ultra-light WebP (~45KB vs 360KB) */
@media (max-width: 768px) {
    .hero-mesh::before {
        background-image: url('hero-valcea-mobile.webp?v=1');
    }
}

/* Layer 2: Ultra-modern gradient layers & micro-dot mesh for elegance & contrast */
.hero-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
        radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 85% 25%, rgba(14, 165, 233, 0.20) 0%, transparent 50%),
        linear-gradient(135deg, rgba(5, 26, 19, 0.65) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.78) 100%),
        linear-gradient(to bottom, rgba(5, 26, 19, 0.25) 0%, transparent 45%, rgba(15, 23, 42, 0.90) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-mesh h1,
.hero-mesh p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

/* Category Pills */
.category-pill {
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.category-pill:hover {
    transform: translateY(-2px);
}
.category-pill.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.3);
}
.category-pill.active .cat-icon-box {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

/* Listing Cards */
.listing-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow-sm);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.35);
}

.listing-card .cover-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.listing-card .cover-wrap img.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card:hover .cover-wrap img.cover-img {
    transform: scale(1.06);
}

/* ==========================================================================
   Company Logo Badges (Smart Auto-Fit for All Ratios & Formats)
   Adapts cleanly to horizontal, square, and round logos without cropping.
   ========================================================================== */
.company-logo-badge,
img.company-logo-badge {
    height: 52px;
    min-width: 52px;
    max-width: 86px;
    width: auto;
    padding: 4px 6px;
    border-radius: 14px;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

img.company-logo-badge {
    object-fit: contain !important;
    object-position: center;
}

.company-logo-badge img,
.company-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    object-position: center;
    display: block;
    margin: auto;
}

.listing-card:hover .company-logo-badge {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30);
}

/* Large Company Logo Badge for Detail Hero View */
.company-logo-badge-lg {
    position: relative;
    z-index: 20;
    height: 68px;
    min-width: 68px;
    max-width: 135px;
    width: auto;
    padding: 6px 10px;
    border-radius: 18px;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo-badge-lg img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    object-position: center;
    display: block;
    margin: auto;
}

@media (min-width: 640px) {
    .company-logo-badge {
        height: 56px;
        min-width: 56px;
        max-width: 96px;
        padding: 5px 8px;
        border-radius: 16px;
        border-width: 3px;
    }
    .company-logo-badge-lg {
        height: 94px;
        min-width: 94px;
        max-width: 180px;
        padding: 8px 14px;
        border-radius: 24px;
        border-width: 4px;
    }
}

/* Status Pulse Indicator */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.pulse-dot.open {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.pulse-dot.closed {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Restaurant Menu Item Card */
.menu-item-card {
    transition: all 0.2s ease;
}
.menu-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.06);
}

/* SortableJS Drag & Drop Styles in Backoffice */
.sortable-ghost {
    opacity: 0.35;
    background: #ecfdf5 !important;
    border: 2px dashed #10b981 !important;
}
.sortable-drag {
    background: #ffffff !important;
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.22) !important;
    transform: scale(1.01);
    z-index: 50;
}
.drag-handle {
    cursor: grab;
    touch-action: none;
}
.drag-handle:active {
    cursor: grabbing;
}

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

.animate-fade-in {
    animation: fadeInSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Lightbox Overlay */
.lightbox-backdrop {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-bottom: 78px; /* Space for mobile bottom navigation */
    }
    .listing-card .cover-wrap {
        aspect-ratio: 16 / 9.5;
    }
}

/* ==========================================================================
   TOP 10 COMPANIES — 3D BOOK PAGE-TURN & KEN BURNS SHOWCASE SLIDER
   ========================================================================== */
.book-showcase-wrapper {
    position: relative;
    border-radius: 26px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    padding: 8px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.24),
                0 0 0 1px rgba(15, 23, 42, 0.08);
}

@media (min-width: 640px) {
    .book-showcase-wrapper {
        padding: 8px 16px 10px 14px;
    }
}

/* Left Book Binding Spine */
.book-hardcover-spine {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 14px;
    width: 14px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(90deg, #064e3b 0%, #047857 45%, #022c22 100%);
    box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.45);
    z-index: 25;
}

/* Right Stacked Pages Edge Effect */
.book-pages-stack-edge {
    position: absolute;
    right: 4px;
    top: 14px;
    bottom: 16px;
    width: 11px;
    border-radius: 0 14px 14px 0;
    background: repeating-linear-gradient(
        90deg,
        #f8fafc 0px,
        #f8fafc 2px,
        #cbd5e1 2px,
        #cbd5e1 3px
    );
    box-shadow: inset 2px 0 4px rgba(15, 23, 42, 0.15), 2px 0 8px rgba(15, 23, 42, 0.2);
    z-index: 5;
}

/* 3D Perspective Stage */
.book-perspective-stage {
    position: relative;
    width: 100%;
    height: 540px;
    perspective: 2500px;
    transform-style: preserve-3d;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    z-index: 10;
}

@media (min-width: 640px) {
    .book-perspective-stage {
        height: 480px;
    }
}

@media (min-width: 1024px) {
    .book-perspective-stage {
        height: 450px;
    }
}

/* Individual Book Page Slide */
.book-page-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: rotateY(0deg) scale(0.97);
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.95s ease;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}

/* Active Open Book Page */
.book-page-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
    transform: rotateY(0deg) scale(1);
    box-shadow: -8px 0 28px rgba(2, 6, 23, 0.35);
}

/* Page Flipping Forward (Right-to-Left like turning a book page) */
.book-page-slide.is-turning-out {
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    transform: rotateY(-112deg) skewY(1.8deg);
    box-shadow: 40px 0 80px rgba(2, 6, 23, 0.75);
}

/* Page Prepared on the Left to Flip Back (Left-to-Right) */
.book-page-slide.is-flipped-left {
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    transform: rotateY(-112deg) skewY(1.8deg);
    transition: none !important;
}

/* Dynamic Page Turn Curl Shadow */
.book-flip-shadow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 35;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.45) 0%, rgba(2, 6, 23, 0) 25%, rgba(2, 6, 23, 0.65) 100%);
    opacity: 0;
    transition: opacity 0.85s ease;
}

.book-page-slide.is-turning-out .book-flip-shadow {
    opacity: 1;
}

/* Center Book Crease / Spine Shadow on Desktop Spread */
.book-spine-crease {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 58%;
    width: 34px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0) 0%,
        rgba(15, 23, 42, 0.22) 46%,
        rgba(15, 23, 42, 0.35) 50%,
        rgba(15, 23, 42, 0.09) 62%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 25;
}

/* Ken Burns Effect Animations */
@keyframes kenBurnsZoomPanA {
    0% {
        transform: scale(1) translate3d(0%, 0%, 0);
    }
    100% {
        transform: scale(1.16) translate3d(-2.5%, -1.8%, 0);
    }
}

@keyframes kenBurnsZoomPanB {
    0% {
        transform: scale(1.15) translate3d(-2%, 1.5%, 0);
    }
    100% {
        transform: scale(1.01) translate3d(1.5%, -1.2%, 0);
    }
}

.book-kenburns-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: scale(1.02);
}

.book-page-slide.is-active .book-kenburns-img.kb-mode-a {
    animation: kenBurnsZoomPanA 6.8s ease-out forwards;
}

.book-page-slide.is-active .book-kenburns-img.kb-mode-b {
    animation: kenBurnsZoomPanB 6.8s ease-out forwards;
}

/* Editorial Right Page Paper Texture */
.book-editorial-pane {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.92) 65%, rgba(241, 245, 249, 0.96) 100%);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 639px) {
    .book-editorial-pane {
        padding: 1.125rem 1rem 1.35rem 1rem !important;
    }
}

/* Editorial Book Slide Thumbnails */
.book-thumbnail-item {
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.book-thumbnail-item:hover {
    transform: translateY(-2px) scale(1.05);
}
.book-thumbnail-item.active-thumb {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

/* Progress Bar Track */
.book-progress-track {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 2px;
    height: 3px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    z-index: 30;
}

.book-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: 999px;
}

/* Quick Thumbnails Ribbon */
.book-thumb-pill {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.book-thumb-pill.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.25);
}

/* ==========================================================================
   WYSIWYG Rich Content Styling (Admin Canvas & Public Detail Page)
   ========================================================================== */

.wysiwyg-content {
    line-height: 1.75;
    color: #334155;
    font-size: 0.95rem;
    word-break: break-word;
}

.wysiwyg-content p {
    margin: 0 0 1rem 0;
}

.wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.wysiwyg-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1.6rem 0 0.75rem 0;
    padding-left: 0.75rem;
    border-left: 4px solid #059669;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.wysiwyg-content h3 {
    font-size: 1.15rem;
    font-weight: 750;
    color: #1e293b;
    margin: 1.35rem 0 0.5rem 0;
    line-height: 1.35;
}

.wysiwyg-content h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #334155;
    margin: 1.1rem 0 0.4rem 0;
}

.wysiwyg-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0 1rem 0;
}

.wysiwyg-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 0.75rem 0 1rem 0;
}

.wysiwyg-content li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.wysiwyg-content blockquote {
    margin: 1.25rem 0;
    padding: 0.9rem 1.25rem;
    border-left: 4px solid #059669;
    background: #f0fdf4;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #166534;
    font-weight: 500;
}

.wysiwyg-content a {
    color: #059669;
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.wysiwyg-content a:hover {
    color: #047857;
}

.wysiwyg-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    margin: 1.2rem auto;
}

.wysiwyg-content figure {
    margin: 1.25rem 0;
    text-align: center;
}

.wysiwyg-content figure img {
    margin: 0 auto;
}

.wysiwyg-content figcaption {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Feature highlight cards inside WYSIWYG */
.wysiwyg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.35rem 0;
}

.wysiwyg-card-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wysiwyg-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.wysiwyg-card-item h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
}

.wysiwyg-card-item p {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* Admin Canvas Placeholder */
#wysiwygEditorCanvas:empty:before {
    content: attr(placeholder);
    color: #94a3b8;
    font-style: italic;
    pointer-events: none;
}

/* ==========================================================================
   CINEMA & MOVIES PROGRAM STYLING
   ========================================================================== */
.cinema-movie-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.cinema-movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
}

.movie-poster-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    background-color: #020617;
    overflow: hidden;
}

.movie-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-movie-card:hover .movie-poster-img {
    transform: scale(1.05);
}

.cinema-showtime-chip {
    padding: 0.35rem 0.65rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: #0f172a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
    transition: all 0.15s ease;
    text-decoration: none;
}

.cinema-showtime-chip:hover {
    background: #4f46e5;
    color: #ffffff;
    transform: scale(1.04);
}

/* ==========================================================================
   MOBILE FLOATING SIDE DOCK TABS (Spectacole & Cinema/Filme)
   ========================================================================== */
@keyframes sideDockPeek {
    0%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-6px);
    }
    60% {
        transform: translateX(-2px);
    }
    80% {
        transform: translateX(-5px);
    }
}

@keyframes sideDockIconWiggle {
    0%, 75%, 100% {
        transform: rotate(0deg) scale(1);
    }
    80% {
        transform: rotate(-12deg) scale(1.12);
    }
    90% {
        transform: rotate(12deg) scale(1.12);
    }
}

.mobile-side-dock {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: none;
}

.side-dock-card {
    pointer-events: auto;
    display: flex;
    align-items: center;
    border-radius: 9999px 0 0 9999px;
    box-shadow: -4px 6px 18px rgba(15, 23, 42, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-right: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    max-width: 44px;
    text-decoration: none;
}

/* Collapsed subtle movement animation across tabs */
.side-dock-card.collapsed {
    animation: sideDockPeek 6s ease-in-out infinite;
}
.side-dock-card.collapsed:nth-child(2) {
    animation-delay: 2s;
}
.side-dock-card.collapsed:nth-child(3) {
    animation-delay: 4s;
}
.side-dock-card.collapsed:nth-child(4) {
    animation-delay: 5s;
}
.side-dock-card.collapsed:nth-child(5) {
    animation-delay: 5.5s;
}

.side-dock-card.collapsed .side-dock-icon {
    animation: sideDockIconWiggle 6s ease-in-out infinite;
}
.side-dock-card.collapsed:nth-child(2) .side-dock-icon {
    animation-delay: 2s;
}
.side-dock-card.collapsed:nth-child(3) .side-dock-icon {
    animation-delay: 4s;
}
.side-dock-card.collapsed:nth-child(4) .side-dock-icon {
    animation-delay: 5s;
}
.side-dock-card.collapsed:nth-child(5) .side-dock-icon {
    animation-delay: 5.5s;
}

/* Expanded state: reveals the name, count and arrow */
.side-dock-card.expanded {
    max-width: 250px;
    animation: none !important;
    transform: translateX(0) !important;
    box-shadow: -6px 8px 24px rgba(15, 23, 42, 0.32);
}

/* Desktop Hover Expansion */
@media (hover: hover) and (min-width: 768px) {
    .side-dock-card:hover {
        max-width: 250px !important;
        box-shadow: -6px 10px 28px rgba(15, 23, 42, 0.35);
        animation: none !important;
        transform: translateX(0) !important;
    }
    .side-dock-card:hover .side-dock-content {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
}

.side-dock-icon-box {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.side-dock-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.85rem;
    padding-left: 0.15rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.side-dock-card.expanded .side-dock-content {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Gradients */
.side-dock-search {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
}
.side-dock-spectacole {
    background: linear-gradient(135deg, #c026d3 0%, #a21caf 50%, #db2777 100%);
}
.side-dock-cinema {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 50%, #7c3aed 100%);
}
.side-dock-atractii,
.side-dock-attractions {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #0d9488 100%) !important;
}
.side-dock-institutions,
.side-dock-institutii {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%) !important;
}
.side-dock-home {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #1d4ed8 100%);
}

/* Hero Logos Dual Auto-Slider */
#heroLogosTrack {
    will-change: transform;
}
#heroLogosProgressBar {
    will-change: width;
}

/* ==========================================================================
   HARTĂ INTERACTIVĂ VÂLCEA (LEAFLET CUSTOM STYLES)
   ========================================================================== */
.valcea-map-marker {
    position: relative;
    width: 36px;
    height: 42px;
    cursor: pointer;
}
.valcea-pin-bubble {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-color, #059669);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.32);
    border: 2px solid #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.valcea-pin-bubble i {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 13px;
}
.valcea-map-marker:hover .valcea-pin-bubble,
.valcea-map-marker.active .valcea-pin-bubble {
    transform: rotate(-45deg) scale(1.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    z-index: 1000;
}
.valcea-pin-pulse {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 5px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    filter: blur(1px);
}

/* User GPS position marker */
.valcea-user-marker {
    position: relative;
    width: 24px;
    height: 24px;
}
.valcea-user-dot {
    width: 16px;
    height: 16px;
    background: #0284c7;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
}
.valcea-user-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.35);
    animation: valceaPulse 2s infinite ease-out;
    z-index: 1;
}
@keyframes valceaPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Leaflet Popup Styling */
.valcea-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.valcea-leaflet-popup .leaflet-popup-content {
    margin: 0;
    line-height: 1.4;
    width: 280px !important;
}
.valcea-leaflet-popup .leaflet-popup-tip {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.valcea-leaflet-popup .leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    background: rgba(15, 23, 42, 0.7) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(4px) !important;
    padding: 0 !important;
    font: 14px/24px Tahoma, Verdana, sans-serif !important;
    z-index: 20 !important;
}
.valcea-leaflet-popup .leaflet-popup-close-button:hover {
    background: #0f172a !important;
}


/* Force GPS Navigation button inside Leaflet popups to stay pure white */
.leaflet-container .valcea-leaflet-popup a.nav-gps-btn,
.leaflet-container .valcea-popup-card a.nav-gps-btn,
.valcea-leaflet-popup a.nav-gps-btn,
.valcea-leaflet-popup a.nav-gps-btn span,
.valcea-popup-card a.nav-gps-btn span {
    color: #ffffff !important;
    text-decoration: none !important;
}
.leaflet-container .valcea-leaflet-popup a.nav-gps-btn:hover,
.valcea-leaflet-popup a.nav-gps-btn:hover,
.valcea-leaflet-popup a.nav-gps-btn:hover span {
    color: #ffffff !important;
}

/* ==========================================================================
   FULLSCREEN MOBILE-FIRST MODAL FOR VALCEA INTERACTIVE MAP
   ========================================================================== */
.valcea-map-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background: #0f172a !important;
    overflow: hidden !important;
}

.valcea-map-modal.hidden {
    display: none !important;
}

.valcea-map-modal .valcea-map-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1 !important;
}

.valcea-map-modal .valcea-map-dialog {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    overflow: hidden !important;
    margin: 0 !important;
    z-index: 10 !important;
}

/* Map Header on Mobile */
.valcea-map-modal .valcea-map-header {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
    z-index: 20 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Category Filter Bar */
.valcea-map-modal .valcea-map-filterbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.35rem 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    overflow-x: auto !important;
    flex-shrink: 0 !important;
    z-index: 15 !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Map Canvas Container */
.valcea-map-modal .valcea-map-body {
    position: relative !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #e2e8f0 !important;
    overflow: hidden !important;
}

.valcea-map-modal #attractionsMapContainer {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
}

/* Desktop Modal Centering */
@media (min-width: 768px) {
    .valcea-map-modal {
        padding: 1.5rem !important;
        background: transparent !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .valcea-map-modal .valcea-map-dialog {
        max-width: 76rem !important;
        height: 88vh !important;
        max-height: 900px !important;
        border-radius: 1.5rem !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    }

    .valcea-map-modal .valcea-map-header {
        padding: 0.85rem 1.25rem !important;
    }
}

/* Ensure attraction detail modals always display above the interactive map modal */
#attractionModal,
#attractionDetailModal {
    z-index: 100000 !important;
}

/* Mobile Header Pages Drawer Menu */
@keyframes slideDrawerRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-drawer-in {
    animation: slideDrawerRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* Listing Map Pin Markers */
.valcea-map-marker.is-listing .valcea-pin-bubble {
    border-radius: 11px !important;
    transform: rotate(0deg) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.38) !important;
    border: 2.5px solid #ffffff !important;
}
.valcea-map-marker.is-listing .valcea-pin-bubble i {
    transform: rotate(0deg) !important;
}
.valcea-map-marker.is-listing:hover .valcea-pin-bubble,
.valcea-map-marker.is-listing.active .valcea-pin-bubble {
    transform: scale(1.18) !important;
}
.valcea-map-marker .valcea-listing-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-radius: 9999px;
    background: #0f172a;
    color: #38bdf8;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 2;
}
