body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden; /* Prevents scrollbars for the app feel */
}

/* Navigation Styling */
nav#main-nav {
    height: 50px;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav#main-nav li {
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

nav#main-nav li:hover {
    text-decoration: underline;
}

/* The Container */
main {
    position: relative;
    width: 100vw;
    height: calc(100vh - 50px);
    overflow: hidden;
}

/* The Cards (All Sections) */
main section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Important! */
    z-index: 0; /* Sit at the bottom */
}

main section.active-section {
    z-index: 999; /* Sit on top */
}

/* ADD this new block for the active state: */
main section.active-section {
    opacity: 1;
    visibility: visible;
    z-index: 10; /* Bring it to the front */
}

/* Ensure main container has position relative */
main {
    position: relative;
    height: calc(100vh - 50px);
    width: 100vw;
}

/* Map specific */
#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Button to add markers */
#add-marker-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Must be higher than map */
    padding: 10px 20px;
    background: white;
    border: 2px solid black;
    font-weight: bold;
    cursor: pointer;
}

/* Graphic Novel Images */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps entire image visible */
}

.swiper {
    width: 100%;
    height: 100%; /* Forces the slider to fill the section */
}

/* Ensure the arrows are visible and distinct */
/* 1. Make the arrows black */
.swiper-button-next, 
.swiper-button-prev {
    color: black !important; /* Forces the color change */
    /* Optional: Make them smaller or thinner if you want */
    /* transform: scale(0.8); */ 
}

/* 2. Make the dots at the bottom black */
.swiper-pagination-bullet {
    background: gray;      /* Inactive dots are gray */
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: black !important; /* Active dot is black */
    opacity: 1;
}

.black-marker-icon {
    background-color: black;
    border-radius: 50%; /* Makes it a circle */
    border: 2px solid white; /* White outline for contrast */
    width: 16px;
    height: 16px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    display: block;
}

/* --- 2. Cursor Mode --- */
/* When this class is added to the map, cursor becomes a crosshair */
.adding-mode {
    cursor: crosshair !important;
}

/* --- 3. The Input Form (Modal) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Changed to white transparency for a cleaner look */
    backdrop-filter: blur(2px); /* Optional: nice blur effect behind the popup */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    width: 320px;
    border: 2px solid black; /* Thick architectural border */
    font-family: Arial, Helvetica, sans-serif; /* Ensures same font */
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1); /* Optional: Architectural "hard" shadow */
}

/* Typography Consistency */
.modal-content h3 {
    margin-top: 0;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 1px;
}

.modal-content input, 
.modal-content textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid black; /* Sharp black borders */
    font-family: inherit;    /* Forces inputs to use the same font as the title */
    background: #f9f9f9;
}

/* --- BUTTONS --- */
.modal-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
}

/* 1. The Save Button (Solid Black) */
.save-btn {
    flex: 1; /* Takes up half the space */
    background: black;
    color: white;
    border: 2px solid black;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.save-btn:hover {
    background: white;
    color: black;
}

/* 2. The Cancel Button (Inversed: White with Black Frame) */
.modal-buttons button:first-child { 
    flex: 1;
    background: white;
    color: black;
    border: 2px solid black;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.modal-buttons button:first-child:hover {
    background: #eee; /* Light gray on hover */
}