/* ===========================
   CSS VARIABLES & RESET
=========================== */

:root {
    /* Colors - Textured Paper & Light Slate Palette */
    --bg-dark-900: #faf8f5;      /* Warm textured paper background */
    --bg-dark-800: #ffffff;      /* Pure white card panel background */
    --bg-dark-700: #f0ede6;      /* Slightly darker sand/khaki frames */
    --bg-glass: rgba(250, 248, 245, 0.85); /* Glassmorphic panel background */
    
    /* Colors - Forester Green Highlight Palette */
    --primary-green: #045a3c;    /* Deep Forest/Scout Green */
    --primary-green-dark: #03422c;
    --primary-green-darker: #022b1c;
    --accent-green: #057a52;     /* Medium Sage Green */
    --light-green: rgba(4, 90, 60, 0.08);
    --bg-green: rgba(4, 90, 60, 0.04);
    --border-green: rgba(4, 90, 60, 0.25);
    
    /* Colors - Sunset Amber Orange (Tactical Highlights) */
    --accent-orange: #c25e00;    /* Sunset Amber/Orange */
    --accent-orange-dark: #9c4c00;
    --bg-orange: rgba(194, 94, 0, 0.06);
    --border-orange: rgba(194, 94, 0, 0.2);

    /* Background & UI Mapper (for compatibility) */
    --bg-primary: var(--bg-dark-900);
    --bg-secondary: var(--bg-dark-800);
    --bg-accent: var(--bg-dark-700);
    
    /* Colors - Text */
    --text-primary: #1a1d20;     /* Heavy coal/charcoal black */
    --text-secondary: #4a515a;   /* Muted log description gray */
    --text-light: #7b8590;       /* Muted technical details */
    
    /* Colors - Borders */
    --border-light: rgba(26, 29, 32, 0.06);
    --border-medium: #1a1d20;    /* Solid heavy black outlines */
    --border-neon: #1a1d20;
    
    /* Fonts */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    /* Shadows - Solid Brutalist Drop Offsets (No Glows) */
    --shadow-sm: 2px 2px 0px #1a1d20;
    --shadow-md: 4px 4px 0px #1a1d20;
    --shadow-lg: 6px 6px 0px #1a1d20;
    --shadow-xl: 8px 8px 0px #1a1d20;
    --shadow-glow: none;
    --shadow-glow-orange: none;
    --shadow-brutal: 4px 4px 0px #1a1d20;
    --shadow-brutal-orange: 4px 4px 0px #c25e00;
    --accent: var(--primary-green);
    --accent-light: var(--accent-green);
}

* {
    box-sizing: border-box;
}

::selection {
    color: black;
    background: var(--accent-green)
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
}

/* ===========================
   LAYOUT COMPONENTS
=========================== */

main {
    padding-top: var(--navbar-height);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    align-items: start;
}

.trip-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}


.teachers-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    height: 100%;
}

/* ===========================
   TYPOGRAPHY
=========================== */

.section-heading {
    margin-bottom: 2rem;
}

.section-heading.centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h3 {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.section-heading h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.section-heading small {
    display: block;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* ===========================
   BUTTON COMPONENTS
=========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-link {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-medium);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

.btn-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.route-btn {
    background-color: #16a34a;
    color: white !important;
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: 999px;
}

.route-btn:hover {
    background-color: #1eae00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary i,
.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(4px);
}

/* ===========================
   HERO SECTION
=========================== */

.main-hero-section {
    background-color: #000000;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, #000000 100%), url('/static/images/jeskyne.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-medium);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 5;
}

.explorer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 2px solid var(--border-medium);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}

.explorer-badge .mono-code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary-green);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    animation: pulse-glowing 2s infinite;
}

