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

:root {
    /* Vintage cartographic color scheme */
    --old-paper: #f4e8d0;
    --aged-paper: #e8dcc0;
    --parchment: #d4c5a0;
    --sepia-dark: #5c4a3a;
    --sepia-medium: #8b7355;
    --sepia-light: #c9b18f;
    --ink-black: #2d2416;
    --ink-brown: #6b5244;
    --compass-gold: #c9a961;
    --ocean-vintage: #7ba5b5;
    --land-vintage: #a89968;
    --dark-bg: #1a1410;
    --paper-overlay: rgba(244, 232, 208, 0.92);
    --glass-vintage: rgba(92, 74, 58, 0.4);
    --text-vintage: #3d3020;
    --border-vintage: rgba(139, 115, 85, 0.6);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    overflow: hidden;
    background-image: url('assets/wooden-floor-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-vintage);
    position: relative;
}

/* Světlejší overlay pro konzistentnější a světlejší pozadí */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 232, 208, 0.45);  /* Výrazně světlejší a konzistentnější overlay */
    pointer-events: none;
    z-index: 1;
}

/* Minimální vignette pro jemnou hloubku */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    box-shadow:
        inset 0 0 150px rgba(92, 74, 58, 0.08);  /* Jemnější a světlejší vignette */
}

/* Canvas - fades in after Earth texture loads */
#globe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.9s ease;
}

#globe-canvas.globe-pending {
    opacity: 0;
    pointer-events: none;
}

#weather-pins.globe-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

#expedition-travelers.globe-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Static expedition icons on the globe */
#expedition-travelers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 155;
}

.expedition-traveler {
    position: fixed;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.expedition-traveler.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.expedition-traveler-icon {
    display: flex;
    width: 22px;
    height: 22px;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.35));
}

.expedition-traveler.type-boat .expedition-traveler-icon,
.expedition-traveler.type-ship .expedition-traveler-icon {
    color: #e8f4ff;
}

.expedition-traveler-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.expedition-traveler-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2d2416;
    background: rgba(244, 232, 208, 0.95);
    padding: 2px 7px;
    border-radius: 3px;
    border: 1px solid rgba(139, 115, 85, 0.55);
    text-shadow: none;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.expedition-traveler[data-exp="mendel"] .expedition-traveler-name {
    border-color: rgba(255, 77, 109, 0.75);
    color: #3a1a22;
}

.expedition-traveler[data-exp="nelson"] .expedition-traveler-name {
    border-color: rgba(200, 140, 40, 0.85);
    color: #3a2a12;
}

.expedition-stop-label {
    position: fixed;
    transform: translate(-50%, calc(-100% - 14px));
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(18, 14, 10, 0.82);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    pointer-events: none;
    z-index: 154;
    transition: opacity 0.2s ease;
}

.expedition-stop-label.pending {
    opacity: 0.45;
    filter: grayscale(0.3);
}

.expedition-stop-label.active {
    border-color: rgba(255, 220, 140, 0.95);
    box-shadow: 0 0 0 1px rgba(201, 169, 97, 0.35);
}

.expedition-stop-label.hidden {
    opacity: 0;
    visibility: hidden;
}

/* UI Overlay */
#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: transparent;
}

#ui-overlay > * {
    pointer-events: auto;
}

