/* --- MAIN DESIGN SYSTEM --- */
:root {
    --gold: #c5a87c;
    --gold-mute: rgba(197, 168, 124, 0.4);
    --dark: #0a0a0a;
    --glass: rgba(0, 0, 0, 0.82);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Playfair Display', serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

body {
    background: #000;
    color: #fff;
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Backgrounds */
.parchment-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('ФОН НА САЙТА.png') center/cover no-repeat;
    z-index: -2;
    opacity: 0.8;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 200px #000;
    z-index: -1;
    pointer-events: none;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



#skip-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    text-transform: uppercase;
    border-radius: 4px;
}

#skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

#unmute-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}



/* Navigation */
.main-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.15);
    /* Very subtle glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1001;
    padding: 10px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 3px;
}

.logo span.gold {
    color: var(--gold);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--gold);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.main-title {
    font-size: 6rem;
    font-family: var(--font-heading);
    color: #fff;
    z-index: 20;
    position: relative;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 1.5px #000;
    paint-order: stroke fill;
    margin-bottom: 20px;
    letter-spacing: 5px;
    width: 100%;
    text-align: center;
}

.bio-title {
    text-align: center;
    color: #8a0a0a;
    /* Nice dark red */
    font-family: var(--font-heading);
    font-size: 3.8rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 6px;
    border-bottom: 2px solid rgba(138, 10, 10, 0.3);
    display: inline-block;
    width: 100%;
    padding-bottom: 25px;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.hero-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fill entire screen */
    display: flex;
    z-index: 1;
    background: #000;
}

.hero-strip-item {
    flex: 1;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.hero-strip-item:last-child {
    border-right: none;
}

.hero-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Full image without cropping */
    background: #000;
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.6s ease;
}

.hero-strip-item:hover {
    flex: 3;
    /* Expand much more on hover */
}

.hero-strip-item:hover img {
    filter: brightness(1);
    transform: scale(1.02);
}

.hero-strip-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
    opacity: 0.5;
}

/* Slideshow Container */
.story-image-container {
    position: fixed;
    top: 100px;
    right: 40px;
    width: 280px;
    height: 180px;
    border: 2px solid var(--gold);
    border-radius: 15px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.story-image-container.active {
    opacity: 1;
    transform: translateX(0);
}

.story-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Biography */
.section-text {
    max-width: 900px;
    margin: 150px auto;
    padding: 0 20px;
}

#bio-segments {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bio-segment {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.45;
    color: #111;
    /* Rich charcoal ink */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 1.5s ease;
    /* Slowed down from 0.6s */
    cursor: default;
    font-weight: 600;
}

.bio-segment.active {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    opacity: 1;
    transform: translateX(20px);
    border-left: 6px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

/* Map Section */
#map-section {
    padding: 100px 2%;
    background: #050505;
}

.map-header {
    text-align: center;
    margin-bottom: 60px;
}

.map-header h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    text-shadow: 0 0 20px rgba(197, 168, 124, 0.3);
}

.map-container-wrapper {
    position: relative;
    width: 96%;
    height: 750px;
    /* Fixed height to ensure visibility */
    min-height: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gold-mute);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.map-sidebar {
    width: 400px;
    background: var(--glass);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Clips content in collapsed state */
}

.sidebar-content {
    width: 400px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-sidebar.collapsed {
    width: 0;
}


#map {
    flex: 1;
    z-index: 1;
}

.btn-3d {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    cursor: pointer;
    font-weight: bold;
    margin-left: 20px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(197, 168, 124, 0.3);
}

.btn-3d:hover {
    background: #fff;
    box-shadow: 0 0 25px var(--gold);
    transform: translateY(-2px);
}

.btn-earth {
    background: #1a73e8;
    /* Google Blue */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-earth:hover {
    background: #1557b0;
    box-shadow: 0 0 25px rgba(26, 115, 232, 0.6);
    transform: translateY(-2px);
}

.btn-earth svg {
    stroke: #fff;
}

.modal-earth-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.2s;
    vertical-align: middle;
    display: inline-block;
}

