
        * {
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            box-sizing: border-box;
        }

        body,
        html {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }

        #viewer {
            width: 100%;
            height: 100%;
            touch-action: none;
        }

        /* TOP HEADER */
        #topHeader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            color: white;
            font-size: 18px;
            font-weight: 700;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .top-menu {
            display: flex;
            gap: 25px;
            align-items: center;
        }

        .top-menu a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.2s;
        }

        .top-menu a:hover {
            color: white;
        }

        .lang-switch {
            display: flex;
            gap: 8px;
        }

        .lang-btn {
            width: 30px;
            height: 22px;
            border-radius: 4px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.2s;
            overflow: hidden;
        }

        .lang-btn:hover,
        .lang-btn.active {
            border-color: white;
            transform: scale(1.1);
        }

        .lang-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* LEFT SIDEBAR */
        #leftSidebar {
            position: fixed;
            left: 0;
            top: 60px;
            bottom: auto;
            max-height: 400px;
            width: 420px;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
            backdrop-filter: blur(8px);
            padding: 25px 75px 20px;
            overflow-y: auto;
            z-index: 999;
            transition: transform 0.3s ease;
            pointer-events: none;
        }

        #leftSidebar::-webkit-scrollbar {
            width: 6px;
        }

        #leftSidebar::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        #leftSidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 10px;
        }

        #leftSidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        #leftSidebar.collapsed {
            transform: translateX(-100%);
        }

        #leftSidebar>* {
            pointer-events: auto;
        }

        .sidebar-header {
            color: white;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
            padding: 0;
            background: transparent;
            border: none;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        }

        .room-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .room-item {
            background: transparent;
            backdrop-filter: none;
            padding: 16px 5px;
            border-radius: 0;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            font-size: 15px;
            border: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            font-weight: 400;
            box-shadow: none;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
            letter-spacing: 0.3px;
        }

        .room-item:hover {
            background: rgba(139, 69, 19, 0.08);
            border-color: rgba(255, 255, 255, 0.25);
            transform: translateX(0);
            padding-left: 12px;
        }

        .room-item.active {
            background: rgba(139, 69, 19, 0.12);
            border-color: rgba(255, 255, 255, 0.3);
            color: white;
            font-weight: 500;
            padding-left: 12px;
        }

        .room-item i {
            display: none;
        }

        /* TOGGLE SIDEBAR BUTTON */
        #sidebarToggle {
            position: fixed;
            left: 20px;
            top: 80px;
            width: 45px;
            height: 45px;
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            color: white;
            font-size: 18px;
            cursor: pointer;
            z-index: 1001;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            backdrop-filter: blur(10px);
        }

        #sidebarToggle:hover {
            background: rgba(0, 0, 0, 0.95);
            border-color: rgba(255, 255, 255, 0.4);
            transform: scale(1.05);
        }


        /* BOTTOM CONTROLS */
        #bottomControls {
            position: fixed;
            bottom: 30px;
            left: 20px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            z-index: 999;
            width: 174px;
        }

        .control-btn {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: none;
            border-radius: 50%;
            color: #333;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .control-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
        }

        .control-btn.active {
            background: #333;
            color: white;
        }

        /* AI SEARCH BUTTON */
        #aiSearchBtn {
            position: fixed;
            right: 20px;
            top: 80px;
            background: linear-gradient(135deg, #8b4513, #5c2e1f) !important;
            border: none;
            padding: 14px 24px;
            border-radius: 25px;
            color: white;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 999;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
            transition: all 0.2s;
        }

        #aiSearchBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
        }

        .ai-badge-btn {
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* MODAL BASE */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal.active {
            display: flex;
            animation: modalFadeIn 0.4s ease forwards;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .modal-content {
            background: rgba(20, 20, 20, 0.98);
            padding: 35px;
            border-radius: 20px;
            max-width: 650px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            position: relative;
            transform: translateY(30px) scale(0.95);
            opacity: 0;
        }

        .modal.active .modal-content {
            animation: modalSlideUp 0.5s ease forwards 0.1s;
        }

        @keyframes modalSlideUp {
            from {
                transform: translateY(30px) scale(0.95);
                opacity: 0;
            }

            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .modal-content::-webkit-scrollbar {
            width: 8px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 10px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .modal-header h3 {
            color: white;
            margin: 0;
            font-size: 22px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-close-btn {
            background: #dc3545;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .modal-close-btn:hover {
            transform: scale(1.1);
        }

        /* HISTORY MODAL */
        #historyModal .modal-content {
            max-width: 900px;
            padding: 0;
            background: white;
            color: #333;
        }

        #historyModal.active .modal-content {
            animation: historyModalEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.1s;
        }

        @keyframes historyModalEntrance {
            from {
                transform: translateY(50px) scale(0.9);
                opacity: 0;
            }

            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        #historyModal .modal-header {
            position: absolute;
            top: 0;
            right: 0;
            z-index: 10;
            background: transparent;
            border: none;
            margin: 0;
            padding: 15px;
        }

        #historyModal .modal-header h3 {
            display: none;
        }

        #historyModal .modal-close-btn {
            background: #8b4513;
            width: 50px;
            height: 50px;
            font-size: 24px;
            opacity: 0;
        }

        #historyModal.active .modal-close-btn {
            animation: closeButtonFadeIn 0.4s ease forwards 0.8s;
        }

        @keyframes closeButtonFadeIn {
            from {
                opacity: 0;
                transform: scale(0.8) rotate(-90deg);
            }

            to {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }

        .history-container {
            display: flex;
            flex-direction: row;
            min-height: 500px;
        }

        .history-image-section {
            flex: 0 0 50%;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }

        #historyModal.active .history-image-section {
            animation: imageSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
        }

        @keyframes imageSlideIn {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .history-content-section {
            flex: 0 0 50%;
            padding: 50px 40px;
            overflow-y: auto;
            max-height: 80vh;
            opacity: 0;
        }

        #historyModal.active .history-content-section {
            animation: contentFadeIn 0.6s ease forwards 0.5s;
        }

        @keyframes contentFadeIn {
            from {
                opacity: 0;
                transform: translateX(30px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .history-content-section::-webkit-scrollbar {
            width: 6px;
        }

        .history-content-section::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
        }

        .history-content-section::-webkit-scrollbar-thumb {
            background: rgba(139, 69, 19, 0.5);
            border-radius: 10px;
        }

        .history-content-section::-webkit-scrollbar-thumb:hover {
            background: rgba(139, 69, 19, 0.7);
        }

        .history-title {
            color: #333;
            font-size: 28px;
            font-weight: 700;
            margin: 0 0 10px 0;
            line-height: 1.3;
            opacity: 0;
        }

        #historyModal.active .history-title {
            animation: titleSlideIn 0.5s ease forwards 0.7s;
        }

        @keyframes titleSlideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .history-divider {
            width: 60px;
            height: 4px;
            background: #8b4513;
            margin: 0 0 25px 0;
            transform: scaleX(0);
            transform-origin: left;
        }

        #historyModal.active .history-divider {
            animation: dividerExpand 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.9s;
        }

        @keyframes dividerExpand {
            from {
                transform: scaleX(0);
            }

            to {
                transform: scaleX(1);
            }
        }

        .history-subtitle {
            color: #8b4513;
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0 0 20px 0;
            opacity: 0;
        }

        #historyModal.active .history-subtitle {
            animation: subtitleFadeIn 0.5s ease forwards 1.1s;
        }

        @keyframes subtitleFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .history-description {
            color: #555;
            line-height: 1.8;
            font-size: 14px;
            text-align: justify;
            opacity: 0;
        }

        #historyModal.active .history-description {
            animation: descriptionFadeIn 0.6s ease forwards 1.3s;
        }

        @keyframes descriptionFadeIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .history-description p {
            margin: 0 0 15px 0;
        }

        /* LOCATION LIST MODAL */
        .location-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .location-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .location-item:hover {
            border-color: #8b4513;
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
        }

        .location-item img {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }

        .location-item-name {
            padding: 12px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
        }

        /* VIDEO MODAL */
        #videoModal .video-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            border-radius: 12px;
        }

        #videoModal .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* MAP MODAL */
        #mapModal .modal-content {
            max-width: 900px;
            padding: 0;
        }

        #mapModal .modal-header {
            padding: 25px 30px;
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            color: white;
            margin: 0;
            border-radius: 20px 20px 0 0;
        }

        #mapModal .modal-header h3 {
            color: white;
        }

        #mapModal .modal-close-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        #mapModal .modal-close-btn:hover {
            background: rgba(139, 69, 19, 0.3);
            border-color: #8b4513;
        }

        .map-container {
            position: relative;
            width: 100%;
            height: 500px;
            border-radius: 0 0 20px 20px;
            overflow: hidden;
        }

        .map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }

        /* SEARCH MODAL */
        #searchInput {
            width: 100%;
            padding: 16px;
            border: 2px solid rgba(139, 69, 19, 0.5);
            border-radius: 12px;
            font-size: 16px;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            margin-bottom: 15px;
            transition: all 0.3s;
        }

        #searchInput:focus {
            outline: none;
            border-color: #8b4513;
            background: rgba(139, 69, 19, 0.08);
        }

        #searchInput::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .search-buttons {
            display: flex;
            gap: 12px;
        }

        #searchBtn,
        #voiceSearchBtn {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }

        #searchBtn {
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            color: white;
        }

        #searchBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
        }

        #voiceSearchBtn {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
        }

        #voiceSearchBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
        }

        #voiceSearchBtn.listening {
            animation: voicePulse 1s ease-in-out infinite;
        }

        @keyframes voicePulse {

            0%,
            100% {
                transform: translateY(0) scale(1);
            }

            50% {
                transform: translateY(-2px) scale(1.05);
            }
        }

        #searchResult {
            margin-top: 20px;
            padding: 15px;
            border-radius: 12px;
            font-size: 14px;
            display: none;
            color: white;
        }

        #searchResult.success {
            background: rgba(40, 167, 69, 0.2);
            border: 1px solid rgba(40, 167, 69, 0.4);
            display: block;
        }

        #searchResult.error {
            background: rgba(220, 53, 69, 0.2);
            border: 1px solid rgba(220, 53, 69, 0.4);
            display: block;
        }

        #searchResult.loading {
            background: rgba(139, 69, 19, 0.2);
            border: 1px solid rgba(139, 69, 19, 0.4);
            display: block;
            text-align: center;
        }

        #searchResult.info {
            background: rgba(255, 193, 7, 0.2);
            border: 1px solid rgba(255, 193, 7, 0.4);
            display: block;
        }

        /* QUIZ MODAL */
        #quizModal .modal-content {
            max-width: 800px;
            background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
        }

        .quiz-container {
            min-height: 400px;
        }

        .quiz-start-screen {
            text-align: center;
            padding: 40px 20px;
        }

        .quiz-start-screen h2 {
            color: white;
            font-size: 32px;
            margin: 0 0 20px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .quiz-start-screen p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            line-height: 1.8;
            margin: 0 0 30px 0;
        }

        .quiz-start-btn {
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            color: white;
            border: none;
            padding: 16px 40px;
            border-radius: 30px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
        }

        .quiz-start-btn:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(139, 69, 19, 0.6);
        }

        .quiz-start-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
        }

        .quiz-progress {
            color: white;
            font-size: 18px;
            font-weight: 600;
        }

        .quiz-timer {
            color: #ffc107;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quiz-question {
            color: white;
            font-size: 20px;
            font-weight: 500;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .quiz-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .quiz-option {
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 255, 255, 0.2);
            padding: 16px 20px;
            border-radius: 12px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
        }

        .quiz-option:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.12);
            border-color: #8b4513;
            transform: translateX(5px);
        }

        .quiz-option.selected {
            background: rgba(139, 69, 19, 0.3);
            border-color: #8b4513;
        }

        .quiz-option.correct {
            background: rgba(40, 167, 69, 0.3);
            border-color: #28a745;
        }

        .quiz-option.wrong {
            background: rgba(220, 53, 69, 0.3);
            border-color: #dc3545;
        }

        .quiz-option:disabled {
            cursor: not-allowed;
            opacity: 0.7;
        }

        .quiz-explanation {
            margin-top: 20px;
            padding: 15px;
            background: rgba(139, 69, 19, 0.2);
            border-radius: 10px;
            color: white;
            font-size: 14px;
            line-height: 1.6;
            border-left: 4px solid #8b4513;
        }

        .quiz-nav-buttons {
            display: flex;
            gap: 12px;
            margin-top: 30px;
        }

        .quiz-nav-btn {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .quiz-nav-btn.primary {
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            color: white;
        }

        .quiz-nav-btn.primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
        }

        .quiz-nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .quiz-result-screen {
            text-align: center;
            padding: 40px 20px;
        }

        .quiz-result-screen h2 {
            color: white;
            font-size: 36px;
            margin: 0 0 20px 0;
        }

        .quiz-score-display {
            font-size: 72px;
            font-weight: 700;
            margin: 20px 0;
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .quiz-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin: 30px 0;
        }

        .quiz-stat-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 20px;
            border-radius: 12px;
        }

        .quiz-stat-value {
            font-size: 32px;
            font-weight: 700;
            color: white;
            margin-bottom: 5px;
        }

        .quiz-stat-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .quiz-name-input {
            width: 100%;
            max-width: 400px;
            padding: 16px;
            border: 2px solid rgba(139, 69, 19, 0.5);
            border-radius: 12px;
            font-size: 16px;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            margin: 20px auto;
            transition: all 0.3s;
            text-align: center;
        }

        .quiz-name-input:focus {
            outline: none;
            border-color: #8b4513;
            background: rgba(139, 69, 19, 0.08);
        }

        .quiz-name-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .quiz-submit-btn {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            border: none;
            padding: 16px 40px;
            border-radius: 30px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
            margin-top: 20px;
        }

        .quiz-submit-btn:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
        }

        .quiz-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* LEADERBOARD */
        #leaderboard {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            border-top: 2px solid rgba(139, 69, 19, 0.5);
            z-index: 998;
            transform: translateY(100%);
            transition: transform 0.4s ease;
            max-height: 50vh;
            overflow-y: auto;
            z-index: 99999;
        }

        #leaderboard.visible {
            transform: translateY(0);
        }

        .leaderboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .leaderboard-header h3 {
            color: white;
            margin: 0;
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .leaderboard-toggle-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .leaderboard-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(180deg);
        }

        .leaderboard-content {
            padding: 20px 30px;
        }

        .leaderboard-table {
            width: 100%;
            border-collapse: collapse;
        }

        .leaderboard-table thead {
            background: rgba(255, 255, 255, 0.05);
        }

        .leaderboard-table th {
            color: rgba(255, 255, 255, 0.8);
            text-align: left;
            padding: 12px 15px;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 1px;
        }

        .leaderboard-table td {
            color: white;
            padding: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .leaderboard-rank {
            font-weight: 700;
            font-size: 18px;
        }

        .leaderboard-rank.top1 {
            color: #ffd700;
        }

        .leaderboard-rank.top2 {
            color: #c0c0c0;
        }

        .leaderboard-rank.top3 {
            color: #cd7f32;
        }

        .leaderboard-score {
            font-weight: 700;
            font-size: 18px;
            color: #8b4513;
        }

        .leaderboard-time {
            font-size: 14px;
            opacity: 0.7;
        }

        #leaderboardBtn {
            position: fixed;
            bottom: 30px;
            right: 20px;
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            border: none;
            padding: 14px 24px;
            border-radius: 25px;
            color: white;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 999;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
            transition: all 0.2s;
        }

        #leaderboardBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
        }

        /* NARRATOR */
        #narrator {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 380px;
            max-height: 60vh;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(20px);
            color: white;
            padding: 25px;
            border-radius: 16px;
            overflow-y: auto;
            display: none;
            z-index: 999;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        #narrator img {
            width: 100%;
            height: 250px;
            object-fit: contain;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            margin-bottom: 15px;
            cursor: zoom-in;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        #narrator img:hover {
            transform: scale(1.02);
            background: rgba(255, 255, 255, 0.08);
            border-color: #8b4513;
            box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
        }

        #narrator h4 {
            margin: 0 0 15px 0;
            font-size: 20px;
            padding-right: 35px;
        }

        #narrator p {
            margin: 12px 0;
            line-height: 1.7;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.85);
        }

        #narratorClose {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #dc3545;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            color: white;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 999999999 !important;
        }

        #narratorClose:hover {
            transform: scale(1.1);
        }

        #narratorPlay {
            width: 100%;
            margin-top: 15px;
            padding: 12px;
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            display: none;
            transition: all 0.2s;
        }

        #narratorPlay:hover {
            transform: translateY(-2px);
        }

        #narratorPlay.playing {
            background: linear-gradient(135deg, #dc3545, #c82333);
        }

        /* Lightbox untuk zoom full image */
        .narrator-lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
            animation: fadeIn 0.3s ease;
        }

        .narrator-lightbox.active {
            display: flex;
        }

        .narrator-lightbox img {
            max-width: 95%;
            max-height: 95%;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
            animation: zoomIn 0.4s ease;
        }

        .lightbox-close {
            position: absolute;
            top: 30px;
            right: 30px;
            background: #dc3545;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            color: white;
            font-size: 24px;
            cursor: pointer;
            z-index: 10001;
            transition: all 0.2s;
        }

        .lightbox-close:hover {
            transform: scale(1.1) rotate(90deg);
            background: #c82333;
        }

        .lightbox-info {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            padding: 12px 24px;
            border-radius: 25px;
            color: white;
            font-size: 14px;
            z-index: 10001;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes zoomIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* LOADING SCREEN */
        #loadingScreen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            color: white;
        }

        #loadingScreen.hidden {
            display: none;
        }

        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.2);
            border-top: 4px solid #8b4513;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin-bottom: 25px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .search-spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-right: 8px;
            vertical-align: middle;
        }

        /* MARKER ANIMATIONS */
        @keyframes markerPulse {

            0%,
            100% {
                transform: scale(1);
                filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
            }

            50% {
                transform: scale(1.2);
                filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
            }
        }

        .marker-highlight {
            animation: markerPulse 1s ease-in-out 5 !important;
        }

        #voiceSearchBtn.listening {
            animation: voicePulse 1s ease-in-out infinite;
            background: linear-gradient(135deg, #dc3545, #c82333);
        }

        #voiceSearchBtn.listening i {
            animation: micPulse 0.5s ease-in-out infinite alternate;
        }

        @keyframes micPulse {
            from {
                transform: scale(1);
            }

            to {
                transform: scale(1.2);
            }
        }

        .voice-status {
            position: absolute;
            bottom: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(40, 167, 69, 0.9);
            color: white;
            padding: 5px 15px;
            border-radius: 15px;
            font-size: 12px;
            white-space: nowrap;
            animation: fadeInUp 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        .voice-transcript {
            margin-top: 15px;
            padding: 12px;
            background: rgba(40, 167, 69, 0.1);
            border: 1px solid rgba(40, 167, 69, 0.3);
            border-radius: 8px;
            color: white;
            font-size: 14px;
            font-style: italic;
            display: none;
        }

        .voice-transcript.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        /* FLOOR PLAN SPLIT SCREEN */
        #floorPlanModal .modal-content {
            max-width: 100%;
            width: 100%;
            height: 100vh;
            max-height: 100vh;
            padding: 0;
            margin: 0;
            border-radius: 0;
        }

        #floorPlanModal .modal-header {
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            color: white;
            padding: 20px 30px;
            margin: 0;
            border-radius: 0;
            flex-shrink: 0;
        }

        #floorPlanModal .modal-header h3 {
            color: white;
            margin: 0;
        }

        #floorPlanModal .modal-close-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        #floorPlanModal .modal-close-btn:hover {
            background: rgba(139, 69, 19, 0.3);
            border-color: #8b4513;
        }

        .floor-split-container {
            display: flex;
            height: calc(100vh - 80px);
            width: 100%;
            background: #1a1a2e;
        }

        .floor-left-panel {
            flex: 0 0 50%;
            display: flex;
            flex-direction: column;
            background: #2d2d44;
            border-right: 2px solid #8b4513;
            overflow: hidden;
        }

        .floor-left-header {
            padding: 20px 25px;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .floor-left-header h4 {
            margin: 0;
            color: white;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .floor-plan-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: auto;
        }

        .floor-plan-image-container {
            position: relative;
            max-width: 100%;
            max-height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .floor-plan-image {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        #floorRoomMarkers {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .floor-right-panel {
            flex: 0 0 50%;
            display: flex;
            flex-direction: column;
            background: #1a1a2e;
            overflow: hidden;
        }

        .floor-right-header {
            padding: 20px 25px;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .floor-right-header h4 {
            margin: 0;
            color: white;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .floor-right-header .room-name {
            color: #8b4513;
            font-weight: 700;
        }

        .preview-controls {
            display: flex;
            gap: 10px;
        }

        .preview-control-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .preview-control-btn:hover {
            background: rgba(139, 69, 19, 0.2);
            border-color: rgba(139, 69, 19, 0.4);
        }

        .preview-control-btn.active {
            background: #8b4513;
            border-color: #8b4513;
        }

        #photospherePreview {
            flex: 1;
            background: #000;
            position: relative;
        }

        .preview-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: rgba(255, 255, 255, 0.5);
            text-align: center;
            padding: 40px;
        }

        .preview-placeholder i {
            font-size: 80px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        .preview-placeholder h3 {
            margin: 0 0 10px 0;
            font-size: 24px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
        }

        .preview-placeholder p {
            margin: 0;
            font-size: 15px;
            line-height: 1.6;
            opacity: 0.8;
        }

        .floor-room-marker {
            position: absolute;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 3px solid white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            transform: translate(-50%, -50%);
            pointer-events: all;
            z-index: 10;
        }

        .floor-room-marker:hover {
            transform: translate(-50%, -50%) scale(1.25);
            z-index: 100;
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
        }

        .floor-room-marker.active {
            transform: translate(-50%, -50%) scale(1.3);
            border-width: 4px;
            box-shadow: 0 0 0 6px rgba(139, 69, 19, 0.3), 0 6px 25px rgba(0, 0, 0, 0.6);
            animation: markerPulseFloor 2s ease-in-out infinite;
        }

        @keyframes markerPulseFloor {

            0%,
            100% {
                box-shadow: 0 0 0 6px rgba(139, 69, 19, 0.3), 0 6px 25px rgba(0, 0, 0, 0.6);
            }

            50% {
                box-shadow: 0 0 0 12px rgba(139, 69, 19, 0.1), 0 8px 30px rgba(0, 0, 0, 0.7);
            }
        }

        .floor-room-marker i {
            font-size: 20px;
            pointer-events: none;
        }

        .floor-tooltip {
            position: absolute;
            background: rgba(0, 0, 0, 0.95);
            color: white;
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            z-index: 1000;
            pointer-events: none;
            transform: translateX(-50%);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .floor-info-box {
            padding: 15px 20px;
            background: rgba(139, 69, 19, 0.1);
            border-top: 1px solid rgba(139, 69, 19, 0.3);
            text-align: center;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
        }

        .floor-info-box i {
            color: #8b4513;
            margin-right: 8px;
        }

        .floor-loading {
            text-align: center;
            padding: 60px 40px;
            color: #8b4513;
        }

        .floor-loading i {
            font-size: 48px;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

        .floor-loading p {
            margin: 0;
            font-size: 16px;
            color: rgba(255, 255, 255, 0.7);
        }

        #floorPlanThumbnail {
            position: fixed;
            left: 20px;
            top: 135px;
            width: 120px;
            background: rgba(0, 0, 0, 0.85);
            border: 2px solid rgba(139, 69, 19, 0.4);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            z-index: 1001;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        #floorPlanThumbnail:hover {
            transform: translateY(-5px);
            border-color: rgba(139, 69, 19, 0.8);
            box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
        }

        #floorPlanThumbnail img {
            width: 100%;
            height: 100px;
            object-fit: cover;
            display: block;
            opacity: 0.9;
            transition: opacity 0.3s;
        }

        #floorPlanThumbnail img[src=""],
        #floorPlanThumbnail img:not([src]) {
            display: none;
        }

        #floorPlanThumbnail:hover img {
            opacity: 1;
        }

        .floor-thumbnail-label {
            padding: 8px 12px;
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            color: white;
            font-size: 12px;
            font-weight: 600;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .floor-thumbnail-loading {
            width: 100%;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
        }

        /* ZOOM FEATURES */
        .zoomWindow {
            border: 3px solid #8b4513 !important;
        }

        .zoomLens {
            border: 2px solid #8b4513 !important;
        }

        /* RESPONSIVE */
        @media screen and (max-width: 768px) {
            #leftSidebar {
                width: 280px;
                padding: 25px 20px;
            }

            #narrator {
                right: 10px;
                bottom: 80px;
                width: calc(100% - 20px);
                max-width: 380px;
            }

            .top-menu {
                display: none;
            }

            #aiSearchBtn {
                padding: 12px 18px;
                font-size: 13px;
            }

            #bottomControls {
                left: 50%;
                transform: translateX(-50%);
            }

            .location-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }

            .quiz-stats {
                grid-template-columns: 1fr;
            }

            .leaderboard-header {
                padding: 15px 20px;
            }

            .leaderboard-content {
                padding: 15px 20px;
            }

            .leaderboard-table th,
            .leaderboard-table td {
                padding: 10px 8px;
                font-size: 13px;
            }

            .history-container {
                flex-direction: column;
            }

            .history-image-section {
                flex: 0 0 250px;
            }

            .history-content-section {
                flex: 1;
                padding: 30px 25px;
            }

            .history-title {
                font-size: 22px;
            }

            .floor-split-container {
                flex-direction: column;
            }

            .floor-left-panel,
            .floor-right-panel {
                flex: 0 0 50%;
                border-right: none;
            }

            .floor-left-panel {
                border-bottom: 2px solid #8b4513;
            }

            .floor-plan-wrapper {
                padding: 15px;
            }

            .floor-room-marker {
                width: 38px;
                height: 38px;
                font-size: 16px;
            }

            .floor-room-marker i {
                font-size: 18px;
            }
        }

        @media (max-width: 1024px) {
            .floor-split-container {
                flex-direction: column;
            }

            .floor-left-panel,
            .floor-right-panel {
                flex: 0 0 50%;
                border-right: none;
            }

            .floor-left-panel {
                border-bottom: 2px solid #8b4513;
            }

            .floor-plan-wrapper {
                padding: 15px;
            }

            .floor-room-marker {
                width: 38px;
                height: 38px;
                font-size: 16px;
            }

            .floor-room-marker i {
                font-size: 18px;
            }
        }

        @media (max-width: 768px) {
            .floor-split-container {
                height: calc(100vh - 60px);
            }

            .floor-left-header,
            .floor-right-header {
                padding: 15px 20px;
            }

            .floor-left-header h4,
            .floor-right-header h4 {
                font-size: 16px;
            }

            .preview-controls {
                gap: 8px;
            }

            .preview-control-btn {
                padding: 6px 12px;
                font-size: 12px;
            }

            .floor-room-marker {
                width: 35px;
                height: 35px;
                font-size: 14px;
                border-width: 2px;
            }

            .floor-room-marker i {
                font-size: 16px;
            }

            .preview-placeholder i {
                font-size: 60px;
            }

            .preview-placeholder h3 {
                font-size: 20px;
            }

            .preview-placeholder p {
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {

            .floor-left-panel,
            .floor-right-panel {
                flex: 0 0 45%;
            }

            .floor-info-box {
                font-size: 12px;
                padding: 12px 15px;
            }

            .floor-tooltip {
                font-size: 12px;
                padding: 8px 12px;
            }
        }

        /* ============================================
   SEARCH SUGGESTIONS - MODERN DARK THEME
   ============================================ */

        .search-suggestions {
            margin-top: 20px;
            padding: 0;
            background: transparent;
            border: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .search-suggestions[style*="display: none"] {
            opacity: 0;
            transform: translateY(-10px);
        }

        .search-suggestions h4 {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            font-weight: 600;
            margin: 0 0 12px 0;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 4px;
        }

        .search-suggestions h4 i {
            color: #4ade80;
            font-size: 16px;
        }

        .suggestion-chips {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .suggestion-chip {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid rgba(74, 222, 128, 0.2);
            border-left: 3px solid #4ade80;
            color: white;
            padding: 14px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            position: relative;
            opacity: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .suggestion-chip:hover {
            background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
            border-color: rgba(74, 222, 128, 0.4);
            border-left-color: #4ade80;
            transform: translateX(4px);
            box-shadow: 0 4px 16px rgba(74, 222, 128, 0.2);
        }

        .suggestion-chip-content {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .suggestion-chip i {
            font-size: 16px;
            color: #4ade80;
            opacity: 1;
            min-width: 20px;
            text-align: center;
        }

        .suggestion-chip-text {
            color: white;
            font-weight: 500;
        }

        .suggestion-chip-room {
            padding: 4px 10px;
            background: rgba(74, 222, 128, 0.15);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 12px;
            font-size: 11px;
            color: #4ade80;
            font-weight: 600;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .suggestion-chip-room i {
            font-size: 10px;
        }

        /* Success indicator like in the image */
        .suggestion-chip-badge {
            position: absolute;
            top: -8px;
            left: 12px;
            background: #4ade80;
            color: #0f172a;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(74, 222, 128, 0.4);
        }

        /* ============================================
   AUTOCOMPLETE DROPDOWN - MATCHING STYLE
   ============================================ */

        /* SEARCH MODAL - Adjusted Height */
        #searchModal .modal-content {
            max-width: 650px;
            width: 100%;
            max-height: 85vh;
            /* Lebih tinggi */
            overflow: visible;
            /* Biar dropdown bisa keluar */
            position: relative;
        }

        /* AUTOCOMPLETE DROPDOWN - Show 2-3 items minimum */
        .autocomplete-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid rgba(74, 222, 128, 0.2);
            border-radius: 12px;
            max-height: 320px;
            /* Cukup untuk 3-4 items */
            min-height: 180px;
            /* Minimal 2 items */
            overflow-y: auto;
            z-index: 2000;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(74, 222, 128, 0.1);
            display: none;
            padding: 8px;
        }

        .autocomplete-dropdown.active {
            display: block;
            animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes dropdownSlideIn {
            from {
                opacity: 0;
                transform: translateY(-10px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .autocomplete-dropdown::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            margin: 4px 0;
        }



        .autocomplete-dropdown::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            margin: 8px 0;
        }

        .autocomplete-dropdown::-webkit-scrollbar-thumb {
            background: rgba(74, 222, 128, 0.3);
            border-radius: 10px;
        }

        .autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
            background: rgba(74, 222, 128, 0.5);
        }

        .autocomplete-item {
            padding: 12px 16px;
            /* Lebih compact */
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 8px;
            border-left: 3px solid transparent;
            margin-bottom: 6px;
            /* Spacing lebih kecil */
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .autocomplete-item:last-child {
            margin-bottom: 0;
        }

        .autocomplete-item:hover,
        .autocomplete-item.active {
            background: rgba(74, 222, 128, 0.08);
            border-color: rgba(74, 222, 128, 0.2);
            border-left-color: #4ade80;
            transform: translateX(4px);
            box-shadow: 0 2px 12px rgba(74, 222, 128, 0.15);
        }

        .autocomplete-item-name {
            font-size: 14px;
            font-weight: 600;
            color: white;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .autocomplete-item-icon {
            color: #4ade80;
            font-size: 14px;
            min-width: 18px;
            text-align: center;
        }

        .autocomplete-item-room {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            align-items: center;
            gap: 6px;
            padding-left: 28px;
        }

        .autocomplete-item-room i {
            color: #4ade80;
            opacity: 0.6;
            font-size: 11px;
        }

        .autocomplete-item-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
            padding-left: 28px;
        }

        .autocomplete-item-badge {
            padding: 2px 8px;
            background: rgba(74, 222, 128, 0.15);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 10px;
            font-size: 10px;
            color: #4ade80;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .autocomplete-loading {
            padding: 20px;
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .autocomplete-loading i {
            font-size: 24px;
            color: #4ade80;
            animation: spin 1s linear infinite;
        }

        .autocomplete-no-results {
            padding: 20px;
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 13px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .autocomplete-no-results i {
            font-size: 32px;
            opacity: 0.3;
            color: #4ade80;
        }

        /* Success Result Box - Like "Ditemukan!" in the image */
        .autocomplete-success-header {
            background: linear-gradient(135deg, #166534 0%, #14532d 100%);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-left: 3px solid #4ade80;
            padding: 10px 16px;
            /* Lebih kecil */
            border-radius: 8px;
            margin-bottom: 8px;
            /* Spacing lebih kecil */
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 16px rgba(74, 222, 128, 0.15);
        }

        .autocomplete-typing,
        .autocomplete-no-results {
            padding: 16px;
            /* Lebih kecil */
            text-align: center;
        }

        .autocomplete-success-header i {
            color: #4ade80;
            font-size: 20px;
        }

        .autocomplete-success-text {
            flex: 1;
        }

        .autocomplete-success-text strong {
            color: white;
            font-size: 14px;
            font-weight: 700;
        }

        .autocomplete-success-text small {
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            display: block;
            margin-top: 2px;
        }

        /* Animation for chips */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .suggestion-chip {
            animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        /* Hover effect highlight */
        .suggestion-chip::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), transparent);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            border-radius: 8px;
        }

        .suggestion-chip:hover::before {
            opacity: 1;
            animation: shimmer 1.5s ease-in-out infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* Typing indicator for autocomplete */
        .autocomplete-typing {
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 13px;
        }

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

        .typing-dot {
            width: 6px;
            height: 6px;
            background: #4ade80;
            border-radius: 50%;
            animation: typingDot 1.4s ease-in-out infinite;
        }

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

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

        @keyframes typingDot {

            0%,
            60%,
            100% {
                transform: translateY(0);
                opacity: 0.4;
            }

            30% {
                transform: translateY(-8px);
                opacity: 1;
            }
        }

        /* Searching Overlay */
        #searchingOverlay {
            display: none;
        }

        #searchingOverlay .typing-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
        }

        /* Autocomplete preview text */
        .autocomplete-item-preview {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            margin-top: 6px;
            padding-left: 28px;
            line-height: 1.4;
        }

        /* Command result cards hover */
        .command-result-card:hover>div {
            border-color: rgba(74, 222, 128, 0.5) !important;
            transform: translateY(-5px);
            box-shadow: 0 8px 24px rgba(74, 222, 128, 0.2);
        }

        /* Command item special style */
        .autocomplete-item.command-item {
            background: rgba(124, 58, 237, 0.05);
            border-left-color: #7c3aed;
        }

        .autocomplete-item.command-item:hover {
            background: rgba(124, 58, 237, 0.15);
            border-color: rgba(167, 139, 250, 0.3);
        }


        /* TOP MENU - DROPDOWN */
        .menu-dropdown {
            position: relative;
            display: inline-block;
        }

        .menu-dropdown-trigger {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            user-select: none;
            transition: all 0.2s;
        }

        .menu-dropdown-trigger i {
            font-size: 10px;
            transition: transform 0.3s ease;
        }

        .menu-dropdown:hover .menu-dropdown-trigger i {
            transform: rotate(180deg);
        }

        .menu-dropdown-content {
            position: absolute;
            top: calc(100% + 15px);
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            min-width: 220px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            overflow: hidden;
        }

        .menu-dropdown:hover .menu-dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        /* Arrow indicator */
        .menu-dropdown-content::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 50%;
            transform: translateX(-50%) rotate(45deg);
            width: 12px;
            height: 12px;
            background: rgba(0, 0, 0, 0.95);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        .menu-dropdown-content a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .menu-dropdown-content a:last-child {
            border-bottom: none;
        }

        .menu-dropdown-content a:hover {
            background: rgba(139, 69, 19, 0.15);
            color: #fff;
            padding-left: 25px;
        }

        .menu-dropdown-content a i {
            font-size: 14px;
            width: 20px;
            text-align: center;
            color: #8b4513;
            transition: all 0.2s;
        }

        .menu-dropdown-content a:hover i {
            transform: scale(1.2);
        }

        /* Animation for each item */
        .menu-dropdown:hover .menu-dropdown-content a {
            animation: slideInLeft 0.3s ease forwards;
            opacity: 0;
        }

        .menu-dropdown:hover .menu-dropdown-content a:nth-child(1) {
            animation-delay: 0.05s;
        }

        .menu-dropdown:hover .menu-dropdown-content a:nth-child(2) {
            animation-delay: 0.1s;
        }

        .menu-dropdown:hover .menu-dropdown-content a:nth-child(3) {
            animation-delay: 0.15s;
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @media screen and (max-width: 768px) {
            .top-menu {
                display: none;
                position: fixed;
                top: 60px;
                left: 0;
                right: 0;
                background: rgba(0, 0, 0, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                gap: 0;
                padding: 20px 0;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                z-index: 999;
            }

            .top-menu.active {
                display: flex;
            }

            .top-menu>a {
                padding: 15px 25px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            }

            /* Mobile Dropdown */
            .menu-dropdown {
                width: 100%;
            }

            .menu-dropdown-trigger {
                width: 100%;
                padding: 15px 25px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
                justify-content: space-between;
            }

            .menu-dropdown-content {
                position: static;
                transform: none;
                opacity: 1;
                visibility: visible;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
                box-shadow: none;
                border: none;
                border-radius: 0;
                background: rgba(139, 69, 19, 0.1);
            }

            .menu-dropdown-content::before {
                display: none;
            }

            .menu-dropdown.active .menu-dropdown-content {
                max-height: 300px;
            }

            .menu-dropdown-content a {
                padding-left: 45px;
            }

            .menu-dropdown-content a:hover {
                padding-left: 50px;
            }

            /* Hamburger Menu Button */
            .mobile-menu-toggle {
                display: block;
                background: transparent;
                border: none;
                color: white;
                font-size: 24px;
                cursor: pointer;
                padding: 10px;
            }
        }

        @media screen and (min-width: 769px) {
            .mobile-menu-toggle {
                display: none;
            }
        }

        #welcomeMascotScreen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.6s ease;
            overflow-y: auto;
            padding: 20px;
        }

        #welcomeMascotScreen.active {
            display: flex;
            opacity: 1;
        }

        /* Mascot Container - Now Side by Side with Form */
        .mascot-container {
            display: grid;
            grid-template-columns: 400px 1fr;
            gap: 50px;
            max-width: 1200px;
            width: 100%;
            padding: 40px;
            align-items: start;
            animation: mascotSlideIn 1s ease;
        }

        /* Left Side - Mascot Animation */
        .mascot-left {
            position: sticky;
            top: 20px;
        }

        .mascot-animation {
            width: 400px;
            height: 400px;
            margin-bottom: 20px;
        }

        .mascot-intro {
            text-align: center;
            color: white;
        }

        .mascot-intro h1 {
            font-size: 28px;
            font-weight: 700;
            margin: 0 0 10px 0;
            background: linear-gradient(135deg, #8b4513, #d4a574, #8b4513);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: titleGlow 3s ease-in-out infinite;
        }

        .mascot-intro p {
            font-size: 14px;
            opacity: 0.8;
            margin: 0;
            line-height: 1.6;
        }

        /* Right Side - Welcome Form */
        .mascot-right {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: formSlideIn 1s ease 0.3s both;
        }

        @keyframes formSlideIn {
            from {
                opacity: 0;
                transform: translateX(50px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .form-header {
            margin-bottom: 25px;
        }

        .form-header h2 {
            color: white;
            font-size: 24px;
            font-weight: 700;
            margin: 0 0 10px 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .form-header h2 i {
            color: #d4a574;
            font-size: 28px;
        }

        .form-header p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            margin: 0;
            line-height: 1.6;
        }

        /* Form Styles */
        .visitor-form {
            padding: 0;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            color: white;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .form-group label .required {
            color: #dc3545;
            margin-left: 4px;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            color: white;
            font-size: 14px;
            transition: all 0.3s;
            font-family: inherit;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: #8b4513;
            background: rgba(139, 69, 19, 0.1);
            box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
        }

        .form-input::placeholder,
        .form-textarea::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .form-select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            padding-right: 40px;
        }

        .form-select option {
            background: #1e1e2e;
            color: white;
        }

        .form-textarea {
            min-height: 80px;
            resize: vertical;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        #categoryOtherGroup {
            display: none;
            animation: slideDown 0.3s ease;
        }

        #categoryOtherGroup.active {
            display: block;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-submit-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #8b4513, #5c2e1f);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 10px;
        }

        .form-submit-btn:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(139, 69, 19, 0.6);
        }

        .form-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .form-error {
            background: rgba(220, 53, 69, 0.2);
            border: 1px solid rgba(220, 53, 69, 0.4);
            color: white;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px;
            display: none;
            font-size: 14px;
        }

        .form-error.active {
            display: flex;
            align-items: center;
            gap: 10px;
            animation: errorShake 0.5s ease;
        }

        @keyframes errorShake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-10px);
            }

            75% {
                transform: translateX(10px);
            }
        }

        .form-note {
            background: rgba(139, 69, 19, 0.15);
            border: 1px solid rgba(139, 69, 19, 0.3);
            padding: 12px;
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 13px;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .form-note i {
            color: #d4a574;
            margin-right: 8px;
        }

        /* Success Animation */
        .success-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .success-overlay.active {
            display: flex;
            animation: fadeIn 0.5s ease;
        }

        .success-content {
            text-align: center;
            color: white;
            animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .success-content i {
            font-size: 80px;
            color: #4ade80;
            margin-bottom: 20px;
            animation: checkMark 0.8s ease;
        }

        @keyframes checkMark {
            0% {
                transform: scale(0) rotate(-45deg);
                opacity: 0;
            }

            50% {
                transform: scale(1.2) rotate(0deg);
            }

            100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }

        .success-content h2 {
            font-size: 36px;
            margin: 0 0 15px 0;
        }

        .success-content p {
            font-size: 18px;
            opacity: 0.9;
        }

        @keyframes successPop {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(30px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* Responsive */
        @media screen and (max-width: 1024px) {
            .mascot-container {
                grid-template-columns: 1fr;
                gap: 30px;
                max-width: 600px;
            }

            .mascot-left {
                position: relative;
                top: 0;
            }

            .mascot-animation {
                width: 300px;
                height: 300px;
                margin: 0 auto 20px;
            }
        }

        @media screen and (max-width: 768px) {
            .mascot-container {
                padding: 20px;
            }

            .mascot-right {
                padding: 25px 20px;
            }

            .form-header h2 {
                font-size: 20px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .mascot-animation {
                width: 250px;
                height: 250px;
            }
        }

@keyframes mascotFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Flat Image Container */
#flatImageContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: auto;
  display: none;
  background: #1a1a1a;
  z-index: 1;
  transition: opacity 0.3s ease;
}

#flatImageContainer.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#flatImageWrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}

#flatImage {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Markers on flat image */
.flat-marker {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
  z-index: 10;
  border: 3px solid white;
}

.flat-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 11;
}

.flat-marker.info {
  background: #dc3545;
}

.flat-marker.nav {
  background: #28a745;
}

.flat-marker.back {
  background: #ffc107;
}

.flat-marker i {
  color: white;
  font-size: 24px;
  pointer-events: none;
}

/* Pulse animation for markers */
@keyframes markerPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.4);
  }
}

.flat-marker {
  animation: markerPulse 2s ease-in-out infinite;
}

.flat-marker:hover {
  animation: none;
}

/* Flat Image Container */
#flatImageContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: auto;
  display: none;
  background: #1a1a1a;
  z-index: 1;
  transition: opacity 0.3s ease;
}

#flatImageContainer.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#flatImageWrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}

#flatImage {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Markers on flat image */
.flat-marker {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
  z-index: 10;
  border: 3px solid white;
}

.flat-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 11;
}

.flat-marker.info {
  background: #dc3545;
}

.flat-marker.nav {
  background: #28a745;
}

.flat-marker.back {
  background: #ffc107;
}

.flat-marker i {
  color: white;
  font-size: 24px;
  pointer-events: none;
}

/* Pulse animation for markers */
@keyframes markerPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.4);
  }
}

.flat-marker {
  animation: markerPulse 2s ease-in-out infinite;
}

.flat-marker:hover {
  animation: none;
}

/* ============================================
   AI COMPANION CHAT
   ============================================ */
.ai-companion {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transform: translateY(600px);
  transition: transform 0.4s ease;
}

.ai-companion.active {
  display: flex;
  transform: translateY(0);
}

.companion-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.companion-header button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.companion-header button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.companion-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
}

.companion-message {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.companion-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.companion-message.user .message-avatar {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.message-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  max-width: 70%;
  word-wrap: break-word;
  line-height: 1.5;
}

.companion-message.user .message-content {
  background: rgba(74, 222, 128, 0.2);
}

.companion-input {
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.companion-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px 16px;
  color: white;
  font-size: 14px;
}

.companion-input input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.companion-input button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.companion-input button:hover {
  transform: scale(1.1);
}

.typing-indicator .message-content {
  padding: 8px 16px;
}

.recommendation-item {
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Marker highlight animation (untuk navigasi) */
.flat-marker.marker-highlight,
.marker-highlight {
    animation: markerPulse 1.5s ease-in-out 3;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 1) !important;
}

@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(220, 53, 69, 0);
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
        transform: translate(-50%, -50%) scale(1);
    }
}