/* Header - Vintage atlas style */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, var(--glass-vintage) 0%, transparent 25%);
    backdrop-filter: blur(8px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-tested {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-carp {
    font-family: 'Georgia', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--compass-gold);
    letter-spacing: 8px;
    text-shadow:
        2px 2px 0px var(--ink-black),
        0 0 15px rgba(201, 169, 97, 0.5);
    font-style: italic;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--old-paper);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 5px;
    font-family: 'Georgia', serif;
    opacity: 0.9;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link, .nav-button {
    padding: 12px 28px;
    background: var(--parchment);
    border: 3px solid var(--sepia-dark);
    color: var(--ink-black);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Georgia', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        3px 3px 0 var(--sepia-dark),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-link:hover, .nav-button:hover {
    background: var(--compass-gold);
    color: var(--ink-black);
    border-color: var(--ink-black);
    box-shadow:
        3px 3px 0 var(--ink-black),
        0 0 20px rgba(201, 169, 97, 0.5);
    transform: translate(-1px, -1px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
}

.flag-btn {
    padding: 0;
    background: transparent;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.flag-btn svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.flag-btn:hover {
    transform: scale(1.1);
    border-color: rgba(201, 169, 97, 0.3);
}

.flag-btn.active {
    border-color: var(--compass-gold);
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
}

/* Location Cards */
.location-cards {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 280px;
}

.location-card {
    background: var(--paper-overlay);
    backdrop-filter: blur(10px);
    border: 4px double var(--sepia-dark);
    border-radius: 0;
    padding: 28px;
    box-shadow:
        5px 5px 0 var(--sepia-dark),
        inset 0 0 30px rgba(139, 115, 85, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '✤';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.2rem;
    color: var(--compass-gold);
    opacity: 0.4;
}

.location-card::after {
    content: '✤';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: var(--compass-gold);
    opacity: 0.4;
}

.location-card:hover {
    transform: translateX(-8px) translateY(-2px);
    border-color: var(--compass-gold);
    box-shadow:
        7px 7px 0 var(--ink-black),
        0 0 30px rgba(201, 169, 97, 0.4);
    background: var(--aged-paper);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.location-card h3 {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-style: italic;
    border-bottom: 2px solid var(--sepia-medium);
    padding-bottom: 6px;
}

.location-card p {
    font-size: 0.95rem;
    color: var(--text-vintage);
    opacity: 0.9;
    margin-bottom: 12px;
    font-family: 'Georgia', serif;
    line-height: 1.6;
}

.card-coords {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--sepia-dark);
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Social Icons in Footer */
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--sepia-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--compass-gold);
    color: var(--ink-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.social-icon svg {
    width: 14px;
    height: 14px;
}

/* Info Panel - Modern Clean Design */
.info-panel {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: min(800px, calc(100vh - 140px));
    max-height: calc(100vh - 140px);
    background: rgba(255, 255, 255, 0.97);
    border: none;
    border-radius: 20px;
    padding: 0;
    overflow: visible;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 300;
}

.info-panel.hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(-100px);
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 28px;
    height: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: scale(1.05);
}

/* Hide tabs - navigation is now on sides */
.info-tabs {
    display: none;
}

/* Info content wrapper */
.info-content-wrapper {
    padding: 40px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    max-height: inherit;
    position: relative;
    border-radius: 20px;
}

/* Navigation tabs - stacked vertically on right edge */
.tab-nav-arrow {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 12px 12px 0;
    border-left: none;
    color: #444;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    padding: 12px 18px;
    white-space: nowrap;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    width: auto;
    min-width: 115px;
}

.tab-nav-arrow:hover:not(.active) {
    background: rgba(255, 255, 255, 0.85);
    color: #222;
}

.tab-nav-arrow.active {
    background: rgba(255, 255, 255, 0.97);
    color: #1a1a1a;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 6;
}

#tab-overview {
    top: 80px;
}

#tab-research {
    top: 140px;
}

#tab-facilities {
    top: 200px;
}

/* Content container - no fade on container */
.info-content {
    opacity: 1;
}

/* Fade effect only on text content */
.info-content h2,
.info-content h3,
.info-content p,
.info-content ul,
.info-content .info-stats {
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

.info-content.fade-out h2,
.info-content.fade-out h3,
.info-content.fade-out p,
.info-content.fade-out ul,
.info-content.fade-out .info-stats {
    opacity: 0.3;
}

.info-content.fade-in h2,
.info-content.fade-in h3,
.info-content.fade-in p,
.info-content.fade-in ul,
.info-content.fade-in .info-stats {
    opacity: 1;
}

/* Image in content - always visible, no fade */
.tab-image {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 1 !important;
}

.info-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: -0.5px;
    padding-bottom: 0;
    font-style: normal;
    text-align: left;
}

.info-content h3 {
    font-size: 0.75rem;
    color: #c9a961;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    font-style: normal;
    border-left: none;
    padding-left: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-content p {
    line-height: 1.6;
    margin-bottom: 14px;
    color: #333;
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.85rem;
    text-align: left;
    font-weight: 400;
}

.info-content ul {
    margin-left: 0;
    margin-bottom: 15px;
    list-style: none;
    padding-left: 0;
}

.info-content li {
    margin-bottom: 6px;
    color: #444;
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.5;
    font-size: 0.82rem;
    padding-left: 20px;
    position: relative;
}

.info-content li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #c9a961;
    font-weight: bold;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.stat-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(201, 169, 97, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.5px;
    font-style: normal;
}

/* Controls Help - Vintage map legend - HIDDEN */
.controls-help {
    display: none;
}

.controls-help::before {
    content: '— LEGEND —';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--sepia-dark);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-family: 'Georgia', serif;
    border-bottom: 2px solid var(--sepia-medium);
    padding-bottom: 8px;
}

.control-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

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

.control-key {
    color: var(--ink-black);
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Georgia', serif;
}

.control-action {
    color: var(--text-vintage);
    opacity: 0.9;
    font-family: 'Georgia', serif;
    font-style: italic;
}

/* Footer - Vintage */
.main-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 50px;
    background: linear-gradient(0deg, var(--glass-vintage) 0%, transparent 25%);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Top Info Cards */
.top-info-cards {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 150;
    pointer-events: none;
    padding: 6px 10px;
    background: rgba(244, 232, 208, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.25);
    box-shadow: 0 2px 12px rgba(45, 36, 22, 0.15);
}

.info-card {
    width: auto;
    background: transparent;
    border: none;
    overflow: visible;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.25s ease, opacity 0.25s ease;
    pointer-events: all;
    border-radius: 5px;
}

.info-card:hover {
    background: rgba(201, 169, 97, 0.35);
    opacity: 1;
}

.info-card .card-content {
    padding: 8px 14px;
    text-align: center;
    background: transparent;
}

.info-card .card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d2416;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: none;
    white-space: nowrap;
}

