:root {
    /* Palette */
    --bg-color: #000000;
    --olive: #3E3F29;
    --sage: #7D8D86;
    --sand: #BCA88D;
    --ivory: #F1F0E4;
    
    /* UI Variables */
    --text-main: var(--ivory);
    --text-muted: rgba(241, 240, 228, 0.7);
    --border-light: rgba(188, 168, 141, 0.3);
    
    /* Transitions */
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --duration: 0.8s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', serif; }

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

ul { list-style: none; }

/* --- HEADER (Sticky) --- */
.sticky-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sand);
}

nav ul { display: flex; gap: 40px; }

nav a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background-color: var(--sage); transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after { width: 100%; }

/* --- COMMON LAYOUT --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* --- HERO (Small version for subpages) --- */
.hero-small {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    border-bottom: 1px solid var(--olive);
}

.hero-small h1 {
    font-size: 4rem;
    color: var(--ivory);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-pattern {
    position: absolute; inset: 0;
    background-image: url('Images/map_warmii-szara.jpg');
    background-size: cover; background-position: center;
    opacity: 0.3; filter: grayscale(100%) contrast(1.2);
    z-index: 0;
}

/* --- MAP CTA --- */
.map-cta {
    padding: 120px 0;
    background: linear-gradient(to right, #050505, #0a0a0a);
    position: relative;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--sand);
}

.cta-image-wrap {
    position: relative;
    height: 500px;
    background-color: var(--olive);
    overflow: hidden;
}

/* --- MIND MAP SECTION --- */
.mindmap-section {
    padding: 100px 0;
    min-height: 80vh;
}

.section-header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--olive);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h3 { font-size: 2.5rem; color: var(--sage); }

/* GRID FIX HERE */
.mindmap-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background-color: var(--border-light);
    border: 1px solid var(--border-light);
}

.mm-column {
    background-color: #000;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.mm-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background-color: rgba(62, 63, 41, 0.1);
}

.mm-header span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sand);
}

.mm-list {
    padding: 20px;
    overflow-y: auto;
    max-height: 600px;
    scrollbar-width: thin;
    scrollbar-color: var(--olive) #000;
}

.mm-list::-webkit-scrollbar { width: 6px; }
.mm-list::-webkit-scrollbar-thumb { background-color: var(--olive); }

.mm-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mm-item:hover {
    color: var(--ivory);
    background-color: rgba(255,255,255,0.02);
}

.mm-item.active {
    color: var(--ivory);
    background-color: var(--olive);
    border-left-color: var(--sand);
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--olive);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

/* --- LOCATION VIEW --- */
.location-view {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease);
    overflow-y: auto;
    padding: 100px 0 100px;
}

.location-view.is-open { transform: translateY(0); }

.loc-header { margin-bottom: 60px; }
.breadcrumbs {
    display: flex; gap: 10px; color: var(--sage);
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.loc-title { font-size: 4rem; color: var(--ivory); line-height: 1; }

.close-btn {
    position: fixed; top: 100px; right: 40px;
    width: 50px; height: 50px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 1101;
    background: #000; color: var(--ivory);
    transition: all 0.3s ease;
}
.close-btn:hover { border-color: var(--sand); color: var(--sand); transform: rotate(90deg); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    aspect-ratio: 4/5; background-color: #111;
    position: relative; overflow: hidden;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease; opacity: 0.8;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 1; }

.gallery-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%); transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-info { transform: translateY(0); }

/* --- LEGAL CONTENT STYLES --- */
.legal-section { padding: 80px 0; }
.legal-content {
    max-width: 900px; margin: 0 auto;
    background: linear-gradient(180deg, rgba(62, 63, 41, 0.1), transparent);
    padding: 60px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}
.legal-block { margin-bottom: 40px; }
.legal-block h2 {
    font-size: 1.8rem; color: var(--sand); margin-bottom: 15px;
    border-bottom: 1px solid var(--olive); padding-bottom: 10px;
}
.legal-block p, .legal-block li {
    font-size: 1rem; color: var(--text-muted);
    margin-bottom: 15px; text-align: justify;
}
.legal-block strong { color: var(--ivory); font-weight: 500; }
.legal-block ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.warning-box {
    border: 1px solid var(--sage); padding: 20px;
    background: rgba(125, 141, 134, 0.1); margin-top: 40px; text-align: center;
}
.warning-box p { margin: 0; color: var(--ivory); font-style: italic; }

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--olive);
    padding: 60px 0; margin-top: 60px;
    text-align: center; color: var(--sage); font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- MOBILE --- */
@media (max-width: 900px) {
    .cta-grid { grid-template-columns: 1fr; }
    .mindmap-container { grid-template-columns: 1fr; border: none; gap: 20px; background: transparent; }
    .mm-column { min-height: 300px; border: 1px solid var(--border-light); }
    .sticky-header { padding: 15px; flex-direction: column; gap: 15px; }
    nav ul { gap: 20px; font-size: 0.8rem; }
}
