:root {
  --primary: #1e3c72;
  --primary-light: #2a5298;
  --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --success: #10b981;
  --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --warning: #f59e0b;
  --warning-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --danger: #ef4444;
  --danger-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --secondary: #64748b;
  --secondary-gradient: linear-gradient(135deg, #475569 0%, #64748b 100%);
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body { 
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
  background: var(--bg); 
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  background: rgba(30, 60, 114, 0.95);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand { 
  font-weight: 800; 
  font-size: 1.25rem; 
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 1.25rem; 
}

.nav-links a { 
  color: rgba(255, 255, 255, 0.8); 
  text-decoration: none; 
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { 
  color: #fff; 
  background: rgba(255, 255, 255, 0.1);
}

.nav-user { 
  color: rgba(255, 255, 255, 0.6); 
  font-size: 0.85rem; 
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
}

.btn-logout { 
  background: rgba(239, 68, 68, 0.2) !important; 
  color: #fca5a5 !important;
  font-weight: 600 !important;
}
.btn-logout:hover {
  background: var(--danger) !important;
  color: #fff !important;
}

/* Layout */
.container { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 2rem; 
}

h1 { 
  font-size: 2rem; 
  font-weight: 800; 
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem; 
  color: var(--text);
}

h2 { 
  font-size: 1.4rem; 
  font-weight: 700; 
  letter-spacing: -0.02em;
  margin-bottom: 1rem; 
  color: var(--text);
}

h3 { 
  font-size: 1.1rem; 
  font-weight: 600; 
  letter-spacing: -0.01em;
}

.page-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 2rem; 
}
.page-header h1 { 
  margin-bottom: 0; 
}
.header-actions { 
  display: flex; 
  gap: 0.75rem; 
}

/* Buttons */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: 0.6rem 1.25rem; 
  border-radius: var(--radius-md); 
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem; 
  font-weight: 600; 
  text-decoration: none; 
  transition: var(--transition);
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary { 
  background: var(--primary-gradient); 
  color: #fff; 
}
.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.25);
  opacity: 0.95;
}

.btn-success { 
  background: var(--success-gradient); 
  color: #fff; 
}
.btn-success:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  opacity: 0.95;
}

.btn-warning { 
  background: var(--warning-gradient); 
  color: #fff; 
}
.btn-warning:hover {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  opacity: 0.95;
}

.btn-danger { 
  background: var(--danger-gradient); 
  color: #fff; 
}
.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  opacity: 0.95;
}

.btn-secondary { 
  background: #fff; 
  color: var(--secondary); 
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-sm { 
  padding: 0.4rem 0.85rem; 
  font-size: 0.8rem; 
  border-radius: var(--radius-sm);
}

.btn-lg { 
  padding: 0.85rem 1.75rem; 
  font-size: 1rem; 
  border-radius: var(--radius-md);
}

.btn-full { 
  width: 100%; 
}

/* Cards */
.card { 
  background: var(--card-bg); 
  border: 1px solid var(--border); 
  border-radius: var(--radius-md); 
  padding: 1.5rem; 
  margin-bottom: 1.5rem; 
  box-shadow: var(--shadow-sm);
}

.hidden { 
  display: none !important; 
}

/* Form Styles */
.form-group { 
  display: flex; 
  flex-direction: column; 
  gap: 0.4rem; 
  flex: 1; 
  margin-bottom: 1rem;
}

.form-group label { 
  font-size: 0.8rem; 
  font-weight: 700; 
  color: var(--text-muted); 
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

.form-row { 
  display: flex; 
  gap: 1.25rem; 
  margin-bottom: 0.5rem; 
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
  margin-bottom: 1.5rem;
}

.table { 
  width: 100%; 
  border-collapse: collapse; 
  text-align: left;
}

.table th { 
  background: #f1f5f9; 
  padding: 0.85rem 1.25rem; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  color: var(--text-muted); 
  border-bottom: 1px solid var(--border);
}

.table td { 
  padding: 1rem 1.25rem; 
  border-bottom: 1px solid var(--border); 
  font-size: 0.9rem; 
  vertical-align: middle; 
  color: var(--text);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr {
  transition: var(--transition);
}

.table tr:hover {
  background: #f8fafc;
}

.table tr.inactive td { 
  opacity: 0.45; 
}

/* Badges */
.badge { 
  display: inline-flex; 
  align-items: center;
  padding: 0.25rem 0.6rem; 
  border-radius: 50px; 
  font-size: 0.75rem; 
  font-weight: 700; 
  background: #f1f5f9; 
  color: var(--text-muted); 
}

.badge-admin { 
  background: #dbeafe; 
  color: #1e40af; 
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Admin Dashboard Cards */
.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  margin-bottom: 2rem; 
}

.stat-card { 
  background: var(--card-bg); 
  border-radius: var(--radius-md); 
  padding: 1.5rem; 
  text-align: left; 
  box-shadow: var(--shadow-sm); 
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}

.stat-number { 
  font-size: 2.25rem; 
  font-weight: 800; 
  color: var(--text); 
  line-height: 1.2;
}

.stat-label { 
  font-size: 0.8rem; 
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted); 
  margin-top: 0.25rem; 
}

.section-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 2rem; 
  margin-bottom: 2rem; 
}

.orgs-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; 
}