/* Wide panel for top info cards */
.info-panel.wide {
    width: min(1100px, calc(100vw - 80px));
}

/* Two-column layout for wide panel */
.info-panel.wide .info-content-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 0;
}

.info-panel.wide .info-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.info-panel.wide .info-content {
    padding: 0 40px 40px 40px;
}

/* Team title aligned with image */
.team-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    padding: 0 40px;
    padding-top: 0;
}

.info-panel.wide .info-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-panel.wide .info-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.info-panel.wide .info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-panel.wide .info-secondary {
    flex: 1;
    padding: 40px;
    overflow-y: hidden;
}

/* Adjust tab arrow positions for wide panel */
.info-panel.wide .tab-nav-arrow {
    right: -115px;
}

/* Partner logos grid - 2 columns for wide panel */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: center;
    justify-items: center;
}

.partner-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    height: 120px;
}

.partner-logos a:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-logos img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.partner-logos a:hover img {
    filter: grayscale(0%);
}

/* Contact address styling */
.contact-address {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.contact-address p {
    margin: 0;
    line-height: 1.6;
    color: #1a1a1a;
}

.contact-address strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--compass-gold);
}

/* Team grid styling */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.team-member {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #11457E;
}

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

.team-member h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 10px 0 5px 0;
}

.team-member .role {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Personal card styling */
.personal-card {
    padding: 40px;
    background: white;
    border-radius: 12px;
}

.personal-card-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--compass-gold);
}

.personal-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--compass-gold);
    flex-shrink: 0;
}

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

.personal-info h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.personal-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: var(--compass-gold);
    margin: 0 0 5px 0;
}

