@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

:root {
  --main-color: #1a5f7a;
  --hover-color: #0d4c65;
  --secondary-color: #0078ff;
  --active-color: #0065b2;
  --location-color: #28a745;
}

html, body {
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.main-header {
  background-color: #fff;
  box-shadow: 0 0 15px RGBA(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background-color: transparent !important;
  min-height: 75px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  color: #0065b2;
  font-weight: bold;
  flex-shrink: 0;
  max-width: fit-content;
}

.navbar-brand:hover {
  color: var(--hover-color);
}

.navbar-brand .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
}

.navbar-brand img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  min-width: 40px;
  min-height: 40px;
  object-fit: contain;
  margin-left: 8px;
  display: block;
  flex-shrink: 0;
}

.navbar-brand .h6 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 0;
}

.menu {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  margin: 0 auto;
}

.menu button {
  font-size: 14px;
  font-weight: bold;
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 50px;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
}

.menu button:hover {
  background-color: rgba(26, 95, 122, 0.1);
  color: #0065b2;
}

.menu button.active {
  background-color: #0065b2;
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0065b2;
}

.menu button:not(:last-child) {
  margin-inline-end: 8px;
}

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

.btn {
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
  font-weight: bold;
  min-width: 100px;
  text-align: center;
  position: relative;
}

.btn.location {
  background: #28a745;
  color: #fff;
}

.btn.location:hover {
  background: #218838;
}

.btn.primary {
  background: var(--secondary-color);
  color: #fff;
}

.btn.primary:hover {
  background: #0056cc;
}

.btn.secondary {
  background: #0065b2;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.secondary:hover {
  background: #015596;
}

.example-spacer {
  flex: 1 1 auto;
}

#map {
  width: 100%;
  height: 100%;
  margin-top: 75px;
  touch-action: none;
}

.leaflet-container {
  touch-action: none;
}

.leaflet-popup-content {
  font-size: 13px;
  line-height: 1.6;
}

.leaflet-popup-content b {
  color: var(--secondary-color);
  font-weight: 600;
}

.leaflet-control-zoom {
  margin-top: 85px !important;
}

.loading-overlay {
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  height: calc(100% - 75px);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay.hidden {
  display: none;
}

.loading-content {
  text-align: center;
  color: #0065b2;
  padding: 20px;
}

.gaza-map-animation {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  position: relative;
  background: #0065b2;
  border-radius: 50%;
  overflow: visible;
}

.gaza-map-animation::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  border-radius: 50%;
  border: 4px solid #ffb266;
  border-top-color: #ffffff;
  animation: spin 1.2s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gaza-map-animation::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M40,80 L80,60 L120,70 L160,50 L180,90 L160,130 L120,140 L80,130 L40,150 Z" fill="rgba(255,255,255,0.2)" stroke="white" stroke-width="2"/><circle cx="100" cy="100" r="5" fill="white"/></svg>');
  background-size: 200% 200%, contain;
  background-position: -100% 0, center;
  border-radius: 50%;
  animation: mapShine 3s infinite linear, pulse 2s infinite ease-in-out;
}

@keyframes mapShine {
  from {
    background-position: -100% 0, center;
  }
  to {
    background-position: 200% 0, center;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.loading-steps {
  font-size: 14px;
  margin-top: 15px;
  color: #f7912c;
}

.loading-step {
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-check {
  color: #f7912c;
  font-weight: bold;
}

.step-loading {
  color: #f7912c;
}

.inline-loader {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-subtext {
  font-size: 16px;
  opacity: 0.85;
  margin-top: 10px;
}

.hidden {
  display: none;
}

.sidebar {
  position: fixed;
  top: 75px;
  right: -380px;
  width: 380px;
  height: calc(100% - 75px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #333;
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-right: 3px solid #0065b2;
}

.sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 140, 205, 0.2);
}

.sidebar-header button {
  background: none;
  border: none;
  color: #0065b2;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
}

.filter-section {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 140, 205, 0.2);
  margin-bottom: 10px;
}

.filter-section h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #0065b2;
  font-weight: bold;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item label {
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.filter-item {
  margin-top: 10px;
}

.filter-item label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

.filter-select,
.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: "Cairo", sans-serif;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.filter-select:focus,
.search-input:focus {
  outline: none;
  border-color: #008ECD;
  box-shadow: 0 0 0 2px rgba(0, 140, 205, 0.1);
}

.search-input {
  direction: rtl;
  text-align: right;
}

.zones-list {
  flex: 1;
  overflow-y: auto;
}

.zone-item {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 140, 205, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 5px;
  margin-bottom: 5px;
}

.zone-item:hover {
  background: rgba(0, 140, 205, 0.1);
}

.zone-item.active {
  background: rgba(0, 140, 205, 0.2);
  font-weight: bold;
  color: #0065b2;
}

.zone-details {
  padding: 10px 0;
}

.zone-details h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #0065b2;
  font-weight: bold;
}

.zone-details .detail-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 140, 205, 0.1);
}

