:root {
    --primary-color: #0069b4;
    --white: #ffffff;
}

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

body {
    overflow: hidden;
    background: var(--white);
    font-family: 'Palanquin', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 150px;
    background: var(--white);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo svg {
    width: 100%;
    height: auto;
}

.logo .cls-1 {
    fill: #a8a8a7;
}

.logo .cls-2 {
    fill: #0069b4;
}

.map-container {
    width: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#interactive-map {
    position: relative;
    height: 100%;
    transform-origin: center center;
}

.map-image {
    height: 100%;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: none;
}

.info-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0;
    line-height: 0;
}

.info-button:hover {
    background-color: #005293;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Only apply scale effect on devices that support hover */
@media (hover: hover) {
    .info-button:hover {
        transform: scale(1.08);
    }
}

.info-button:focus {
    outline: none;
}

.info-button.inverted {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.info-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9;
    transform: translateY(100%);
}

.info-panel.active {
    transform: translateY(0);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.info-panel h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .info-button {
        display: block;
    }

    .logo {
        width: 120px;
    }

    .info-panel {
        position: fixed;
        bottom: 0;
        height: auto;
        max-height: 50vh;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }

    .logo-item {
        padding: 15px;
    }

    .info-panel {
        padding: 20px;
    }

    .info-panel h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: 1fr;
    }
}

.info-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 0;
    margin-top: -2px;
}

.info-button.inverted i {
    transform: rotate(90deg);
}

.logo-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 200px;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 11;
}

.logo-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.logo-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.logo-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.logo-menu a:hover {
    background-color: rgba(0, 105, 180, 0.1);
}

.logo-button {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.logo-button object {
    width: 100%;
    height: 100%;
    pointer-events: none; /* This ensures the object doesn't interfere with clicks */
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.logo-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.logo-item img {
    width: 100%;
    height: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }

    .logo-item img {
        max-width: 100px;
    }
}

.footer-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
        max-width: 60%;
    }
}

.reset-button {
    position: absolute;
    bottom: 20px;
    right: 74px; /* 20px + 44px (info button width) + 10px gap */
    z-index: 10;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0;
}

.reset-button:hover {
    background-color: #005293;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reset-button:focus {
    outline: none;
}

.reset-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.tour-button.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Add after line 82 */
.map-layers {
    position: relative;
    height: 100%;
    width: 100%;
}

.map-layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: none;
    pointer-events: none;
}

.base-layer {
    position: relative;
    pointer-events: all;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 8;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 8px;
}

.loader-text {
    font-family: 'Palanquin', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.loader-dots {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.loader-dots .dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out;
}

.loader-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dot-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1.0);
    }
}

.container {
    opacity: 0;
    transition: opacity 2.5s ease;
}

.container.loaded {
    opacity: 1;
}

/* Add after the existing .info-button i styles */
.info-button i.fa-xmark {
    font-size: 28px; /* Slightly larger to match visual weight */
    position: relative;
    top: 1px; /* Fine-tune vertical alignment */
    left: -1px; /* Fine-tune horizontal alignment */
}

.campus-sign {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.campus-sign:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 15px rgba(0, 105, 180, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.campus-sign {
    animation: float 3s ease-in-out infinite;
}

.campus-sign:hover {
    animation-play-state: paused;
}

.tour-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tour-button:hover {
    transform: translateX(-50%) scale(1.08);
    background-color: #005293;
}

.tour-panel {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: min(600px, calc(100% - 40px));
    min-width: 300px;
    height: auto;
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Add this modifier class for panels with navigation */
.tour-panel--with-nav {
    padding-bottom: 4.5rem;
}

.tour-panel.active {
    opacity: 1;
    visibility: visible;
}

.tour-content {
    max-width: 600px;
    margin: 0 auto;
}

.tour-nav-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.tour-nav-button {
    flex: 1;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    padding: 0;
    font-size: 14px;
}

.tour-nav-button:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-nav-button i {
    font-size: 16px;
}

/* Add hover effects only for devices that support hover */
@media (hover: hover) {
    .tour-nav-button:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

.tour-nav-button:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile styles */
@media (max-width: 768px) {
    .tour-panel {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        margin: 0;
        padding: 1.5rem;
        min-width: 0;
        border-radius: 15px 15px 0 0;
    }

    .tour-panel--with-nav {
        padding-bottom: 4rem;
    }

    .tour-nav-buttons {
        border-radius: 0;
    }
}

.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.colored {
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

.tour-exit-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.tour-exit-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tour-exit-button i {
    font-size: inherit;
}

.tour-loading {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-family: 'Palanquin', sans-serif;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    white-space: nowrap;
}

.tour-loading.active {
    display: flex;
}

.tour-loading .dots {
    display: flex;
    gap: 4px;
}

.tour-loading .dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dot-fade 1.4s ease-in-out infinite;
}

.tour-loading .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.tour-loading .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-fade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.character-tours {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    width: fit-content;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #b3d4fc;
    align-items: center;
}

.character-tour-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background: var(--white);
}

.character-tour-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-tour-button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hide character tours during active tour */
.tour-active .character-tour-button {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .character-tours {
        position: fixed;
        bottom: env(safe-area-inset-bottom, 20px);
        left: 50%;
        transform: translateX(-50%);
    }

    .info-button {
        bottom: env(safe-area-inset-bottom, 20px);
        right: 20px;
    }

    .reset-button {
        bottom: calc(env(safe-area-inset-bottom, 20px) + 54px);
        right: 20px;
    }
}

.character-tours.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Update info and reset button positioning for mobile */
@media (max-width: 768px) {
    .info-button, .reset-button {
        right: 20px;
        left: auto;
    }

    .info-button {
        bottom: 28px; /* Aligned with center of tour buttons: (44px button height + 20px padding) ÷ 2 */
    }

    .reset-button {
        bottom: 82px; /* info button position + button height + spacing: 28px + 44px + 10px */
    }

    .character-tours {
        bottom: 20px;
        gap: 10px;
    }

    .character-tour-button {
        width: 44px;
        height: 44px;
    }
}

/* Keep mobile positioning */
@media (max-width: 768px) {
    .tour-loading {
        bottom: 100px;
    }
}

.tour-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tour-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tour-content h3 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .tour-content p {
        font-size: 1rem;
    }
}

/* Height-based adjustments */
@media (max-height: 1100px) and (min-width: 769px) {
    .tour-content h3 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .tour-content p {
        font-size: 1rem;
    }

    .tour-panel {
        width: min(600px, calc(100% - 40px));
        left: 50%;
        right: auto;
        bottom: 0;
        transform: translateX(-50%);
        margin: 0;
        padding: 1.5rem;
        min-width: 0;
        border-radius: 15px 15px 0 0;
    }

    .tour-panel--with-nav {
        padding-bottom: 4rem;
    }

    .tour-nav-buttons {
        border-radius: 0;
    }

    .character-tour-button {
        width: 44px;
        height: 44px;
    }
}

.logo-menu a i {
    font-size: 0.7em;
    margin-left: 4px;
    color: var(--primary-color);
}

/* Speech bubble styles */
.character-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speech-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 2px solid var(--primary-color);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-color);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
    z-index: 1;
}