.personal-info .specialization {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.personal-card-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-details h4,
.bio h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.contact-details p,
.bio p {
    margin: 8px 0;
    line-height: 1.6;
}

.contact-details a {
    color: var(--compass-gold);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.back-button {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--compass-gold);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.back-button:hover {
    background: #a88842;
    transform: translateX(-5px);
}

/* Contact grid styling */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-person {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--compass-gold);
}

.contact-person h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.contact-person .role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.contact-person .details {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Map Controls */
.map-controls {
    position: fixed;
    right: 50px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
}

.control-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #333;
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

#reset-view {
    font-size: 1.6rem;
}

/* Station Cards Container */
.station-cards {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 110;
    animation: fadeInCards 1s ease-out 1.5s both;
}

@keyframes fadeInCards {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Individual Station Card */
.station-card {
    background: linear-gradient(to bottom, #f4e8d0 0%, #f4e8d0 100%);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 6px;
    width: 220px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(92, 74, 58, 0.12),
        0 4px 16px rgba(92, 74, 58, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-card:hover {
    box-shadow:
        0 6px 16px rgba(92, 74, 58, 0.15),
        0 12px 32px rgba(92, 74, 58, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(201, 169, 97, 0.6);
}

.card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: #d4c5a0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.1) contrast(1.08) brightness(1.02);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.station-card:hover .card-image img {
    transform: scale(1.1);
    filter: sepia(0.05) contrast(1.12) brightness(1.05);
}

.card-content {
    padding: 15px;
    background: rgba(244, 232, 208, 0.95);
}

.card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2d2416;
    margin: 0 0 4px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-location {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b5244;
    margin: 0;
    font-style: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hide location cards when info panel is open — only on smaller screens */
@media (max-width: 1200px) {
    body:has(.info-panel:not(.hidden)) .station-cards,
    body:has(.info-panel:not(.hidden)) .right-sidebar {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .station-cards {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        bottom: 70px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .station-card {
        width: 150px;
        flex-shrink: 0;
    }

    .station-card .card-image {
        height: 90px;
    }

    .station-card .card-content {
        padding: 10px;
    }

    .station-card .card-title {
        font-size: 12px;
    }

    .station-card .card-location {
        font-size: 10px;
    }
}

/* Right sidebar - expeditions at top, university centered in remaining space */
.right-sidebar {
    position: fixed;
    top: 90px;
    right: 40px;
    bottom: 40px;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    z-index: 110;
    width: 280px;
    animation: fadeInRight 1s ease-out 2s both;
    pointer-events: none;
}

.right-sidebar > * {
    pointer-events: all;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Expedition schedule — size to content; scroll only inside a long open card */
.expedition-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-height: 100%;
    overflow: visible;
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.expedition-panel-title {
    margin: 0 0 8px 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2d2416;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.expedition-as-of {
    margin: -4px 0 10px 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: #7a6a55;
    flex-shrink: 0;
}

.expedition-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 1 auto;
    min-height: 0;
    overflow: visible;
}

.expedition-card {
    margin-bottom: 0;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    background: rgba(244, 232, 208, 0.95);
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(92, 74, 58, 0.12),
        0 4px 16px rgba(92, 74, 58, 0.08);
    backdrop-filter: blur(8px);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.expedition-card.is-linked {
    border-color: rgba(201, 169, 97, 0.95);
    box-shadow:
        0 0 0 2px rgba(201, 169, 97, 0.35),
        0 2px 8px rgba(92, 74, 58, 0.12),
        0 4px 16px rgba(92, 74, 58, 0.08);
}

.expedition-card.is-open {
    /* grow only with content — never stretch empty space */
    flex: 0 1 auto;
}

.expedition-card:last-child {
    margin-bottom: 0;
}

.expedition-card-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    flex-shrink: 0;
}

.expedition-card-toggle:hover {
    background: rgba(201, 169, 97, 0.15);
}

.expedition-card-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.expedition-card-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.expedition-card-dates {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #6b5244;
    opacity: 0.9;
}

.expedition-card-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #5c4a3a;
    border-bottom: 2px solid #5c4a3a;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-right: 2px;
}

.expedition-card.is-open .expedition-card-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.expedition-card-body {
    padding: 0 10px 8px;
    border-top: 1px solid rgba(139, 115, 85, 0.15);
    flex: 0 1 auto;
    max-height: min(55vh, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.expedition-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 6px;
}

.expedition-step {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: start;
    padding: 5px 0;
    position: relative;
    opacity: 1;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.expedition-step::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 24px;
    bottom: -5px;
    width: 1.5px;
    background: rgba(201, 169, 97, 0.45);
}

.expedition-step:last-child::before {
    display: none;
}

.expedition-step.pending {
    opacity: 0.42;
    filter: grayscale(1);
}

.expedition-step.pending::before {
    background: rgba(120, 120, 120, 0.35);
}

.expedition-step.active .expedition-step-icon {
    background: rgba(201, 169, 97, 0.45);
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.25);
    color: #2d2416;
}

.expedition-step-now {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    vertical-align: middle;
    color: #5c4a3a;
    background: rgba(201, 169, 97, 0.35);
    border: 1px solid rgba(201, 169, 97, 0.55);
}

.expedition-step-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.2);
    border: 1px solid rgba(201, 169, 97, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c4a3a;
    flex-shrink: 0;
    z-index: 1;
}

.expedition-step.pending .expedition-step-icon {
    background: rgba(140, 140, 140, 0.15);
    border-color: rgba(140, 140, 140, 0.4);
    color: #777;
}

.expedition-step-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.expedition-step-body {
    min-width: 0;
    padding-top: 1px;
}

.expedition-step-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 650;
    color: #2d2416;
    line-height: 1.25;
    margin: 0;
}

.expedition-step-meta {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    color: #6b5244;
    margin: 1px 0 0;
    opacity: 0.85;
}

/* University Card - centered in space below expeditions (no overlap) */
.university-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    background: linear-gradient(to bottom, #f4e8d0 0%, #f4e8d0 100%);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 6px;
    width: 100%;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(92, 74, 58, 0.12),
        0 4px 16px rgba(92, 74, 58, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: auto;
    animation: none;
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.university-card:hover {
    box-shadow:
        0 6px 16px rgba(92, 74, 58, 0.15),
        0 12px 32px rgba(92, 74, 58, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(201, 169, 97, 0.6);
    transform: translateY(-4px);
}

.university-card .card-image {
    width: 100%;
    height: 110px;
    overflow: hidden;
    position: relative;
    background: #d4c5a0;
}

.university-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.1) contrast(1.08) brightness(1.02);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.university-card:hover .card-image img {
    transform: scale(1.1);
    filter: sepia(0.05) contrast(1.12) brightness(1.05);
}

.university-card .card-content {
    padding: 15px;
    background: rgba(244, 232, 208, 0.95);
}

.university-card .card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2d2416;
    margin: 0 0 4px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.university-card .card-location {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b5244;
    margin: 0;
    font-style: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Scrollbar Styling - Modern */
.info-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.info-content-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.info-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.info-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ========== Responsive Design ========== */

/* Large laptop / small desktop */
@media (max-width: 1400px) {
    .info-panel.wide {
        width: min(900px, calc(100vw - 60px));
    }

    .right-sidebar {
        right: 24px;
        width: 220px;
    }

    .university-card .card-image {
        height: 110px;
    }

    .station-card {
        width: 180px;
    }

    .station-card .card-image {
        height: 110px;
    }
}

/* Tablet / smaller laptop */
@media (max-width: 1100px) {
    .main-header {
        padding: 12px 20px;
    }

    .header-logo {
        height: 56px;
    }

    .header-tested {
        height: 48px;
    }

    .top-info-cards {
        top: 12px;
        gap: 8px;
        max-width: calc(100vw - 280px);
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-card .card-title {
        font-size: 13px;
        letter-spacing: 0.8px;
    }

    .info-card .card-content {
        padding: 6px 8px;
    }

    .info-panel {
        left: 20px;
        width: min(420px, calc(100vw - 160px));
        height: min(700px, calc(100vh - 120px));
    }

    .info-panel.wide {
        width: min(720px, calc(100vw - 40px));
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .info-panel.wide.hidden {
        transform: translate(-50%, -50%) translateX(-100px);
        opacity: 0;
    }

    .info-panel.wide .info-content-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .info-panel.wide .info-left-column,
    .info-panel.wide .info-right-column {
        flex: none;
        width: 100%;
        overflow-y: visible;
    }

    .info-panel.wide .info-image {
        height: 180px;
    }

    .info-panel.wide .info-secondary {
        padding: 24px;
        overflow-y: visible;
    }

    .info-panel.wide .info-content {
        padding: 0 24px 24px;
    }

    .team-title {
        padding: 0 24px;
        font-size: 1.4rem;
    }

    .right-sidebar {
        right: 16px;
        width: 200px;
        top: 90px;
        bottom: 90px;
    }

    .university-card {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        transform: none;
    }

    .university-card:hover {
        transform: translateY(-4px);
    }

    .expedition-panel {
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .university-card .card-image {
        height: 90px;
    }

    .university-card .card-title {
        font-size: 13px;
    }

    .station-cards {
        left: 20px;
        transform: none;
        bottom: 30px;
        gap: 16px;
    }

    .station-card {
        width: 160px;
    }

    .map-controls {
        right: 16px;
        bottom: 220px;
    }

    .controls-help {
        display: none;
    }

    .antarctica-map {
        width: 320px;
        height: 320px;
        opacity: 0.4;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-header {
        padding: 8px 12px;
        align-items: flex-start;
    }

    .header-logo {
        height: 40px;
    }

    .header-tested {
        height: 36px;
    }

    .top-info-cards {
        top: 52px;
        left: 8px;
        right: 8px;
        transform: none;
        max-width: none;
        width: auto;
        gap: 0;
        padding: 4px 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .info-card .card-title {
        font-size: 12px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .info-card .card-content {
        padding: 4px 6px;
    }

    .info-panel,
    .info-panel.wide {
        left: 10px;
        right: 10px;
        top: 96px;
        bottom: 16px;
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        transform: none;
        border-radius: 14px;
    }

    .info-panel.hidden,
    .info-panel.wide.hidden {
        transform: translateY(-24px);
        opacity: 0;
    }

    .info-content-wrapper {
        padding: 24px 20px 28px;
        height: 100%;
        overflow-y: auto;
    }

    .info-panel.wide .info-content-wrapper {
        flex-direction: column;
    }

    .info-panel.wide .info-image {
        height: 140px;
    }

    .info-panel.wide .info-content,
    .info-panel.wide .info-secondary {
        padding: 16px 20px 24px;
    }

    .team-title {
        padding: 0 20px;
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    /* Tabs inside panel on mobile instead of sticking out */
    .tab-nav-arrow,
    .info-panel.wide .tab-nav-arrow {
        position: absolute;
        right: auto !important;
        left: 0;
        border-radius: 0 0 10px 10px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        border-top: none;
        min-width: 0;
        padding: 8px 12px;
        font-size: 0.65rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    #tab-overview {
        top: auto;
        bottom: -36px;
        left: 12px;
    }

    #tab-research {
        top: auto;
        bottom: -36px;
        left: 110px;
    }

    #tab-facilities {
        top: auto;
        bottom: -36px;
        left: 210px;
    }

    .tab-nav-arrow.active {
        border-radius: 0 0 10px 10px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }

    .info-panel {
        bottom: 52px;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .partner-logos {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partner-logos a {
        height: 80px;
        padding: 12px;
    }

    .right-sidebar {
        top: 80px;
        bottom: 70px;
        right: 12px;
        transform: none;
        width: 150px;
        animation: none;
        max-height: none;
        justify-content: flex-start;
    }

    .university-card {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        transform: none;
    }

    .university-card:hover {
        transform: translateY(-4px);
    }

    .expedition-panel {
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .expedition-panel-title {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .expedition-step-label {
        font-size: 10px;
    }

    .expedition-step-meta {
        font-size: 9px;
    }

    .university-card:hover {
        transform: translateY(-4px);
    }

    .university-card .card-image {
        height: 70px;
    }

    .university-card .card-content {
        padding: 8px;
    }

    .university-card .card-title {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .university-card .card-location {
        font-size: 9px;
    }

    .station-cards {
        bottom: 70px;
        left: 12px;
        right: 150px;
        gap: 10px;
        justify-content: flex-start;
    }

    .map-controls {
        right: 10px;
        bottom: 280px;
        gap: 6px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .main-footer {
        padding: 10px 12px;
    }

    .flag-btn {
        width: 36px;
        height: 36px;
    }

    .flag-btn svg {
        width: 28px;
        height: 14px;
    }

    .antarctica-map {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .header-tested {
        display: none;
    }

    .header-logo {
        height: 34px;
    }

    .top-info-cards {
        top: 44px;
    }

    .info-card .card-title {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .info-panel,
    .info-panel.wide {
        top: 88px;
        left: 8px;
        right: 8px;
        bottom: 48px;
        border-radius: 12px;
    }

    #tab-overview {
        left: 8px;
    }

    #tab-research {
        left: 90px;
    }

    #tab-facilities {
        left: 175px;
    }

    .right-sidebar {
        top: 70px;
        bottom: 62px;
        right: 8px;
        width: 120px;
    }

    .university-card {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        transform: none;
    }

    .expedition-panel {
        display: none;
    }

    .university-card .card-image {
        height: 60px;
    }

    .university-card .card-title {
        font-size: 10px;
    }

    .station-cards {
        right: 126px;
        bottom: 62px;
    }

    .station-card {
        width: 130px;
    }

    .map-controls {
        bottom: 250px;
    }
}

/* ========== Weather pins on globe ========== */
.weather-pin {
    position: fixed;
    z-index: 160;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: visible;
    transition: opacity 0.25s ease;
}

.weather-pin.hidden {
    opacity: 0;
    visibility: hidden;
}

.weather-pin-leader {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    pointer-events: none;
}

.weather-pin-leader line.weather-pin-line-bg {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 4;
    stroke-linecap: round;
}

.weather-pin-leader line.weather-pin-line {
    stroke: #c9a961;
    stroke-width: 2;
    stroke-linecap: round;
}

.weather-pin-leader circle {
    fill: #c9a961;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 1.5;
}

.weather-pin-content {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.weather-pin-badge {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 8px;
    background: rgba(244, 232, 208, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(45, 36, 22, 0.18);
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    color: #2d2416;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-pin-badge:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(45, 36, 22, 0.24);
}

.weather-pin-station {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-right: 5px;
    border-right: 1px solid rgba(139, 115, 85, 0.35);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-pin-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.weather-pin-temp {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.weather-pin-humidity {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.75;
    padding-left: 3px;
    border-left: 1px solid rgba(139, 115, 85, 0.35);
}

.weather-pin-forecast {
    pointer-events: all;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.weather-pin[data-side="left"] .weather-pin-forecast {
    left: auto;
    right: 0;
}

.weather-pin-forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.weather-pin-forecast-header h4 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.weather-pin-close {
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #333;
    flex-shrink: 0;
}

.weather-pin-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.weather-pin-forecast-body {
    padding: 8px 10px 4px;
    max-height: 260px;
    overflow-y: auto;
}

.weather-pin-loading,
.weather-pin-error {
    margin: 8px;
    font-size: 13px;
    color: #666;
    font-family: 'Rajdhani', sans-serif;
}

.weather-day {
    display: grid;
    grid-template-columns: 62px 28px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: #2d2416;
}

.weather-day:last-child {
    border-bottom: none;
}

.weather-day-name {
    font-weight: 600;
    text-transform: capitalize;
}

.weather-day img {
    width: 26px;
    height: 26px;
}

.weather-day-temps {
    font-weight: 700;
    white-space: nowrap;
}

.weather-day-temps span {
    font-weight: 500;
    opacity: 0.55;
    margin-left: 4px;
}

.weather-day-extra {
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
}

.weather-pin-yr-link {
    display: block;
    text-align: center;
    padding: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #11457E;
    text-decoration: none;
    background: rgba(17, 69, 126, 0.06);
}

.weather-pin-yr-link:hover {
    background: rgba(17, 69, 126, 0.12);
}

@media (max-width: 768px) {
    .weather-pin-forecast {
        width: 240px;
    }

    .weather-pin-badge {
        padding: 2px 6px;
        gap: 3px;
    }

    .weather-pin-temp {
        font-size: 11px;
    }

    .weather-pin-humidity {
        font-size: 9px;
    }
}