.org-card { 
  background: var(--card-bg); 
  border-radius: var(--radius-md); 
  padding: 1.5rem; 
  border: 1px solid var(--border); 
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.org-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.org-card h3 { 
  color: var(--primary-light); 
  margin-bottom: 0.25rem;
}
.org-card p { 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  margin-top: 0.25rem; 
}

/* Zones */
.zone-cards { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; 
}

.zone-card { 
  background: var(--card-bg); 
  border-radius: var(--radius-md); 
  padding: 1.25rem; 
  border: 1px solid var(--border); 
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.zone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.zone-name { 
  font-weight: 700; 
  font-size: 1.05rem; 
  margin-bottom: 0.25rem; 
  display: flex;
  align-items: center;
}

.zone-count { 
  font-size: 0.8rem; 
  color: var(--text-muted); 
  margin-bottom: 0.75rem; 
}

.zone-dot { 
  display: inline-block; 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  margin-right: 8px; 
}

/* Progress bar */
.progress-bar { 
  background: #f1f5f9; 
  border-radius: 100px; 
  height: 8px; 
  width: 100%; 
  overflow: hidden; 
  margin-bottom: 0.5rem;
}
.progress-fill { 
  background: var(--primary-gradient); 
  height: 100%; 
  border-radius: 100px; 
  transition: width 0.5s ease-out;
}

/* Alerts */
.alert { 
  padding: 0.9rem 1.25rem; 
  border-radius: var(--radius-md); 
  margin-bottom: 1.5rem; 
  font-size: 0.9rem; 
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-error { 
  background: #fef2f2; 
  color: #991b1b; 
  border: 1px solid #fecaca; 
}
.alert-info { 
  background: #eff6ff; 
  color: #1e40af; 
  border: 1px solid #bfdbfe; 
}

.empty { 
  color: var(--text-muted); 
  font-size: 0.95rem; 
  padding: 2rem 0; 
  text-align: center;
}

/* Modern Glassmorphic Modals */
.modal {
  position: fixed; 
  inset: 0; 
  background: rgba(15, 23, 42, 0.4); 
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; 
  align-items: center; 
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal.hidden { 
  display: none; 
}

.modal-card {
  background: #ffffff; 
  border-radius: var(--radius-lg); 
  padding: 2rem;
  width: 90%; 
  max-width: 480px; 
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-card h3 { 
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.modal-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

#modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

/* Login Page Styling */
.login-page { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  min-height: 100vh; 
  background: var(--primary-gradient); 
}

.login-card { 
  background: #fff; 
  border-radius: var(--radius-lg); 
  padding: 3rem 2.5rem; 
  width: 90%; 
  max-width: 420px; 
  box-shadow: var(--shadow-lg); 
}

.login-logo { 
  font-size: 3.5rem; 
  text-align: center; 
  margin-bottom: 1rem; 
  animation: bounce 2s infinite;
}

.login-card h1 { 
  text-align: center; 
  font-size: 1.75rem; 
  margin-bottom: 0.25rem; 
  color: var(--text);
}

.login-subtitle { 
  text-align: center; 
  color: var(--text-muted); 
  font-size: 0.95rem; 
  margin-bottom: 2rem; 
  font-weight: 500;
}

.login-card .form-group { 
  margin-bottom: 1.25rem; 
}

/* Field / Driver Interface */
.field-body { 
  background: #0f172a; 
  color: #f8fafc; 
  overflow-x: hidden; 
}

.field-header {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  background: rgba(30, 60, 114, 0.9); 
  backdrop-filter: blur(10px);
  color: #fff; 
  padding: 0.85rem 1.25rem; 
  position: sticky; 
  top: 0; 
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.field-title { 
  font-weight: 800; 
  font-size: 1rem; 
  letter-spacing: -0.02em;
}

.field-team { 
  font-size: 0.85rem; 
  opacity: 0.9; 
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
}

.field-logout { 
  color: rgba(255, 255, 255, 0.7); 
  font-size: 0.85rem; 
  text-decoration: none; 
  font-weight: 600;
  transition: var(--transition);
}
.field-logout:hover {
  color: #fecaca;
}

.field-stats {
  background: #1e293b; 
  color: #94a3b8; 
  padding: 0.75rem 1.25rem;
  display: flex; 
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px solid #334155;
  font-weight: 600;
}
.field-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.field-stats strong {
  color: #f8fafc;
}

.field-empty { 
  color: #94a3b8; 
  text-align: center; 
  padding: 5rem 2rem; 
  font-size: 1.15rem; 
  font-weight: 500;
}

/* Mobile-First Field Modals */
.field-modal {
  position: fixed; 
  inset: 0; 
  background: rgba(15, 23, 42, 0.75); 
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; 
  align-items: flex-end; 
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

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

.field-modal-card {
  background: #1e293b; 
  border-radius: 24px 24px 0 0; 
  padding: 2rem 1.5rem;
  width: 100%; 
  max-width: 500px; 
  color: #f8fafc;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUpMobile 0.25s cubic-bezier(0.32, 0.94, 0.6, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field-modal-address { 
  font-size: 1.35rem; 
  font-weight: 800; 
  letter-spacing: -0.02em;
  color: #fff;
}

.field-modal-customer { 
  font-size: 0.95rem; 
  color: #94a3b8; 
  font-weight: 500;
}

.field-modal-notes { 
  font-size: 0.9rem; 
  color: #f59e0b; 
  background: rgba(245, 158, 11, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--warning);
  margin: 0.25rem 0;
  display: block;
}
.field-modal-notes:empty {
  display: none;
}

.done-label { 
  color: var(--success); 
  font-weight: 700; 
  text-align: center; 
  padding: 0.85rem; 
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

/* Map Header elements */
.map-page-header { 
  display: flex; 
  align-items: center; 
  gap: 2rem; 
  margin-bottom: 1.25rem; 
  flex-wrap: wrap; 
}
.map-page-header h1 { 
  margin-bottom: 0; 
}

.map-legend { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  font-size: 0.85rem; 
  font-weight: 600;
  color: var(--text-muted);
}
.legend-dot { 
  display: inline-block; 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
}

.map-stats { 
  display: flex; 
  gap: 1.5rem; 
  font-size: 0.9rem; 
  margin-left: auto; 
  font-weight: 600;
  background: var(--card-bg);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.map-stats span {
  color: var(--text-muted);
}
.map-stats strong {
  color: var(--text);
}

/* Map wrapper styling */
#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideUpMobile {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.25rem;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .section-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  .form-row { 
    flex-direction: column; 
    gap: 0;
  }
  .nav-links a { 
    font-size: 0.8rem; 
    padding: 0.4rem 0.6rem;
  }
  .nav-brand {
    font-size: 1.05rem;
  }
  .stats-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem;
  }
  .map-stats {
    margin-left: 0;
    width: 100%;
    justify-content: space-around;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10000;
}
.toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--primary-light);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-success {
  border-left-color: var(--success);
}
.toast-error {
  border-left-color: var(--danger);
}
.toast-info {
  border-left-color: var(--primary-light);
}

/* Map Layout with Sidebar */
.map-layout {
  display: flex;
  gap: 1.5rem;
  height: calc(100vh - 180px);
  margin-top: 1rem;
}
.map-main {
  flex: 1;
  position: relative;
  min-height: 0;
  height: 100%;
}
.map-sidebar {
  width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-header input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}
.sidebar-header input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}
.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
}
.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover {
  color: var(--text);
  background: rgba(0,0,0,0.02);
}
.tab-btn.active {
  color: var(--primary-light);
  background: var(--card-bg);
  border-bottom: 2px solid var(--primary-light);
}
.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.sidebar-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.sidebar-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sidebar-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.sidebar-item-actions .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  flex: 1;
}

/* Placement Banner Overlay on Map */
.placement-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}
.placement-banner span {
  font-weight: 500;
}
.placement-banner button {
  box-shadow: none;
}

@keyframes slideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Map Placement crosshair cursor */
.placement-mode {
  cursor: crosshair !important;
}

@media (max-width: 768px) {
  .map-layout {
    flex-direction: column;
    height: auto;
  }
  .map-main {
    height: 400px;
  }
  .map-sidebar {
    width: 100%;
    height: 350px;
  }
}

