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

.light-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
    margin-left: -7px;
    margin-top: -7px;
}

.light-dot:hover {
    transform: scale(1.4);
    z-index: 100;
}

.light-dot.selected {
    transform: scale(1.6);
    z-index: 101;
    border-width: 3px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#map {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.callout {
    max-width: 300px;
    padding: 8px;
}

.callout h3 {
    margin-bottom: 8px;
    font-size: 14px;
}

.callout p {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
}

.callout .characteristic {
    font-weight: bold;
    color: #333;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

#status {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
}

#panel {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
}

#panel.open {
    display: block;
}

#panel-header {
    padding: 16px;
    background: #16213e;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#panel-header h2 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

#panel-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-left: 8px;
}

#panel-close:hover {
    color: white;
}

#light-display {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f0f1a;
}

#light-bulb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #333;
    box-shadow: 0 0 0 rgba(255,255,255,0);
    transition: box-shadow 0.05s;
}

#light-bulb.on {
    box-shadow: 0 0 60px 20px var(--light-color, white);
}

#panel-info {
    padding: 16px;
    color: #ccc;
    font-size: 13px;
}

#panel-info p {
    margin: 8px 0;
}

#panel-info .label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

#panel-char {
    font-family: monospace;
    font-size: 18px;
    color: white;
    margin: 4px 0 16px 0;
}

#header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 300px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

#header p {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

#header .disclaimer {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 12px;
}

#header .disclaimer a {
    color: #3498db;
    text-decoration: none;
}

#header .disclaimer a:hover {
    text-decoration: underline;
}

#search {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    outline: none;
}

#search:focus {
    border-color: #3498db;
    background: white;
}

#search-results {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
}

#search-results.open {
    display: block;
}

.search-result {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: #f5f5f5;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
}

.search-result-char {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