.modal-earth-btn:hover {
    background: #1557b0;
    transform: scale(1.05);
}

.sidebar-header {
    padding: 30px;
    background: #151515;
}

.sidebar-logo {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.stat-item {
    background: #222;
    padding: 12px 5px;
    border-radius: 10px;
    text-align: center;
}

.stat-item strong {
    display: block;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 1.3rem;
}

.stat-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #777;
}

/* Quote Styles */
.quote-section {
    padding: 60px 20px;
    background: transparent;
}

.deeds-quote {
    font-family: 'Great Vibes', cursive, 'Brush Script MT', italic;
    font-size: 5rem;
    color: #a80000;
    /* Deep red as requested */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
    /* Script fonts handle weight differently */
}

/* Sidebar Controls */
.sidebar-controls {
    padding: 20px;
    background: #1a1a1a;
}

#map-search {
    width: 100%;
    padding: 12px 20px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-row select {
    flex: 1;
    padding: 10px;
    background: #252525;
    border: 1px solid #333;
    color: #bbb;
    border-radius: 8px;
    font-size: 0.85rem;
}

.monument-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.monument-list::-webkit-scrollbar {
    width: 6px;
}

.monument-list::-webkit-scrollbar-thumb {
    background: var(--gold-mute);
    border-radius: 10px;
}

.monument-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 124, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.monument-item:hover {
    background: rgba(197, 168, 124, 0.15);
    border-color: var(--gold);
    transform: translateX(5px);
}

.monument-item.active {
    background: var(--gold);
    color: var(--dark);
    border-color: #fff;
}

.monument-item h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.monument-item p {
    color: #777;
    font-size: 0.85rem;
}

#map {
    flex: 1;
    background: #000;
}

/* Custom Marker */
.custom-marker {
    background: none;
    border: none;
}