@keyframes pulse-glowing {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-title .highlight {
    color: #ff9500;
    position: relative;
    text-shadow: none;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Primary Neon Brutalist Button */
.btn-primary-neon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    background: var(--accent-orange);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.05em;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary-neon:hover {
    background: var(--primary-green);
    color: #ffffff;
}

.btn-primary-neon i {
    font-size: 1.1rem;
}

/* Outline Brutalist Button */
.btn-outline-brutal {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.05em;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline-brutal:hover {
    border-color: var(--border-medium);
    background: var(--bg-dark-700);
    color: var(--text-primary);
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 2rem;
    cursor: pointer;
}

.scroll-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.2em;
}

.scroll-arrow {
    animation: bounce-slow 3s ease-in-out infinite;
    color: var(--primary-green);
    font-size: 1.25rem;
}

/* ===========================
   ABOUT SECTION (01 // IDENTITA)
=========================== */

.about-editorial {
    position: relative;
    padding: 8rem 0;
    background: var(--bg-dark-900);
    border-bottom: 2px solid var(--border-medium);
}

.section-vertical-label {
    position: absolute;
    top: 5rem;
    left: 2rem;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: rgba(4, 90, 60, 0.65);
    user-select: none;
}

.brutal-heading {
    margin-bottom: 3rem;
}

.brutal-heading.centered {
    text-align: center;
}

.brutal-heading .section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.brutal-heading h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.about-checklist {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.check-item {
    display: flex;
    gap: 2rem;
}

.check-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    border: 1px solid var(--border-neon);
    background: rgba(0, 255, 136, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    height: fit-content;
    box-shadow: var(--shadow-glow);
}

.check-text h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.check-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* About 360 Panorama Viewfinder Frame */
.about-panorama-viewfinder {
    position: relative;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    padding: 16px 16px 36px 16px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.about-panorama-viewfinder::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 90px;
    height: 28px;
    background: rgba(218, 212, 175, 0.4);
    border-left: 1px dashed rgba(0, 0, 0, 0.05);
    border-right: 1px dashed rgba(0, 0, 0, 0.05);
    z-index: 20;
}

.viewfinder-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.viewfinder-lens {
    position: relative;
    height: 400px;
    overflow: hidden;
    border: 2px solid var(--border-medium);
    background: #000;
}

.lens-crosshair,
.lens-coords {
    display: none !important; /* Removed overlays to keep UI clean and avoid weapon viewfinder vibes */
}

.panorama-scene {
    width: 100% !important;
    height: 100% !important;
}

.panorama-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.rotate-icon {
    animation: rotation 5s linear infinite;
    color: var(--accent-orange);
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================
   LATEST TRIP SECTION (02 // POSLEDNÍ EXPEDICE)
=========================== */

.latest-trip-editorial {
    position: relative;
    padding: 8rem 0;
    background: #ffc671;
    border-bottom: 2px solid var(--border-medium);
}

.trip-editorial-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.trip-editorial-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.details-table {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-medium);
}

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

.row-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.row-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
}

.row-value.mono-code {
    font-family: var(--font-mono);
    color: var(--primary-green);
    text-shadow: var(--shadow-glow);
}

/* Difficulty Badge Overrides */
.badge-difficulty {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-difficulty.lehká,
.badge-difficulty.easy {
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary-green);
    border: 1px solid var(--border-neon);
}

.badge-difficulty.střední,
.badge-difficulty.medium {
    background: rgba(255, 166, 0, 0.08);
    color: #ffa600;
    border: 1px solid rgba(255, 166, 0, 0.35);
}

.badge-difficulty.náročná,
.badge-difficulty.difficult {
    background: rgba(255, 51, 51, 0.08);
    color: #ff3333;
    border: 1px solid rgba(255, 51, 51, 0.35);
}

.details-text h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    letter-spacing: 0.05em;
}

.details-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.details-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-brutal-neon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-orange);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-brutal-neon:hover {
    background: var(--primary-green);
    color: white;
}

.btn-brutal-white {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-brutal-white:hover {
    background: var(--bg-dark-700);
    color: var(--text-primary);
}

/* Map Technical HUD Viewer */
.trip-editorial-map {
    position: relative;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    padding: 6px;
    background: #ffffff;
    height: 480px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-viewfinder-overlay {
    display: none !important; /* Disabled coordinate/target overlay as per user request to avoid airstrike vibes */
}

.coord-label {
    display: none !important;
}

.map-crosshair {
    display: none !important;
}

.trip-map {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    z-index: 10;
}

/* Polaroid reel section */
.polaroid-reel-section {
    margin-top: 6rem;
    border-top: 1px dashed var(--border-medium);
    padding-top: 4rem;
}

.reel-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-orange);
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.polaroid-reel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

/* Authentic physical Polaroids */
.polaroid-frame {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--border-medium);
    padding: 0.9rem 0.9rem 2.5rem 0.9rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    width: 210px;
    height: auto !important;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 10;
}

.polaroid-frame.no-caption {
    padding-bottom: 0.9rem !important;
}

/* Tape strip on Polaroids */
.polaroid-frame::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 75px;
    height: 24px;
    background: rgba(218, 212, 175, 0.35); /* semi transparent masking tape */
    border-left: 1px dashed rgba(0, 0, 0, 0.05);
    border-right: 1px dashed rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 20;
}