.zone-details .detail-row:last-child {
  border-bottom: none;
}

.zone-details .detail-label {
  font-weight: 600;
  color: #0065b2;
  margin-bottom: 3px;
}

.zone-details .detail-value {
  color: #333;
}

.user-location-marker {
  background: var(--location-color);
  border: 3px solid #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
  animation: pulseMarker 2s infinite;
}

@keyframes pulseMarker {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.zone-highlight {
  animation: highlightZone 3s ease;
  stroke-width: 4px !important;
  stroke: #0065b2 !important;
  fill-opacity: 0.5 !important;
}

@keyframes highlightZone {
  0% {
    stroke-width: 2px;
    stroke: #0078ff;
  }
  50% {
    stroke-width: 5px;
    stroke: #0065b2;
  }
  100% {
    stroke-width: 4px;
    stroke: #0065b2;
  }
}

.btn.full {
  width: 100%;
  background: #0065b2;
  color: #fff;
  margin-top: 10px;
  padding: 12px;
  font-size: 14px;
  border-radius: 5px;
}

.btn.full:hover {
  background: #006c9b;
}

input[type="checkbox"] {
  accent-color: #0065b2;
}

#sidebarTitle {
  color: #0065b2;
  font-weight: bold;
}

.footer-mobile {
  display: none;
}

.mobile-bottom-sheet {
  display: none;
}

@media (max-width: 1100px) {
  .navbar-brand .h6 {
    font-size: 14px;
  }
  .menu button {
    padding: 6px 12px;
    font-size: 13px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 90px;
  }
}

