body {margin: 0 auto;}

#map { height: 100vh; width: 100%;cursor: crosshair; }

#map:active {
    cursor: grabbing;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Rubik+Storm&family=Yrsa:ital,wght@0,300..700;1,300..700&display=swap');

 @font-face {
  font-family: 'ot hadassah';
  src: url(https://otzar.io/fonts/hadassah/OT%20Hadasah-VF.ttf) format("truetype");
 }


/* The Modal (background overlay) */
.modal {
    visibility: hidden;
  position: fixed; 
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.5); /* Semi-transparent black */
  backdrop-filter: blur(4px); /* Modern blur effect */
  
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  margin: 10% auto; 
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 12px; /* Spacing between inputs */
}

/* Header Styling */
#modalTitle {
  margin-top: 0;
  color: #333;
  font-family: sans-serif;
}

/* Input Styling */
.modal-content input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't break width */
}

.modal-content input[readonly] {
  background-color: #f5f5f5;
  color: #777;
  cursor: not-allowed;
}

/* Button Styling */
button {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.8;
}

#saveBtn {
  background-color: #2ecc71;
  color: white;
}

#deleteBtn {
  background-color: #e74c3c;
  color: white;
}

/* Cancel Button (no ID provided in HTML, using default) */
.modal-content button:last-child {
  background-color: #95a5a6;
  color: white;
}

.controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    width: 90%;
    max-width: 600px;
    z-index: 9999;
}

#searchInput {
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
}

/* Suggestions Box */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 10000;
    font-family: "yrsa", "ot hadassah";
}

.suggestions-box.active {
    display: block;
}

.suggestion-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f8ff;
}

.suggestion-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.suggestion-code {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
    white-space: nowrap;
}

#manualAddBtn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.editbtn {
    background: #005a00;
    color:#fff;
    border:none;
    border-radius: 5px;
    padding:5px 10px;
    transition: 0.2s;
        font-family: 'Yrsa', 'ot hadassah';
    padding-bottom:2px;
}

.editbtn:hover {
    background:#005a00e0;
}

/* Style the Leaflet Layer Control Box */
.leaflet-control-layers {
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    padding: 10px !important;
    font-family: sans-serif;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px);
}

.leaflet-control-layers-list {
    font-size: 13px;
    line-height: 1.8;
}

.leaflet-popup-content {

    font-family: 'Yrsa', 'ot hadassah';
}





