#content-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
#map-container {
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-road-path {
    fill: none;
    stroke: #1565c0;
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

/* base marker style */
.map-marker {
    stroke: #ffffff;
}

/* type: vis (big and obvious) */
.marker-vis {
    fill: #ff5722;
    stroke-width: 2px;
}

/* type: fact (smaller, subtle) */
.marker-fact {
    fill: #555555;
    stroke-width: 1px;
    opacity: 0.6;
}

/* type: invisible - no circle is rendered at all, so no CSS needed */


.tour-character {
    fill: #00c853;
    stroke: #ffffff;
    stroke-width: 2px;
}

.marker-tooltip {
    transition: opacity 0.15s ease;
}

#viz-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;          /* use showVizModal() to set flex */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#viz-modal-inner {
    position: relative;
    background: #ffffff;
    width: 1400px;
    height: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* nothing scrolls unless you choose to inside viz-container */
}


#viz-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

#viz-close-btn::before {
    content: "✕";
}

#viz-close-btn:hover {
    background: #c62828;
}

#viz-container {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden; /* or auto if you want scrolling inside */
}

body {
    background-color: #901240;
}

#page-title {
    color: #ffffff;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#title-bar {
    display: flex;
    align-items: center;
    justify-content: center;  /* centers the title */
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Position button on left edge */
#main-menu-btn {
    position: absolute;
    left: 20px; /* adjust spacing from edge */
    padding: 10px 18px;
    background: #FFC627; /* ASU gold */
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: 0.2s ease-in-out;
}

#main-menu-btn:hover {
    background: #ffdb6d;
    transform: scale(1.05);
}

/* Right-hand column next to the map */
#right-panel {
    display: flex;
    flex-direction: column;
    flex: 1;              /* take remaining width */
    height: 700px;        /* match map height */
    margin-left: 20px;
    max-height: 700px;
    overflow-y: auto;
}

/* Facts box at top of right panel */
#facts-container {
    background: #ffffff;
    color: #000;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    max-height: 120px;
    overflow-y: auto;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Chat panel */
#chat-container {
    flex: 1;                      /* fill remaining height in the right panel */
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Scrollable list of messages */
#chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual message bubble */
.chat-message {
    padding: 8px 10px;
    border-radius: 12px;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Some simple variants – you can use these roles if you want */
.chat-message.system {
    background: #e0e0e0;
    align-self: flex-start;
}

.chat-message.user {
    background: #ffc627;
    align-self: flex-end;
}

.chat-message.marker {
    background: #ffffff;
    border: 1px solid #ddd;
    align-self: flex-start;
}