/* Rotate slightly for authentic look */
.polaroid-frame:nth-child(even) {
    transform: rotate(1.5deg);
}

.polaroid-frame:nth-child(odd) {
    transform: rotate(-1.5deg);
}

/* Hover shadow effect (no translation!) */
.polaroid-frame:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.polaroid-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: transparent;
    border: 2px solid var(--border-medium);
}

.polaroid-frame.gallery-item .polaroid-image img,
.polaroid-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.polaroid-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: var(--primary-green);
    font-size: 2rem;
}

.polaroid-caption {
    margin-top: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty logbook container */
.empty-logbook-box {
    border: 2px dashed var(--border-medium);
    border-radius: 8px;
    padding: 4rem;
    text-align: center;
    max-width: 600px;
    margin: 4rem auto 0;
}

.empty-logbook-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===========================
   OTHER TRIPS SECTION (03 // KARTOTEKA)
=========================== */

.other-trips-editorial {
    position: relative;
    padding: 8rem 0;
    background: var(--bg-dark-900);
    border-bottom: 2px solid var(--border-medium);
}

.trips-map-layout {
    position: relative;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    padding: 10px;
    background: #090e1b;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.all-trips-map {
    width: 100%;
    height: 480px;
    border-radius: 4px;
    z-index: 10;
}

.map-legend-brutal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(6, 9, 17, 0.9);
    border: 1px solid var(--border-medium);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

.legend-header {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ffffff;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.legend-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.legend-badge.easy {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}

.legend-badge.medium {
    background: rgba(255, 166, 0, 0.1);
    color: #ffa600;
    border: 1px solid rgba(255, 166, 0, 0.3);
}

.legend-badge.difficult {
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

/* ===========================
   TRIP CARD COMPONENTS
=========================== */

.trip-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.trip-card:hover {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.trip-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.trip-card:hover .trip-card-image img {
    transform: scale(1.05);
}

.trip-difficulty {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    user-select: none;
}

.trip-difficulty.easy {
    background: var(--accent-green);
}

.trip-difficulty.medium {
    background: #f59e0b;
}

.trip-difficulty.difficult {
    background: #ef4444;
}

.trip-card-content {
    padding: 1.5rem;
}

.trip-card-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.trip-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trip-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.trip-detail i {
    color: var(--primary-green);
    width: 14px;
    text-align: center;
}

.trip-card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.trip-card-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.trip-card-link:hover {
    color: var(--primary-green-dark);
}

/* ===========================
   CONTACTS SECTION (04 // SPOJENÍ)
=========================== */

.contacts-editorial {
    position: relative;
    padding: 8rem 0;
    background: #ffc671;
    border-bottom: 2px solid var(--border-medium);
}

.contacts-layout-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.teachers-editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Scout Leader Polaroid Card */
.polaroid-teacher {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--border-medium);
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    align-items: start;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.polaroid-teacher:nth-child(even) {
    transform: rotate(1.2deg);
}

.polaroid-teacher:nth-child(odd) {
    transform: rotate(-1.2deg);
}

.polaroid-teacher::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 40px;
    transform: rotate(-4deg);
    width: 60px;
    height: 20px;
    background: rgba(218, 212, 175, 0.35); /* semi transparent masking tape */
    border-left: 1px dashed rgba(0, 0, 0, 0.05);
    border-right: 1px dashed rgba(0, 0, 0, 0.05);
    z-index: 20;
}

.polaroid-teacher:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.teacher-image-container {
    width: 140px;
    height: 170px;
    overflow: hidden;
    background: transparent;
    border: 2px solid var(--border-medium);
}

/* Cyan/Green Duotone overlay image */
.duotone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%) brightness(90%) sepia(20%) hue-rotate(90deg) saturate(150%) ;
    transition: filter 0.4s ease;
}

.polaroid-teacher:hover .duotone-img {
    filter: none; /* turns full color on hover */
}

.teacher-polaroid-caption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.teacher-polaroid-caption h3 {
    margin: 0 0 0.25rem 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.teacher-polaroid-caption .role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-orange-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-details a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--primary-green-dark);
}

.contact-details a i {
    color: var(--accent-orange);
    width: 14px;
    text-align: center;
}

/* School Branding & Information Card */
.school-editorial-card {
    background: #ffffff;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.school-editorial-card .card-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-orange);
    letter-spacing: 0.1em;
    font-weight: bold;
}

.school-branding {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.branding-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 2px solid var(--border-medium);
}

.branding-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.branding-text h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.branding-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.school-address-editorial {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px dashed var(--border-medium);
    border-bottom: 1px dashed var(--border-medium);
    padding: 1.5rem 0;
}

.school-address-editorial p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.school-address-editorial a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.school-address-editorial a:hover {
    color: var(--primary-green);
}

.school-address-editorial i {
    color: var(--primary-green);
    width: 16px;
    text-align: center;
}

.school-editorial-map {
    position: relative;
    height: 250px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    overflow: hidden;
}

/* ===========================
   MAP COMPONENTS
=========================== */

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: white;
    border-radius: 50%;
}

