/* Main Layout - 3 Columns */
.map-settings-layout {
  display: flex;
  height: 100vh;
  background: #0f111a;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark Left Sidebar */
.left-sidebar {
  width: 320px;
  background: #1a1d29;
  border-right: 1px solid #2a2d3a;
  display: flex;
  flex-direction: column;
  /* allow the left sidebar to scroll when its content exceeds the viewport */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  /* ensure the sidebar is constrained to viewport height so internal flex children can size correctly */
  max-height: 100vh;
  min-height: 0;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #2a2d3a;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* keep header stable height */
  flex: 0 0 auto;
}

.sidebar-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
  font-family: 'Cairo', sans-serif;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn-load-default {
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-load-default:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.btn-create-new {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-create-new:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-create-new svg {
  transition: transform 0.2s ease;
}

.btn-create-new:hover svg {
  transform: rotate(90deg);
}

/* Secondary button styles (kept consistent with Cesium global theme) */
.btn-secondary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}
.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.18);
}
.btn-edit-secondary { background: linear-gradient(135deg,#3b82f6,#2563eb); color:#fff }
.btn-delete-secondary { background: linear-gradient(135deg,#ef4444,#dc2626); color:#fff }

/* Create Form */
.create-form-container {
  background: #242837;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  padding: 16px;
  margin: 16px;
  animation: slideDown 0.3s ease;
  /* constrain tall forms and allow internal scrolling so the maps list remains reachable */
  max-height: calc(40vh);
  overflow-y: auto;
  flex: 0 0 auto;
}

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

.create-form-container h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-input {
  width: 100%;
  padding: 10px 12px;
  background: #1a1d29;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dark-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Country Dropdown */
.country-dropdown-wrapper {
  position: relative;
}

.country-search {
  cursor: pointer;
}

.country-dropdown {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.country-dropdown::-webkit-scrollbar {
  width: 6px;
}

.country-dropdown::-webkit-scrollbar-track {
  background: #242837;
  border-radius: 4px;
}

.country-dropdown::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 4px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
  background: #34384a;
}

.country-option {
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.country-option:hover {
  background: rgba(0, 255, 255, 0.1);
  color: #00FFFF;
}

.country-dropdown-empty {
  padding: 12px;
  text-align: center;
}

.country-dropdown-empty p {
  color: rgba(255, 255, 255, 0.5);
}

.color-picker {
  width: 100%;
  height: 40px;
  padding: 4px;
  background: #1a1d29;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-picker:hover {
  border-color: #10b981;
}

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

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-cancel {
  flex: 1;
  padding: 10px;
  background: #2a2d3a;
  color: #9ca3af;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #34384a;
  color: #ffffff;
}

.btn-save {
  flex: 1;
  padding: 10px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-save:hover {
  background: #059669;
}

/* Search Container */
.search-container {
  padding: 16px;
  border-bottom: 1px solid #2a2d3a;
  position: relative;
  flex: 0 0 auto;
}

.search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: #242837;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
  border-color: #10b981;
  background: #1a1d29;
}

/* Drawing Controls */
.drawing-controls {
  padding: 16px;
  border-bottom: 1px solid #2a2d3a;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.btn-draw-point,
.btn-draw-zone,
.btn-finish-zone {
  width: 100%;
  padding: 10px 16px;
  background: #242837;
  color: #ffffff;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-draw-point:hover:not(:disabled) {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.btn-draw-zone:hover:not(:disabled) {
  background: #8b5cf6;
  border-color: #8b5cf6;
  transform: translateY(-1px);
}

.btn-finish-zone {
  background: #10b981;
  border-color: #10b981;
}

.btn-finish-zone:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

.btn-draw-point:disabled,
.btn-draw-zone:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-draw-point svg,
.btn-draw-zone svg,
.btn-finish-zone svg {
  flex-shrink: 0;
}

/* Maps List Container */
.maps-list-container {
  /* maps list should take remaining vertical space and scroll internally */
  flex: 1 1 auto;
  min-height: 0; /* allows flex child to shrink correctly in Chrome/Firefox */
  overflow-y: auto;
  padding: 16px;
}

.maps-list-container::-webkit-scrollbar {
  width: 8px;
}

.maps-list-container::-webkit-scrollbar-track {
  background: #1a1d29;
}

.maps-list-container::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 4px;
}

/* --- Sidebar styles copied/adapted from cesium-map.component.css to match look/behavior --- */
.info-panel,
.right-sidebar {
  width: 360px;
  background: linear-gradient(180deg, #1e2836 0%, #2d3748 100%);
  border-left: 1px solid rgba(53, 124, 165, 0.3);
  color: #ffffff;
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 8px;
  animation: slideInRight 0.45s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.right-sidebar .filter-tabs,
.info-panel .filter-tabs {
  display: flex;
  background: rgba(26, 29, 41, 0.8);
  border-bottom: 1px solid rgba(0, 217, 255, 0.08);
  padding: 8px;
  gap: 8px;
  border-radius: 12px;
  margin: 0 0 12px 0;
}

.right-sidebar .filter-tab,
.info-panel .filter-tab {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.right-sidebar .filter-tab.active,
.info-panel .filter-tab.active {
  background: linear-gradient(135deg,#00D9FF 0%,#0099CC 100%);
  color: #000000;
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,217,255,0.18);
}

.right-sidebar .locations-list,
.info-panel .locations-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-sidebar .location-card,
.info-panel .location-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(15,23,42,0.6);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0,217,255,0.06);
}

.right-sidebar .location-card:hover,
.info-panel .location-card:hover {
  transform: translateX(6px);
  background: rgba(45,55,72,0.9);
  border-color: rgba(0,217,255,0.12);
}

.right-sidebar .location-thumbnail,
.info-panel .location-thumbnail {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
}

.right-sidebar .location-info h4,
.info-panel .location-info h4 {
  margin: 0;
  font-size: 15px;
  color: #ffffff;
}

.no-locations { color: #cbd5e1; }

/* Modern sector card styles */
.sector-entry { margin-bottom: 16px; }
.sector-card-modern {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, rgba(15,23,42,0.6), rgba(20,26,40,0.6));
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}
.sector-thumb { position: relative; width:72px; height:72px; flex-shrink:0; border-radius:8px; overflow:hidden; cursor:pointer; }
.sector-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.btn-edit-image { position:absolute; right:6px; bottom:6px; background: rgba(0,0,0,0.5); color:#fff; border:none; padding:4px 6px; border-radius:6px; font-size:12px; cursor:pointer; }
.sector-body h4 { margin:0; font-size:15px; color:#ffffff; font-weight:800; }
.sector-count { margin:6px 0 0 0; font-size:13px; color: rgba(255,255,255,0.85); font-weight:700; }
.sector-desc { margin:6px 0 0 0; color: rgba(255,255,255,0.8); font-size:13px; }
.project-list-item { display:flex; align-items:center; gap:10px; padding:8px 10px; margin-left:86px; cursor:pointer; border-radius:8px; transition:all 0.12s; }
.project-list-item:hover { background: rgba(255,255,255,0.02); transform: translateX(6px); }
.project-dot { width:8px; height:8px; background:#10b981; border-radius:50%; flex-shrink:0; }
.project-meta .project-name { color:#ffffff; font-weight:800; font-size:14px; }
.project-meta .project-sub { color: rgba(255,255,255,0.65); font-size:12px; }

/* Fixed action buttons at bottom of right sidebar (for location edit/delete) */
.location-actions {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(17,24,39,0.95), rgba(15,23,42,0.9));
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.location-actions .btn-edit-location,
.location-actions .btn-delete-location {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  color: #fff;
  font-weight: 800;
}

.location-actions .btn-edit-location { background: linear-gradient(135deg,#10b981,#059669); }
.location-actions .btn-delete-location { background: linear-gradient(135deg,#ef4444,#dc2626); }

/* Reduce cyan accents; keep modern teal accent */
.filter-tab.active { background: linear-gradient(135deg,#0ea5a4 0%,#0b948f 100%); color:#000; }


.maps-list-container::-webkit-scrollbar-thumb:hover {
  background: #34384a;
}

/* Map Item */
.map-item {
  background: #242837;
  border: 1px solid #2a2d3a;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.map-item:hover {
  background: #2a2d3a;
  border-color: #10b981;
  transform: translateX(2px);
}

.map-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.map-item-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.color-indicator {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #1a1d29;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.map-item-details {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-badge {
  font-size: 11px;
  color: #9ca3af;
  background: #1a1d29;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.map-item-actions {
  display: flex;
  gap: 6px;
}

.btn-load,
.btn-set-active,
.btn-delete-icon {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-load {
  background: #3b82f6;
  color: #ffffff;
  flex: 1;
}

.btn-load:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-set-active {
  background: #10b981;
  color: #ffffff;
  flex: 1;
}

.btn-set-active:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-delete-icon {
  background: #ef4444;
  color: #ffffff;
  padding: 6px;
}

.btn-delete-icon:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #d1d5db;
}

.empty-icon {
  color: #9ca3af;
  margin-bottom: 12px;
  opacity: 0.7;
}

.empty-state p {
  font-size: 14px;
  color: #d1d5db;
  margin: 0;
}

/* Center - Map Viewer */
.map-viewer {
  flex: 1;
  position: relative;
  background: #000000;
}

#mapSettingsCesiumContainer {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(26, 29, 41, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #2a2d3a;
  z-index: 1000;
}

.map-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Right Sidebar - Location Details */
.right-sidebar {
  width: 350px;
  background: #1a1d29;
  border-left: 1px solid #2a2d3a;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cairo', sans-serif;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.right-sidebar::-webkit-scrollbar {
  width: 8px;
}

.right-sidebar::-webkit-scrollbar-track {
  background: #1a1d29;
}

.right-sidebar::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 4px;
}

/* Ensure the settings sidebar is scrollable and constrained to viewport */
.info-panel {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding-bottom: 20px;
}

.btn-close-sidebar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 8px;
  border-radius: 6px;
}

/* Button placed near the close control in the right info panel to jump to Map Settings -> Sidebar Customization */
.btn-customize-sidebar {
  position: absolute;
  top: 16px;
  right: 64px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.12);
  color: #10b981;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.btn-customize-sidebar svg { opacity: 0.95; }

.btn-close-sidebar:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

/* Reuse Cesium map sidebar button styles for visual parity */
.btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 2px solid #00d08f;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 208, 143, 0.25);
}

.hierarchy-top-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #00d08f;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hierarchy-top-arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 208, 143, 0.25);
}

.location-hero {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.location-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure project / district / governorate images shown in any sidebar
   always span the full sidebar width and preserve aspect ratio. */
.right-sidebar .location-hero img,
.info-panel .location-hero img,
.left-sidebar .location-hero img,
.maps-list-container .map-item img,
.left-sidebar .map-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* If a hero container is used in the left or right sidebar, ensure its
   height stays sensible while the image fills it. */
.right-sidebar .location-hero,
.info-panel .location-hero,
.left-sidebar .location-hero {
  width: 100%;
  overflow: hidden;
}

.location-details {
  padding: 28px;
  font-family: 'Cairo', sans-serif;
}

.location-details h3 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.location-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #242837;
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.meta-badge svg {
  color: #10b981;
}

.location-content {
  margin-top: 16px;
}

.content-item {
  margin-bottom: 12px;
}

.content-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.content-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.content-link:hover {
  color: #2563eb;
  gap: 8px;
}

.no-content {
  text-align: center;
  padding: 40px 20px;
  color: #d1d5db;
}

.no-content p {
  font-size: 14px;
  color: #d1d5db;
  margin: 0;
}

/* Location Actions */
.location-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #2a2d3a;
  display: flex;
  gap: 8px;
}

.btn-edit-location,
.btn-delete-location {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-edit-location {
  background: #3b82f6;
  color: #ffffff;
}

.btn-edit-location:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-delete-location {
  background: #ef4444;
  color: #ffffff;
}

.btn-delete-location:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Content Image */
.content-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 8px 0;
}

/* Explore More Navigation */
.explore-navigation {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #2a2d3a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.explore-text {
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-arrow {
  width: 40px;
  height: 40px;
  background: #242837;
  border: 1px solid #2a2d3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-arrow:hover:not(:disabled) {
  background: #10b981;
  border-color: #10b981;
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-arrow svg {
  color: #ffffff;
}

/* Locations List View Styles */
.locations-list-view {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* Filter Tabs - Modern Design */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(26, 29, 41, 0.8);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.filter-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Cairo', sans-serif;
  position: relative;
  overflow: hidden;
}

.filter-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-tab:hover::before {
  opacity: 1;
}

.filter-tab:hover {
  color: #00D9FF;
  transform: translateY(-2px);
}

.filter-tab.active {
  background: linear-gradient(135deg, #00D9FF 0%, #0099CC 100%);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-2px);
}

.filter-tab.active::before {
  opacity: 0;
}

/* List Section Titles - Modern Typography */
.list-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #00D9FF;
  margin: 24px 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 217, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: 'Cairo', sans-serif;
  position: relative;
}

.list-section-title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #00D9FF 0%, transparent 100%);
}

/* District Cards */
.districts-list {
  margin-bottom: 24px;
}

.district-card {
  background: rgba(42, 45, 58, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.district-card:hover {
  background: rgba(0, 255, 255, 0.15);
  border-color: #00FFFF;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.district-card-content {
  flex: 1;
}

.district-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.district-count {
  font-size: 12px;
  color: #00FFFF;
  font-weight: 500;
}

.district-icon {
  color: #00FFFF;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.district-card:hover .district-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Governorate Cards */
.governorates-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.governorate-card {
  background: rgba(42, 45, 58, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.governorate-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
  border-color: #00FFFF;
}

.governorate-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.governorate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.governorate-card:hover .governorate-image img {
  transform: scale(1.1);
}

.governorate-name {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #00FFFF;
  background: rgba(0, 0, 0, 0.5);
}

/* Back to List Button */
.btn-back-to-list {
  width: 100%;
  padding: 12px;
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid #00FFFF;
  color: #00FFFF;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.btn-back-to-list:hover {
  background: rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1400px) {
  .left-sidebar {
    width: 280px;
  }

  .right-sidebar {
    width: 320px;
  }

  .governorates-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .left-sidebar {
    width: 260px;
  }

  .right-sidebar {
    width: 300px;
  }

  .governorates-list {
    grid-template-columns: 1fr;
  }
}

/* Match CesiumMap sidebar visual language (dark, clean, minimal cyan) */
.map-settings-layout .info-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000000;
}

.map-settings-layout .locations-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  background: #000000;
}

.map-settings-layout .locations-view .filter-tabs {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.map-settings-layout .locations-view .locations-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.map-settings-layout .locations-view .location-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-settings-layout .locations-view .location-card:hover {
  background: #252525;
  border-color: rgba(16, 185, 129, 0.3);
}

.map-settings-layout .secondary-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 24px;
}

.map-settings-layout .btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.map-settings-layout .btn-edit-secondary {
  border-color: rgba(16, 185, 129, 0.4);
  color: rgba(16, 185, 129, 0.9);
  background: transparent;
}

.map-settings-layout .btn-edit-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.map-settings-layout .btn-delete-secondary {
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(239, 68, 68, 0.9);
  background: transparent;
}

.map-settings-layout .btn-delete-secondary:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}
/* ── INFO PANEL REDESIGN ── */
.info-panel {
  display: flex;
  flex-direction: column;
  width: 320px;
  min-width: 280px;
  max-width: 340px;
  background: #0d1117;
  border-left: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}

.info-panel-header {
  flex-shrink: 0;
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  z-index: 10;
}

.info-panel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.info-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}

.info-panel-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.info-panel-scroll-body::-webkit-scrollbar {
  width: 4px;
}
.info-panel-scroll-body::-webkit-scrollbar-track {
  background: transparent;
}
.info-panel-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.info-panel-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0d1117;
}

/* ── FILTER TABS ── */
.filter-tabs {
  display: flex;
  padding: 0 12px 10px;
  gap: 4px;
}

.filter-tab {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 500;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}

.filter-tab.active {
  background: rgba(0,217,255,0.12);
  border-color: rgba(0,217,255,0.4);
  color: #00d9ff;
}

/* ── LIST SECTION LABEL ── */
.list-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 14px 16px 6px;
  margin: 0;
}

/* ── LOCATION CARDS ── */
.location-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.location-card:hover {
  background: rgba(255,255,255,0.05);
}

.location-thumbnail {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1e2530;
  overflow: hidden;
}

.no-image-placeholder {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.location-info {
  flex: 1;
  min-width: 0;
}

.location-info h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SECTOR CARDS ── */
.sector-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: background 0.15s ease;
}

.sector-card:hover {
  background: rgba(255,255,255,0.06);
}

.sector-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  font-size: 18px;
  flex-shrink: 0;
}

.project-list-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 32px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease;
  border-left: 2px solid rgba(0,217,255,0.2);
}

.project-list-card:hover {
  background: rgba(0,217,255,0.05);
  border-left-color: rgba(0,217,255,0.6);
}

/* ── DETAIL VIEW ── */
.detail-hero {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #111;
}

.detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.95) 0%, transparent 60%);
}

.detail-hero-title {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.detail-body {
  padding: 16px;
}

.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}

.detail-description {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin: 0 0 12px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #00d9ff;
  text-decoration: none;
  margin-bottom: 12px;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta-item {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-meta-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.35);
}

.detail-meta-value {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.detail-coords {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin: 12px 0;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.detail-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s ease;
}

.detail-btn-edit {
  background: rgba(0,217,255,0.08);
  border-color: rgba(0,217,255,0.3);
  color: #00d9ff;
}

.detail-btn-edit:hover {
  background: rgba(0,217,255,0.18);
}

.detail-btn-delete {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}

.detail-btn-delete:hover {
  background: rgba(239,68,68,0.18);
}

/* ── EXPLORE NAV ── */
.nav-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-arrow:hover:not(:disabled) {
  background: rgba(0,217,255,0.12);
  border-color: rgba(0,217,255,0.4);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── COLLAPSIBLE SIDEBAR CUSTOMIZATION ── */
.collapsible-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 8px 0;
}

.collapsible-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.collapsible-toggle:hover {
  background: rgba(255,255,255,0.05);
}

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 12px;
}

.collapsible-body.open {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 12px 12px;
}

.collapsible-body.open::-webkit-scrollbar {
  width: 6px;
}

.collapsible-body.open::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

.collapsible-body.open::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
}

/* ── LEFT SIDEBAR SCROLLABLE ── */
.left-sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.left-sidebar::-webkit-scrollbar {
  width: 4px;
}
.left-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
