* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { height: 100%; font-family: 'Outfit', sans-serif; background: #0f172a; overflow: hidden; }
#map { width: 100vw; height: 100vh; z-index: 1; }

.side-panel {
  position: absolute; top: 20px; width: 320px;
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  color: white; z-index: 1000; display: flex; flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.left-panel { left: 20px; }
.right-panel { right: 20px; }
.panel-content { padding: 20px; display: flex; flex-direction: column; gap: 15px; }

.collapse-btn {
  background: rgba(0, 0, 0, 0.2); border: none; color: white; font-size: 14px;
  cursor: pointer; padding: 8px; text-align: center; width: 100%;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.collapse-btn:hover { background: rgba(255, 255, 255, 0.05); }
.collapsed .collapsible-body { display: none; }

.panel-header {
  display: flex; align-items: center; gap: 12px; padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.isro-logo-small { height: 42px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.header-text h2 { font-size: 16px; margin: 0; font-weight: 600; color: #f8fafc; }
.header-text .hackathon-tag { font-size: 11px; margin: 2px 0 0 0; color: #fb923c; font-weight: 500; }
.header-text .author-tag { font-size: 10px; margin: 2px 0 0 0; color: #94a3b8; }

.mic-btn {
  width: 100%; padding: 15px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1); color: white;
  font-size: 16px; font-weight: 600; cursor: pointer; display: flex;
  justify-content: center; align-items: center; gap: 10px; transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}
.mic-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); }
.mic-btn.listening { background: linear-gradient(135deg, #ef4444, #f43f5e); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.status-container { display: flex; justify-content: space-between; align-items: center; }
#status-tag { font-weight: 600; font-size: 13px; color: #10b981; }
#tts-toggle { background: transparent; border: none; cursor: pointer; font-size: 18px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3)); }

.transcript-box {
  background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; font-style: italic;
  font-size: 13px; text-align: center; color: #cbd5e1; border: 1px solid rgba(255,255,255,0.05);
}

.fallback-input { display: flex; gap: 8px; }
.fallback-input input {
  flex: 1; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2); color: white; outline: none; font-family: 'Outfit', sans-serif;
}
.fallback-input input::placeholder { color: #64748b; }
.fallback-input button {
  padding: 10px 15px; border-radius: 8px; border: none; background: #334155;
  color: white; cursor: pointer; font-weight: 500; font-family: 'Outfit', sans-serif; transition: background 0.2s;
}
.fallback-input button:hover { background: #475569; }

/* NEW: SAMPLE COMMANDS CSS */
.sample-commands { margin-top: 5px; }
.section-title { font-size: 11px; color: #94a3b8; margin-bottom: 8px; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmd-chip {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px; padding: 6px 10px; font-size: 11px; cursor: pointer;
  transition: all 0.2s; color: #cbd5e1;
}
.cmd-chip:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.5); color: white; }

#right-panel h3 { margin: 0; font-size: 16px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; }
#marker-list { list-style: none; overflow-y: auto; max-height: 250px; display: flex; flex-direction: column; gap: 10px; padding-right: 5px; }
#marker-list::-webkit-scrollbar { width: 4px; }
#marker-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.marker-item { background: rgba(255, 255, 255, 0.05); padding: 10px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255, 255, 255, 0.05); transition: background 0.2s; }
.marker-item:hover { background: rgba(255, 255, 255, 0.1); }
.marker-info { cursor: pointer; }
.marker-info h4 { margin: 0 0 4px 0; font-size: 14px; }
.marker-info p { margin: 0; font-size: 11px; color: #94a3b8; }
.delete-btn { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 4px; width: 26px; height: 26px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.delete-btn:hover { background: rgba(239, 68, 68, 0.8); color: white; }
.empty-state { font-size: 12px; color: #64748b; text-align: center; padding: 20px 0; }
.export-btn { margin-top: 5px; padding: 12px; background: #10b981; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.2s; font-family: 'Outfit', sans-serif; }
.export-btn:hover { background: #059669; }

.leaflet-control-zoom { border: none !important; margin: 20px !important; }
.leaflet-control-zoom a { background: rgba(15, 23, 42, 0.85) !important; color: white !important; border-color: rgba(255, 255, 255, 0.1) !important; }
.emoji-pin { text-align: center; font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

/* ==========================================
   MANUAL MARKER BUTTON & CROSSHAIR
========================================== */
.manual-marker-fab {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: all 0.2s;
}

.manual-marker-fab:hover {
  background: #2563eb;
  transform: translateX(-50%) scale(1.05);
}

.manual-marker-fab.active {
  background: #ef4444; /* Turns red when ready to click */
  animation: pulse 1.5s infinite;
}

.leaflet-container.crosshair-cursor-enabled {
  cursor: crosshair !important;
}

/* ==========================================
   MOBILE RESPONSIVENESS (PHONES & TABLETS)
========================================== */
@media (max-width: 768px) {
  .side-panel {
    width: 92%;
    left: 4%;
    right: 4%;
  }
  
  .left-panel { 
    top: 10px; 
  }
  
  .right-panel { 
    top: auto; 
    bottom: 90px; /* Snaps to bottom on phones */
  }

  .manual-marker-fab {
    bottom: 25px; /* Moves up slightly on phones */
  }
  
  .leaflet-control-layers {
    margin-bottom: 90px !important; /* Pushes native layer control up */
  }
}