.marker-pin i {
    position: absolute;
    transform: rotate(45deg);
    color: var(--primary);
    font-size: 12px;
    width: 24px;
    text-align: center;
}

.marker-pin-start {
    background: var(--primary);
}

.marker-pin-end {
    background: var(--accent);
}

.marker-pin-end i {
    color: var(--accent);
}
/* ===========================
   CUSTOM TRIP POPUP STYLES
   =========================== */

/* /* Target the custom popup class */
.custom-trip-popup .leaflet-popup-content-wrapper {
    background: white !important;
    color: var(--text-primary) !important;
    border-radius: 4px !important;
    box-shadow: var(--shadow-md) !important;
    border: 2px solid var(--border-medium) !important;
    overflow: hidden !important;
    padding: 0 !important;
    min-width: 200px !important;
    max-width: 220px !important;
}

.custom-trip-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    font-family: var(--font-sans) !important;
    width: auto !important;
    line-height: normal !important;
}

.custom-trip-popup .leaflet-popup-tip {
    background: white !important;
    border-left: 2px solid var(--border-medium) !important;
    border-bottom: 2px solid var(--border-medium) !important;
    border-top: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Popup Container */
.custom-trip-popup .map-popup {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    width: 200px;
}

/* Popup Image */
.custom-trip-popup .map-popup-image {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: transparent;
    border-bottom: 2px solid var(--border-medium);
    margin: 0;
    padding: 0;
}

.custom-trip-popup .map-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Popup Title */
.custom-trip-popup .map-popup-title {
    margin: 0 0 0.5rem 0 !important;
    padding: 0.75rem 0.75rem 0 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    color: var(--text-primary) !important;
    line-height: 1.3 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    font-family: var(--font-mono) !important;
}

/* Popup Date */
.custom-trip-popup .map-popup-date {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 0.75rem !important;
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

.custom-trip-popup .map-popup-date i {
    color: var(--primary-green) !important;
    font-size: 0.75rem !important;
    width: 12px !important;
    text-align: center !important;
}

/* Popup Difficulty */
.custom-trip-popup .map-popup-difficulty {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 0.75rem !important;
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

.custom-trip-popup .map-popup-difficulty i {
    color: var(--accent-orange) !important;
    font-size: 0.75rem !important;
    width: 12px !important;
    text-align: center !important;
}

/* Popup Link */
.custom-trip-popup .map-popup-link {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0.75rem !important;
    background: var(--primary-green) !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    border-top: 2px solid var(--border-medium) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    transition: background 0.2s ease !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    font-family: var(--font-mono) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.custom-trip-popup .map-popup-link:hover {
    background: var(--primary-green-dark) !important;
    color: white !important;
    text-decoration: none !important;
}

.custom-trip-popup .map-popup-link:visited,
.custom-trip-popup .map-popup-link:active,
.custom-trip-popup .map-popup-link:focus {
    color: white !important;
    text-decoration: none !important;
}

/* Remove default margins and padding from all elements */
.custom-trip-popup * {
    box-sizing: border-box !important;
}

/* Remove any default styling */
.custom-trip-popup .map-popup-link::after,
.custom-trip-popup .map-popup-link::before {
    display: none !important;
}


.custom-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-medium);
    box-sizing: border-box !important;
}

.custom-marker i {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: translateY(-1px);
}

.custom-marker.easy {
    background-color: #4CAF50;
}

.custom-marker.medium {
    background-color: #FF9800;
}

.custom-marker.difficult {
    background-color: #F44336;
}

/* ===========================
   ANIMATIONS
=========================== */

@keyframes highlight-expand {
    0% { width: 0; left: 50%; }
    100% { width: 100%; left: 0; }
}

@keyframes bounce-slow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}


/* ===========================
MOBILE RESPONSIVE STYLES
=========================== */


@media (max-width: 1200px) {
  .trips-grid .trip-card:nth-child(n+3) {
    display: none;
    }
  
}

@media (max-width: 1000px) {
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  
}

/* Tablet and below (768px) */
@media (max-width: 768px) {
  .trip-meta {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
  }
  /* Layout Containers - Stack grids vertically */
  .hero-container,
  .about-container,
  .contacts-layout,
  .trip-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .teachers-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Section containers - Reduce padding */
  .section-container,
  .hero-container {
    padding: 0 1rem;
  }
  
  /* Typography adjustments */
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  /* Hero section */
  .main-hero-section {
    padding: 4rem 0 2rem;
    min-height: calc(100vh - var(--navbar-height));
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }
  
  /* Sections padding */
  .about,
  .latest-trip,
  .other-trips,
  .contacts-v2 {
    padding: 3rem 0;
  }
  
  /* Trip cards grid */
  .trips-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Trip content reverse order on mobile */
  .trip-content {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .trip-map-container,
  .all-trips-map {
    height: 300px;
  }
  
  /* Contact cards */
  .teacher-profile {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .teacher-avatar {
    width: 120px;
    height: 160px;
    margin: 0 auto;
  }
  
  .school-info {
    padding: 2rem 1.5rem;
  }
  
  .school-logo {
    height: 120px;
  }
  
  .school-info address {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  /* Map legend */
  .map-legend {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    top: auto;
    right: auto;
    margin-top: 1rem;
  }

  .legend-item {
    margin: 0;
  }
  
  /* About features */
  .feature {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
}

/* Mobile phones (480px) */
@media (max-width: 480px) {

    .trip-links {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
        margin-top: auto;
    }
  
  /* Even smaller typography */
  .hero-title {
    font-size: 2rem;
  }
  
  .section-heading h2 {
    font-size: 1.75rem;
  }
  
  .trip-title {
    font-size: 1.5rem;
  }
  
  /* Tighter spacing */
  .section-container,
  .hero-container {
    padding: 0 0.75rem;
  }
  
  .about,
  .latest-trip,
  .other-trips,
  .contacts-v2 {
    padding: 2.5rem 0;
  }
  
  /* Smaller buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Compact trip meta */
  .trip-meta {
    gap: 0.75rem;
  }
  
  /* Smaller teacher profiles */
  .teacher-profile {
    padding: 1.5rem;
  }
  
  .teacher-avatar {
    width: 100px;
    height: 130px;
  }
  
  .teacher-details h3 {
    font-size: 1.2rem;
  }
  
  /* Compact school info */
  .school-info {
    padding: 1.5rem 1rem;
  }
  
  .school-logo {
    height: 120px;
  }
  
  /* Smaller maps */
  .trip-map-container,
  .all-trips-map {
    height: 250px;
  }
  
  /* Custom popup adjustments for mobile */
  .custom-trip-popup .leaflet-popup-content-wrapper {
    max-width: 180px !important;
    min-width: 180px !important;
  }
  
  .custom-trip-popup .map-popup {
    width: 180px;
  }
  
  .custom-trip-popup .map-popup-image {
    height: 80px;
  }
}

/* Large tablets (1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  
  /* Adjust grid gaps */
  .hero-container,
  .about-container,
  .trip-content {
    gap: 3rem;
  }
  
  /* Slightly smaller hero */
  .hero-title {
    font-size: 3.5rem;
  }
  
  /* Trips grid - 2 columns */
  .trips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 1rem 2rem;
  }
  
  .trip-card-link {
    padding: 0.5rem;
    margin: -0.5rem;
  }
  
  /* Remove hover effects that don't work on touch */
  .trip-card:hover,
  .feature:hover,
  .teacher-profile:hover {
    transform: none;
  }
  
  /* But keep the shadow for active states */
  .trip-card:active,
  .feature:active,
  .teacher-profile:active {
    transform: translateY(-2px);
  }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .main-hero-section {
    min-height: calc(100vh - var(--navbar-height));
    padding: 2rem 0 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-scroll-indicator {
    margin-top: 1rem;
  }
}

/* ==========================================================================
   LEAFLET DARK MODE MAP TILES & WIDGET OVERRIDES
   ========================================================================== */

/* Darken standard map tiles */
.leaflet-container .leaflet-tile-pane {
    filter: none;
}

/* Style Leaflet controls */
.leaflet-bar a {
    background-color: var(--bg-dark-800) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-light) !important;
}
.leaflet-bar a:hover {
    background-color: var(--bg-dark-700) !important;
    color: var(--primary-green) !important;
}
.leaflet-bar a.leaflet-disabled {
    background-color: var(--bg-dark-900) !important;
    color: var(--text-light) !important;
}

/* Style map attribution block */
.leaflet-container .leaflet-control-attribution {
    background: rgba(250, 248, 245, 0.8) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
}
.leaflet-container .leaflet-control-attribution a {
    color: var(--primary-green) !important;
}

/* Style Leaflet popups */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--bg-dark-800) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-content h3 {
    margin-top: 0;
    color: var(--primary-green);
    font-size: 1.1rem;
}
.leaflet-popup-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
}
.leaflet-popup-close-button:hover {
    color: var(--primary-green) !important;
}

/* ==========================================================================
   HERO BADGE & GENERAL HIGHLIGHTS
   ========================================================================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   HERO SHOWCASE STATS CARD
   ========================================================================== */
.hero-showcase {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 5;
}

.showcase-dashboard {
    background: #ffffff;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    overflow: hidden;
    position: relative;
}

.showcase-dashboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-green);
}