@media (max-width: 992px) {
  .mat-toolbar {
    flex-wrap: wrap;
    padding: 10px 0;
    min-height: auto;
  }
  .menu {
    order: 3;
    width: 100%;
    margin-top: 12px;
    justify-content: center;
  }
  .menu button {
    padding: 6px 12px;
    font-size: 12px;
  }
  #map {
    margin-top: 130px;
  }
  .loading-overlay {
    top: 130px;
    height: calc(100% - 130px);
  }
  .sidebar {
    top: 130px;
    height: calc(100% - 130px);
  }
  .leaflet-control-zoom {
    margin-top: 140px !important;
  }
  .navbar-brand {
    flex: 1;
  }
  .header-actions {
    flex: 1;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .sidebar {
    display: none;
  }
  
  .footer-mobile {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  
  .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #666;
  }
  
  .footer-item.active {
    background: rgba(0, 142, 205, 0.1);
    color: #0065b2;
  }
  
  .footer-item i {
    font-size: 20px;
  }
  
  .footer-item span {
    font-size: 11px;
    font-weight: 500;
  }
  
  .mobile-bottom-sheet {
    display: block;
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-bottom-sheet.show {
    bottom: 50px;
    transform: translateY(0);
  }
  
  .mobile-bottom-sheet.expanded {
    max-height: 85vh;
  }
  
  .bottom-sheet-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid rgba(0, 140, 205, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  
  .bottom-sheet-header:active {
    cursor: grabbing;
  }
  
  .bottom-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    pointer-events: none;
  }
  
  .bottom-sheet-header span {
    font-weight: bold;
    color: #0065b2;
    font-size: 16px;
    pointer-events: none;
  }
  
  .bottom-sheet-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: #0065b2;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 10;
  }
  
  .mobile-filter-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 140, 205, 0.1);
  }
  
  .mobile-zones-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
  }
  
  .mobile-zones-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .mobile-zones-list::-webkit-scrollbar-track {
    background: rgba(0, 140, 205, 0.05);
    border-radius: 10px;
  }
  
  .mobile-zones-list::-webkit-scrollbar-thumb {
    background: #0065b2;
    border-radius: 10px;
  }
  
  .mobile-zones-list::-webkit-scrollbar-thumb:hover {
    background: #006c9b;
  }
  
  .mobile-zone-details {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    animation: slideInRight 0.3s ease;
  }
  
  .mobile-zone-details::-webkit-scrollbar {
    width: 6px;
  }
  
  .mobile-zone-details::-webkit-scrollbar-track {
    background: rgba(0, 140, 205, 0.05);
    border-radius: 10px;
  }
  
  .mobile-zone-details::-webkit-scrollbar-thumb {
    background: #0065b2;
    border-radius: 10px;
  }
  
  .mobile-zone-details::-webkit-scrollbar-thumb:hover {
    background: #006c9b;
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .mobile-zone-details h3 {
    font-size: 18px;
    color: #0065b2;
    margin-bottom: 15px;
    font-weight: bold;
  }
  
  .mobile-zone-details .detail-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 140, 205, 0.1);
  }
  
  .mobile-zone-details .detail-label {
    font-weight: 600;
    color: #0065b2;
    margin-bottom: 5px;
    font-size: 13px;
  }
  
  .mobile-zone-details .detail-value {
    color: #333;
    font-size: 14px;
  }
  
  .mobile-zone-details .back-button {
    background: #0065b2;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
  }
  
  .mobile-zone-details .back-button:active {
    transform: scale(0.98);
  }
  
  #map  {
    margin-top: 59px;
    margin-bottom: 1px;
    height: calc(100% - 115px);
  }
  
  .loading-overlay {
    top: 59px;
    height: calc(100% - 115px);
  }
  
  .leaflet-control-zoom {
    margin-top: 140px !important;
    margin-bottom: 70px !important;
  }
  
  .navbar-brand .h6 {
    font-size: 11px;
  }
  
  .navbar-brand img {
    width: 35px;
    height: 35px;
    max-width: 35px;
    max-height: 35px;
    min-width: 35px;
    min-height: 35px;
    margin-left: 6px;
  }
  
  .menu button {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .btn-text {
    display: none;
  }
  
  .btn {
    min-width: 45px;
    padding: 8px 10px;
  }
  
  .btn.secondary i {
    margin: 0;
    font-size: 18px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .header-actions {
    gap: 5px;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  
  .navbar-brand .h6 {
    font-size: 10px;
  }
  
  .menu button {
    font-size: 11px;
    padding: 6px 8px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .loading-text {
    font-size: 16px;
  }
  
  .gaza-map-animation {
    width: 140px;
    height: 140px;
  }
  
  .gaza-map-animation::before {
    width: 120px;
    height: 120px;
  }
}

#closeSidebar {
  color: #0065b2;
}

body.loading .menu {
  pointer-events: none;
}

#loadingPercent {
  font-weight: bold;
  min-width: 40px;
  text-align: right;
}

#telegramBtn {
  display: inline-flex;
  align-items: center;
}

#telegramBtn i {
  font-size: 20px;
  margin-left: 8px;
}

#damageSiteBtn {
  display: inline-flex;
  align-items: center;
}

#damageSiteBtn i {
  font-size: 18px;
  margin-left: 8px;
}

@media(max-width: 768px) {
  .menu {
    display: none !important;
  }
}

#openSmMenu , #telegramLink {
  display: none;
}

.menu-wrapper {
  position: relative;
}

.menu-sub {
  position: absolute;
  top: 110%;
  right: 0;
  left: auto;
  min-width: 220px;
  max-width: 80vw;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 6px 0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 1100;
  text-align: right;
}

.menu-sub.opened {
  opacity: 1;
  visibility: visible;
  top: 104%;
}

.menu-sub a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
}

.menu-sub a p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 500;
}

.menu-sub a i {
  font-size: 14px;
  color: #0065b2;
}

.menu-sub a:hover {
  background-color: rgba(0, 142, 205, 0.06);
}
@media(max-width: 768px) {
  #openSmMenu , #telegramLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    min-width: auto;
    border-radius: 999px;
    background-color: #0065b2;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 18px;
  }

  #telegramBtn, #damageSiteBtn {
    display: none;
  }

  .menu-wrapper {
    position: static;
  }

  .menu-sub {
    left: 30%;
    right: auto;
    transform: translateX(-50%);
    max-width: 90vw;
  }
}

.mobile-bottom-sheet {
  will-change: transform;
}

.mobile-bottom-sheet.level-full {
  transform: translateY(0) !important;
}

.mobile-bottom-sheet.level-half {
  transform: translateY(45%) !important;
}

.mobile-bottom-sheet.level-closed {
  transform: translateY(100%) !important;
}

.mobile-bottom-sheet.dragging {
  transition: none !important;
}
.mobile-bottom-sheet.show.level-full {
  transform: translateY(0) !important;
}

.mobile-bottom-sheet.show.level-half {
  transform: translateY(calc(100% - 250px)) !important;
}

