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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    background: #1a1a1a;
}

#map {
    width: 100vw;
    height: 100vh;
    background: #1a1a1a;
}

/* Loading Indicator */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 2000;
    font-size: 16px;
    border: 1px solid rgba(123, 63, 242, 0.3);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    border: 1px solid rgba(123, 63, 242, 0.3);
}

.leaflet-popup-tip {
    background: rgba(30, 30, 30, 0.95);
}

.leaflet-popup-content {
    margin: 8px;
}

.popup-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
}

.popup-id {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.popup-price {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin: 8px 0;
    padding: 6px;
    background: rgba(123, 63, 242, 0.1);
    border-radius: 4px;
    text-align: center;
}

.popup-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.popup-links a {
    padding: 4px 10px;
    background: #7B3FF2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.2s;
}

.popup-links a:hover {
    background: #6329d6;
}

/* Leaflet Container Styling */
.leaflet-container {
    background: #1a1a1a;
}

.leaflet-tile-container img {
    image-rendering: -webkit-optimize-contrast;
}

.leaflet-tile-pane {
    opacity: 1;
}

.leaflet-tile {
    border: none !important;
}

/* Zoom Controls */
.leaflet-control-zoom {
    border: 1px solid rgba(123, 63, 242, 0.5) !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-zoom a {
    background: rgba(30, 30, 30, 0.95) !important;
    color: #fff !important;
    border: none !important;
    border-bottom: 1px solid rgba(123, 63, 242, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    transition: background 0.3s ease, border-color 0.3s ease !important;
    text-decoration: none !important;
}

.leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(123, 63, 242, 0.2) !important;
    color: #fff !important;
    border-color: rgba(123, 63, 242, 0.5) !important;
}

.leaflet-control-zoom a:focus {
    outline: none !important;
    background: rgba(123, 63, 242, 0.2) !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    font-size: 20px !important;
    font-weight: bold !important;
}

/* Reset View Button */
.leaflet-control-reset-view {
    background: rgba(30, 30, 30, 0.95) !important;
    color: #fff !important;
    border: none !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(123, 63, 242, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    transition: background 0.3s ease, border-color 0.3s ease !important;
    text-decoration: none !important;
}

.leaflet-control-reset-view:hover {
    background: rgba(123, 63, 242, 0.2) !important;
    color: #fff !important;
    border-color: rgba(123, 63, 242, 0.5) !important;
}

.leaflet-control-reset-view:focus {
    outline: none !important;
    background: rgba(123, 63, 242, 0.2) !important;
}

.leaflet-bar {
    box-shadow: none !important;
}

.leaflet-bar a {
    background-color: rgba(30, 30, 30, 0.95) !important;
    border-bottom-color: rgba(123, 63, 242, 0.3) !important;
}

.leaflet-bar a:hover {
    background-color: rgba(123, 63, 242, 0.2) !important;
}

.leaflet-touch .leaflet-bar a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}

/* Left Panel */
.left-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: 100vh;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(123, 63, 242, 0.3);
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.left-panel.collapsed {
    transform: translateX(-100%);
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(123, 63, 242, 0.3);
}

.panel-header h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.panel-content {
    padding: 20px;
    color: #ccc;
}

.panel-content p {
    margin: 0;
    font-size: 14px;
}

/* Category Selector */
.category-selector {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 15px;
    border-bottom: 1px solid rgba(123, 63, 242, 0.3);
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 63, 242, 0.5) rgba(30, 30, 30, 0.5);
}

.category-selector::-webkit-scrollbar {
    height: 6px;
}

.category-selector::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

.category-selector::-webkit-scrollbar-thumb {
    background: rgba(123, 63, 242, 0.5);
    border-radius: 3px;
}

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid rgba(123, 63, 242, 0.3);
    border-radius: 20px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(123, 63, 242, 0.2);
    border-color: rgba(123, 63, 242, 0.5);
    color: #fff;
}

.category-btn.active {
    background: rgba(123, 63, 242, 0.8);
    border-color: #7B3FF2;
    color: #fff;
}