.dashboard-header {
    background: #faf8f5;
    border-bottom: 2px solid var(--border-medium);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-dots {
    display: flex;
    gap: 6px;
}

.header-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.header-dots span:nth-child(1) { background: #ff453a; }
.header-dots span:nth-child(2) { background: #ff9f0a; }
.header-dots span:nth-child(3) { background: #30d158; }

.dashboard-title {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 2px solid var(--border-medium);
}

.dash-stat {
    padding: 2rem 1rem;
    text-align: center;
    border-right: 2px solid var(--border-medium);
}

.dash-stat:last-child {
    border-right: none;
}

.dash-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-green);
    text-shadow: none;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.dash-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    font-weight: bold;
}

.dashboard-footer {
    padding: 0.85rem 1.5rem;
    background: #f0ede6;
    font-size: 0.8rem;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.dashboard-footer .next-mission {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
}

.dashboard-footer i {
    animation: radar-pulse 2s infinite;
}

@keyframes radar-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* ==========================================================================
   CHRONOLOGICAL SCOUT TIMELINE
   ========================================================================== */
.trips-timeline {
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
    position: relative;
}

.trips-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 2px;
    background: var(--border-medium);
    z-index: 1;
}

.timeline-row {
    display: grid;
    grid-template-columns: 80px auto 1fr auto auto;
    gap: 3rem;
    align-items: center;
    padding: 2.2rem 0;
    border-bottom: 1px dashed var(--border-medium);
    position: relative;
    z-index: 2;
}

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

.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.timeline-date .day {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
}

.timeline-date .month {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.difficulty-tag {
    display: inline-block;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.difficulty-tag.lehká,
.difficulty-tag.easy {
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary-green);
    border: 1px solid var(--border-neon);
}

.difficulty-tag.střední,
.difficulty-tag.medium {
    background: rgba(255, 166, 0, 0.08);
    color: #ffa600;
    border: 1px solid rgba(255, 166, 0, 0.3);
}

.difficulty-tag.náročná,
.difficulty-tag.difficult {
    background: rgba(255, 51, 51, 0.08);
    color: #ff3333;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.timeline-meta h3 {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.timeline-desc {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-right: 2rem;
}

.timeline-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-unit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #ffffff;
    border: 2px solid var(--border-medium);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.stat-unit i {
    color: var(--primary-green);
}

.btn-timeline-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    background: #ffffff;
    border: 2px solid var(--border-medium);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-timeline-arrow:hover {
    background: var(--primary-green);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-timeline-arrow i {
    transition: transform 0.2s ease;
}

.btn-timeline-arrow:hover i {
    transform: translateX(4px);
}

.trips-view-all-center {
    margin-top: 4rem;
    text-align: center;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVE WIDGET OVERRIDES
   ========================================================================== */
@media (max-width: 900px) {
    .timeline-row {
        grid-template-columns: 80px 1fr;
        gap: 1.5rem;
    }
    .timeline-desc {
        grid-column: 1 / span 2;
        padding-right: 0;
    }
    .timeline-stats {
        grid-column: 1 / span 2;
        justify-content: start;
    }
    .timeline-link {
        grid-column: 1 / span 2;
    }
    .btn-timeline-arrow {
        width: 100%;
        justify-content: center;
    }
    .contacts-layout-editorial {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .trip-editorial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .trip-editorial-map {
        height: 380px;
    }
}

@media (max-width: 600px) {
    .timeline-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .timeline-desc {
        grid-column: auto;
    }
    .timeline-stats {
        grid-column: auto;
        justify-content: center;
    }
    .timeline-link {
        grid-column: auto;
        width: 100%;
    }
    .trips-timeline::before {
        display: none;
    }
    .polaroid-teacher {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding-bottom: 2.5rem;
    }
    .teacher-polaroid-caption {
        align-items: center;
    }
    .school-branding {
        flex-direction: column;
        text-align: center;
    }
    .school-address-editorial p {
        justify-content: center;
    }
}
