/* client/style.css */
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh; /* 让页面高度占满屏幕 */
}

/* 顶部标题样式 */
.page-title {
  margin: 0;
  padding: 12px 16px;
  font-size: 20px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;           /* 保证在地图之上 */
}

/* 地图占据剩余空间 */
#map {
  flex: 1;              /* 占据除标题外的所有高度 */
  min-height: 0;
}



.event-marker {
background-image: url('https://cdn-icons-png.flaticon.com/512/1257/1257369.png');
background-size: cover;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
border: 2px solid #fff;
box-shadow: 0 0 5px rgba(0,0,0,0.5);
}


.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

.modal-content {
background: white;
padding: 20px;
border-radius: 8px;
width: 90%;
max-width: 400px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
margin-top: 0;
}

#event-description {
    width: 100%;
    height: 80px;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
}

.modal-actions {
text-align: left;
}

.hide {
display: none;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
}

.search-row input[type="text"] {
  flex: 1;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-primary,
.btn-secondary {
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
  border: 1px solid #007bff;
  border-radius: 4px;
}

.btn-secondary {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.hide {
  display: none;
}

.install-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 123, 255, 0.85);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}