.mobile-bottom-sheet.show.level-closed {
  transform: translateY(calc(100% - 65px)) !important;
}

.mobile-bottom-sheet.show {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.mobile-bottom-sheet.level-closed .bottom-sheet-handle {
  background: #0065b2;
  width: 100px;
  height: 6px;
  top: 12px;
}

.footer-item.active {
  background: rgba(0, 142, 205, 0.15);
  color: #0065b2;
}

.mobile-bottom-sheet.level-full {
  transform: translateY(0) !important;
  max-height: 60vh;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.mobile-bottom-sheet.level-half {
  transform: translateY(30%) !important;
  max-height: 50vh;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.mobile-bottom-sheet.level-closed {
  transform: translateY(100%) !important;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.mobile-bottom-sheet.show {
  display: flex !important;
}

.mobile-bottom-sheet.level-closed .bottom-sheet-header span,
.mobile-bottom-sheet.level-closed .bottom-sheet-header button,
.mobile-bottom-sheet.level-closed .mobile-filter-section,
.mobile-bottom-sheet.level-closed .mobile-zones-list,
.mobile-bottom-sheet.level-closed .mobile-zone-details {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-bottom-sheet:not(.level-closed) .bottom-sheet-header span,
.mobile-bottom-sheet:not(.level-closed) .bottom-sheet-header button,
.mobile-bottom-sheet:not(.level-closed) .mobile-filter-section,
.mobile-bottom-sheet:not(.level-closed) .mobile-zones-list,
.mobile-bottom-sheet:not(.level-closed) .mobile-zone-details {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease 0.1s;
}

.mobile-bottom-sheet.level-closed .bottom-sheet-handle {
  opacity: 1;
  background: #0065b2;
  width: 100px;
  height: 6px;
  top: 12px;
}

.mobile-bottom-sheet.level-half {
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-sheet.dragging {
  transition: none !important;
}

.footer-item.active {
  background: rgba(0, 142, 205, 0.15);
  color: #0065b2;
}

.mobile-bottom-sheet.level-full {
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 20px 20px 0 0;
}
.leaflet-control-attribution {
  display: none !important;
}

@media(min-width: 991px) {
  #mobileBottomSheet,
  .menu-wrapper {
    display: none !important;
  }
}

.map-legend {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 998;
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease-in-out;
}

.map-legend:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: rgba(255, 255, 255, 0.6);
}

.legend-header {
  font-size: 13px;
  font-weight: bold;
  color: #0065b2;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 140, 205, 0.2);
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.legend-label {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.copyright {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 998;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.copyright span {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

.copyright:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

@media (min-width: 769px) {
  .map-legend {
    bottom: 20px;
    right: 20px;
    transition: right 0.3s ease;
  }
  .copyright {
    bottom: 20px;
    left: 20px;
  }
  body:has(.sidebar.open) .map-legend {
    right: 400px;
  }
}

@media (max-width: 768px) {
  .map-legend {
    bottom: 70px;
    right: 12px;
    left: auto;
    padding: 10px 12px;
    min-width: 135px;
    max-width: calc(50% - 20px);
    font-size: 11px;
  }
  .legend-header {
    font-size: 11px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }
  .legend-items {
    gap: 6px;
  }
  .legend-item {
    gap: 8px;
  }
  .legend-color {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
  }
  .legend-label {
    font-size: 10px;
    line-height: 1.3;
  }
  .copyright {
    bottom: 70px;
    left: 12px;
    right: auto;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: calc(50% - 20px);
    text-align: center;
  }
  .copyright span {
    font-size: 9px;
    line-height: 1.3;
    display: block;
  }
}

@media (max-width: 576px) {
  .map-legend {
    bottom: 65px;
    right: 10px;
    left: auto;
    padding: 8px 10px;
    min-width: 120px;
    max-width: calc(50% - 15px);
  }
  .legend-header {
    font-size: 10px;
    margin-bottom: 6px;
    padding-bottom: 5px;
  }
  .legend-items {
    gap: 5px;
  }
  .legend-color {
    width: 14px;
    height: 14px;
  }
  .legend-label {
    font-size: 9px;
  }
  .copyright {
    bottom: 65px;
    left: 10px;
    right: auto;
    padding: 5px 8px;
    max-width: calc(50% - 15px);
  }
  .copyright span {
    font-size: 8px;
  }
}

#zoneQr,
#zoneQrMobile {
  display: flex;
  justify-content: center;
  align-items: center;
}
.badge-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.badge-view {
  background: #d4edda;
  color: #155724;
}