html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
}

canvas {
  width: 100vw;
  height: 100vh;
  border: 1px solid #333;
  background: black;
}

#searchPanel {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 700px;
  max-width: 90vw;
}

#searchBox2 {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#searchInputWrapper{
  position:relative;
  flex:1;
  height:50px;
}

#searchBox{
  width:100%;
  height:100%;

  padding:0 65px 0 18px;

  border:none;
  border-radius:25px;

  font-size:16px;

  box-shadow:0 2px 10px rgba(0,0,0,.2);

  box-sizing:border-box;
}

#searchBtn{
  position:absolute;
  top:0;
  right:0;

  width:60px;
  height:50px;

  border:none;
  border-radius:0 25px 25px 0;

  background:#1976d2;
  color:white;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
}

#searchBtn svg{
  width:20px;
  height:20px;
}

#searchBtn:hover{
  background:#1565c0;
}

#tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  border: none;
  background: white;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.tag:hover {
  background: #f0f0f0;
}

#zoomControls {
  position: absolute;
  right: 20px;
  top: 140px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#zoomControls button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#searchRow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.selectWrapper {
  position: relative;
  flex: 0 0 220px;
}

#localitySelect {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 18px;
  border: none;
  border-radius: 25px;
  background: white;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.selectArrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
  color: #666;
}

#searchBox {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  #searchRow {
    gap: 8px;
  }

  #localitySelect {
    flex: 0 0 130px;
    font-size: 14px;
    padding: 12px 14px;
  }

  #searchBox {
    font-size: 14px;
    padding: 12px 14px;
  }
}






#articlePanel{
  position:absolute;
  left:20px;
  top:170px;

  width:320px;
  max-height:calc(100vh - 190px);

  overflow-y:auto;

  background:#fff;
  border-radius:16px;

  box-shadow:0 2px 10px rgba(0,0,0,.15);
  z-index:1000;
}

.panelHeader{
  padding:14px 16px;

  font-size:20px;
  font-weight:800;

  border-bottom:1px solid #e6ecf0;

  position:sticky;
  top:0;

  background:#fff;
  z-index:1;
}

.articleCard{
  display:flex;
  gap:10px;

  padding:12px 16px;
  cursor:pointer;

  border-bottom:1px solid #f1f3f4;
}

.articleCard:last-child{
  border-bottom:none;
}

.articleCard:hover{
  background:#f7f9f9;
}

.articleCard img{
  width:64px;
  height:64px;

  border-radius:10px;
  object-fit:cover;

  flex-shrink:0;
}

.articleBody{
  flex:1;
}

.articleTitle{
  font-size:14px;
  font-weight:700;
  line-height:1.3;
}

.articleDesc{
  margin-top:4px;

  font-size:12px;
  color:#536471;

  line-height:1.3;
}





#searchResults{
  margin-top:10px;

  display:flex;
  flex-wrap:wrap;
  gap:8px;

  justify-content:center;
}
.searchLabel{
  display:flex;
  align-items:center;

  font-weight:600;
  color:#fff;

  padding:8px 0;
}

.searchMessage{
  background:white;

  padding:8px 14px;

  border-radius:20px;

  box-shadow:0 1px 5px rgba(0,0,0,.15);
}





.tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}



 

.tag-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