/* Search Container */
.search-container {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid rgba(123, 63, 242, 0.3);
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid rgba(123, 63, 242, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(204, 204, 204, 0.5);
}

.search-input:focus {
    border-color: rgba(123, 63, 242, 0.6);
    background: rgba(60, 60, 60, 0.9);
    box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(123, 63, 242, 0.6);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: rgba(123, 63, 242, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.no-results {
    padding: 30px 15px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* Menu Items */
.menu-items {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 63, 242, 0.5) rgba(30, 30, 30, 0.5);
}

.menu-items::-webkit-scrollbar {
    width: 6px;
}

.menu-items::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

.menu-items::-webkit-scrollbar-thumb {
    background: rgba(123, 63, 242, 0.5);
    border-radius: 3px;
}

.menu-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid rgba(123, 63, 242, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(123, 63, 242, 0.4);
}

.menu-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.menu-item-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 5px 0;
    word-wrap: break-word;
}

.menu-item-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-btn {
    width: 28px;
    height: 28px;
    background: rgba(123, 63, 242, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.counter-btn:hover {
    background: rgba(123, 63, 242, 0.8);
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Order Summary */
.order-summary {
    border-top: 1px solid rgba(123, 63, 242, 0.3);
    background: rgba(20, 20, 20, 0.8);
}

.order-header {
    padding: 15px;
    border-bottom: 1px solid rgba(123, 63, 242, 0.2);
}

.order-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.order-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 63, 242, 0.5) rgba(30, 30, 30, 0.5);
}

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

.order-list::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

.order-list::-webkit-scrollbar-thumb {
    background: rgba(123, 63, 242, 0.5);
    border-radius: 3px;
}

.empty-order {
    color: #888;
    font-size: 13px;
    text-align: center;
    margin: 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #ccc;
    font-size: 13px;
    border-bottom: 1px solid rgba(123, 63, 242, 0.1);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    flex: 1;
    margin-right: 10px;
}

.order-item-quantity {
    color: #7B3FF2;
    font-weight: 600;
}

.order-pricing {
    padding: 15px;
    background: rgba(30, 30, 30, 0.5);
    border-top: 1px solid rgba(123, 63, 242, 0.3);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #ccc;
    font-size: 13px;
}

.price-row span:last-child {
    font-weight: 600;
    color: #fff;
}

/* Color Toggle */
.color-toggle-container {
    padding: 15px;
    border-top: 1px solid rgba(123, 63, 242, 0.2);
}

/* Toggles Section */
.toggles-section {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding: 20px 15px;
    border-top: 1px solid rgba(123, 63, 242, 0.2);
}

.toggle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.toggle-label-text {
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(100, 100, 100, 0.5);
    border-radius: 12px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: rgba(123, 63, 242, 0.8);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-text {
    color: #ccc;
    font-size: 13px;
    user-select: none;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 15px;
    border-top: 1px solid rgba(123, 63, 242, 0.2);
    background: rgba(20, 20, 20, 0.5);
}

.disclaimer-text {
    color: #999;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
    padding: 8px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid rgba(255, 193, 7, 0.5);
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(123, 63, 242, 0.15);
    border: 1px solid rgba(123, 63, 242, 0.3);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.project-link:hover {
    background: rgba(123, 63, 242, 0.3);
    border-color: rgba(123, 63, 242, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 63, 242, 0.3);
}

.link-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
}

.github-link:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.youtube-link:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Panel Toggle Button */
.panel-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(123, 63, 242, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.panel-toggle.panel-open {
    left: 400px;
}

.panel-toggle:hover {
    background: rgba(123, 63, 242, 0.2);
    border-color: rgba(123, 63, 242, 0.8);
    box-shadow: 0 4px 15px rgba(123, 63, 242, 0.3);
}

.toggle-icon {
    font-size: 24px;
    line-height: 1;
    display: block;
    transition: transform 0.3s ease;
}

.panel-toggle.panel-open .toggle-icon {
    transform: rotate(90deg);
}

.leaflet-control-attribution {
    display: none !important;
}
