#homiestay-map {
  width: 100%;
  height: 560px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  z-index: 1;
}

.hm-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}
.hm-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hm-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00c3a0;
  border: 2px solid #00544f;
  flex-shrink: 0;
}
.hm-legend-dot.missing {
  background: #ccc;
  border-color: #999;
}

.hm-marker {
  width: 32px;
  height: 40px;
  position: relative;
}
.hm-marker svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,84,79,0.35));
  transition: transform 0.15s ease;
}
.hm-marker:hover svg {
  transform: scale(1.15) translateY(-2px);
}

.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  min-width: 220px;
}
.leaflet-popup-tip {
  background: #fff !important;
}

.leaflet-popup.hm-popup-below .leaflet-popup-tip-container {
  display: none;
}

.hm-popup-inner {
  padding: 16px 18px 14px;
}
.hm-popup-name {
  font-size: 15px;
  font-weight: 700;
  color: #00544f;
  margin-bottom: 4px;
  line-height: 1.3;
}
.hm-popup-city {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00c3a0;
  margin-bottom: 6px;
}
.hm-popup-image {
  display: block;
  width: 100%;
  height: 118px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
  margin: 10px 0 12px;
}

.hm-popup-address {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.4;
}
.hm-popup-btn {
  display: inline-block;
  background: #00c3a0;
  color: #fff !important;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 7px 13px;
  border-radius: 5px;
  transition: background 0.2s;
  text-transform: uppercase;
  line-height: 1.2;
}
.hm-popup-btn:hover {
  background: #00a88a;
  color: #fff !important;
}
.hm-popup-note {
  font-size: 11px;
  color: #e07000;
  margin-top: 8px;
}

.hm-oov-control {
  background: #fff;
  color: #00544f;
  border: 1px solid rgba(0,84,79,0.14);
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.16);
  overflow: hidden;
  max-width: 430px;
}
.hm-oov-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 14px;
}
.hm-oov-count {
  font-size: 26px;
  font-weight: 800;
  color: #00544f;
  line-height: 1;
  flex-shrink: 0;
}
.hm-oov-text {
  font-size: 12px;
  line-height: 1.4;
  min-width: 0;
}
.hm-oov-cities {
  grid-column: 2 / 4;
  font-size: 11px;
  color: #00544f;
  font-weight: 700;
  white-space: nowrap;
}
.hm-oov-btn {
  display: block;
  background: #00c3a0;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 5px;
  line-height: 1.2;
  white-space: nowrap;
  justify-self: end;
  transition: background 0.15s;
}
.hm-oov-btn:hover { background: #00a88a; }

@media (max-width: 600px) {
  #homiestay-map { height: 380px; }
  .hm-oov-inner { grid-template-columns: auto 1fr; }
  .hm-oov-cities { grid-column: 1 / -1; white-space: normal; }
  .hm-oov-btn { grid-column: 1 / -1; width: 100%; text-align: center; }
}
