/* Map Wrapper */
.gcm-wrapper {
  position: relative;
  width: 100%;
  font-family: 'Utopia Std', Georgia, 'Times New Roman', serif;
}

/* Map Container */
.gcm-container {
  width: 100%;
  height: 500px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Top Controls Container */
.gcm-top-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Category Filters */
.gcm-category-filters {
  display: flex;
  gap: 6px;
}

.gcm-category-btn {
  padding: 8px 16px;
  min-width: 80px;
  border: none;
  border-radius: 4px;
  color: white;
  font-family: 'Utopia Std', Georgia, serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gcm-category-btn .gcm-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.gcm-category-btn:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.gcm-category-btn.inactive {
  opacity: 0.9;
}

/* Location Dropdown */
.gcm-location-dropdown select {
  padding: 10px 36px 10px 14px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: white;
  font-family: 'Utopia Std', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  min-width: 200px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}

.gcm-location-dropdown select:focus {
  outline: none;
  border-color: #4A90E2;
}

/* ==============================
   INFO BOX
   ============================== */
.gcm-info-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  width: 380px;
  display: none;
  border: 2px solid #e0e0e0;
  overflow: hidden;
  font-family: 'Utopia Std', Georgia, serif;
}

.gcm-info-box.active {
  display: block;
}

/* INFO BOX HEADER: title + right side (category icon + close) */
.gcm-info-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: #e6304c;
  min-height: 52px;
}

.gcm-info-title {
  margin: 0;
  font-family: 'Utopia Std', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: white;
  line-height: 1.3;
  flex: 1;
  padding-right: 10px;
}

/* Right side: category icon + close button */
.gcm-info-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gcm-header-category-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Close button */
.gcm-info-close {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gcm-info-close:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.gcm-close-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Body */
.gcm-info-body {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: flex-start;
}

.gcm-info-content {
  flex: 1;
  font-family: 'Utopia Std', Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  min-width: 0;
}

.gcm-info-image {
  flex-shrink: 0;
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

/* Footer */
.gcm-info-footer {
  padding: 0 16px 14px 16px;
}

.gcm-info-link {
  display: inline-block;
  color: #4A90E2;
  text-decoration: none;
  font-family: 'Utopia Std', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
}

.gcm-info-link:hover {
  text-decoration: underline;
}

/* ==============================
   COMPASS
   ============================== */
.gcm-compass {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.gcm-compass img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Custom Marker */
.gcm-custom-marker {
  cursor: pointer;
}

/* Leaflet Popup */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-family: 'Utopia Std', Georgia, serif;
}

.leaflet-popup-content {
  margin: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #333;
}

/* Zoom Controls */
.leaflet-top.leaflet-right {
  top: 10px;
  right: 10px;
}

.leaflet-control-zoom {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: none;
}

.leaflet-control-zoom a {
  background: white;
  border: none;
  color: #333;
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 18px;
}

.leaflet-control-zoom a:hover {
  background: #f5f5f5;
}

.leaflet-control-zoom-in {
  border-bottom: 2px solid #aaa !important;
}

/* Responsive */
@media (max-width: 768px) {
  .gcm-top-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gcm-category-filters {
    gap: 4px;
  }

  .gcm-category-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 60px;
  }

  .gcm-location-dropdown select {
    min-width: 150px;
    font-size: 12px;
  }

  .gcm-info-box {
    width: 300px;
    bottom: 10px;
    left: 10px;
  }

  .gcm-info-image {
    width: 80px;
    height: 70px;
  }

  .gcm-info-title {
    font-size: 15px;
  }

  .gcm-compass {
    width: 52px;
    height: 52px;
    bottom: 10px;
    right: 10px;
  }
}