/* Only show speech bubbles on desktop */
@media (hover: hover) {
    .character-button-wrapper:hover .speech-bubble {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Hide speech bubbles on mobile */
@media (max-width: 768px) {
    .speech-bubble {
        display: none;
    }
}

.temporary-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.interactive-overlay svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.clickable-area {
    fill: transparent;
    stroke: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

/* Hide interactive spots when tour or interaction is active */
.interaction-active .clickable-area,
body[data-tour-active="true"] .clickable-area {
    opacity: 0;
    pointer-events: none;
}

.map-tooltip {
    position: absolute;
    background: rgba(0, 105, 180, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.map-tooltip.visible {
    opacity: 1;
}

.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.welcome-modal.active {
    opacity: 1;
    visibility: visible;
}

.welcome-modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    width: min(600px, 90%);
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 1rem;
    position: relative;
}

.welcome-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.welcome-options {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.welcome-option {
    flex: 1;
    padding: 1.5rem;
    background: #f5f8fa;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.welcome-option i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-option h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.welcome-option p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #666;
}

.welcome-modal-close {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.welcome-modal-close:hover {
    background-color: #005293;
}

@media (max-width: 768px) {
    .welcome-modal-content {
        width: calc(100% - 2rem);
        max-height: calc(100% - 2rem);
        padding: 1rem;
        margin: 1rem;
    }

    .welcome-options {
        flex-direction: column;
        gap: 1rem;
    }

    .welcome-option {
        padding: 1rem;
    }

    .welcome-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
}

.spot-nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.spot-close-button {
    background: none;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.spot-close-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .spot-nav-buttons {
        margin-top: 15px;
    }
    
    .spot-close-button {
        padding: 6px 20px;
        font-size: 14px;
    }
}

.browser-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    padding: 20px;
}

.browser-warning.active {
    display: flex;
}

.browser-warning-content {
    max-width: 500px;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.browser-warning img {
    width: 200px;
    margin-bottom: 20px;
}

.browser-warning h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.browser-warning p {
    margin-bottom: 24px;
    line-height: 1.5;
}

.browser-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.browser-icons i {
    font-size: 32px;
    color: var(--primary-color);
}

.tour-nav-button.prev.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Add this after the speech bubble styles around line 905 */
.path-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    white-space: nowrap;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 105, 180, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    animation: none;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.path-tooltip.active {
    opacity: 1;
    visibility: visible;
    animation: pulseTooltip 1.5s ease-in-out infinite;
}

@keyframes pulseTooltip {
    0% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(0, 105, 180, 0.3);
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 105, 180, 0.4);
    }
    100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(0, 105, 180, 0.3);
    }
}

.ios-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    padding: 20px;
}

.ios-warning.active {
    display: flex;
}

.ios-warning-content {
    max-width: 500px;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ios-warning img {
    width: 200px;
    margin-bottom: 20px;
}

.ios-warning h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.ios-warning p {
    margin-bottom: 24px;
    line-height: 1.5;
}

.device-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.device-icons i {
    font-size: 32px;
    color: var(--primary-color);
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.lang-btn {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.welcome-language-selector {
    position: static;
    justify-content: center;
    margin-bottom: 20px;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.welcome-language-selector .lang-btn {
    min-width: 60px;
    padding: 6px 12px;
}

.language-selector {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.container.loaded ~ .language-selector {
    opacity: 1;
    pointer-events: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: none;
    background-color: var(--primary-color);
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.scroll-indicator.visible {
    opacity: 1;
    display: flex;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.text-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.map-text {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #333;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 16px);
}

/* Hide text overlays during tours or interactions */
.interaction-active .text-overlay-container,
body[data-tour-active="true"] .text-overlay-container {
    display: none;
}