.marker-content {
    width: 34px;
    height: 34px;
    background: var(--gold);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.marker-content:hover {
    transform: rotate(-45deg) scale(1.2);
    z-index: 1000;
}

.marker-content i {
    transform: rotate(45deg);
    font-size: 14px;
    color: #000;
}

/* Marker Types */
.marker-statue {
    background: #ff4747;
}

.marker-bust {
    background: #4791ff;
}

.marker-memorial {
    background: #47ff47;
}

.marker-museum {
    background: #ff47ff;
}

/* Inline Audio Player */
.audio-player-inline {
    max-width: 800px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.control-btn {
    background: var(--gold);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.control-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.progress-container {
    width: 300px;
    height: 10px;
    /* Increased height */
    background: rgba(255, 255, 255, 0.2);
    /* Lighter bg */
    border: 1px solid rgba(197, 168, 124, 0.5);
    /* Gold border */
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    /* Ensure bar stays inside */
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--gold);
    transition: width 0.1s linear;
    /* Smooth fill */
}

.time-display {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    /* Larger font */
    color: #fff;
    /* White text for better contrast */
    text-shadow: 0 0 5px #000;
    /* Shadow for readability */
    font-weight: bold;
    min-width: 120px;
    /* Fixed width to prevent jumping */
    text-align: right;
}

/* Avatar Toggle & Widget */
.summon-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 2010;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
    border: 2px solid var(--gold);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.summon-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.summon-btn:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #fff;
}

.avatar-widget {
    position: fixed;
    bottom: -30px;
    right: -30px;
    width: 320px;
    /* Reduced size */
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.avatar-widget.active {
    opacity: 1;
    transform: scale(1);
    bottom: 0;
    right: 0;
}

.avatar-widget video {
    width: 100%;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
}

/* Footer */
footer {
    padding: 100px 5%;
    background: #000;
    text-align: center;
    border-top: 1px solid #111;
}

footer p {
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Leaflet Dark mode fixes */
.leaflet-container {
    background: #111 !important;
}

.leaflet-popup-content-wrapper {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid var(--gold) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-tip {
    background: #1a1a1a !important;
    border: 1px solid var(--gold) !important;
}

.popup-card {
    width: 280px;
}

.popup-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popup-info {
    padding: 15px;
}

.popup-info h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.popup-info p {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 10px;
}

.popup-btn {
    display: block;
    background: var(--gold);
    color: #000;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Quote Styles */
.quote-section {
    padding: 60px 20px;
    background: transparent;
}

.deeds-quote {
    font-family: 'Great Vibes', cursive, 'Brush Script MT', italic;
    font-size: 5rem;
    color: #a80000;
    /* Deep red as requested */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}


/* ========================================= */
/* MAP 2 STYLES (Ported from React App) */
/* ========================================= */
.map-wrapper_v2 {
    height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #000;
}

.map-sidebar {
    width: 400px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    transition: width 0.5s ease-in-out;
    background: linear-gradient(180deg, #F5E6D3 0%, #E8D5B7 30%, #DFC9A5 60%, #D4BC96 100%);
    border-right: 3px solid #8B6914;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.map-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    padding: 16px;
    text-align: center;
    background: linear-gradient(180deg, #2C1810 0%, #4A2810 50%, #2C1810 100%);
    border-bottom: 3px solid #8B6914;
    position: relative;
    color: #D4A853;
}

.header-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.h-line {
    width: 40px;
    height: 2px;
    background: #f59e0b;
}

.h-icon {
    width: 28px;
    height: 28px;
    stroke: #D4A853;
}

.sidebar-header h1 {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #D4A853;
    font-family: 'Georgia', serif;
}

.subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B8956A;
    margin-top: 2px;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 1.25rem;
    font-weight: bold;
    color: #D4A853;
}

.stat-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #9A7D5A;
}

.stat-sep {
    width: 1px;
    background: rgba(139, 69, 19, 0.3);
}

/* Controls */
.sidebar-controls {
    padding: 12px;
    background: transparent;
    border-bottom: 2px solid #C4A97D;
}

.search-box {
    position: relative;
    margin-bottom: 8px;
}

.search-input {
    width: 100%;
    background: #FFF8F0;
    border: 2px solid #C4A97D;
    border-radius: 8px;
    padding: 8px 16px 8px 36px;
    font-size: 14px;
    color: #4A2810;
    font-family: 'Georgia', serif;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #8B6914;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.filter-select {
    flex: 1;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #FFF8F0;
    border: 2px solid #C4A97D;
    color: #4A2810;
    cursor: pointer;
}

.map-type-row {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.map-type-btn {
    flex: 1;
    padding: 4px;
    font-size: 10px;
    border-radius: 4px;
    background: rgba(196, 169, 125, 0.3);
    color: #4A2810;
    border: 1px solid #C4A97D;
    cursor: pointer;
    transition: all 0.2s;
}

.map-type-btn.active {
    background: #4A2810;
    color: #D4A853;
    border-color: #8B6914;
    font-weight: bold;
}

.list-stats {
    font-size: 12px;
    text-align: center;
    color: #8B6914;
    margin-top: 5px;
}

/* List */
.monument-list {
    flex: 1;
    overflow-y: auto;
}

.monument-list::-webkit-scrollbar {
    width: 8px;
}

.monument-list::-webkit-scrollbar-track {
    background: #E8D5B7;
}

.monument-list::-webkit-scrollbar-thumb {
    background: #C4A97D;
    border-radius: 4px;
}

.monument-item-btn {
    width: 100%;
    text-align: left;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    border-bottom: 1px solid #C4A97D;
    background: transparent;
    transition: background 0.2s;
}

.monument-item-btn:hover {
    background: rgba(212, 168, 83, 0.15);
}

.monument-item-btn.active {
    background: linear-gradient(90deg, #D4A853 0%, #E8D5B7 100%);
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF8F0;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.monument-item-btn.active .item-icon {
    background: #4A2810;
    border-color: #D4A853 !important;
}

.monument-item-btn.active .item-icon svg {
    stroke: #D4A853;
}

.item-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #4A2810;
    margin: 0;
}

.item-info p {
    font-size: 11px;
    color: #8B6914;
    margin: 2px 0 0;
}

.item-tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.tag {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid;
}

/* Footer */
.sidebar-footer {
    padding: 8px;
    text-align: center;
    background: #2C1810;
    border-top: 2px solid #8B6914;
    color: #9A7D5A;
    font-size: 10px;
}

/* Toggle Button */
.sidebar-toggle-btn {
    position: absolute;
    top: 16px;
    left: 400px;
    z-index: 30;
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, #2C1810, #4A2810);
    border: 2px solid #8B6914;
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease-in-out;
}

.sidebar-toggle-btn.collapsed {
    left: 0;
}

.sidebar-toggle-btn svg {
    transition: transform 0.3s;
}

.sidebar-toggle-btn.collapsed svg {
    transform: rotate(180deg);
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    height: 100%;
}

.google-map {
    width: 100%;
    height: 100%;
}

.map-overlay-title {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(44, 24, 16, 0.9), transparent);
    padding: 8px 24px;
    border-radius: 8px;
}

.map-overlay-title h2 {
    color: #D4A853;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.map-legend {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 10;
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.95), rgba(232, 213, 183, 0.95));
    border: 2px solid #C4A97D;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.map-legend h4 {
    font-size: 12px;
    font-weight: bold;
    color: #4A2810;
    border-bottom: 1px solid #C4A97D;
    padding-bottom: 4px;
    margin: 0 0 8px;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 10px;
    color: #4A2810;
}

.legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #D4A853;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
}

.btn-3d {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 10;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(74, 40, 16, 0.9));
    color: #D4A853;
    border: 2px solid #8B6914;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Modal */
.detail-modal {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.detail-modal.hidden {
    display: none;
}

.modal-content {
    width: 100%;
    max-width: 670px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #F5E6D3 0%, #E8D5B7 30%, #DFC9A5 100%);
    border: 3px solid #8B6914;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(180deg, #2C1810 0%, #4A2810 100%);
    padding: 20px;
    position: relative;
    border-bottom: 3px solid #8B6914;
}

.close-modal-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.2);
    border: 1px solid #D4A853;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #D4A853;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-header h2 {
    color: #D4A853;
    margin: 0;
    font-size: 1.1rem;
}

.modal-header p {
    color: #B8956A;
    margin: 0;
    font-size: 0.9rem;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.modal-body {
    padding: 20px;
}

.satellite-embed {
    border: 3px solid #C4A97D;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.embed-header {
    background: #4A2810;
    color: #D4A853;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #8B6914;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.info-card {
    background: rgba(196, 169, 125, 0.3);
    border: 1px solid #C4A97D;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.info-label {
    font-size: 11px;
    color: #8B6914;
    margin-bottom: 4px;
}

.info-val {
    font-size: 14px;
    font-weight: bold;
    color: #4A2810;
}

.info-val.mono {
    font-family: monospace;
    font-size: 12px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-section h3 {
    font-size: 14px;
    color: #4A2810;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.info-section p {
    font-size: 14px;
    color: #5A3A1E;
    background: rgba(255, 248, 240, 0.5);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #C4A97D;
    line-height: 1.5;
    margin-bottom: 16px;
}

.modal-footer {
    background: #2C1810;
    padding: 8px;
    border-top: 2px solid #8B6914;
    text-align: center;
}

.decor-line {
    height: 1px;
    width: 60px;
    background: rgba(139, 69, 19, 0.5);
    margin: 0 auto;
}

/* AR Button */
.btn-ar-live {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #a80000 0%, #7a0000 100%);
    color: #fff;
    border: 2px solid var(--gold);
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-ar-live:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(168, 0, 0, 0.6);
    background: linear-gradient(135deg, #c50000 0%, #900000 100%);
}

.btn-ar-live svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* AR Modal Specifics */
.ar-modal-content {
    background: #111;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
}